Versions 33 to 318
new file, 133 lines
1+/** Internal values may expose an exact streaming representation without changing public toJSON. */
6+
17+
46+ if (options.unboxPrimitives && (value instanceof String || value instanceof Number || value instanceof Boolean))
50+ const omitted = (value: unknown) => value === undefined || typeof value === "function" || typeof value === "symbol";
56+ if (typeof chunk !== "string" || chunk.length > 16384) throw Error("JSON string chunk exceeds bound");
67+ else if (value === null || typeof value === "boolean" || typeof value === "number") yield JSON.stringify(value);
68+ else if (typeof value !== "object" || value === null) throw Error("unsupported canonical JSON value");
71+ if (active.size >= (options.maxDepth ?? 128)) throw Error("canonical JSON depth exceeds bound");
104+
- MCP
- compare on this site's /mcp
- CLI
- abso diff 33 318 src/engine/json-value-chunks.ts --json
- JSON
- /christopher/abso-core/compare/33..318?file=src%2Fengine%2Fjson-value-chunks.ts&format=json