nanotiming
Advanced tools
Comparing version 7.0.0 to 7.1.0
@@ -0,5 +1,4 @@ | ||
var scheduler = require('nanoscheduler')() | ||
var assert = require('assert') | ||
var onIdle = require('./lib/on-idle') | ||
var perf | ||
@@ -27,3 +26,3 @@ var disabled = true | ||
onIdle(function () { | ||
scheduler.push(function () { | ||
var err = null | ||
@@ -46,3 +45,3 @@ try { | ||
if (cb) { | ||
onIdle(function () { | ||
scheduler.push(function () { | ||
cb(new Error('nanotiming: performance API unavailable')) | ||
@@ -49,0 +48,0 @@ }) |
@@ -5,3 +5,3 @@ { | ||
"repository": "choojs/nanotiming", | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"scripts": { | ||
@@ -13,3 +13,5 @@ "deps": "dependency-check . && dependency-check . --extra --no-dev", | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"nanoscheduler": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
@@ -16,0 +18,0 @@ "dependency-check": "^2.8.0", |
5622
1
5
39
+ Addednanoscheduler@^1.0.2
+ Addednanoassert@1.1.0(transitive)
+ Addednanoscheduler@1.0.3(transitive)