(chunk: string)
| 210 | const refs = new Map(); |
| 211 | |
| 212 | function interpretChunk(chunk: string): unknown { |
| 213 | const value = fromCrossJSON(JSON.parse(chunk) as SerovalNode, { |
| 214 | refs, |
| 215 | disabledFeatures: DISABLED_FEATURES, |
| 216 | depthLimit: MAX_SERIALIZATION_DEPTH_LIMIT, |
| 217 | plugins: DEFAULT_PLUGINS, |
| 218 | }); |
| 219 | return value; |
| 220 | } |
| 221 | |
| 222 | void reader.drain(interpretChunk); |
| 223 |
no outgoing calls
no test coverage detected
searching dependent graphs…