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

Function URLSerializer

out/cli.cjs:51496–51503  ·  view source on GitHub ↗
(url2, excludeFragment = false)

Source from the content-addressed store, hash-verified

51494 mimeType = "text/plain" + mimeType;
51495 }
51496 let mimeTypeRecord = parseMIMEType(mimeType);
51497 if (mimeTypeRecord === "failure") {
51498 mimeTypeRecord = parseMIMEType("text/plain;charset=US-ASCII");
51499 }
51500 return { mimeType: mimeTypeRecord, body };
51501 }
51502 function URLSerializer(url2, excludeFragment = false) {
51503 if (!excludeFragment) {
51504 return url2.href;
51505 }
51506 const href = url2.href;

Callers 6

dataURLProcessorFunction · 0.85
redirectMethod · 0.85
urlMethod · 0.85
urlMethod · 0.85
urlEqualsFunction · 0.85
urlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…