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

Function buildURL2

out/cli.cjs:47781–47790  ·  view source on GitHub ↗
(url2, queryParams)

Source from the content-addressed store, hash-verified

47779 return Blob5 && object instanceof Blob5 || object && typeof object === "object" && (typeof object.stream === "function" || typeof object.arrayBuffer === "function") && /^(Blob|File)$/.test(object[Symbol.toStringTag]);
47780 }
47781 function buildURL2(url2, queryParams) {
47782 if (url2.includes("?") || url2.includes("#")) {
47783 throw new Error('Query params cannot be passed when url already contains "?" or "#".');
47784 }
47785 const stringified = stringify2(queryParams);
47786 if (stringified) {
47787 url2 += "?" + stringified;
47788 }
47789 return url2;
47790 }
47791 function parseURL(url2) {
47792 if (typeof url2 === "string") {
47793 url2 = new URL(url2);

Callers 2

getMockDispatchFunction · 0.85
constructorMethod · 0.85

Calls 2

stringify2Function · 0.85
includesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…