@tscircuit/eval 0.0.322 → 0.0.323

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/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.322",
4
+ "version": "0.0.323",
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.723",
60
+ "@tscircuit/core": "^0.0.731",
61
61
  "@tscircuit/footprinter": "^0.0.236",
62
62
  "@tscircuit/import-snippet": "^0.0.4",
63
63
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
@@ -70,7 +70,7 @@
70
70
  "@tscircuit/props": "0.0.320",
71
71
  "@tscircuit/schematic-autolayout": "^0.0.6",
72
72
  "@tscircuit/schematic-match-adapt": "^0.0.16",
73
- "@tscircuit/schematic-trace-solver": "^0.0.36",
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",
@@ -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] && !isStaticAsset) {
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 (isStaticAsset) {
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}`