(json: object)
| 323 | const maxInlinedLength = 256 |
| 324 | |
| 325 | const hashJsonOf = (json: object): string => |
| 326 | jsonLengthOf(json) <= maxPlainHashLength ? |
| 327 | JSON.stringify(json) |
| 328 | : `${jsonPrefixOf(json, hashedPrefixLength)}#${digestOf(json)}` |
| 329 | |
| 330 | const jsonLengths = new WeakMap<object, number>() |
| 331 |
no test coverage detected