(remote: string)
| 244 | } |
| 245 | |
| 246 | async function readScriptFromHttp(remote: string): Promise<string> { |
| 247 | const res = await fetch(remote) |
| 248 | if (!res.ok) { |
| 249 | console.error(`Error: Can't get ${remote}`) |
| 250 | process.exit(1) |
| 251 | } |
| 252 | return res.text() |
| 253 | } |
| 254 | |
| 255 | export function injectGlobalRequire(origin: string): void { |
| 256 | const __filename = path.resolve(origin) |
no test coverage detected
searching dependent graphs…