New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 4.0.5 to 4.0.6

2

build/es2015/module.js

@@ -10,2 +10,2 @@ import { load } from 'worker-timers-broker';

export const setTimeout = workerTimers.setTimeout;
//# sourceMappingURL=/users/chrisguttandin/repositories/worker-timers/node_modules/tsconfig-holy-grail/src/module.js.map
//# sourceMappingURL=/build/es2015/module.js.map

@@ -1,1 +0,1 @@

export declare const worker: string;
export declare const worker = "!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 \"'+t+'\".');clearTimeout(r),e.delete(t)},i=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id \"'+e+'\".');clearTimeout(r),t.delete(e)},o=function(e,t){var r=void 0;if(\"performance\"in self){var i=performance.now();e-=Math.max(0,i-t),r=i}else r=Date.now();return{delay:e,expected:r+e}},n=function e(t,r,i,o){var n=\"performance\"in self?performance.now():Date.now();n>i?postMessage({id:null,method:\"call\",params:{timerId:r,timerType:o}}):t.set(r,setTimeout(e,i-n,t,r,i,o))},a=function(t,r,i){var a=void 0,s=o(t,i);t=s.delay,a=s.expected,e.set(r,setTimeout(n,t,e,r,a,\"interval\"))},s=function(e,r,i){var a=void 0,s=o(e,i);e=s.delay,a=s.expected,t.set(r,setTimeout(n,e,t,r,a,\"timeout\"))};addEventListener(\"message\",function(e){var t=e.data;try{if(\"clear\"===t.method){var o=t.id,n=t.params,d=n.timerId,l=n.timerType;if(\"interval\"===l)r(d),postMessage({error:null,id:o});else{if(\"timeout\"!==l)throw new Error('The given type \"'+l+'\" is not supported');i(d),postMessage({error:null,id:o})}}else{if(\"set\"!==t.method)throw new Error('The given method \"'+t.method+'\" is not supported');var m=t.params,u=m.delay,p=m.now,v=m.timerId,c=m.timerType;if(\"interval\"===c)a(u,v,p);else{if(\"timeout\"!==c)throw new Error('The given type \"'+c+'\" is not supported');s(u,v,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}})}();";
// tslint:disable-next-line:max-line-length
// tslint:disable-next-line:max-line-length
export const worker = `!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 "'+t+'".');clearTimeout(r),e.delete(t)},i=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'+e+'".');clearTimeout(r),t.delete(e)},o=function(e,t){var r=void 0;if("performance"in self){var i=performance.now();e-=Math.max(0,i-t),r=i}else r=Date.now();return{delay:e,expected:r+e}},n=function e(t,r,i,o){var n="performance"in self?performance.now():Date.now();n>i?postMessage({id:null,method:"call",params:{timerId:r,timerType:o}}):t.set(r,setTimeout(e,i-n,t,r,i,o))},a=function(t,r,i){var a=void 0,s=o(t,i);t=s.delay,a=s.expected,e.set(r,setTimeout(n,t,e,r,a,"interval"))},s=function(e,r,i){var a=void 0,s=o(e,i);e=s.delay,a=s.expected,t.set(r,setTimeout(n,e,t,r,a,"timeout"))};addEventListener("message",function(e){var t=e.data;try{if("clear"===t.method){var o=t.id,n=t.params,d=n.timerId,l=n.timerType;if("interval"===l)r(d),postMessage({error:null,id:o});else{if("timeout"!==l)throw new Error('The given type "'+l+'" is not supported');i(d),postMessage({error:null,id:o})}}else{if("set"!==t.method)throw new Error('The given method "'+t.method+'" is not supported');var m=t.params,u=m.delay,p=m.now,v=m.timerId,c=m.timerType;if("interval"===c)a(u,v,p);else{if("timeout"!==c)throw new Error('The given type "'+c+'" is not supported');s(u,v,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}})}();`;
//# sourceMappingURL=/users/chrisguttandin/repositories/worker-timers/node_modules/tsconfig-holy-grail/src/worker/worker.js.map
//# sourceMappingURL=/build/es2015/worker/worker.js.map
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('worker-timers-broker')) :
typeof define === 'function' && define.amd ? define(['exports', 'worker-timers-broker'], factory) :
(factory((global.workerTimers = global.workerTimers || {}),global.workerTimersBroker));
(factory((global.workerTimers = {}),global.workerTimersBroker));
}(this, (function (exports,workerTimersBroker) { 'use strict';
// tslint:disable-next-line:max-line-length
// tslint:disable-next-line:max-line-length
var worker = "!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 \"'+t+'\".');clearTimeout(r),e.delete(t)},i=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id \"'+e+'\".');clearTimeout(r),t.delete(e)},o=function(e,t){var r=void 0;if(\"performance\"in self){var i=performance.now();e-=Math.max(0,i-t),r=i}else r=Date.now();return{delay:e,expected:r+e}},n=function e(t,r,i,o){var n=\"performance\"in self?performance.now():Date.now();n>i?postMessage({id:null,method:\"call\",params:{timerId:r,timerType:o}}):t.set(r,setTimeout(e,i-n,t,r,i,o))},a=function(t,r,i){var a=void 0,s=o(t,i);t=s.delay,a=s.expected,e.set(r,setTimeout(n,t,e,r,a,\"interval\"))},s=function(e,r,i){var a=void 0,s=o(e,i);e=s.delay,a=s.expected,t.set(r,setTimeout(n,e,t,r,a,\"timeout\"))};addEventListener(\"message\",function(e){var t=e.data;try{if(\"clear\"===t.method){var o=t.id,n=t.params,d=n.timerId,l=n.timerType;if(\"interval\"===l)r(d),postMessage({error:null,id:o});else{if(\"timeout\"!==l)throw new Error('The given type \"'+l+'\" is not supported');i(d),postMessage({error:null,id:o})}}else{if(\"set\"!==t.method)throw new Error('The given method \"'+t.method+'\" is not supported');var m=t.params,u=m.delay,p=m.now,v=m.timerId,c=m.timerType;if(\"interval\"===c)a(u,v,p);else{if(\"timeout\"!==c)throw new Error('The given type \"'+c+'\" is not supported');s(u,v,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}})}();";

@@ -10,0 +9,0 @@

@@ -10,2 +10,2 @@ import { load } from 'worker-timers-broker';

export var setTimeout = workerTimers.setTimeout;
//# sourceMappingURL=/users/chrisguttandin/repositories/worker-timers/node_modules/tsconfig-holy-grail/src/module.js.map
//# sourceMappingURL=/build/es2015/module.js.map
// tslint:disable-next-line:max-line-length
// tslint:disable-next-line:max-line-length
export var worker = "!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 \"'+t+'\".');clearTimeout(r),e.delete(t)},i=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id \"'+e+'\".');clearTimeout(r),t.delete(e)},o=function(e,t){var r=void 0;if(\"performance\"in self){var i=performance.now();e-=Math.max(0,i-t),r=i}else r=Date.now();return{delay:e,expected:r+e}},n=function e(t,r,i,o){var n=\"performance\"in self?performance.now():Date.now();n>i?postMessage({id:null,method:\"call\",params:{timerId:r,timerType:o}}):t.set(r,setTimeout(e,i-n,t,r,i,o))},a=function(t,r,i){var a=void 0,s=o(t,i);t=s.delay,a=s.expected,e.set(r,setTimeout(n,t,e,r,a,\"interval\"))},s=function(e,r,i){var a=void 0,s=o(e,i);e=s.delay,a=s.expected,t.set(r,setTimeout(n,e,t,r,a,\"timeout\"))};addEventListener(\"message\",function(e){var t=e.data;try{if(\"clear\"===t.method){var o=t.id,n=t.params,d=n.timerId,l=n.timerType;if(\"interval\"===l)r(d),postMessage({error:null,id:o});else{if(\"timeout\"!==l)throw new Error('The given type \"'+l+'\" is not supported');i(d),postMessage({error:null,id:o})}}else{if(\"set\"!==t.method)throw new Error('The given method \"'+t.method+'\" is not supported');var m=t.params,u=m.delay,p=m.now,v=m.timerId,c=m.timerType;if(\"interval\"===c)a(u,v,p);else{if(\"timeout\"!==c)throw new Error('The given type \"'+c+'\" is not supported');s(u,v,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}})}();";
//# sourceMappingURL=/users/chrisguttandin/repositories/worker-timers/node_modules/tsconfig-holy-grail/src/worker/worker.js.map
//# sourceMappingURL=/build/es2015/worker/worker.js.map

@@ -12,35 +12,37 @@ {

"devDependencies": {
"babel-core": "^6.26.0",
"babel-plugin-external-helpers": "^6.22.0",
"babel-preset-es2015": "^6.18.0",
"chai": "^3.5.0",
"eslint-config-holy-grail": "^17.0.0",
"chai": "^4.1.2",
"eslint-config-holy-grail": "^20.0.0",
"greenkeeper-lockfile": "^1.8.1",
"grunt": "^1.0.1",
"grunt-cli": "^1.0.0",
"grunt-contrib-clean": "^1.0.0",
"grunt-contrib-uglify": "^3.0.0",
"grunt-karma": "^2.0.0",
"grunt-replace": "^1.0.1",
"grunt-sh": "^0.1.4",
"grunt-sh": "^0.2.0",
"grunt-tslint": "^5.0.0",
"gruntify-eslint": "^3.0.0",
"husky": "^0.13.1",
"karma": "^1.2.0",
"karma-chrome-launcher": "^2.0.0",
"gruntify-eslint": "^4.0.0",
"husky": "^0.14.3",
"karma": "^1.7.1",
"karma-chrome-launcher": "^2.2.0",
"karma-firefox-launcher": "^1.0.0",
"karma-mocha": "^1.1.0",
"karma-safari-launcher": "^1.0.0",
"karma-sauce-launcher": "^1.1.0",
"karma-sinon-chai": "^1.2.1",
"karma-webpack": "^2.0.0",
"karma-sauce-launcher": "^1.2.0",
"karma-sinon-chai": "^1.3.2",
"karma-webpack": "^2.0.4",
"load-grunt-config": "^0.19.0",
"mocha": "^3.0.1",
"rollup": "^0.41.4",
"rollup-plugin-babel": "^2.6.1",
"rollup-plugin-node-resolve": "^3.0.0",
"sinon": "^2.0.0",
"sinon-chai": "^2.8.0",
"ts-loader": "^2.0.0",
"tsconfig-holy-grail": "^2.1.0",
"tslint-config-holy-grail": "^7.0.0",
"typescript": "^2.0.7",
"webpack": "^2.2.0"
"mocha": "^3.5.0",
"rollup": "^0.49.2",
"rollup-plugin-babel": "^3.0.2",
"sinon": "^3.2.1",
"sinon-chai": "^2.13.0",
"ts-loader": "^2.3.4",
"tsconfig-holy-grail": "^2.2.27",
"tslint": "^5.7.0",
"tslint-config-holy-grail": "^11.0.1",
"typescript": "^2.5.2",
"webpack": "^3.5.5"
},

@@ -73,7 +75,7 @@ "files": [

"precommit": "grunt lint",
"prepublish": "grunt build",
"prepublishOnly": "grunt build",
"test": "grunt lint && grunt test"
},
"types": "build/es2015/module.d.ts",
"version": "4.0.5"
"version": "4.0.6"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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