(url: string)
| 238 | } |
| 239 | |
| 240 | function assertHttpUrl(url: string): void { |
| 241 | let parsed: URL; |
| 242 | try { |
| 243 | parsed = new URL(url); |
| 244 | } catch { |
| 245 | throw new AppError('INVALID_ARGS', `Invalid install source URL: ${url}`); |
| 246 | } |
| 247 | if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') { |
| 248 | throw new AppError('INVALID_ARGS', 'Install source URL must use http or https'); |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | function normalizeDeviceTarget( |
| 253 | target: BackendDeviceTarget | undefined, |
no outgoing calls
no test coverage detected
searching dependent graphs…