(url: string)
| 196 | } |
| 197 | |
| 198 | async function fetchToString(url: string): Promise<string> { |
| 199 | try { |
| 200 | const response = await fetch(url); |
| 201 | return await response.text(); |
| 202 | } catch (cause) { |
| 203 | throw new Error(`Failed to fetch ${url}`, {cause}); |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | function canBeRemoteFilePath(url: string): boolean { |
| 208 | try { |
no test coverage detected