worker-timers-worker
Advanced tools
Comparing version 1.0.4 to 2.0.0
@@ -1,1 +0,1 @@ | ||
!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?postMessage({id:c,type:e}):b.set(c,setTimeout(a,d-f,b,c,d,e))};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,j)):"timeout"===j&&b.set(h,setTimeout(c,g,b,h,o,j))}})}(); | ||
!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?postMessage({id:c,type:e}):b.set(c,setTimeout(a,d-f,b,c,d,e))};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?void 0!==(k=a.get(h))&&(clearTimeout(k),a.delete(h)):"timeout"===j&&void 0!==(k=b.get(h))&&(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,j)):"timeout"===j&&b.set(h,setTimeout(c,g,b,h,o,j))}})}(); |
@@ -10,3 +10,3 @@ { | ||
"chai": "^3.5.0", | ||
"eslint-config-holy-grail": "^15.0.0", | ||
"eslint-config-holy-grail": "^17.0.0", | ||
"grunt": "^1.0.1", | ||
@@ -18,3 +18,3 @@ "grunt-cli": "^1.2.0", | ||
"grunt-sh": "^0.1.4", | ||
"grunt-tslint": "^4.0.0", | ||
"grunt-tslint": "^5.0.0", | ||
"gruntify-eslint": "^3.1.0", | ||
@@ -34,6 +34,6 @@ "husky": "^0.13.1", | ||
"rollup-plugin-babel": "^2.6.1", | ||
"sinon": "^1.17.6", | ||
"sinon": "^2.0.0", | ||
"sinon-chai": "^2.8.0", | ||
"ts-loader": "^2.0.0", | ||
"tslint-config-holy-grail": "^5.0.0", | ||
"tslint-config-holy-grail": "^7.0.0", | ||
"typescript": "^2.0.7", | ||
@@ -48,5 +48,5 @@ "webpack": "^2.2.0" | ||
"homepage": "https://github.com/chrisguttandin/worker-timers-worker", | ||
"jsnext:main": "build/es2015/module.js", | ||
"license": "MIT", | ||
"main": "build/es5/bundle.js", | ||
"module": "build/es2015/module.js", | ||
"name": "worker-timers-worker", | ||
@@ -63,3 +63,3 @@ "repository": { | ||
"types": "build/es2015/module.d.ts", | ||
"version": "1.0.4" | ||
"version": "2.0.0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12793