worker-timers-worker 8.0.1 → 8.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,3 +3,7 @@
3
3
  **The worker which is used by the worker-timers package.**
4
4
 
5
5
  [![version](https://img.shields.io/npm/v/worker-timers-worker.svg?style=flat-square)](https://www.npmjs.com/package/worker-timers-worker)
6
+
7
+ ## Security contact information
8
+
9
+ To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
@@ -32,10 +32,10 @@
32
32
  remainingDelay: remainingDelay
33
33
  };
34
34
  };
35
- var setTimeoutCallback = function setTimeoutCallback(identifiers, timerId, expected, timerType) {
35
+ var _setTimeoutCallback = function setTimeoutCallback(identifiers, timerId, expected, timerType) {
36
36
  var remainingDelay = expected - performance.now();
37
37
  if (remainingDelay > 0) {
38
- identifiers.set(timerId, setTimeout(setTimeoutCallback, remainingDelay, identifiers, timerId, expected, timerType));
38
+ identifiers.set(timerId, setTimeout(_setTimeoutCallback, remainingDelay, identifiers, timerId, expected, timerType));
39
39
  } else {
40
40
  identifiers["delete"](timerId);
41
41
  postMessage({
@@ -52,13 +52,13 @@
52
52
  var _computeDelayAndExpec = computeDelayAndExpectedCallbackTime(delay, nowAndTimeOrigin),
53
53
  expected = _computeDelayAndExpec.expected,
54
54
  remainingDelay = _computeDelayAndExpec.remainingDelay;
55
- scheduledIntervalIdentifiers.set(timerId, setTimeout(setTimeoutCallback, remainingDelay, scheduledIntervalIdentifiers, timerId, expected, 'interval'));
55
+ scheduledIntervalIdentifiers.set(timerId, setTimeout(_setTimeoutCallback, remainingDelay, scheduledIntervalIdentifiers, timerId, expected, 'interval'));
56
56
  };
57
57
  var scheduleTimeout = function scheduleTimeout(delay, timerId, nowAndTimeOrigin) {
58
58
  var _computeDelayAndExpec2 = computeDelayAndExpectedCallbackTime(delay, nowAndTimeOrigin),
59
59
  expected = _computeDelayAndExpec2.expected,
60
60
  remainingDelay = _computeDelayAndExpec2.remainingDelay;
61
- scheduledTimeoutIdentifiers.set(timerId, setTimeout(setTimeoutCallback, remainingDelay, scheduledTimeoutIdentifiers, timerId, expected, 'timeout'));
61
+ scheduledTimeoutIdentifiers.set(timerId, setTimeout(_setTimeoutCallback, remainingDelay, scheduledTimeoutIdentifiers, timerId, expected, 'timeout'));
62
62
  };
63
63
 
64
64
  addEventListener('message', function (_ref) {
package/package.json CHANGED
@@ -15,28 +15,28 @@
15
15
  }
16
16
  ],
17
17
  "dependencies": {
18
- "@babel/runtime": "^7.24.7",
18
+ "@babel/runtime": "^7.25.0",
19
19
  "tslib": "^2.6.3"
20
20
  },
21
21
  "description": "The worker which is used by the worker-timers package.",
22
22
  "devDependencies": {
23
- "@babel/core": "^7.24.7",
23
+ "@babel/core": "^7.25.2",
24
24
  "@babel/plugin-external-helpers": "^7.24.7",
25
25
  "@babel/plugin-transform-runtime": "^7.24.7",
26
- "@babel/preset-env": "^7.24.7",
27
- "@commitlint/cli": "^19.3.0",
26
+ "@babel/preset-env": "^7.25.3",
27
+ "@commitlint/cli": "^19.4.0",
28
28
  "@commitlint/config-angular": "^19.3.0",
29
29
  "@rollup/plugin-babel": "^6.0.4",
30
30
  "chai": "^4.3.10",
31
31
  "commitizen": "^4.3.0",
32
32
  "cz-conventional-changelog": "^3.3.0",
33
33
  "eslint": "^8.57.0",
34
- "eslint-config-holy-grail": "^59.0.11",
34
+ "eslint-config-holy-grail": "^59.0.15",
35
35
  "grunt": "^1.6.1",
36
- "grunt-cli": "^1.4.3",
36
+ "grunt-cli": "^1.5.0",
37
37
  "grunt-sh": "^0.2.1",
38
38
  "husky": "^8.0.3",
39
- "karma": "^6.4.3",
39
+ "karma": "^6.4.4",
40
40
  "karma-browserstack-launcher": "^1.6.0",
41
41
  "karma-chrome-launcher": "^3.2.0",
42
42
  "karma-cli": "^2.0.0",
@@ -44,23 +44,23 @@
44
44
  "karma-mocha": "^2.0.1",
45
45
  "karma-mocha-webworker": "^1.3.0",
46
46
  "karma-sinon-chai": "^2.0.2",
47
- "karma-webkit-launcher": "^2.4.0",
47
+ "karma-webkit-launcher": "^2.6.0",
48
48
  "karma-webpack": "^5.0.1",
49
- "lint-staged": "^15.2.7",
49
+ "lint-staged": "^15.2.8",
50
50
  "load-grunt-config": "^4.0.1",
51
51
  "memory-fs": "^0.5.0",
52
- "mocha": "^10.6.0",
53
- "prettier": "^3.3.2",
52
+ "mocha": "^10.7.3",
53
+ "prettier": "^3.3.3",
54
54
  "rimraf": "^5.0.8",
55
- "rollup": "^4.18.0",
55
+ "rollup": "^4.20.0",
56
56
  "sinon": "^17.0.2",
57
57
  "sinon-chai": "^3.7.0",
58
58
  "ts-loader": "^9.5.1",
59
59
  "tsconfig-holy-grail": "^15.0.1",
60
60
  "tslint": "^6.1.3",
61
61
  "tslint-config-holy-grail": "^56.0.2",
62
- "typescript": "^5.5.3",
63
- "webpack": "^5.92.1"
62
+ "typescript": "^5.5.4",
63
+ "webpack": "^5.93.0"
64
64
  },
65
65
  "files": [
66
66
  "build/es2019/",
@@ -87,5 +87,5 @@
87
87
  "test": "grunt lint && grunt test"
88
88
  },
89
89
  "types": "build/es2019/module.d.ts",
90
- "version": "8.0.1"
90
+ "version": "8.0.3"
91
91
  }