@modular-circuit/perc 0.2.10 → 0.2.11

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
@@ -1200,7 +1200,7 @@ var ParameterPropagationTester = class {
1200
1200
  const valid_port = (p) => {
1201
1201
  const port = p.param;
1202
1202
  try {
1203
- const zod_schema = (0, import_electronics_model4.get_port_schema)(port);
1203
+ const zod_schema = (0, import_electronics_model4.get_port_schema)(port.type);
1204
1204
  if (!zod_schema) {
1205
1205
  this.ctx.report.erc_errors.push(
1206
1206
  INVALID_INPUT([p.uuid], {
@@ -1764,7 +1764,6 @@ var IR_GRAPH_CONVERTER = class {
1764
1764
  this.add_pwr(pwr, import_electronics_model9.PowerShape.VCC, sch_name, {
1765
1765
  type: import_electronics_model8.PortType.VoltageSource,
1766
1766
  name: pwr.value,
1767
- link_type: import_electronics_model8.LinkType.VoltageLink,
1768
1767
  label_associated: pwr.value,
1769
1768
  voltage_out: pwr.param ? pwr.param.voltage_out : {},
1770
1769
  current_limits: pwr.param ? pwr.param.current_limits : {}
@@ -1774,7 +1773,6 @@ var IR_GRAPH_CONVERTER = class {
1774
1773
  this.add_pwr(pwr, import_electronics_model9.PowerShape.GND, sch_name, {
1775
1774
  type: import_electronics_model8.PortType.Ground,
1776
1775
  name: pwr.value,
1777
- link_type: import_electronics_model8.LinkType.GroundLink,
1778
1776
  label_associated: pwr.value,
1779
1777
  voltage_limits: pwr.param ? pwr.param.voltage_limits : {}
1780
1778
  });
package/dist/index.mjs CHANGED
@@ -1140,7 +1140,7 @@ var ParameterPropagationTester = class {
1140
1140
  const valid_port = (p) => {
1141
1141
  const port = p.param;
1142
1142
  try {
1143
- const zod_schema = get_port_schema(port);
1143
+ const zod_schema = get_port_schema(port.type);
1144
1144
  if (!zod_schema) {
1145
1145
  this.ctx.report.erc_errors.push(
1146
1146
  INVALID_INPUT([p.uuid], {
@@ -1584,7 +1584,6 @@ var ERC_TESTER = class {
1584
1584
  // src/tester/graph/ir_graph_converter.ts
1585
1585
  import {
1586
1586
  ConnectionNodeType as ConnectionNodeType3,
1587
- LinkType as LinkType2,
1588
1587
  PortType as PortType3
1589
1588
  } from "@modular-circuit/electronics-model";
1590
1589
  import {
@@ -1723,7 +1722,6 @@ var IR_GRAPH_CONVERTER = class {
1723
1722
  this.add_pwr(pwr, PowerShape.VCC, sch_name, {
1724
1723
  type: PortType3.VoltageSource,
1725
1724
  name: pwr.value,
1726
- link_type: LinkType2.VoltageLink,
1727
1725
  label_associated: pwr.value,
1728
1726
  voltage_out: pwr.param ? pwr.param.voltage_out : {},
1729
1727
  current_limits: pwr.param ? pwr.param.current_limits : {}
@@ -1733,7 +1731,6 @@ var IR_GRAPH_CONVERTER = class {
1733
1731
  this.add_pwr(pwr, PowerShape.GND, sch_name, {
1734
1732
  type: PortType3.Ground,
1735
1733
  name: pwr.value,
1736
- link_type: LinkType2.GroundLink,
1737
1734
  label_associated: pwr.value,
1738
1735
  voltage_limits: pwr.param ? pwr.param.voltage_limits : {}
1739
1736
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modular-circuit/perc",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
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.6",
31
- "@modular-circuit/ir": "0.2.4",
32
- "@modular-circuit/utils": "0.2.4"
30
+ "@modular-circuit/electronics-model": "0.2.7",
31
+ "@modular-circuit/ir": "0.2.5",
32
+ "@modular-circuit/utils": "0.2.5"
33
33
  },
34
34
  "scripts": {
35
35
  "clean": "rimraf dist",