Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

worker-timers

Package Overview
Dependencies
Maintainers
1
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

worker-timers - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

build/es2015/worker/worker.js
// tslint:disable-next-line:max-line-length
export const worker = '!function(){"use strict";var a=new Map,b=new Map,c=function a(b,c,d,e){var f="performance"in self?performance.now():Date.now();f>d?self.postMessage(e):b.set(c,setTimeout(a,d-f,b,c,d,e))};self.addEventListener("message",function(d){var e=d.data,f=e.action,g=e.delay,h=e.id,i=e.now,j=e.type;if("clear"===f){var k=void 0;"interval"===j?(k=a.get(h),void 0!==k&&(clearTimeout(k),a.delete(h))):"timeout"===j&&(k=b.get(h),void 0!==k&&(clearTimeout(k),b.delete(h)))}else if("set"===f){var l=void 0;if("performance"in self){var m=performance.now(),n=Math.max(0,m-i);g-=n,l=m}else l=Date.now();var o=l+g;"interval"===j?a.set(h,setTimeout(c,g,a,h,o,{id:h,type:j})):"timeout"===j&&b.set(h,setTimeout(c,g,b,h,o,{id:h,type:j}))}})}();';
export const worker = `!function(){"use strict";var a=new Map,b=new Map,c=function a(b,c,d,e){var f="performance"in self?performance.now():Date.now();f>d?self.postMessage(e):b.set(c,setTimeout(a,d-f,b,c,d,e))};self.addEventListener("message",function(d){var e=d.data,f=e.action,g=e.delay,h=e.id,i=e.now,j=e.type;if("clear"===f){var k=void 0;"interval"===j?(k=a.get(h),void 0!==k&&(clearTimeout(k),a.delete(h))):"timeout"===j&&(k=b.get(h),void 0!==k&&(clearTimeout(k),b.delete(h)))}else if("set"===f){var l=void 0;if("performance"in self){var m=performance.now(),n=Math.max(0,m-i);g-=n,l=m}else l=Date.now();var o=l+g;"interval"===j?a.set(h,setTimeout(c,g,a,h,o,{id:h,type:j})):"timeout"===j&&b.set(h,setTimeout(c,g,b,h,o,{id:h,type:j}))}})}();`;
//# sourceMappingURL=worker.js.map

@@ -8,3 +8,3 @@ (function (global, factory) {

// tslint:disable-next-line:max-line-length
var worker = '!function(){"use strict";var a=new Map,b=new Map,c=function a(b,c,d,e){var f="performance"in self?performance.now():Date.now();f>d?self.postMessage(e):b.set(c,setTimeout(a,d-f,b,c,d,e))};self.addEventListener("message",function(d){var e=d.data,f=e.action,g=e.delay,h=e.id,i=e.now,j=e.type;if("clear"===f){var k=void 0;"interval"===j?(k=a.get(h),void 0!==k&&(clearTimeout(k),a.delete(h))):"timeout"===j&&(k=b.get(h),void 0!==k&&(clearTimeout(k),b.delete(h)))}else if("set"===f){var l=void 0;if("performance"in self){var m=performance.now(),n=Math.max(0,m-i);g-=n,l=m}else l=Date.now();var o=l+g;"interval"===j?a.set(h,setTimeout(c,g,a,h,o,{id:h,type:j})):"timeout"===j&&b.set(h,setTimeout(c,g,b,h,o,{id:h,type:j}))}})}();';
var worker = "!function(){\"use strict\";var a=new Map,b=new Map,c=function a(b,c,d,e){var f=\"performance\"in self?performance.now():Date.now();f>d?self.postMessage(e):b.set(c,setTimeout(a,d-f,b,c,d,e))};self.addEventListener(\"message\",function(d){var e=d.data,f=e.action,g=e.delay,h=e.id,i=e.now,j=e.type;if(\"clear\"===f){var k=void 0;\"interval\"===j?(k=a.get(h),void 0!==k&&(clearTimeout(k),a.delete(h))):\"timeout\"===j&&(k=b.get(h),void 0!==k&&(clearTimeout(k),b.delete(h)))}else if(\"set\"===f){var l=void 0;if(\"performance\"in self){var m=performance.now(),n=Math.max(0,m-i);g-=n,l=m}else l=Date.now();var o=l+g;\"interval\"===j?a.set(h,setTimeout(c,g,a,h,o,{id:h,type:j})):\"timeout\"===j&&b.set(h,setTimeout(c,g,b,h,o,{id:h,type:j}))}})}();";

@@ -11,0 +11,0 @@ var blob = new Blob([worker], { type: 'application/javascript' });

@@ -8,3 +8,3 @@ (function (global, factory) {

// tslint:disable-next-line:max-line-length
var worker = '!function(){"use strict";var a=new Map,b=new Map,c=function a(b,c,d,e){var f="performance"in self?performance.now():Date.now();f>d?self.postMessage(e):b.set(c,setTimeout(a,d-f,b,c,d,e))};self.addEventListener("message",function(d){var e=d.data,f=e.action,g=e.delay,h=e.id,i=e.now,j=e.type;if("clear"===f){var k=void 0;"interval"===j?(k=a.get(h),void 0!==k&&(clearTimeout(k),a.delete(h))):"timeout"===j&&(k=b.get(h),void 0!==k&&(clearTimeout(k),b.delete(h)))}else if("set"===f){var l=void 0;if("performance"in self){var m=performance.now(),n=Math.max(0,m-i);g-=n,l=m}else l=Date.now();var o=l+g;"interval"===j?a.set(h,setTimeout(c,g,a,h,o,{id:h,type:j})):"timeout"===j&&b.set(h,setTimeout(c,g,b,h,o,{id:h,type:j}))}})}();';
var worker = "!function(){\"use strict\";var a=new Map,b=new Map,c=function a(b,c,d,e){var f=\"performance\"in self?performance.now():Date.now();f>d?self.postMessage(e):b.set(c,setTimeout(a,d-f,b,c,d,e))};self.addEventListener(\"message\",function(d){var e=d.data,f=e.action,g=e.delay,h=e.id,i=e.now,j=e.type;if(\"clear\"===f){var k=void 0;\"interval\"===j?(k=a.get(h),void 0!==k&&(clearTimeout(k),a.delete(h))):\"timeout\"===j&&(k=b.get(h),void 0!==k&&(clearTimeout(k),b.delete(h)))}else if(\"set\"===f){var l=void 0;if(\"performance\"in self){var m=performance.now(),n=Math.max(0,m-i);g-=n,l=m}else l=Date.now();var o=l+g;\"interval\"===j?a.set(h,setTimeout(c,g,a,h,o,{id:h,type:j})):\"timeout\"===j&&b.set(h,setTimeout(c,g,b,h,o,{id:h,type:j}))}})}();";

@@ -11,0 +11,0 @@ var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1;

@@ -74,3 +74,3 @@ {

"types": "build/es2015/module.d.ts",
"version": "3.0.0"
"version": "3.0.1"
}
// tslint:disable-next-line:max-line-length
export const worker = '!function(){"use strict";var a=new Map,b=new Map,c=function a(b,c,d,e){var f="performance"in self?performance.now():Date.now();f>d?self.postMessage(e):b.set(c,setTimeout(a,d-f,b,c,d,e))};self.addEventListener("message",function(d){var e=d.data,f=e.action,g=e.delay,h=e.id,i=e.now,j=e.type;if("clear"===f){var k=void 0;"interval"===j?(k=a.get(h),void 0!==k&&(clearTimeout(k),a.delete(h))):"timeout"===j&&(k=b.get(h),void 0!==k&&(clearTimeout(k),b.delete(h)))}else if("set"===f){var l=void 0;if("performance"in self){var m=performance.now(),n=Math.max(0,m-i);g-=n,l=m}else l=Date.now();var o=l+g;"interval"===j?a.set(h,setTimeout(c,g,a,h,o,{id:h,type:j})):"timeout"===j&&b.set(h,setTimeout(c,g,b,h,o,{id:h,type:j}))}})}();';
export const worker = `!function(){"use strict";var a=new Map,b=new Map,c=function a(b,c,d,e){var f="performance"in self?performance.now():Date.now();f>d?self.postMessage(e):b.set(c,setTimeout(a,d-f,b,c,d,e))};self.addEventListener("message",function(d){var e=d.data,f=e.action,g=e.delay,h=e.id,i=e.now,j=e.type;if("clear"===f){var k=void 0;"interval"===j?(k=a.get(h),void 0!==k&&(clearTimeout(k),a.delete(h))):"timeout"===j&&(k=b.get(h),void 0!==k&&(clearTimeout(k),b.delete(h)))}else if("set"===f){var l=void 0;if("performance"in self){var m=performance.now(),n=Math.max(0,m-i);g-=n,l=m}else l=Date.now();var o=l+g;"interval"===j?a.set(h,setTimeout(c,g,a,h,o,{id:h,type:j})):"timeout"===j&&b.set(h,setTimeout(c,g,b,h,o,{id:h,type:j}))}})}();`;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc