@fluidframework/core-utils
Advanced tools
Comparing version 2.0.0-dev-rc.5.0.0.271262 to 2.0.0-dev-rc.5.0.0.271717
@@ -28,4 +28,2 @@ "use strict"; | ||
class Heap { | ||
comp; | ||
L; | ||
/** | ||
@@ -32,0 +30,0 @@ * Creates an instance of `Heap` with comparer. |
@@ -13,5 +13,2 @@ "use strict"; | ||
class Lazy { | ||
valueGenerator; | ||
_value; | ||
_evaluated = false; | ||
/** | ||
@@ -23,2 +20,3 @@ * Instantiates an instance of Lazy<T>. | ||
this.valueGenerator = valueGenerator; | ||
this._evaluated = false; | ||
} | ||
@@ -52,3 +50,2 @@ /** | ||
class LazyPromise { | ||
execute; | ||
// eslint-disable-next-line @typescript-eslint/class-literal-property-style | ||
@@ -58,3 +55,2 @@ get [Symbol.toStringTag]() { | ||
} | ||
result; | ||
constructor(execute) { | ||
@@ -61,0 +57,0 @@ this.execute = execute; |
@@ -13,8 +13,6 @@ "use strict"; | ||
class GarbageCollector { | ||
expiry; | ||
cleanup; | ||
gcTimeouts = new Map(); | ||
constructor(expiry, cleanup) { | ||
this.expiry = expiry; | ||
this.cleanup = cleanup; | ||
this.gcTimeouts = new Map(); | ||
} | ||
@@ -59,5 +57,2 @@ /** | ||
class PromiseCache { | ||
cache = new Map(); | ||
gc; | ||
removeOnError; | ||
/** | ||
@@ -69,2 +64,3 @@ * Create the PromiseCache with the given options, with the following defaults: | ||
constructor({ expiry = { policy: "indefinite" }, removeOnError = () => true, } = {}) { | ||
this.cache = new Map(); | ||
this.removeOnError = removeOnError; | ||
@@ -71,0 +67,0 @@ this.gc = new GarbageCollector(expiry, (key) => this.remove(key)); |
@@ -13,7 +13,4 @@ "use strict"; | ||
class Deferred { | ||
p; | ||
res; | ||
rej; | ||
completed = false; | ||
constructor() { | ||
this.completed = false; | ||
this.p = new Promise((resolve, reject) => { | ||
@@ -20,0 +17,0 @@ this.res = resolve; |
@@ -44,5 +44,2 @@ "use strict"; | ||
class Timer { | ||
defaultTimeout; | ||
defaultHandler; | ||
exceptionHandler; | ||
/** | ||
@@ -54,4 +51,2 @@ * Returns true if the timer is running. | ||
} | ||
runningState; | ||
getCurrentTick = () => Date.now(); | ||
constructor(defaultTimeout, defaultHandler, exceptionHandler) { | ||
@@ -61,2 +56,3 @@ this.defaultTimeout = defaultTimeout; | ||
this.exceptionHandler = exceptionHandler; | ||
this.getCurrentTick = () => Date.now(); | ||
} | ||
@@ -177,4 +173,2 @@ /** | ||
class PromiseTimer { | ||
deferred; | ||
timer; | ||
/** | ||
@@ -181,0 +175,0 @@ * {@inheritDoc Timer.hasTimer} |
@@ -25,4 +25,2 @@ /*! | ||
export class Heap { | ||
comp; | ||
L; | ||
/** | ||
@@ -29,0 +27,0 @@ * Creates an instance of `Heap` with comparer. |
@@ -10,5 +10,2 @@ /*! | ||
export class Lazy { | ||
valueGenerator; | ||
_value; | ||
_evaluated = false; | ||
/** | ||
@@ -20,2 +17,3 @@ * Instantiates an instance of Lazy<T>. | ||
this.valueGenerator = valueGenerator; | ||
this._evaluated = false; | ||
} | ||
@@ -48,3 +46,2 @@ /** | ||
export class LazyPromise { | ||
execute; | ||
// eslint-disable-next-line @typescript-eslint/class-literal-property-style | ||
@@ -54,3 +51,2 @@ get [Symbol.toStringTag]() { | ||
} | ||
result; | ||
constructor(execute) { | ||
@@ -57,0 +53,0 @@ this.execute = execute; |
@@ -10,8 +10,6 @@ /*! | ||
class GarbageCollector { | ||
expiry; | ||
cleanup; | ||
gcTimeouts = new Map(); | ||
constructor(expiry, cleanup) { | ||
this.expiry = expiry; | ||
this.cleanup = cleanup; | ||
this.gcTimeouts = new Map(); | ||
} | ||
@@ -56,5 +54,2 @@ /** | ||
export class PromiseCache { | ||
cache = new Map(); | ||
gc; | ||
removeOnError; | ||
/** | ||
@@ -66,2 +61,3 @@ * Create the PromiseCache with the given options, with the following defaults: | ||
constructor({ expiry = { policy: "indefinite" }, removeOnError = () => true, } = {}) { | ||
this.cache = new Map(); | ||
this.removeOnError = removeOnError; | ||
@@ -68,0 +64,0 @@ this.gc = new GarbageCollector(expiry, (key) => this.remove(key)); |
@@ -10,7 +10,4 @@ /*! | ||
export class Deferred { | ||
p; | ||
res; | ||
rej; | ||
completed = false; | ||
constructor() { | ||
this.completed = false; | ||
this.p = new Promise((resolve, reject) => { | ||
@@ -17,0 +14,0 @@ this.res = resolve; |
@@ -40,5 +40,2 @@ /*! | ||
export class Timer { | ||
defaultTimeout; | ||
defaultHandler; | ||
exceptionHandler; | ||
/** | ||
@@ -50,4 +47,2 @@ * Returns true if the timer is running. | ||
} | ||
runningState; | ||
getCurrentTick = () => Date.now(); | ||
constructor(defaultTimeout, defaultHandler, exceptionHandler) { | ||
@@ -57,2 +52,3 @@ this.defaultTimeout = defaultTimeout; | ||
this.exceptionHandler = exceptionHandler; | ||
this.getCurrentTick = () => Date.now(); | ||
} | ||
@@ -172,4 +168,2 @@ /** | ||
export class PromiseTimer { | ||
deferred; | ||
timer; | ||
/** | ||
@@ -176,0 +170,0 @@ * {@inheritDoc Timer.hasTimer} |
{ | ||
"name": "@fluidframework/core-utils", | ||
"version": "2.0.0-dev-rc.5.0.0.271262", | ||
"version": "2.0.0-dev-rc.5.0.0.271717", | ||
"description": "Not intended for use outside the Fluid client repo.", | ||
@@ -72,3 +72,3 @@ "homepage": "https://fluidframework.com", | ||
"@biomejs/biome": "^1.7.3", | ||
"@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.5.0.0.271717", | ||
"@fluid-tools/benchmark": "^0.47.0", | ||
@@ -75,0 +75,0 @@ "@fluid-tools/build-cli": "^0.39.0", |
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
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
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
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
243522
3471