@tscircuit/core 0.0.668 → 0.0.670

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 +7 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1231,7 +1231,7 @@ var ErrorPlaceholderComponent = class extends PrimitiveComponent2 {
1231
1231
  this.root.db.source_failed_to_create_component_error.insert({
1232
1232
  component_name: this._parsedProps.component_name,
1233
1233
  error_type: "source_failed_to_create_component_error",
1234
- message: this._parsedProps.error?.formattedError?._errors?.join("; ") || this._parsedProps.message,
1234
+ message: `Could not create ${this._parsedProps.componentType ?? "component"}${this._parsedProps.name ? ` "${this._parsedProps.name}"` : ""}. ${this._parsedProps.error?.formattedError?._errors?.join("; ") || this._parsedProps.message}`,
1235
1235
  pcb_center: pcbPosition,
1236
1236
  schematic_center: schematicPosition
1237
1237
  });
@@ -1268,7 +1268,10 @@ var hostConfig = {
1268
1268
  const instance = prepare(new target(props), {});
1269
1269
  return instance;
1270
1270
  } catch (error) {
1271
- return createErrorPlaceholderComponent(props, error);
1271
+ return createErrorPlaceholderComponent(
1272
+ { ...props, componentType: type },
1273
+ error
1274
+ );
1272
1275
  }
1273
1276
  },
1274
1277
  createTextInstance(text) {
@@ -13859,7 +13862,7 @@ import { identity as identity5 } from "transformation-matrix";
13859
13862
  var package_default = {
13860
13863
  name: "@tscircuit/core",
13861
13864
  type: "module",
13862
- version: "0.0.667",
13865
+ version: "0.0.669",
13863
13866
  types: "dist/index.d.ts",
13864
13867
  main: "dist/index.js",
13865
13868
  module: "dist/index.js",
@@ -13912,7 +13915,7 @@ var package_default = {
13912
13915
  "bun-match-svg": "0.0.12",
13913
13916
  "calculate-elbow": "^0.0.9",
13914
13917
  "chokidar-cli": "^3.0.0",
13915
- "circuit-json": "^0.0.235",
13918
+ "circuit-json": "^0.0.236",
13916
13919
  "circuit-json-to-bpc": "^0.0.13",
13917
13920
  "circuit-json-to-connectivity-map": "^0.0.22",
13918
13921
  "circuit-json-to-simple-3d": "^0.0.6",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.668",
4
+ "version": "0.0.670",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -54,7 +54,7 @@
54
54
  "bun-match-svg": "0.0.12",
55
55
  "calculate-elbow": "^0.0.9",
56
56
  "chokidar-cli": "^3.0.0",
57
- "circuit-json": "^0.0.235",
57
+ "circuit-json": "^0.0.236",
58
58
  "circuit-json-to-bpc": "^0.0.13",
59
59
  "circuit-json-to-connectivity-map": "^0.0.22",
60
60
  "circuit-json-to-simple-3d": "^0.0.6",