worker-timers-broker
Advanced tools
Comparing version 6.1.8 to 7.0.0
@@ -71,2 +71,5 @@ import { generateUniqueNumber } from 'fast-unique-numbers'; | ||
const clearInterval = (timerId) => { | ||
if (typeof scheduledIntervalFunctions.get(timerId) !== 'function') { | ||
throw new Error(`There is no interval scheduled with the given id "${timerId}".`); | ||
} | ||
const id = generateUniqueNumber(unrespondedRequests); | ||
@@ -82,2 +85,5 @@ unrespondedRequests.set(id, { timerId, timerType: 'interval' }); | ||
const clearTimeout = (timerId) => { | ||
if (typeof scheduledTimeoutFunctions.get(timerId) !== 'function') { | ||
throw new Error(`There is no timeout scheduled with the given id "${timerId}".`); | ||
} | ||
const id = generateUniqueNumber(unrespondedRequests); | ||
@@ -84,0 +90,0 @@ unrespondedRequests.set(id, { timerId, timerType: 'timeout' }); |
@@ -74,2 +74,5 @@ (function (global, factory) { | ||
var clearInterval = function clearInterval(timerId) { | ||
if (typeof scheduledIntervalFunctions.get(timerId) !== 'function') { | ||
throw new Error("There is no interval scheduled with the given id \"".concat(timerId, "\".")); | ||
} | ||
var id = fastUniqueNumbers.generateUniqueNumber(unrespondedRequests); | ||
@@ -91,2 +94,5 @@ unrespondedRequests.set(id, { | ||
var clearTimeout = function clearTimeout(timerId) { | ||
if (typeof scheduledTimeoutFunctions.get(timerId) !== 'function') { | ||
throw new Error("There is no timeout scheduled with the given id \"".concat(timerId, "\".")); | ||
} | ||
var id = fastUniqueNumbers.generateUniqueNumber(unrespondedRequests); | ||
@@ -93,0 +99,0 @@ unrespondedRequests.set(id, { |
@@ -13,3 +13,3 @@ { | ||
"@babel/runtime": "^7.24.5", | ||
"fast-unique-numbers": "^8.0.13", | ||
"fast-unique-numbers": "^9.0.5", | ||
"tslib": "^2.6.2", | ||
@@ -31,3 +31,3 @@ "worker-timers-worker": "^7.0.71" | ||
"eslint": "^8.57.0", | ||
"eslint-config-holy-grail": "^59.0.8", | ||
"eslint-config-holy-grail": "^59.0.10", | ||
"grunt": "^1.6.1", | ||
@@ -49,5 +49,5 @@ "grunt-cli": "^1.4.3", | ||
"prettier": "^3.2.5", | ||
"rimraf": "^5.0.5", | ||
"rimraf": "^5.0.7", | ||
"rollup": "^4.17.2", | ||
"sinon": "^17.0.1", | ||
"sinon": "^17.0.2", | ||
"sinon-chai": "^3.7.0", | ||
@@ -86,3 +86,3 @@ "ts-loader": "^9.5.1", | ||
"types": "build/es2019/module.d.ts", | ||
"version": "6.1.8" | ||
"version": "7.0.0" | ||
} |
@@ -88,2 +88,6 @@ import { generateUniqueNumber } from 'fast-unique-numbers'; | ||
const clearInterval = (timerId: number) => { | ||
if (typeof scheduledIntervalFunctions.get(timerId) !== 'function') { | ||
throw new Error(`There is no interval scheduled with the given id "${timerId}".`); | ||
} | ||
const id = generateUniqueNumber(unrespondedRequests); | ||
@@ -102,2 +106,6 @@ | ||
const clearTimeout = (timerId: number) => { | ||
if (typeof scheduledTimeoutFunctions.get(timerId) !== 'function') { | ||
throw new Error(`There is no timeout scheduled with the given id "${timerId}".`); | ||
} | ||
const id = generateUniqueNumber(unrespondedRequests); | ||
@@ -104,0 +112,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
31357
488
+ Addedfast-unique-numbers@9.0.5(transitive)
- Removedfast-unique-numbers@8.0.13(transitive)
Updatedfast-unique-numbers@^9.0.5