worker-timers 7.1.1 → 7.1.2
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/build/es5/bundle.js +1 -1
- package/package.json +18 -18
package/build/es5/bundle.js
CHANGED
|
@@ -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={
|
|
27
|
+
var worker = "(()=>{var e={256:(e,t,r)=>{var o,i;void 0===(i=\"function\"==typeof(o=function(){\"use strict\";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id \"'.concat(t,'\".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id \"'.concat(e,'\".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:\"call\",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,\"interval\"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,\"timeout\"))};addEventListener(\"message\",(function(e){var t=e.data;try{if(\"clear\"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if(\"interval\"===c)r(d),postMessage({error:null,id:i});else{if(\"timeout\"!==c)throw new Error('The given type \"'.concat(c,'\" is not supported'));o(d),postMessage({error:null,id:i})}}else{if(\"set\"!==t.method)throw new Error('The given method \"'.concat(t.method,'\" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if(\"interval\"===v)a(l,m,p);else{if(\"timeout\"!==v)throw new Error('The given type \"'.concat(v,'\" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.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(256)})()})();"; // 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,21 +15,21 @@
|
|
|
15
15
|
}
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/runtime": "^7.23.
|
|
18
|
+
"@babel/runtime": "^7.23.9",
|
|
19
19
|
"tslib": "^2.6.2",
|
|
20
|
-
"worker-timers-broker": "^6.1.
|
|
21
|
-
"worker-timers-worker": "^7.0.
|
|
20
|
+
"worker-timers-broker": "^6.1.2",
|
|
21
|
+
"worker-timers-worker": "^7.0.66"
|
|
22
22
|
},
|
|
23
23
|
"description": "A replacement for setInterval() and setTimeout() which works in unfocused windows.",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@babel/cli": "^7.23.
|
|
26
|
-
"@babel/core": "^7.23.
|
|
25
|
+
"@babel/cli": "^7.23.9",
|
|
26
|
+
"@babel/core": "^7.23.9",
|
|
27
27
|
"@babel/plugin-external-helpers": "^7.23.3",
|
|
28
|
-
"@babel/plugin-transform-runtime": "^7.23.
|
|
29
|
-
"@babel/preset-env": "^7.23.
|
|
28
|
+
"@babel/plugin-transform-runtime": "^7.23.9",
|
|
29
|
+
"@babel/preset-env": "^7.23.9",
|
|
30
30
|
"@babel/register": "^7.23.7",
|
|
31
|
-
"@commitlint/cli": "^
|
|
32
|
-
"@commitlint/config-angular": "^
|
|
31
|
+
"@commitlint/cli": "^18.6.0",
|
|
32
|
+
"@commitlint/config-angular": "^18.6.0",
|
|
33
33
|
"@rollup/plugin-babel": "^6.0.4",
|
|
34
34
|
"@rollup/plugin-replace": "^5.0.5",
|
|
35
35
|
"babel-loader": "^9.1.3",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"commitizen": "^4.3.0",
|
|
38
38
|
"cz-conventional-changelog": "^3.3.0",
|
|
39
39
|
"eslint": "^8.56.0",
|
|
40
|
-
"eslint-config-holy-grail": "^
|
|
40
|
+
"eslint-config-holy-grail": "^58.0.2",
|
|
41
41
|
"grunt": "^1.6.1",
|
|
42
42
|
"grunt-cli": "^1.4.3",
|
|
43
43
|
"grunt-sh": "^0.2.1",
|
|
@@ -49,23 +49,23 @@
|
|
|
49
49
|
"karma-sauce-launcher": "^4.3.6",
|
|
50
50
|
"karma-sinon-chai": "^2.0.2",
|
|
51
51
|
"karma-webkit-launcher": "^2.4.0",
|
|
52
|
-
"karma-webpack": "^5.0.
|
|
53
|
-
"lint-staged": "^15.2.
|
|
52
|
+
"karma-webpack": "^5.0.1",
|
|
53
|
+
"lint-staged": "^15.2.2",
|
|
54
54
|
"load-grunt-config": "^4.0.1",
|
|
55
55
|
"memfs": "^4.6.0",
|
|
56
56
|
"mocha": "^10.2.0",
|
|
57
|
-
"prettier": "^3.2.
|
|
57
|
+
"prettier": "^3.2.5",
|
|
58
58
|
"rimraf": "^5.0.5",
|
|
59
|
-
"rollup": "^4.9.
|
|
59
|
+
"rollup": "^4.9.6",
|
|
60
60
|
"sinon": "^17.0.1",
|
|
61
61
|
"sinon-chai": "^3.7.0",
|
|
62
62
|
"terser-webpack-plugin": "^5.3.10",
|
|
63
63
|
"ts-loader": "^9.5.1",
|
|
64
|
-
"tsconfig-holy-grail": "^
|
|
64
|
+
"tsconfig-holy-grail": "^15.0.0",
|
|
65
65
|
"tslint": "^6.1.3",
|
|
66
|
-
"tslint-config-holy-grail": "^
|
|
66
|
+
"tslint-config-holy-grail": "^56.0.0",
|
|
67
67
|
"typescript": "^5.3.3",
|
|
68
|
-
"webpack": "^5.
|
|
68
|
+
"webpack": "^5.90.1",
|
|
69
69
|
"webpack-cli": "^5.1.4"
|
|
70
70
|
},
|
|
71
71
|
"files": [
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"test": "grunt lint && grunt test"
|
|
103
103
|
},
|
|
104
104
|
"types": "build/es2019/module.d.ts",
|
|
105
|
-
"version": "7.1.
|
|
105
|
+
"version": "7.1.2"
|
|
106
106
|
}
|