@xylabs/forget
Advanced tools
Comparing version 2.11.24 to 2.12.0
@@ -1,28 +0,3 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/forget.ts | ||
var forget_exports = {}; | ||
__export(forget_exports, { | ||
ForgetPromise: () => ForgetPromise, | ||
forget: () => forget | ||
}); | ||
module.exports = __toCommonJS(forget_exports); | ||
var import_delay = require("@xylabs/delay"); | ||
import { delay } from "@xylabs/delay"; | ||
var ForgetPromise = class { | ||
@@ -36,3 +11,3 @@ static activeForgets = 0; | ||
while (this.active) { | ||
await (0, import_delay.delay)(interval); | ||
await delay(interval); | ||
if (timeoutRemaining !== void 0) { | ||
@@ -64,3 +39,3 @@ timeoutRemaining -= interval; | ||
var _a; | ||
await (0, import_delay.delay)(timeout.delay); | ||
await delay(timeout.delay); | ||
if (!completed) { | ||
@@ -84,7 +59,6 @@ console.log(`forget promise timeout out after ${timeout.delay}ms [Cancelling]`); | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
export { | ||
ForgetPromise, | ||
forget | ||
}); | ||
}; | ||
//# sourceMappingURL=forget.js.map |
@@ -1,30 +0,3 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/index.ts | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
ForgetPromise: () => ForgetPromise, | ||
forget: () => forget | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
// src/forget.ts | ||
var import_delay = require("@xylabs/delay"); | ||
import { delay } from "@xylabs/delay"; | ||
var ForgetPromise = class { | ||
@@ -38,3 +11,3 @@ static activeForgets = 0; | ||
while (this.active) { | ||
await (0, import_delay.delay)(interval); | ||
await delay(interval); | ||
if (timeoutRemaining !== void 0) { | ||
@@ -66,3 +39,3 @@ timeoutRemaining -= interval; | ||
var _a; | ||
await (0, import_delay.delay)(timeout.delay); | ||
await delay(timeout.delay); | ||
if (!completed) { | ||
@@ -86,7 +59,6 @@ console.log(`forget promise timeout out after ${timeout.delay}ms [Cancelling]`); | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
export { | ||
ForgetPromise, | ||
forget | ||
}); | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -15,3 +15,2 @@ { | ||
"docs": "dist/docs.json", | ||
"types": "dist/node/index.d.ts", | ||
"exports": { | ||
@@ -21,7 +20,7 @@ ".": { | ||
"types": "./dist/node/index.d.ts", | ||
"default": "./dist/node/index.js" | ||
"default": "./dist/node/index.cjs" | ||
}, | ||
"import": { | ||
"types": "./dist/node/index.d.mts", | ||
"default": "./dist/node/index.mjs" | ||
"default": "./dist/node/index.js" | ||
} | ||
@@ -34,4 +33,2 @@ }, | ||
}, | ||
"main": "dist/node/index.js", | ||
"module": "dist/node/index.mjs", | ||
"homepage": "https://xylabs.com", | ||
@@ -45,3 +42,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@xylabs/delay": "~2.11.24" | ||
"@xylabs/delay": "~2.12.0" | ||
}, | ||
@@ -61,3 +58,4 @@ "devDependencies": { | ||
"sideEffects": false, | ||
"version": "2.11.24" | ||
"version": "2.12.0", | ||
"type": "module" | ||
} |
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
Yes
50017
+ Added@xylabs/delay@2.12.31(transitive)
- Removed@xylabs/delay@2.11.24(transitive)
Updated@xylabs/delay@~2.12.0