@jarkkojs/readseek-api 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.js +15 -9
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1708,15 +1708,21 @@ var SymbolOutput = Type.Object({
1708
1708
  start_anchor: OptStr,
1709
1709
  end_anchor: OptStr
1710
1710
  });
1711
- var MapNode = Type.Recursive((Self) => Type.Object({
1712
- kind: Str,
1713
- name: Str,
1714
- start_line: Int,
1715
- end_line: Int,
1716
- start_anchor: Str,
1717
- end_anchor: Str,
1718
- children: Type.Array(Self)
1719
- }));
1711
+ function mapNodeShape(child) {
1712
+ return Type.Object({
1713
+ kind: Str,
1714
+ name: Str,
1715
+ start_line: Int,
1716
+ end_line: Int,
1717
+ start_anchor: Str,
1718
+ end_anchor: Str,
1719
+ children: Type.Array(child)
1720
+ });
1721
+ }
1722
+ function recursiveMapNode() {
1723
+ return Type.Recursive((self) => mapNodeShape(self));
1724
+ }
1725
+ var MapNode = typeof Type.Recursive === "function" ? recursiveMapNode() : Type.Cyclic({ MapNode: mapNodeShape(Type.Ref("MapNode")) }, "MapNode");
1720
1726
  var MapOutput = Type.Object({
1721
1727
  file: Str,
1722
1728
  language: Str,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jarkkojs/readseek-api",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Shared ReadSeek CLI contract, validation, argv builders, and bounded process runners",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -49,10 +49,10 @@
49
49
  "hashline"
50
50
  ],
51
51
  "optionalDependencies": {
52
- "@jarkkojs/readseek-darwin-arm64": "0.10.0",
53
- "@jarkkojs/readseek-linux-arm64": "0.10.0",
54
- "@jarkkojs/readseek-linux-x64": "0.10.0",
55
- "@jarkkojs/readseek-win32-x64": "0.10.0"
52
+ "@jarkkojs/readseek-darwin-arm64": "0.10.1",
53
+ "@jarkkojs/readseek-linux-arm64": "0.10.1",
54
+ "@jarkkojs/readseek-linux-x64": "0.10.1",
55
+ "@jarkkojs/readseek-win32-x64": "0.10.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/node": "^22.0.0",