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

nanotiming

Package Overview
Dependencies
Maintainers
23
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanotiming - npm Package Compare versions

Comparing version 6.1.3 to 6.1.4

lib/on-idle.js

3

index.js

@@ -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

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