nanotiming
Advanced tools
Comparing version 6.1.3 to 6.1.4
@@ -1,4 +0,5 @@ | ||
var onIdle = require('on-idle') | ||
var assert = require('assert') | ||
var onIdle = require('./lib/on-idle') | ||
var perf | ||
@@ -5,0 +6,0 @@ var disabled = true |
{ | ||
"name": "nanotiming", | ||
"description": "Small timing library", | ||
"repository": "yoshuawuyts/nanotiming", | ||
"version": "6.1.3", | ||
"repository": "choojs/nanotiming", | ||
"version": "6.1.4", | ||
"scripts": { | ||
@@ -12,5 +12,3 @@ "deps": "dependency-check . && dependency-check . --extra --no-dev", | ||
}, | ||
"dependencies": { | ||
"on-idle": "^3.0.1" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -17,0 +15,0 @@ "dependency-check": "^2.8.0", |
@@ -12,7 +12,9 @@ # nanotiming [![stability][0]][1] | ||
var loopTiming = nanotiming('my-timing.my-loop') | ||
var timing = nanotiming('my-loop') // Start profiling | ||
var i = 1000 | ||
while (--i) console.log(i) | ||
loopTiming() | ||
timing() // Stop profiling | ||
// Inspect timings when we have spare time available | ||
@@ -64,6 +66,6 @@ window.requestIdleCallback(function () { | ||
[3]: https://npmjs.org/package/nanotiming | ||
[4]: https://img.shields.io/travis/yoshuawuyts/nanotiming/master.svg?style=flat-square | ||
[5]: https://travis-ci.org/yoshuawuyts/nanotiming | ||
[6]: https://img.shields.io/codecov/c/github/yoshuawuyts/nanotiming/master.svg?style=flat-square | ||
[7]: https://codecov.io/github/yoshuawuyts/nanotiming | ||
[4]: https://img.shields.io/travis/choojs/nanotiming/master.svg?style=flat-square | ||
[5]: https://travis-ci.org/choojs/nanotiming | ||
[6]: https://img.shields.io/codecov/c/github/choojs/nanotiming/master.svg?style=flat-square | ||
[7]: https://codecov.io/github/choojs/nanotiming | ||
[8]: http://img.shields.io/npm/dm/nanotiming.svg?style=flat-square | ||
@@ -70,0 +72,0 @@ [9]: https://npmjs.org/package/nanotiming |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
6271
0
7
58
73
- Removedon-idle@^3.0.1
- Removednanoassert@1.1.0(transitive)
- Removedon-idle@3.1.4(transitive)