(host: string, port: number)
| 135 | } |
| 136 | |
| 137 | export function serverOrigin(host: string, port: number): string { |
| 138 | return `http://${host}:${port}`; |
| 139 | } |
| 140 | |
| 141 | /** Strip `/api/v1` and trailing slashes so user-supplied origins are uniform. */ |
| 142 | export function normalizeServerOrigin(value: string): string { |
no outgoing calls
no test coverage detected