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

Function serializeHost

out/cli.cjs:3926–3934  ·  view source on GitHub ↗
(host)

Source from the content-addressed store, hash-verified

3924 return longestIndex;
3925 }
3926 function serializeHost(host) {
3927 if (typeof host === "number") {
3928 return serializeIPv4(host);
3929 }
3930 if (host instanceof Array) {
3931 return `[${serializeIPv6(host)}]`;
3932 }
3933 return host;
3934 }
3935 function domainToASCII(domain, beStrict = false) {
3936 const result = tr46.toASCII(domain, {
3937 checkHyphens: beStrict,

Callers 2

serializeURLFunction · 0.85
serializeOriginFunction · 0.85

Calls 2

serializeIPv4Function · 0.85
serializeIPv6Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…