@furystack/utils
Advanced tools
Comparing version 4.0.8 to 4.0.9
@@ -34,2 +34,3 @@ import { ValueObserver } from './value-observer.js'; | ||
} | ||
_isDisposed = false; | ||
/** | ||
@@ -42,2 +43,4 @@ * Disposes the ObservableValue object, removes all observers | ||
} | ||
observers = new Set(); | ||
currentValue; | ||
/** | ||
@@ -104,4 +107,2 @@ * Subscribes to a value changes | ||
constructor(initialValue) { | ||
this._isDisposed = false; | ||
this.observers = new Set(); | ||
if (initialValue !== undefined) { | ||
@@ -108,0 +109,0 @@ this.currentValue = initialValue; |
@@ -24,2 +24,3 @@ import { ObservableValue } from './observable-value.js'; | ||
export class Trace { | ||
static objectTraces = new Map(); | ||
static getMethodTrace(object, method) { | ||
@@ -126,3 +127,2 @@ const objectTrace = this.objectTraces.get(object); | ||
} | ||
Trace.objectTraces = new Map(); | ||
//# sourceMappingURL=trace.js.map |
@@ -24,2 +24,4 @@ /** | ||
export class ValueObserver { | ||
observable; | ||
callback; | ||
/** | ||
@@ -26,0 +28,0 @@ * Disposes the ValueObserver instance. Unsubscribes from the observable |
{ | ||
"name": "@furystack/utils", | ||
"version": "4.0.8", | ||
"version": "4.0.9", | ||
"description": "General utilities", | ||
@@ -37,5 +37,5 @@ "type": "module", | ||
"devDependencies": { | ||
"typescript": "^5.1.6", | ||
"vitest": "^0.34.2" | ||
"typescript": "^5.2.2", | ||
"vitest": "^0.34.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108294
2055