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

Method toJSON

out/cli.cjs:72179–72185  ·  view source on GitHub ↗
(asStrings)

Source from the content-addressed store, hash-verified

72177 self2[normalized] = normalizeValue2(value);
72178 headers[normalized] = true;
72179 });
72180 return this;
72181 }
72182 concat(...targets) {
72183 return this.constructor.concat(this, ...targets);
72184 }
72185 toJSON(asStrings) {
72186 const obj = /* @__PURE__ */ Object.create(null);
72187 utils_default.forEach(this, (value, header) => {
72188 value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);

Callers 7

toJSONMethod · 0.45
[Symbol.iterator]Method · 0.45
toStringMethod · 0.45
cli.cjsFile · 0.45
setProxyAgentOnRequestFunction · 0.45
makeRequestMethod · 0.45
sendRequestFunction · 0.45

Calls 3

createMethod · 0.45
forEachMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected