MCPcopy Index your code
hub / github.com/upstash/jstack / serializeWithSuperJSON

Function serializeWithSuperJSON

packages/jstack/src/server/client.ts:206–216  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

204}
205
206function serializeWithSuperJSON(data: any): any {
207 if (typeof data !== "object" || data === null) {
208 return data
209 }
210 return Object.fromEntries(
211 Object.entries(data).map(([key, value]) => [
212 key,
213 superjson.stringify(value),
214 ]),
215 )
216}
217
218function createProxy(
219 baseClient: any,

Callers 1

getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected