New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fluidframework/core-utils

Package Overview
Dependencies
Maintainers
2
Versions
267
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluidframework/core-utils - npm Package Compare versions

Comparing version

to
2.0.0-dev-rc.5.0.0.270401

2

dist/heap.js

@@ -28,2 +28,4 @@ "use strict";

class Heap {
comp;
L;
/**

@@ -30,0 +32,0 @@ * Creates an instance of `Heap` with comparer.

@@ -13,2 +13,5 @@ "use strict";

class Lazy {
valueGenerator;
_value;
_evaluated = false;
/**

@@ -20,3 +23,2 @@ * Instantiates an instance of Lazy<T>.

this.valueGenerator = valueGenerator;
this._evaluated = false;
}

@@ -50,2 +52,3 @@ /**

class LazyPromise {
execute;
// eslint-disable-next-line @typescript-eslint/class-literal-property-style

@@ -55,2 +58,3 @@ get [Symbol.toStringTag]() {

}
result;
constructor(execute) {

@@ -57,0 +61,0 @@ this.execute = execute;

8

dist/promiseCache.js

@@ -13,6 +13,8 @@ "use strict";

class GarbageCollector {
expiry;
cleanup;
gcTimeouts = new Map();
constructor(expiry, cleanup) {
this.expiry = expiry;
this.cleanup = cleanup;
this.gcTimeouts = new Map();
}

@@ -57,2 +59,5 @@ /**

class PromiseCache {
cache = new Map();
gc;
removeOnError;
/**

@@ -64,3 +69,2 @@ * Create the PromiseCache with the given options, with the following defaults:

constructor({ expiry = { policy: "indefinite" }, removeOnError = () => true, } = {}) {
this.cache = new Map();
this.removeOnError = removeOnError;

@@ -67,0 +71,0 @@ this.gc = new GarbageCollector(expiry, (key) => this.remove(key));

@@ -13,4 +13,7 @@ "use strict";

class Deferred {
p;
res;
rej;
completed = false;
constructor() {
this.completed = false;
this.p = new Promise((resolve, reject) => {

@@ -17,0 +20,0 @@ this.res = resolve;

@@ -44,2 +44,5 @@ "use strict";

class Timer {
defaultTimeout;
defaultHandler;
exceptionHandler;
/**

@@ -51,2 +54,4 @@ * Returns true if the timer is running.

}
runningState;
getCurrentTick = () => Date.now();
constructor(defaultTimeout, defaultHandler, exceptionHandler) {

@@ -56,3 +61,2 @@ this.defaultTimeout = defaultTimeout;

this.exceptionHandler = exceptionHandler;
this.getCurrentTick = () => Date.now();
}

@@ -173,2 +177,4 @@ /**

class PromiseTimer {
deferred;
timer;
/**

@@ -175,0 +181,0 @@ * {@inheritDoc Timer.hasTimer}

@@ -25,2 +25,4 @@ /*!

export class Heap {
comp;
L;
/**

@@ -27,0 +29,0 @@ * Creates an instance of `Heap` with comparer.

@@ -10,2 +10,5 @@ /*!

export class Lazy {
valueGenerator;
_value;
_evaluated = false;
/**

@@ -17,3 +20,2 @@ * Instantiates an instance of Lazy<T>.

this.valueGenerator = valueGenerator;
this._evaluated = false;
}

@@ -46,2 +48,3 @@ /**

export class LazyPromise {
execute;
// eslint-disable-next-line @typescript-eslint/class-literal-property-style

@@ -51,2 +54,3 @@ get [Symbol.toStringTag]() {

}
result;
constructor(execute) {

@@ -53,0 +57,0 @@ this.execute = execute;

@@ -10,6 +10,8 @@ /*!

class GarbageCollector {
expiry;
cleanup;
gcTimeouts = new Map();
constructor(expiry, cleanup) {
this.expiry = expiry;
this.cleanup = cleanup;
this.gcTimeouts = new Map();
}

@@ -54,2 +56,5 @@ /**

export class PromiseCache {
cache = new Map();
gc;
removeOnError;
/**

@@ -61,3 +66,2 @@ * Create the PromiseCache with the given options, with the following defaults:

constructor({ expiry = { policy: "indefinite" }, removeOnError = () => true, } = {}) {
this.cache = new Map();
this.removeOnError = removeOnError;

@@ -64,0 +68,0 @@ this.gc = new GarbageCollector(expiry, (key) => this.remove(key));

@@ -10,4 +10,7 @@ /*!

export class Deferred {
p;
res;
rej;
completed = false;
constructor() {
this.completed = false;
this.p = new Promise((resolve, reject) => {

@@ -14,0 +17,0 @@ this.res = resolve;

@@ -40,2 +40,5 @@ /*!

export class Timer {
defaultTimeout;
defaultHandler;
exceptionHandler;
/**

@@ -47,2 +50,4 @@ * Returns true if the timer is running.

}
runningState;
getCurrentTick = () => Date.now();
constructor(defaultTimeout, defaultHandler, exceptionHandler) {

@@ -52,3 +57,2 @@ this.defaultTimeout = defaultTimeout;

this.exceptionHandler = exceptionHandler;
this.getCurrentTick = () => Date.now();
}

@@ -168,2 +172,4 @@ /**

export class PromiseTimer {
deferred;
timer;
/**

@@ -170,0 +176,0 @@ * {@inheritDoc Timer.hasTimer}

{
"name": "@fluidframework/core-utils",
"version": "2.0.0-dev-rc.5.0.0.268409",
"version": "2.0.0-dev-rc.5.0.0.270401",
"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.268409",
"@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.5.0.0.270401",
"@fluid-tools/benchmark": "^0.47.0",

@@ -75,0 +75,0 @@ "@fluid-tools/build-cli": "^0.39.0-264124",

@@ -8,3 +8,5 @@ {

"outDir": "./lib",
"exactOptionalPropertyTypes": false,
"noUncheckedIndexedAccess": false,
},
}

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