(data, transport)
| 24 | * @param {Transport} transport |
| 25 | */ |
| 26 | export 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 |
no outgoing calls
no test coverage detected