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

Function serializeJavascriptValueToJSONString

out/cli.cjs:50880–50887  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

50878 POST: "POST",
50879 put: "PUT",
50880 PUT: "PUT"
50881 };
50882 Object.setPrototypeOf(normalizeMethodRecord, null);
50883 function normalizeMethod(method) {
50884 return normalizeMethodRecord[method.toLowerCase()] ?? method;
50885 }
50886 function serializeJavascriptValueToJSONString(value) {
50887 const result = JSON.stringify(value);
50888 if (result === void 0) {
50889 throw new TypeError("Value is not JSON serializable");
50890 }

Callers 1

jsonMethod · 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…