@xylabs/timer
Advanced tools
Comparing version 4.0.2 to 4.0.3
{ | ||
"name": "@xylabs/timer", | ||
"version": "4.0.3", | ||
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries", | ||
"keywords": [ | ||
"xylabs", | ||
"timer", | ||
"setTimeout", | ||
"utility", | ||
"typescript", | ||
"esm" | ||
], | ||
"homepage": "https://xylabs.com", | ||
"bugs": { | ||
"url": "git+https://github.com/xylabs/sdk-js/issues", | ||
"email": "support@xylabs.com" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/xylabs/sdk-js.git" | ||
}, | ||
"license": "LGPL-3.0-only", | ||
"name": "@xylabs/timer", | ||
"author": { | ||
"name": "XY Labs Development Team", | ||
"email": "support@xylabs.com", | ||
"name": "XY Labs Development Team", | ||
"url": "https://xylabs.com" | ||
}, | ||
"bugs": { | ||
"email": "support@xylabs.com", | ||
"url": "git+https://github.com/xylabs/sdk-js/issues" | ||
}, | ||
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries", | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
@@ -21,11 +37,11 @@ ".": { | ||
}, | ||
"module": "./dist/neutral/index.mjs", | ||
"types": "./dist/neutral/index.d.ts", | ||
"module": "./dist/neutral/index.mjs", | ||
"dependencies": { | ||
"@xylabs/assert": "^4.0.2" | ||
"@xylabs/assert": "^4.0.3" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^22.4.0", | ||
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15", | ||
"@xylabs/tsconfig": "^4.0.0-rc.15", | ||
"@types/node": "^22.5.0", | ||
"@xylabs/ts-scripts-yarn3": "^4.0.0", | ||
"@xylabs/tsconfig": "^4.0.0", | ||
"typescript": "^5.5.4" | ||
@@ -36,21 +52,5 @@ }, | ||
}, | ||
"homepage": "https://xylabs.com", | ||
"keywords": [ | ||
"xylabs", | ||
"timer", | ||
"setTimeout", | ||
"utility", | ||
"typescript", | ||
"esm" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/xylabs/sdk-js.git" | ||
}, | ||
"sideEffects": false, | ||
"version": "4.0.2", | ||
"type": "module" | ||
} | ||
} |
@@ -33,3 +33,5 @@ import { assertEx } from '@xylabs/assert' | ||
clearTimeout(currentTimeout) | ||
timeouts = newTimeouts.map(timeout => ({ delay: timeout.delay - delayPassed, func: timeout.func, id: timeout.id })) | ||
timeouts = newTimeouts.map(timeout => ({ | ||
delay: timeout.delay - delayPassed, func: timeout.func, id: timeout.id, | ||
})) | ||
// restart timeout since it needs to be different | ||
@@ -59,3 +61,5 @@ interval = newInterval | ||
const id = `${Date.now()}|${Math.random() * 9_999_999_999}` | ||
timeouts.push({ delay, func, id }) | ||
timeouts.push({ | ||
delay, func, id, | ||
}) | ||
update() | ||
@@ -62,0 +66,0 @@ return id |
@@ -5,5 +5,3 @@ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3' | ||
browser: {}, | ||
neutral: { | ||
src: true, | ||
}, | ||
neutral: { src: true }, | ||
node: {}, | ||
@@ -10,0 +8,0 @@ }, |
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
17618
130
Updated@xylabs/assert@^4.0.3