Versions 91 to 318
new file, 148 lines
2+
41+ if (!object(row) || row.format !== 1 || typeof row.prefix !== "string" || !/^[0-9a-f]{0,8}$/.test(row.prefix))
43+ if (parent !== undefined && (row.prefix.length <= parent.length || !row.prefix.startsWith(parent + digit)))
50+ if (row.kind !== "branch" || row.prefix.length >= 8 || Object.keys(row).length !== 4 || !object(row.children))
55+ if (!/^[0-9a-f]$/.test(digit) || !safe(child) || child === id) throw Error("invalid locator child");
75+ for (const [id, value] of values) checked.set(keyOf(id), structuredClone(this.#decode(structuredClone(value))));
77+ const visit = (current: Page, edits: [string, T][], parent?: string, digit?: string, depth = 0): Page => {
87+ if (prefix.length === 8) return write({ format: 1, kind: "leaf", prefix, value: edits[edits.length - 1]![1] });
107+
129+ function* visit(current: Page, parent?: string, digit?: string, depth = 0): IterableIterator<readonly [number, T]> {
142+
- MCP
- compare on this site's /mcp
- CLI
- abso diff 91 318 src/engine/experimental/projection-locator.ts --json
- JSON
- /christopher/abso-core/compare/91..318?file=src%2Fengine%2Fexperimental%2Fprojection-locator.ts&format=json