(hostname: string)
| 110 | } |
| 111 | |
| 112 | function isLoopbackHost(hostname: string): boolean { |
| 113 | return ( |
| 114 | hostname === 'localhost' || |
| 115 | hostname === '127.0.0.1' || |
| 116 | hostname === '::1' || |
| 117 | hostname === '[::1]' |
| 118 | ) |
| 119 | } |
| 120 | |
| 121 | export function websocketUrlSupportsAuthToken(rawUrl: string): boolean { |
| 122 | const url = new URL(rawUrl) |
no outgoing calls
no test coverage detected