@tscircuit/eval 0.0.322 → 0.0.324
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/dist/blob-url.js +1 -1
- package/dist/eval/index.d.ts +30 -6
- package/dist/eval/index.js +3 -4
- package/dist/lib/index.d.ts +30 -6
- package/dist/lib/index.js +3 -4
- package/dist/webworker/entrypoint.js +312 -313
- package/package.json +7 -7
- package/webworker/import-local-file.ts +2 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/eval",
|
|
3
3
|
"main": "dist/lib/index.js",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.324",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "bun run build:lib && bun run build:webworker && bun run build:blob-url && bun run build:runner && bun run build:worker-wrapper",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@tscircuit/checks": "^0.0.75",
|
|
58
58
|
"@tscircuit/circuit-json-flex": "^0.0.3",
|
|
59
59
|
"@tscircuit/circuit-json-util": "^0.0.67",
|
|
60
|
-
"@tscircuit/core": "^0.0.
|
|
60
|
+
"@tscircuit/core": "^0.0.733",
|
|
61
61
|
"@tscircuit/footprinter": "^0.0.236",
|
|
62
62
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
63
63
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"@tscircuit/math-utils": "^0.0.21",
|
|
68
68
|
"@tscircuit/miniflex": "^0.0.4",
|
|
69
69
|
"@tscircuit/parts-engine": "^0.0.8",
|
|
70
|
-
"@tscircuit/props": "0.0.
|
|
70
|
+
"@tscircuit/props": "0.0.327",
|
|
71
71
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
72
72
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
73
|
-
"@tscircuit/schematic-trace-solver": "^0.0.
|
|
73
|
+
"@tscircuit/schematic-trace-solver": "^0.0.37",
|
|
74
74
|
"@tscircuit/simple-3d-svg": "^0.0.41",
|
|
75
75
|
"@types/babel__standalone": "^7.1.9",
|
|
76
76
|
"@types/bun": "^1.2.16",
|
|
@@ -82,11 +82,11 @@
|
|
|
82
82
|
"bun-match-svg": "0.0.12",
|
|
83
83
|
"calculate-elbow": "^0.0.12",
|
|
84
84
|
"chokidar-cli": "^3.0.0",
|
|
85
|
-
"circuit-json": "^0.0.
|
|
85
|
+
"circuit-json": "^0.0.256",
|
|
86
86
|
"circuit-json-to-bpc": "^0.0.13",
|
|
87
87
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
88
88
|
"circuit-json-to-simple-3d": "^0.0.8",
|
|
89
|
-
"circuit-to-svg": "^0.0.
|
|
89
|
+
"circuit-to-svg": "^0.0.193",
|
|
90
90
|
"comlink": "^4.4.2",
|
|
91
91
|
"concurrently": "^9.1.2",
|
|
92
92
|
"connectivity-map": "^1.0.0",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"pkg-pr-new": "^0.0.37",
|
|
101
101
|
"react": "^19.1.0",
|
|
102
102
|
"react-dom": "^19.1.0",
|
|
103
|
-
"schematic-symbols": "^0.0.
|
|
103
|
+
"schematic-symbols": "^0.0.201",
|
|
104
104
|
"ts-expect": "^1.3.0",
|
|
105
105
|
"tsup": "^8.2.4"
|
|
106
106
|
},
|
|
@@ -25,9 +25,8 @@ export const importLocalFile = async (
|
|
|
25
25
|
const { fsMap, preSuppliedImports } = ctx
|
|
26
26
|
|
|
27
27
|
const fsPath = resolveFilePathOrThrow(importName, fsMap)
|
|
28
|
-
const isStaticAsset = isStaticAssetPath(fsPath)
|
|
29
28
|
debug("fsPath:", fsPath)
|
|
30
|
-
if (!ctx.fsMap[fsPath]
|
|
29
|
+
if (!ctx.fsMap[fsPath]) {
|
|
31
30
|
debug("fsPath not found in fsMap:", fsPath)
|
|
32
31
|
throw new Error(`File "${fsPath}" not found`)
|
|
33
32
|
}
|
|
@@ -39,7 +38,7 @@ export const importLocalFile = async (
|
|
|
39
38
|
__esModule: true,
|
|
40
39
|
default: jsonData,
|
|
41
40
|
}
|
|
42
|
-
} else if (
|
|
41
|
+
} else if (isStaticAssetPath(fsPath)) {
|
|
43
42
|
const platformConfig = ctx.circuit.platform
|
|
44
43
|
// Use projectBaseUrl for static file imports
|
|
45
44
|
const staticUrl = `${platformConfig?.projectBaseUrl ?? ""}/${fsPath.startsWith("./") ? fsPath.slice(2) : fsPath}`
|