(url)
| 83 | } |
| 84 | |
| 85 | export function getUrlPath(url) { |
| 86 | try { |
| 87 | const u = new URL(url); |
| 88 | return u.pathname + u.search; |
| 89 | } catch (e) { |
| 90 | return url; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | export function getRequestType(source) { |
| 95 | if (!source) return 'unknown'; |
no outgoing calls
no test coverage detected