@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 +1 -0
- package/dist/index.js +9 -1
- package/package.json +1 -1
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.
|
|
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;
|