MCPcopy Index your code
hub / github.com/Noumena-Network/code / jsonStringify

Function jsonStringify

src/utils/slowOperations.ts:181–195  ·  view source on GitHub ↗
(
  value: unknown,
  replacer?:
    | ((this: unknown, key: string, value: unknown) => unknown)
    | (number | string)[]
    | null,
  space?: string | number,
)

Source from the content-addressed store, hash-verified

179 space?: string | number,
180): string
181export function jsonStringify(
182 value: unknown,
183 replacer?:
184 | ((this: unknown, key: string, value: unknown) => unknown)
185 | (number | string)[]
186 | null,
187 space?: string | number,
188): string {
189 using _ = slowLogging`JSON.stringify(${value})`
190 return JSON.stringify(
191 value,
192 replacer as Parameters<typeof JSON.stringify>[1],
193 space,
194 )
195}
196
197/**
198 * Wrapped JSON.parse with slow operation logging.

Callers 15

immediateFlushHistoryFunction · 0.85
checkPermissionsFunction · 0.85
renderToolUseMessageFunction · 0.85
renderToolResultMessageFunction · 0.85
renderToolUseMessageFunction · 0.85
isResultTruncatedFunction · 0.85
renderToolResultMessageFunction · 0.85
callFunction · 0.85
callInnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected