@tscircuit/core 0.0.701 → 0.0.702

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.d.ts CHANGED
@@ -257,6 +257,7 @@ declare class RootCircuit {
257
257
  emit(event: RootCircuitEventName, ...args: any[]): void;
258
258
  on(event: RootCircuitEventName, listener: (...args: any[]) => void): void;
259
259
  removeListener(event: RootCircuitEventName, listener: (...args: any[]) => void): void;
260
+ enableDebug(debug: string | null | false): void;
260
261
  getClientOrigin(): string;
261
262
  }
262
263
  /**
package/dist/index.js CHANGED
@@ -14358,7 +14358,7 @@ import { identity as identity6 } from "transformation-matrix";
14358
14358
  var package_default = {
14359
14359
  name: "@tscircuit/core",
14360
14360
  type: "module",
14361
- version: "0.0.700",
14361
+ version: "0.0.701",
14362
14362
  types: "dist/index.d.ts",
14363
14363
  main: "dist/index.js",
14364
14364
  module: "dist/index.js",
@@ -14465,6 +14465,7 @@ var package_default = {
14465
14465
  };
14466
14466
 
14467
14467
  // lib/RootCircuit.ts
14468
+ import Debug12 from "debug";
14468
14469
  var RootCircuit = class {
14469
14470
  firstChild = null;
14470
14471
  children;
@@ -14633,6 +14634,13 @@ var RootCircuit = class {
14633
14634
  (l) => l !== listener
14634
14635
  );
14635
14636
  }
14637
+ enableDebug(debug10) {
14638
+ if (typeof debug10 === "string") {
14639
+ Debug12.enable(debug10);
14640
+ } else if (debug10 === null || debug10 === false) {
14641
+ Debug12.disable();
14642
+ }
14643
+ }
14636
14644
  getClientOrigin() {
14637
14645
  if (typeof window !== "undefined" && window.location) {
14638
14646
  return window.location.origin;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.701",
4
+ "version": "0.0.702",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",