@tscircuit/pcb-viewer 1.11.285 → 1.11.286

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
@@ -6938,11 +6938,9 @@ var getFullConnectivityMapFromCircuitJson = (circuitJson) => {
6938
6938
  }
6939
6939
  if (Array.isArray(route)) {
6940
6940
  const startId = route.find(
6941
- (rp) => rp && rp.start_pcb_port_id
6941
+ (rp) => rp?.start_pcb_port_id
6942
6942
  )?.start_pcb_port_id;
6943
- const endId = route.find(
6944
- (rp) => rp && rp.end_pcb_port_id
6945
- )?.end_pcb_port_id;
6943
+ const endId = route.find((rp) => rp?.end_pcb_port_id)?.end_pcb_port_id;
6946
6944
  if (startId && pcb_trace_id && endId) {
6947
6945
  connections.push([startId, pcb_trace_id, endId]);
6948
6946
  }
@@ -13873,7 +13871,7 @@ import { css as css3 } from "@emotion/css";
13873
13871
  // package.json
13874
13872
  var package_default = {
13875
13873
  name: "@tscircuit/pcb-viewer",
13876
- version: "1.11.284",
13874
+ version: "1.11.285",
13877
13875
  main: "dist/index.js",
13878
13876
  type: "module",
13879
13877
  repository: "tscircuit/pcb-viewer",
@@ -13910,7 +13908,7 @@ var package_default = {
13910
13908
  "react-cosmos-plugin-vite": "7.0.0-beta.0",
13911
13909
  "react-dom": "19.1.0",
13912
13910
  "react-use": "^17.4.0",
13913
- tscircuit: "^0.0.1015",
13911
+ tscircuit: "^0.0.1040",
13914
13912
  tsup: "^8.0.2",
13915
13913
  "type-fest": "^3.0.0",
13916
13914
  typescript: "^5.4.4",