@modular-circuit/perc 0.2.6 → 0.2.7

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 CHANGED
@@ -1249,7 +1249,12 @@ var ParameterPropagationTester = class {
1249
1249
  for (const v of ports) {
1250
1250
  const port = v.param;
1251
1251
  if (port.type === import_electronics_model4.PortType.Passive) this.has_passive_port = true;
1252
- const arr = this.link_map[(0, import_electronics_model4.get_port_link_type)(port)];
1252
+ const link_type = (0, import_electronics_model4.get_port_link_type)(port);
1253
+ if (link_type instanceof Error) {
1254
+ this.ctx.report.erc_errors.push(INVALID_INPUT([v.uuid], { error: link_type.message }));
1255
+ continue;
1256
+ }
1257
+ const arr = this.link_map[link_type];
1253
1258
  arr.push(port);
1254
1259
  }
1255
1260
  let link_t = 0;
package/dist/index.mjs CHANGED
@@ -1189,7 +1189,12 @@ var ParameterPropagationTester = class {
1189
1189
  for (const v of ports) {
1190
1190
  const port = v.param;
1191
1191
  if (port.type === PortType2.Passive) this.has_passive_port = true;
1192
- const arr = this.link_map[get_port_link_type(port)];
1192
+ const link_type = get_port_link_type(port);
1193
+ if (link_type instanceof Error) {
1194
+ this.ctx.report.erc_errors.push(INVALID_INPUT([v.uuid], { error: link_type.message }));
1195
+ continue;
1196
+ }
1197
+ const arr = this.link_map[link_type];
1193
1198
  arr.push(port);
1194
1199
  }
1195
1200
  let link_t = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modular-circuit/perc",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Programmable Electronic Circuit Check",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -27,9 +27,9 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "zod": "^4.3.6",
30
- "@modular-circuit/electronics-model": "0.2.3",
31
- "@modular-circuit/ir": "0.2.1",
32
- "@modular-circuit/utils": "0.2.1"
30
+ "@modular-circuit/electronics-model": "0.2.4",
31
+ "@modular-circuit/ir": "0.2.2",
32
+ "@modular-circuit/utils": "0.2.2"
33
33
  },
34
34
  "scripts": {
35
35
  "clean": "rimraf dist",