@tscircuit/core 0.0.668 → 0.0.669
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/index.js +6 -3
- package/package.json +1 -1
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(
|
|
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.
|
|
13865
|
+
version: "0.0.668",
|
|
13863
13866
|
types: "dist/index.d.ts",
|
|
13864
13867
|
main: "dist/index.js",
|
|
13865
13868
|
module: "dist/index.js",
|