@genroc/eval-node 0.0.0-edge.38db70e → 0.0.0-edge.3956e1b

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.
package/README.md CHANGED
@@ -26,7 +26,7 @@ resolver's exit code, so a stored definition cannot hold code that failed to typ
26
26
 
27
27
  ## Building
28
28
 
29
- npm run build # tsc -p tsconfig.build.json -> dist/
29
+ pnpm run build # tsc -p tsconfig.build.json -> dist/
30
30
 
31
31
  The published package is JavaScript, not TypeScript. **Node refuses to strip types for files
32
32
  under `node_modules`**, so shipping `.ts` works from a checkout and fails for every consumer —
package/dist/import.js CHANGED
@@ -106,13 +106,6 @@ function union(parts) {
106
106
  const IDENT = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
107
107
  const propKey = (k) => (IDENT.test(k) ? k : JSON.stringify(k));
108
108
  const identifier = (n) => IDENT.test(n) ? n : `Def_${n.replace(/[^A-Za-z0-9_$]/g, "_")}`;
109
- function deref(s, defs) {
110
- let cur = s;
111
- for (let i = 0; cur && typeof cur.$ref === "string" && i < 16; i++) {
112
- cur = defs[cur.$ref.replace(/^#\/\$defs\//, "")];
113
- }
114
- return cur;
115
- }
116
109
  /** Emits one named type per reachable $def rather than inlining: a task output may
117
110
  * reference itself (specs/recursive-type-inference.md) and inlining would not terminate. */
118
111
  function declarations(at) {
package/import.ts CHANGED
@@ -157,17 +157,6 @@ const propKey = (k: string) => (IDENT.test(k) ? k : JSON.stringify(k));
157
157
  const identifier = (n: string) =>
158
158
  IDENT.test(n) ? n : `Def_${n.replace(/[^A-Za-z0-9_$]/g, "_")}`;
159
159
 
160
- function deref(
161
- s: Schema | undefined,
162
- defs: Record<string, Schema>,
163
- ): Schema | undefined {
164
- let cur = s;
165
- for (let i = 0; cur && typeof cur.$ref === "string" && i < 16; i++) {
166
- cur = defs[cur.$ref.replace(/^#\/\$defs\//, "")];
167
- }
168
- return cur;
169
- }
170
-
171
160
  /** Emits one named type per reachable $def rather than inlining: a task output may
172
161
  * reference itself (specs/recursive-type-inference.md) and inlining would not terminate. */
173
162
  function declarations(at: Located): string {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genroc/eval-node",
3
- "version": "0.0.0-edge.38db70e",
3
+ "version": "0.0.0-edge.3956e1b",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=24"