MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / resolveUrl

Function resolveUrl

out/cli.cjs:25396–25398  ·  view source on GitHub ↗
(relative, base)

Source from the content-addressed store, hash-verified

25394 return parsed;
25395 }
25396 function resolveUrl(relative, base) {
25397 return useNativeURL ? new URL3(relative, base) : parseUrl(url2.resolve(base, relative));
25398 }
25399 function validateUrl(input) {
25400 if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
25401 throw new InvalidUrlError({ input: input.href || input });

Calls 1

parseUrlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…