(code: string, spaces: number)
| 196 | ]; |
| 197 | |
| 198 | function indent(code: string, spaces: number) { |
| 199 | const indent = ' '.repeat(spaces); |
| 200 | return code |
| 201 | .split('\n') |
| 202 | .map((line) => (line ? indent + line : '')) |
| 203 | .join('\n'); |
| 204 | } |
| 205 | |
| 206 | export function parseHostAndPath(url: string) { |
| 207 | try { |