MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / stringify

Function stringify

lib.commonjs/providers/provider-fallback.js:27–34  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

25}
26function getTime() { return (new Date()).getTime(); }
27function stringify(value) {
28 return JSON.stringify(value, (key, value) => {
29 if (typeof (value) === "bigint") {
30 return { type: "bigint", value: value.toString() };
31 }
32 return value;
33 });
34}
35;
36const defaultConfig = { stallTimeout: 400, priority: 1, weight: 1 };
37const defaultState = {

Callers 2

#checkQuorumMethod · 0.70
#waitForQuorumMethod · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected