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

nanotiming

Package Overview
Dependencies
Maintainers
1
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 5.1.0 to 5.2.0

6

index.js
var assert = require('assert')
var perf = window.performance
var hasPerf = typeof window !== 'undefined' && perf && perf.mark
var perf = typeof window !== 'undefined' && window.performance
var hasPerf = perf && perf.mark

@@ -28,3 +28,3 @@ module.exports = nanotiming

var measure = perf.getEntriesByName(measureName)[0]
cb(measure)
cb(measure, name)
}

@@ -31,0 +31,0 @@ })

@@ -5,3 +5,3 @@ {

"repository": "yoshuawuyts/nanotiming",
"version": "5.1.0",
"version": "5.2.0",
"scripts": {

@@ -8,0 +8,0 @@ "deps": "dependency-check . && dependency-check . --extra --no-dev",

@@ -40,3 +40,3 @@ # nanotiming [![stability][0]][1]

### `endTiming([cb(timing)])`
### `endTiming([cb(timing, name)])`
Close the timing. Measuring the timing is done inside a `requestIdleCallback()`

@@ -43,0 +43,0 @@ tick, so it might not be available immediately. If a callback is passed it will

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