MCPcopy
hub / github.com/sveltejs/kit / stringify

Function stringify

packages/kit/src/runtime/shared.js:26–30  ·  view source on GitHub ↗
(data, transport)

Source from the content-addressed store, hash-verified

24 * @param {Transport} transport
25 */
26export function stringify(data, transport) {
27 const encoders = Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.encode]));
28
29 return devalue.stringify(data, encoders);
30}
31
32/**
33 * Stringifies the argument (if any) for a remote function in such a way that

Callers 4

wrapperFunction · 0.90
handle_remote_callFunction · 0.90
stringify_remote_argFunction · 0.85
setFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected