worker-timers
Advanced tools
Comparing version 4.0.43 to 4.0.44
@@ -1,1 +0,1 @@ | ||
export declare const worker = "!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=1)}([function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});const n=new Map,o=new Map,i=(t.clearScheduledInterval=(e=>{const t=n.get(e);if(void 0===t)throw new Error('There is no interval scheduled with the given id \"'+e+'\".');clearTimeout(t),n.delete(e)}),t.clearScheduledTimeout=(e=>{const t=o.get(e);if(void 0===t)throw new Error('There is no timeout scheduled with the given id \"'+e+'\".');clearTimeout(t),o.delete(e)}),(e,t)=>{let r,n;if(\"performance\"in self){const o=performance.now();r=o,n=e-Math.max(0,o-t)}else r=Date.now(),n=e;return{expected:r+n,remainingDelay:n}}),s=(e,t,r,n)=>{const o=\"performance\"in self?performance.now():Date.now();o>r?postMessage({id:null,method:\"call\",params:{timerId:t,timerType:n}}):e.set(t,setTimeout(s,r-o,e,t,r,n))};t.scheduleInterval=((e,t,r)=>{var o=i(e,r);const a=o.expected,l=o.remainingDelay;n.set(t,setTimeout(s,l,n,t,a,\"interval\"))}),t.scheduleTimeout=((e,t,r)=>{var n=i(e,r);const a=n.expected,l=n.remainingDelay;o.set(t,setTimeout(s,l,o,t,a,\"timeout\"))})},function(e,t,r){\"use strict\";var n=r(0);addEventListener(\"message\",({data:e})=>{try{if(\"clear\"===e.method){const r=e.id;var t=e.params;const o=t.timerId,i=t.timerType;if(\"interval\"===i)(0,n.clearScheduledInterval)(o),postMessage({error:null,id:r});else{if(\"timeout\"!==i)throw new Error('The given type \"'+i+'\" is not supported');(0,n.clearScheduledTimeout)(o),postMessage({error:null,id:r})}}else{if(\"set\"!==e.method)throw new Error('The given method \"'+e.method+'\" is not supported');{var r=e.params;const t=r.delay,o=r.now,i=r.timerId,s=r.timerType;if(\"interval\"===s)(0,n.scheduleInterval)(t,i,o);else{if(\"timeout\"!==s)throw new Error('The given type \"'+s+'\" is not supported');(0,n.scheduleTimeout)(t,i,o)}}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})}]);"; | ||
export declare const worker = "!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=0)}([function(e,t,r){\"use strict\";var n=r(1);addEventListener(\"message\",({data:e})=>{try{if(\"clear\"===e.method){const r=e.id;var t=e.params;const o=t.timerId,i=t.timerType;if(\"interval\"===i)(0,n.clearScheduledInterval)(o),postMessage({error:null,id:r});else{if(\"timeout\"!==i)throw new Error('The given type \"'+i+'\" is not supported');(0,n.clearScheduledTimeout)(o),postMessage({error:null,id:r})}}else{if(\"set\"!==e.method)throw new Error('The given method \"'+e.method+'\" is not supported');{var r=e.params;const t=r.delay,o=r.now,i=r.timerId,s=r.timerType;if(\"interval\"===s)(0,n.scheduleInterval)(t,i,o);else{if(\"timeout\"!==s)throw new Error('The given type \"'+s+'\" is not supported');(0,n.scheduleTimeout)(t,i,o)}}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})},function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});const n=new Map,o=new Map,i=(t.clearScheduledInterval=(e=>{const t=n.get(e);if(void 0===t)throw new Error('There is no interval scheduled with the given id \"'+e+'\".');clearTimeout(t),n.delete(e)}),t.clearScheduledTimeout=(e=>{const t=o.get(e);if(void 0===t)throw new Error('There is no timeout scheduled with the given id \"'+e+'\".');clearTimeout(t),o.delete(e)}),(e,t)=>{let r,n;if(\"performance\"in self){const o=performance.now();r=o,n=e-Math.max(0,o-t)}else r=Date.now(),n=e;return{expected:r+n,remainingDelay:n}}),s=(e,t,r,n)=>{const o=\"performance\"in self?performance.now():Date.now();o>r?postMessage({id:null,method:\"call\",params:{timerId:t,timerType:n}}):e.set(t,setTimeout(s,r-o,e,t,r,n))};t.scheduleInterval=((e,t,r)=>{var o=i(e,r);const a=o.expected,l=o.remainingDelay;n.set(t,setTimeout(s,l,n,t,a,\"interval\"))}),t.scheduleTimeout=((e,t,r)=>{var n=i(e,r);const a=n.expected,l=n.remainingDelay;o.set(t,setTimeout(s,l,o,t,a,\"timeout\"))})}]);"; |
// tslint:disable-next-line:max-line-length | ||
export const worker = `!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=new Map,o=new Map,i=(t.clearScheduledInterval=(e=>{const t=n.get(e);if(void 0===t)throw new Error('There is no interval scheduled with the given id "'+e+'".');clearTimeout(t),n.delete(e)}),t.clearScheduledTimeout=(e=>{const t=o.get(e);if(void 0===t)throw new Error('There is no timeout scheduled with the given id "'+e+'".');clearTimeout(t),o.delete(e)}),(e,t)=>{let r,n;if("performance"in self){const o=performance.now();r=o,n=e-Math.max(0,o-t)}else r=Date.now(),n=e;return{expected:r+n,remainingDelay:n}}),s=(e,t,r,n)=>{const o="performance"in self?performance.now():Date.now();o>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:n}}):e.set(t,setTimeout(s,r-o,e,t,r,n))};t.scheduleInterval=((e,t,r)=>{var o=i(e,r);const a=o.expected,l=o.remainingDelay;n.set(t,setTimeout(s,l,n,t,a,"interval"))}),t.scheduleTimeout=((e,t,r)=>{var n=i(e,r);const a=n.expected,l=n.remainingDelay;o.set(t,setTimeout(s,l,o,t,a,"timeout"))})},function(e,t,r){"use strict";var n=r(0);addEventListener("message",({data:e})=>{try{if("clear"===e.method){const r=e.id;var t=e.params;const o=t.timerId,i=t.timerType;if("interval"===i)(0,n.clearScheduledInterval)(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error('The given type "'+i+'" is not supported');(0,n.clearScheduledTimeout)(o),postMessage({error:null,id:r})}}else{if("set"!==e.method)throw new Error('The given method "'+e.method+'" is not supported');{var r=e.params;const t=r.delay,o=r.now,i=r.timerId,s=r.timerType;if("interval"===s)(0,n.scheduleInterval)(t,i,o);else{if("timeout"!==s)throw new Error('The given type "'+s+'" is not supported');(0,n.scheduleTimeout)(t,i,o)}}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})}]);`; | ||
export const worker = `!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";var n=r(1);addEventListener("message",({data:e})=>{try{if("clear"===e.method){const r=e.id;var t=e.params;const o=t.timerId,i=t.timerType;if("interval"===i)(0,n.clearScheduledInterval)(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error('The given type "'+i+'" is not supported');(0,n.clearScheduledTimeout)(o),postMessage({error:null,id:r})}}else{if("set"!==e.method)throw new Error('The given method "'+e.method+'" is not supported');{var r=e.params;const t=r.delay,o=r.now,i=r.timerId,s=r.timerType;if("interval"===s)(0,n.scheduleInterval)(t,i,o);else{if("timeout"!==s)throw new Error('The given type "'+s+'" is not supported');(0,n.scheduleTimeout)(t,i,o)}}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=new Map,o=new Map,i=(t.clearScheduledInterval=(e=>{const t=n.get(e);if(void 0===t)throw new Error('There is no interval scheduled with the given id "'+e+'".');clearTimeout(t),n.delete(e)}),t.clearScheduledTimeout=(e=>{const t=o.get(e);if(void 0===t)throw new Error('There is no timeout scheduled with the given id "'+e+'".');clearTimeout(t),o.delete(e)}),(e,t)=>{let r,n;if("performance"in self){const o=performance.now();r=o,n=e-Math.max(0,o-t)}else r=Date.now(),n=e;return{expected:r+n,remainingDelay:n}}),s=(e,t,r,n)=>{const o="performance"in self?performance.now():Date.now();o>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:n}}):e.set(t,setTimeout(s,r-o,e,t,r,n))};t.scheduleInterval=((e,t,r)=>{var o=i(e,r);const a=o.expected,l=o.remainingDelay;n.set(t,setTimeout(s,l,n,t,a,"interval"))}),t.scheduleTimeout=((e,t,r)=>{var n=i(e,r);const a=n.expected,l=n.remainingDelay;o.set(t,setTimeout(s,l,o,t,a,"timeout"))})}]);`; | ||
//# sourceMappingURL=/build/es2015/worker/worker.js.map |
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
// tslint:disable-next-line:max-line-length | ||
var worker = "!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=1)}([function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});const n=new Map,o=new Map,i=(t.clearScheduledInterval=(e=>{const t=n.get(e);if(void 0===t)throw new Error('There is no interval scheduled with the given id \"'+e+'\".');clearTimeout(t),n.delete(e)}),t.clearScheduledTimeout=(e=>{const t=o.get(e);if(void 0===t)throw new Error('There is no timeout scheduled with the given id \"'+e+'\".');clearTimeout(t),o.delete(e)}),(e,t)=>{let r,n;if(\"performance\"in self){const o=performance.now();r=o,n=e-Math.max(0,o-t)}else r=Date.now(),n=e;return{expected:r+n,remainingDelay:n}}),s=(e,t,r,n)=>{const o=\"performance\"in self?performance.now():Date.now();o>r?postMessage({id:null,method:\"call\",params:{timerId:t,timerType:n}}):e.set(t,setTimeout(s,r-o,e,t,r,n))};t.scheduleInterval=((e,t,r)=>{var o=i(e,r);const a=o.expected,l=o.remainingDelay;n.set(t,setTimeout(s,l,n,t,a,\"interval\"))}),t.scheduleTimeout=((e,t,r)=>{var n=i(e,r);const a=n.expected,l=n.remainingDelay;o.set(t,setTimeout(s,l,o,t,a,\"timeout\"))})},function(e,t,r){\"use strict\";var n=r(0);addEventListener(\"message\",({data:e})=>{try{if(\"clear\"===e.method){const r=e.id;var t=e.params;const o=t.timerId,i=t.timerType;if(\"interval\"===i)(0,n.clearScheduledInterval)(o),postMessage({error:null,id:r});else{if(\"timeout\"!==i)throw new Error('The given type \"'+i+'\" is not supported');(0,n.clearScheduledTimeout)(o),postMessage({error:null,id:r})}}else{if(\"set\"!==e.method)throw new Error('The given method \"'+e.method+'\" is not supported');{var r=e.params;const t=r.delay,o=r.now,i=r.timerId,s=r.timerType;if(\"interval\"===s)(0,n.scheduleInterval)(t,i,o);else{if(\"timeout\"!==s)throw new Error('The given type \"'+s+'\" is not supported');(0,n.scheduleTimeout)(t,i,o)}}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})}]);"; | ||
var worker = "!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=0)}([function(e,t,r){\"use strict\";var n=r(1);addEventListener(\"message\",({data:e})=>{try{if(\"clear\"===e.method){const r=e.id;var t=e.params;const o=t.timerId,i=t.timerType;if(\"interval\"===i)(0,n.clearScheduledInterval)(o),postMessage({error:null,id:r});else{if(\"timeout\"!==i)throw new Error('The given type \"'+i+'\" is not supported');(0,n.clearScheduledTimeout)(o),postMessage({error:null,id:r})}}else{if(\"set\"!==e.method)throw new Error('The given method \"'+e.method+'\" is not supported');{var r=e.params;const t=r.delay,o=r.now,i=r.timerId,s=r.timerType;if(\"interval\"===s)(0,n.scheduleInterval)(t,i,o);else{if(\"timeout\"!==s)throw new Error('The given type \"'+s+'\" is not supported');(0,n.scheduleTimeout)(t,i,o)}}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})},function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});const n=new Map,o=new Map,i=(t.clearScheduledInterval=(e=>{const t=n.get(e);if(void 0===t)throw new Error('There is no interval scheduled with the given id \"'+e+'\".');clearTimeout(t),n.delete(e)}),t.clearScheduledTimeout=(e=>{const t=o.get(e);if(void 0===t)throw new Error('There is no timeout scheduled with the given id \"'+e+'\".');clearTimeout(t),o.delete(e)}),(e,t)=>{let r,n;if(\"performance\"in self){const o=performance.now();r=o,n=e-Math.max(0,o-t)}else r=Date.now(),n=e;return{expected:r+n,remainingDelay:n}}),s=(e,t,r,n)=>{const o=\"performance\"in self?performance.now():Date.now();o>r?postMessage({id:null,method:\"call\",params:{timerId:t,timerType:n}}):e.set(t,setTimeout(s,r-o,e,t,r,n))};t.scheduleInterval=((e,t,r)=>{var o=i(e,r);const a=o.expected,l=o.remainingDelay;n.set(t,setTimeout(s,l,n,t,a,\"interval\"))}),t.scheduleTimeout=((e,t,r)=>{var n=i(e,r);const a=n.expected,l=n.remainingDelay;o.set(t,setTimeout(s,l,o,t,a,\"timeout\"))})}]);"; | ||
@@ -11,0 +11,0 @@ var blob = new Blob([worker], { type: 'application/javascript; charset=utf-8' }); |
// tslint:disable-next-line:max-line-length | ||
export var worker = "!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=1)}([function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});const n=new Map,o=new Map,i=(t.clearScheduledInterval=(e=>{const t=n.get(e);if(void 0===t)throw new Error('There is no interval scheduled with the given id \"'+e+'\".');clearTimeout(t),n.delete(e)}),t.clearScheduledTimeout=(e=>{const t=o.get(e);if(void 0===t)throw new Error('There is no timeout scheduled with the given id \"'+e+'\".');clearTimeout(t),o.delete(e)}),(e,t)=>{let r,n;if(\"performance\"in self){const o=performance.now();r=o,n=e-Math.max(0,o-t)}else r=Date.now(),n=e;return{expected:r+n,remainingDelay:n}}),s=(e,t,r,n)=>{const o=\"performance\"in self?performance.now():Date.now();o>r?postMessage({id:null,method:\"call\",params:{timerId:t,timerType:n}}):e.set(t,setTimeout(s,r-o,e,t,r,n))};t.scheduleInterval=((e,t,r)=>{var o=i(e,r);const a=o.expected,l=o.remainingDelay;n.set(t,setTimeout(s,l,n,t,a,\"interval\"))}),t.scheduleTimeout=((e,t,r)=>{var n=i(e,r);const a=n.expected,l=n.remainingDelay;o.set(t,setTimeout(s,l,o,t,a,\"timeout\"))})},function(e,t,r){\"use strict\";var n=r(0);addEventListener(\"message\",({data:e})=>{try{if(\"clear\"===e.method){const r=e.id;var t=e.params;const o=t.timerId,i=t.timerType;if(\"interval\"===i)(0,n.clearScheduledInterval)(o),postMessage({error:null,id:r});else{if(\"timeout\"!==i)throw new Error('The given type \"'+i+'\" is not supported');(0,n.clearScheduledTimeout)(o),postMessage({error:null,id:r})}}else{if(\"set\"!==e.method)throw new Error('The given method \"'+e.method+'\" is not supported');{var r=e.params;const t=r.delay,o=r.now,i=r.timerId,s=r.timerType;if(\"interval\"===s)(0,n.scheduleInterval)(t,i,o);else{if(\"timeout\"!==s)throw new Error('The given type \"'+s+'\" is not supported');(0,n.scheduleTimeout)(t,i,o)}}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})}]);"; | ||
export var worker = "!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=0)}([function(e,t,r){\"use strict\";var n=r(1);addEventListener(\"message\",({data:e})=>{try{if(\"clear\"===e.method){const r=e.id;var t=e.params;const o=t.timerId,i=t.timerType;if(\"interval\"===i)(0,n.clearScheduledInterval)(o),postMessage({error:null,id:r});else{if(\"timeout\"!==i)throw new Error('The given type \"'+i+'\" is not supported');(0,n.clearScheduledTimeout)(o),postMessage({error:null,id:r})}}else{if(\"set\"!==e.method)throw new Error('The given method \"'+e.method+'\" is not supported');{var r=e.params;const t=r.delay,o=r.now,i=r.timerId,s=r.timerType;if(\"interval\"===s)(0,n.scheduleInterval)(t,i,o);else{if(\"timeout\"!==s)throw new Error('The given type \"'+s+'\" is not supported');(0,n.scheduleTimeout)(t,i,o)}}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})},function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});const n=new Map,o=new Map,i=(t.clearScheduledInterval=(e=>{const t=n.get(e);if(void 0===t)throw new Error('There is no interval scheduled with the given id \"'+e+'\".');clearTimeout(t),n.delete(e)}),t.clearScheduledTimeout=(e=>{const t=o.get(e);if(void 0===t)throw new Error('There is no timeout scheduled with the given id \"'+e+'\".');clearTimeout(t),o.delete(e)}),(e,t)=>{let r,n;if(\"performance\"in self){const o=performance.now();r=o,n=e-Math.max(0,o-t)}else r=Date.now(),n=e;return{expected:r+n,remainingDelay:n}}),s=(e,t,r,n)=>{const o=\"performance\"in self?performance.now():Date.now();o>r?postMessage({id:null,method:\"call\",params:{timerId:t,timerType:n}}):e.set(t,setTimeout(s,r-o,e,t,r,n))};t.scheduleInterval=((e,t,r)=>{var o=i(e,r);const a=o.expected,l=o.remainingDelay;n.set(t,setTimeout(s,l,n,t,a,\"interval\"))}),t.scheduleTimeout=((e,t,r)=>{var n=i(e,r);const a=n.expected,l=n.remainingDelay;o.set(t,setTimeout(s,l,o,t,a,\"timeout\"))})}]);"; | ||
//# sourceMappingURL=/build/es2015/worker/worker.js.map |
@@ -20,4 +20,4 @@ { | ||
"tslib": "^1.9.3", | ||
"worker-timers-broker": "^4.0.29", | ||
"worker-timers-worker": "^4.0.18" | ||
"worker-timers-broker": "^4.0.30", | ||
"worker-timers-worker": "^4.0.19" | ||
}, | ||
@@ -35,4 +35,4 @@ "description": "A replacement for setInterval() and setTimeout() which works in unfocused windows.", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"eslint": "^5.0.1", | ||
"eslint-config-holy-grail": "^28.0.0", | ||
"eslint": "^5.1.0", | ||
"eslint-config-holy-grail": "^29.0.1", | ||
"greenkeeper-lockfile": "^1.15.1", | ||
@@ -54,16 +54,16 @@ "grunt": "^1.0.3", | ||
"karma-sauce-launcher": "^1.2.0", | ||
"karma-sinon-chai": "^1.3.4", | ||
"karma-sinon-chai": "^2.0.2", | ||
"karma-webpack": "^3.0.0", | ||
"load-grunt-config": "^0.19.0", | ||
"mocha": "^5.2.0", | ||
"rollup": "^0.62.0", | ||
"rollup-plugin-babel": "^3.0.6", | ||
"sinon": "^6.0.1", | ||
"rollup": "^0.63.0", | ||
"rollup-plugin-babel": "^3.0.7", | ||
"sinon": "^6.1.3", | ||
"sinon-chai": "^3.2.0", | ||
"ts-loader": "^4.4.2", | ||
"tsconfig-holy-grail": "^5.0.4", | ||
"tslint": "^5.10.0", | ||
"tslint-config-holy-grail": "^32.0.1", | ||
"tsconfig-holy-grail": "^5.0.5", | ||
"tslint": "^5.11.0", | ||
"tslint-config-holy-grail": "^33.0.1", | ||
"typescript": "^2.9.2", | ||
"webpack": "^4.14.0" | ||
"webpack": "^4.16.1" | ||
}, | ||
@@ -101,3 +101,3 @@ "files": [ | ||
"types": "build/es2015/module.d.ts", | ||
"version": "4.0.43" | ||
"version": "4.0.44" | ||
} |
// tslint:disable-next-line:max-line-length | ||
export const worker = `!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=new Map,o=new Map,i=(t.clearScheduledInterval=(e=>{const t=n.get(e);if(void 0===t)throw new Error('There is no interval scheduled with the given id "'+e+'".');clearTimeout(t),n.delete(e)}),t.clearScheduledTimeout=(e=>{const t=o.get(e);if(void 0===t)throw new Error('There is no timeout scheduled with the given id "'+e+'".');clearTimeout(t),o.delete(e)}),(e,t)=>{let r,n;if("performance"in self){const o=performance.now();r=o,n=e-Math.max(0,o-t)}else r=Date.now(),n=e;return{expected:r+n,remainingDelay:n}}),s=(e,t,r,n)=>{const o="performance"in self?performance.now():Date.now();o>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:n}}):e.set(t,setTimeout(s,r-o,e,t,r,n))};t.scheduleInterval=((e,t,r)=>{var o=i(e,r);const a=o.expected,l=o.remainingDelay;n.set(t,setTimeout(s,l,n,t,a,"interval"))}),t.scheduleTimeout=((e,t,r)=>{var n=i(e,r);const a=n.expected,l=n.remainingDelay;o.set(t,setTimeout(s,l,o,t,a,"timeout"))})},function(e,t,r){"use strict";var n=r(0);addEventListener("message",({data:e})=>{try{if("clear"===e.method){const r=e.id;var t=e.params;const o=t.timerId,i=t.timerType;if("interval"===i)(0,n.clearScheduledInterval)(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error('The given type "'+i+'" is not supported');(0,n.clearScheduledTimeout)(o),postMessage({error:null,id:r})}}else{if("set"!==e.method)throw new Error('The given method "'+e.method+'" is not supported');{var r=e.params;const t=r.delay,o=r.now,i=r.timerId,s=r.timerType;if("interval"===s)(0,n.scheduleInterval)(t,i,o);else{if("timeout"!==s)throw new Error('The given type "'+s+'" is not supported');(0,n.scheduleTimeout)(t,i,o)}}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})}]);`; | ||
export const worker = `!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";var n=r(1);addEventListener("message",({data:e})=>{try{if("clear"===e.method){const r=e.id;var t=e.params;const o=t.timerId,i=t.timerType;if("interval"===i)(0,n.clearScheduledInterval)(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error('The given type "'+i+'" is not supported');(0,n.clearScheduledTimeout)(o),postMessage({error:null,id:r})}}else{if("set"!==e.method)throw new Error('The given method "'+e.method+'" is not supported');{var r=e.params;const t=r.delay,o=r.now,i=r.timerId,s=r.timerType;if("interval"===s)(0,n.scheduleInterval)(t,i,o);else{if("timeout"!==s)throw new Error('The given type "'+s+'" is not supported');(0,n.scheduleTimeout)(t,i,o)}}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=new Map,o=new Map,i=(t.clearScheduledInterval=(e=>{const t=n.get(e);if(void 0===t)throw new Error('There is no interval scheduled with the given id "'+e+'".');clearTimeout(t),n.delete(e)}),t.clearScheduledTimeout=(e=>{const t=o.get(e);if(void 0===t)throw new Error('There is no timeout scheduled with the given id "'+e+'".');clearTimeout(t),o.delete(e)}),(e,t)=>{let r,n;if("performance"in self){const o=performance.now();r=o,n=e-Math.max(0,o-t)}else r=Date.now(),n=e;return{expected:r+n,remainingDelay:n}}),s=(e,t,r,n)=>{const o="performance"in self?performance.now():Date.now();o>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:n}}):e.set(t,setTimeout(s,r-o,e,t,r,n))};t.scheduleInterval=((e,t,r)=>{var o=i(e,r);const a=o.expected,l=o.remainingDelay;n.set(t,setTimeout(s,l,n,t,a,"interval"))}),t.scheduleTimeout=((e,t,r)=>{var n=i(e,r);const a=n.expected,l=n.remainingDelay;o.set(t,setTimeout(s,l,o,t,a,"timeout"))})}]);`; |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Updatedworker-timers-broker@^4.0.30
Updatedworker-timers-worker@^4.0.19