@tscircuit/core 0.0.1077 → 0.0.1078

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 +14 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10366,7 +10366,7 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
10366
10366
  );
10367
10367
  if (!footprint && !hasFootprintChild && !this.isGroup) {
10368
10368
  const footprint_error = db.pcb_missing_footprint_error.insert({
10369
- message: `No footprint found for component: ${this.getString()}`,
10369
+ message: `No footprint specified for component: ${this.getString()}`,
10370
10370
  source_component_id: `${this.source_component_id}`,
10371
10371
  error_type: "pcb_missing_footprint_error"
10372
10372
  });
@@ -11408,6 +11408,18 @@ var Chip = class extends NormalComponent3 {
11408
11408
  const { db } = this.root;
11409
11409
  const { _parsedProps: props } = this;
11410
11410
  const { pcbX, pcbY } = this.getResolvedPcbPositionProp();
11411
+ const footprint = props.footprint ?? this._getImpliedFootprintString();
11412
+ const hasFootprintChild = this.children.some(
11413
+ (c) => c.componentName === "Footprint"
11414
+ );
11415
+ if (!footprint && !hasFootprintChild) {
11416
+ const footprint_error = db.pcb_missing_footprint_error.insert({
11417
+ message: `No footprint specified for component: ${this.getString()}`,
11418
+ source_component_id: `${this.source_component_id}`,
11419
+ error_type: "pcb_missing_footprint_error"
11420
+ });
11421
+ this.pcb_missing_footprint_error_id = footprint_error.pcb_missing_footprint_error_id;
11422
+ }
11411
11423
  const componentLayer = props.layer ?? "top";
11412
11424
  if (componentLayer !== "top" && componentLayer !== "bottom") {
11413
11425
  const subcircuit = this.getSubcircuit();
@@ -18102,7 +18114,7 @@ import { identity as identity5 } from "transformation-matrix";
18102
18114
  var package_default = {
18103
18115
  name: "@tscircuit/core",
18104
18116
  type: "module",
18105
- version: "0.0.1076",
18117
+ version: "0.0.1077",
18106
18118
  types: "dist/index.d.ts",
18107
18119
  main: "dist/index.js",
18108
18120
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1077",
4
+ "version": "0.0.1078",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",