MCPcopy Create free account
hub / github.com/anomalyco/opencode / jsonBody

Function jsonBody

packages/http-recorder/src/matching.ts:47–47  ·  view source on GitHub ↗
(body: string)

Source from the content-addressed store, hash-verified

45}
46
47const jsonBody = (body: string) => Option.getOrUndefined(decodeJson(body))
48
49const valueDiffs = (expected: unknown, received: unknown, base = "$", limit = 8): ReadonlyArray<string> => {
50 if (Object.is(expected, received)) return []

Callers 1

requestDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected