@tscircuit/core 0.0.618 → 0.0.619

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 +12 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8299,6 +8299,7 @@ function getPresetAutoroutingConfig(autorouterConfig) {
8299
8299
  };
8300
8300
  }
8301
8301
  const preset = typeof autorouterConfig === "object" ? autorouterConfig.preset : autorouterConfig;
8302
+ const providedConfig = typeof autorouterConfig === "object" ? autorouterConfig : {};
8302
8303
  switch (preset) {
8303
8304
  case "auto-local":
8304
8305
  return {
@@ -8315,14 +8316,20 @@ function getPresetAutoroutingConfig(autorouterConfig) {
8315
8316
  local: true,
8316
8317
  groupMode: "subcircuit"
8317
8318
  };
8318
- case "auto-cloud":
8319
+ case "auto-cloud": {
8320
+ const {
8321
+ preset: _preset,
8322
+ local: _local,
8323
+ groupMode: _groupMode,
8324
+ ...rest
8325
+ } = providedConfig;
8319
8326
  return {
8320
8327
  local: false,
8321
8328
  groupMode: "subcircuit",
8322
- serverUrl: defaults.serverUrl,
8323
- serverMode: defaults.serverMode,
8324
- serverCacheEnabled: true
8329
+ ...defaults,
8330
+ ...rest
8325
8331
  };
8332
+ }
8326
8333
  default:
8327
8334
  return {
8328
8335
  local: true,
@@ -11745,7 +11752,7 @@ import { identity as identity5 } from "transformation-matrix";
11745
11752
  var package_default = {
11746
11753
  name: "@tscircuit/core",
11747
11754
  type: "module",
11748
- version: "0.0.617",
11755
+ version: "0.0.618",
11749
11756
  types: "dist/index.d.ts",
11750
11757
  main: "dist/index.js",
11751
11758
  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.618",
4
+ "version": "0.0.619",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",