worker-timers 8.0.2 → 8.0.4

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.
Files changed (2) hide show
  1. package/build/es5/bundle.js +1 -1
  2. package/package.json +16 -16
@@ -24,7 +24,7 @@
24
24
  };
25
25
 
26
26
  // This is the minified and stringified code of the worker-timers-worker package.
27
- var worker = "(()=>{var e={472:(e,t,r)=>{var o,n;void 0===(n=\"function\"==typeof(o=function(){\"use strict\";var e=new Map,t=new Map,r=function(t){var r=e.get(t);return void 0!==r&&(clearTimeout(r),e.delete(t),!0)},o=function(e){var r=t.get(e);return void 0!==r&&(clearTimeout(r),t.delete(e),!0)},n=function(e,t){var r=performance.now(),o=e+t-r-performance.timeOrigin;return{expected:r+o,remainingDelay:o}},i=function e(t,r,o,n){var i=o-performance.now();i>0?t.set(r,setTimeout(e,i,t,r,o,n)):(t.delete(r),postMessage({id:null,method:\"call\",params:{timerId:r,timerType:n}}))},a=function(t,r,o){var a=n(t,o),s=a.expected,u=a.remainingDelay;e.set(r,setTimeout(i,u,e,r,s,\"interval\"))},s=function(e,r,o){var a=n(e,o),s=a.expected,u=a.remainingDelay;t.set(r,setTimeout(i,u,t,r,s,\"timeout\"))};addEventListener(\"message\",(function(e){var t=e.data;try{if(\"clear\"===t.method){var n=t.id,i=t.params,u=i.timerId,d=i.timerType;if(\"interval\"===d)postMessage({id:n,result:r(u)});else{if(\"timeout\"!==d)throw new Error('The given type \"'.concat(d,'\" is not supported'));postMessage({id:n,result:o(u)})}}else{if(\"set\"!==t.method)throw new Error('The given method \"'.concat(t.method,'\" is not supported'));var p=t.params,c=p.delay,m=p.now,l=p.timerId,v=p.timerType;if(\"interval\"===v)a(c,l,m);else{if(\"timeout\"!==v)throw new Error('The given type \"'.concat(v,'\" is not supported'));s(c,l,m)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=n)}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{\"use strict\";r(472)})()})();"; // tslint:disable-line:max-line-length
27
+ var worker = "(()=>{var e={472:(e,t,r)=>{var o,n;void 0===(n=\"function\"==typeof(o=function(){\"use strict\";var e=new Map,t=new Map,r=function(t){var r=e.get(t);return void 0!==r&&(clearTimeout(r),e.delete(t),!0)},o=function(e){var r=t.get(e);return void 0!==r&&(clearTimeout(r),t.delete(e),!0)},n=function(e,t){var r=performance.now(),o=e+t-r-performance.timeOrigin;return{expected:r+o,remainingDelay:o}},i=function(e,t,r,o){var n=r-performance.now();n>0?e.set(t,setTimeout(i,n,e,t,r,o)):(e.delete(t),postMessage({id:null,method:\"call\",params:{timerId:t,timerType:o}}))},a=function(t,r,o){var a=n(t,o),s=a.expected,u=a.remainingDelay;e.set(r,setTimeout(i,u,e,r,s,\"interval\"))},s=function(e,r,o){var a=n(e,o),s=a.expected,u=a.remainingDelay;t.set(r,setTimeout(i,u,t,r,s,\"timeout\"))};addEventListener(\"message\",(function(e){var t=e.data;try{if(\"clear\"===t.method){var n=t.id,i=t.params,u=i.timerId,d=i.timerType;if(\"interval\"===d)postMessage({id:n,result:r(u)});else{if(\"timeout\"!==d)throw new Error('The given type \"'.concat(d,'\" is not supported'));postMessage({id:n,result:o(u)})}}else{if(\"set\"!==t.method)throw new Error('The given method \"'.concat(t.method,'\" is not supported'));var p=t.params,c=p.delay,m=p.now,l=p.timerId,v=p.timerType;if(\"interval\"===v)a(c,l,m);else{if(\"timeout\"!==v)throw new Error('The given type \"'.concat(v,'\" is not supported'));s(c,l,m)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=n)}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{\"use strict\";r(472)})()})();"; // tslint:disable-line:max-line-length
28
28
 
29
29
  var loadOrReturnBroker = createLoadOrReturnBroker(workerTimersBroker.load, worker);
30
30
  var clearInterval = function clearInterval(timerId) {
package/package.json CHANGED
@@ -15,20 +15,20 @@
15
15
  }
16
16
  ],
17
17
  "dependencies": {
18
- "@babel/runtime": "^7.24.8",
18
+ "@babel/runtime": "^7.25.0",
19
19
  "tslib": "^2.6.3",
20
- "worker-timers-broker": "^7.0.3",
21
- "worker-timers-worker": "^8.0.2"
20
+ "worker-timers-broker": "^7.1.1",
21
+ "worker-timers-worker": "^8.0.3"
22
22
  },
23
23
  "description": "A replacement for setInterval() and setTimeout() which works in unfocused windows.",
24
24
  "devDependencies": {
25
25
  "@babel/cli": "^7.24.8",
26
- "@babel/core": "^7.24.8",
26
+ "@babel/core": "^7.25.2",
27
27
  "@babel/plugin-external-helpers": "^7.24.7",
28
28
  "@babel/plugin-transform-runtime": "^7.24.7",
29
- "@babel/preset-env": "^7.24.8",
29
+ "@babel/preset-env": "^7.25.3",
30
30
  "@babel/register": "^7.24.6",
31
- "@commitlint/cli": "^19.3.0",
31
+ "@commitlint/cli": "^19.4.0",
32
32
  "@commitlint/config-angular": "^19.3.0",
33
33
  "@rollup/plugin-babel": "^6.0.4",
34
34
  "@rollup/plugin-replace": "^5.0.7",
@@ -37,12 +37,12 @@
37
37
  "commitizen": "^4.3.0",
38
38
  "cz-conventional-changelog": "^3.3.0",
39
39
  "eslint": "^8.57.0",
40
- "eslint-config-holy-grail": "^59.0.14",
40
+ "eslint-config-holy-grail": "^59.0.15",
41
41
  "grunt": "^1.6.1",
42
- "grunt-cli": "^1.4.3",
42
+ "grunt-cli": "^1.5.0",
43
43
  "grunt-sh": "^0.2.1",
44
44
  "husky": "^8.0.3",
45
- "karma": "^6.4.3",
45
+ "karma": "^6.4.4",
46
46
  "karma-chrome-launcher": "^3.2.0",
47
47
  "karma-firefox-launcher": "^2.1.3",
48
48
  "karma-mocha": "^2.0.1",
@@ -50,13 +50,13 @@
50
50
  "karma-sinon-chai": "^2.0.2",
51
51
  "karma-webkit-launcher": "^2.6.0",
52
52
  "karma-webpack": "^5.0.1",
53
- "lint-staged": "^15.2.7",
53
+ "lint-staged": "^15.2.8",
54
54
  "load-grunt-config": "^4.0.1",
55
- "memfs": "^4.9.3",
56
- "mocha": "^10.6.0",
57
- "prettier": "^3.3.2",
55
+ "memfs": "^4.11.1",
56
+ "mocha": "^10.7.3",
57
+ "prettier": "^3.3.3",
58
58
  "rimraf": "^5.0.8",
59
- "rollup": "^4.18.1",
59
+ "rollup": "^4.20.0",
60
60
  "sinon": "^17.0.2",
61
61
  "sinon-chai": "^3.7.0",
62
62
  "terser-webpack-plugin": "^5.3.10",
@@ -64,7 +64,7 @@
64
64
  "tsconfig-holy-grail": "^15.0.1",
65
65
  "tslint": "^6.1.3",
66
66
  "tslint-config-holy-grail": "^56.0.2",
67
- "typescript": "^5.5.3",
67
+ "typescript": "^5.5.4",
68
68
  "webpack": "^5.93.0",
69
69
  "webpack-cli": "^5.1.4"
70
70
  },
@@ -102,5 +102,5 @@
102
102
  "test": "grunt lint && grunt test"
103
103
  },
104
104
  "types": "build/es2019/module.d.ts",
105
- "version": "8.0.2"
105
+ "version": "8.0.4"
106
106
  }