(url: string)
| 34 | } |
| 35 | |
| 36 | export function isSplatUrl(url: string): boolean { |
| 37 | try { |
| 38 | return isSplatFilePath(new URL(url).pathname); |
| 39 | } catch { |
| 40 | return isSplatFilePath(url.split(/[?#]/, 1)[0]); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | export async function fetchSplatUrlFile( |
| 45 | url: string, |
no test coverage detected