(input)
| 25382 | function noop2() { |
| 25383 | } |
| 25384 | function parseUrl(input) { |
| 25385 | var parsed; |
| 25386 | if (useNativeURL) { |
| 25387 | parsed = new URL3(input); |
| 25388 | } else { |
| 25389 | parsed = validateUrl(url2.parse(input)); |
| 25390 | if (!isString2(parsed.protocol)) { |
| 25391 | throw new InvalidUrlError({ input }); |
| 25392 | } |
| 25393 | } |
| 25394 | return parsed; |
| 25395 | } |
| 25396 | function resolveUrl(relative, base) { |
| 25397 | return useNativeURL ? new URL3(relative, base) : parseUrl(url2.resolve(base, relative)); |
| 25398 | } |
no test coverage detected
searching dependent graphs…