(url: string)
| 598 | } |
| 599 | |
| 600 | function pathFromUrl(url: string): string { |
| 601 | try { |
| 602 | const parsed = new URL(url); |
| 603 | return `${parsed.pathname}${parsed.search}`; |
| 604 | } catch { |
| 605 | return url; |
| 606 | } |
| 607 | } |
| 608 | |
| 609 | function requestForFetchReport( |
| 610 | input: Parameters<typeof fetch>[0], |