@modular-circuit/perc 0.1.4 → 0.1.5

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
@@ -1623,7 +1623,7 @@ var IR_GRAPH_CONVERTER = class {
1623
1623
  const circuit = this.circuits[(0, import_ir.block_is_associated_with_concrete_module)(block.type) ? block.type : (0, import_utils.fmt_module_name)(block.type)];
1624
1624
  this.schematics[sch_name].sheets.push({
1625
1625
  uuid: block.uuid,
1626
- sheet_name: design.name ?? circuit.name,
1626
+ sheet_name: circuit.name,
1627
1627
  sheet_file_name: circuit.main,
1628
1628
  ports: block.ports.map((p) => p.uuid)
1629
1629
  });
@@ -1654,11 +1654,11 @@ var IR_GRAPH_CONVERTER = class {
1654
1654
  });
1655
1655
  }
1656
1656
  } else {
1657
- const sheet_name = design.name ?? block.name;
1657
+ const sheet_name = block.name;
1658
1658
  this.schematics[sch_name].sheets.push({
1659
1659
  uuid: block.uuid,
1660
1660
  sheet_name,
1661
- sheet_file_name: `${sheet_name}${import_utils.KICAD_SHC_FILE_EXT}`,
1661
+ sheet_file_name: `${sheet_name}.${import_utils.KiCadSchematicFileExtension}`,
1662
1662
  ports: block.ports.map((p) => p.uuid)
1663
1663
  });
1664
1664
  for (const port of block.ports) {
package/dist/index.mjs CHANGED
@@ -1546,12 +1546,12 @@ import {
1546
1546
  block_is_associated_with_concrete_module
1547
1547
  } from "@modular-circuit/ir";
1548
1548
  import {
1549
- KICAD_SHC_FILE_EXT,
1550
1549
  deep_copy,
1551
1550
  fmt_module_name,
1552
1551
  gen_uuid,
1553
1552
  get_circuit_ports,
1554
- get_port_labels
1553
+ get_port_labels,
1554
+ KiCadSchematicFileExtension
1555
1555
  } from "@modular-circuit/utils";
1556
1556
  var IR_GRAPH_CONVERTER = class {
1557
1557
  constructor(circuits) {
@@ -1593,7 +1593,7 @@ var IR_GRAPH_CONVERTER = class {
1593
1593
  const circuit = this.circuits[block_is_associated_with_concrete_module(block.type) ? block.type : fmt_module_name(block.type)];
1594
1594
  this.schematics[sch_name].sheets.push({
1595
1595
  uuid: block.uuid,
1596
- sheet_name: design.name ?? circuit.name,
1596
+ sheet_name: circuit.name,
1597
1597
  sheet_file_name: circuit.main,
1598
1598
  ports: block.ports.map((p) => p.uuid)
1599
1599
  });
@@ -1624,11 +1624,11 @@ var IR_GRAPH_CONVERTER = class {
1624
1624
  });
1625
1625
  }
1626
1626
  } else {
1627
- const sheet_name = design.name ?? block.name;
1627
+ const sheet_name = block.name;
1628
1628
  this.schematics[sch_name].sheets.push({
1629
1629
  uuid: block.uuid,
1630
1630
  sheet_name,
1631
- sheet_file_name: `${sheet_name}${KICAD_SHC_FILE_EXT}`,
1631
+ sheet_file_name: `${sheet_name}.${KiCadSchematicFileExtension}`,
1632
1632
  ports: block.ports.map((p) => p.uuid)
1633
1633
  });
1634
1634
  for (const port of block.ports) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modular-circuit/perc",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Programmable Electronic Circuit Check",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -27,8 +27,8 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@modular-circuit/electronics-model": "0.1.1",
30
- "@modular-circuit/ir": "0.1.2",
31
- "@modular-circuit/utils": "0.1.2"
30
+ "@modular-circuit/ir": "0.1.5",
31
+ "@modular-circuit/utils": "0.1.5"
32
32
  },
33
33
  "scripts": {
34
34
  "clean": "rimraf dist",