pi-readseek 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.ts +15 -9
  2. package/package.json +2 -2
package/dist/index.ts CHANGED
@@ -1414,15 +1414,21 @@ var SymbolOutput = Type.Object({
1414
1414
  start_anchor: OptStr,
1415
1415
  end_anchor: OptStr
1416
1416
  });
1417
- var MapNode = Type.Recursive((Self) => Type.Object({
1418
- kind: Str,
1419
- name: Str,
1420
- start_line: Int,
1421
- end_line: Int,
1422
- start_anchor: Str,
1423
- end_anchor: Str,
1424
- children: Type.Array(Self)
1425
- }));
1417
+ function mapNodeShape(child) {
1418
+ return Type.Object({
1419
+ kind: Str,
1420
+ name: Str,
1421
+ start_line: Int,
1422
+ end_line: Int,
1423
+ start_anchor: Str,
1424
+ end_anchor: Str,
1425
+ children: Type.Array(child)
1426
+ });
1427
+ }
1428
+ function recursiveMapNode() {
1429
+ return Type.Recursive((self) => mapNodeShape(self));
1430
+ }
1431
+ var MapNode = typeof Type.Recursive === "function" ? recursiveMapNode() : Type.Cyclic({ MapNode: mapNodeShape(Type.Ref("MapNode")) }, "MapNode");
1426
1432
  var MapOutput = Type.Object({
1427
1433
  file: Str,
1428
1434
  language: Str,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-readseek",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Pi extension for LINE:HASH-anchored file operations and structural code navigation",
5
5
  "type": "module",
6
6
  "exports": {
@@ -39,7 +39,7 @@
39
39
  "node": ">=20.0.0"
40
40
  },
41
41
  "dependencies": {
42
- "@jarkkojs/readseek-api": "^0.10.0",
42
+ "@jarkkojs/readseek-api": "^0.10.1",
43
43
  "diff": "^9.0.0",
44
44
  "xxhash-wasm": "^1.1.0"
45
45
  },