MCPcopy
hub / github.com/di-sukharev/opencommit / parseUrl

Function parseUrl

out/cli.cjs:25384–25395  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

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 }

Callers 5

getProxyForUrlFunction · 0.85
request3Function · 0.85
resolveUrlFunction · 0.85

Calls 3

validateUrlFunction · 0.85
isString2Function · 0.85
parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…