@tscircuit/core 0.0.258 → 0.0.259

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 +5 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4187,6 +4187,11 @@ var createSchematicTraceCrossingSegments = ({
4187
4187
  differentNetOnly: true
4188
4188
  }).flatMap((t) => t.edges);
4189
4189
  for (let i = 0; i < edges.length; i++) {
4190
+ if (i > 2e3) {
4191
+ throw new Error(
4192
+ "Over 2000 iterations spent inside createSchematicTraceCrossingSegments, you have triggered an infinite loop, please report this!"
4193
+ );
4194
+ }
4190
4195
  const edge = edges[i];
4191
4196
  const edgeOrientation = Math.abs(edge.from.x - edge.to.x) < 0.01 ? "vertical" : "horizontal";
4192
4197
  const otherEdgesIntersections = [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.258",
4
+ "version": "0.0.259",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",