@tscircuit/core 0.0.2304 → 0.0.2305

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 +6 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -159360,7 +159360,7 @@ var RoutingPhasePreparationError = class extends Error {
159360
159360
  var package_default = {
159361
159361
  name: "@tscircuit/core",
159362
159362
  type: "module",
159363
- version: "0.0.2303",
159363
+ version: "0.0.2304",
159364
159364
  types: "dist/index.d.ts",
159365
159365
  main: "dist/index.js",
159366
159366
  module: "dist/index.js",
@@ -161466,6 +161466,7 @@ var Group5 = class extends NormalComponent {
161466
161466
  });
161467
161467
  }
161468
161468
  const outputTestPoints = [];
161469
+ let routingError;
161469
161470
  const outputTraces = [];
161470
161471
  const outputJumpers = [];
161471
161472
  const pcbTraceIdsToDelete = /* @__PURE__ */ new Set();
@@ -161762,6 +161763,7 @@ var Group5 = class extends NormalComponent {
161762
161763
  debug13(
161763
161764
  `[${this.getString()}] local autorouting error: ${event.error.message}`
161764
161765
  );
161766
+ routingError = event.error;
161765
161767
  reject(event.error);
161766
161768
  });
161767
161769
  }
@@ -162077,7 +162079,8 @@ var Group5 = class extends NormalComponent {
162077
162079
  },
162078
162080
  simpleRouteJson
162079
162081
  });
162080
- throw error;
162082
+ if (outputTraces.length === 0 || !routingError) throw error;
162083
+ break;
162081
162084
  } finally {
162082
162085
  autorouter?.stop();
162083
162086
  }
@@ -162089,6 +162092,7 @@ var Group5 = class extends NormalComponent {
162089
162092
  pcb_trace_ids_to_be_replaced: [...pcbTraceIdsToDelete]
162090
162093
  };
162091
162094
  this._markDirty("PcbTraceRender");
162095
+ if (routingError) throw routingError;
162092
162096
  }
162093
162097
  _startAsyncAutorouting() {
162094
162098
  if (this._hasStartedAsyncAutorouting) return;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.2304",
4
+ "version": "0.0.2305",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",