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

Function parseOrigin

out/cli.cjs:47834–47840  ·  view source on GitHub ↗
(url2)

Source from the content-addressed store, hash-verified

47832 return url2;
47833 }
47834 function parseOrigin(url2) {
47835 url2 = parseURL(url2);
47836 if (url2.pathname !== "/" || url2.search || url2.hash) {
47837 throw new InvalidArgumentError("invalid url");
47838 }
47839 return url2;
47840 }
47841 function getHostname(host) {
47842 if (host[0] === "[") {
47843 const idx2 = host.indexOf("]");

Callers 2

addUpstreamMethod · 0.85
removeUpstreamMethod · 0.85

Calls 1

parseURLFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…