(value: string)
| 62 | } |
| 63 | |
| 64 | function isHttpUrl(value: string): boolean { |
| 65 | try { |
| 66 | const url = new URL(value); |
| 67 | return url.protocol === "http:" || url.protocol === "https:"; |
| 68 | } catch { |
| 69 | return false; |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | async function readConfigSource(source: string): Promise<PackConfig> { |
| 74 | let raw = ""; |