@a-type/utils
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -9,2 +9,3 @@ export declare class EventSubscriber<Events extends { | ||
protected disposed: boolean; | ||
__debug: boolean; | ||
constructor(_onAllUnsubscribed?: ((event: keyof Events) => void) | undefined); | ||
@@ -11,0 +12,0 @@ get disabled(): boolean; |
@@ -14,2 +14,3 @@ "use strict"; | ||
this.disposed = false; | ||
this.__debug = false; | ||
this.subscriberCount = (event) => { | ||
@@ -51,2 +52,5 @@ var _a; | ||
} | ||
if (this.__debug) { | ||
console.trace('[EVENT]', event, ...args); | ||
} | ||
}; | ||
@@ -53,0 +57,0 @@ this.dispose = () => { |
@@ -9,2 +9,3 @@ export declare class EventSubscriber<Events extends { | ||
protected disposed: boolean; | ||
__debug: boolean; | ||
constructor(_onAllUnsubscribed?: ((event: keyof Events) => void) | undefined); | ||
@@ -11,0 +12,0 @@ get disabled(): boolean; |
@@ -11,2 +11,3 @@ function generateId() { | ||
this.disposed = false; | ||
this.__debug = false; | ||
this.subscriberCount = (event) => { | ||
@@ -48,2 +49,5 @@ var _a; | ||
} | ||
if (this.__debug) { | ||
console.trace('[EVENT]', event, ...args); | ||
} | ||
}; | ||
@@ -50,0 +54,0 @@ this.dispose = () => { |
{ | ||
"name": "@a-type/utils", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "access": "public", |
@@ -15,2 +15,3 @@ function generateId() { | ||
protected disposed = false; | ||
__debug = false; | ||
@@ -66,2 +67,5 @@ constructor(private _onAllUnsubscribed?: (event: keyof Events) => void) {} | ||
} | ||
if (this.__debug) { | ||
console.trace('[EVENT]', event, ...args); | ||
} | ||
}; | ||
@@ -68,0 +72,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
48973
932