@tscircuit/core 0.0.1246 → 0.0.1247

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 +8 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -19202,9 +19202,13 @@ function getExistingPcbTracesForReroute(group) {
19202
19202
  function addPossibleReplacementSourceTraceId(sourceTraceIds, value) {
19203
19203
  if (typeof value !== "string" || value.length === 0) return;
19204
19204
  sourceTraceIds.add(value);
19205
- const rerouteSuffixIndex = value.indexOf("_reroute_");
19206
- if (rerouteSuffixIndex > 0) {
19207
- sourceTraceIds.add(value.slice(0, rerouteSuffixIndex));
19205
+ for (const connectionNamePart of value.split("__")) {
19206
+ if (connectionNamePart.length === 0) continue;
19207
+ sourceTraceIds.add(connectionNamePart);
19208
+ const rerouteSuffixIndex = connectionNamePart.indexOf("_reroute_");
19209
+ if (rerouteSuffixIndex > 0) {
19210
+ sourceTraceIds.add(connectionNamePart.slice(0, rerouteSuffixIndex));
19211
+ }
19208
19212
  }
19209
19213
  }
19210
19214
  function deleteExistingPcbTracesReplacedBy({
@@ -21243,7 +21247,7 @@ import { identity as identity5 } from "transformation-matrix";
21243
21247
  var package_default = {
21244
21248
  name: "@tscircuit/core",
21245
21249
  type: "module",
21246
- version: "0.0.1245",
21250
+ version: "0.0.1246",
21247
21251
  types: "dist/index.d.ts",
21248
21252
  main: "dist/index.js",
21249
21253
  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.1246",
4
+ "version": "0.0.1247",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",