nanotiming
Advanced tools
Comparing version 7.3.0 to 7.3.1
var nanotiming = require('./') | ||
var performance = require('perf_hooks').performance | ||
var nanot = nanotiming('my-loop') // Start profiling | ||
try { | ||
var hooks = require('perf_hooks') | ||
var nanot = nanotiming('my-loop') // Start profiling | ||
} catch (e) { | ||
console.log('perf_hooks not available, exiting') | ||
process.exit(1) | ||
} | ||
var performance = hooks.performance | ||
@@ -6,0 +12,0 @@ var i = 10 |
@@ -5,5 +5,8 @@ { | ||
"repository": "choojs/nanotiming", | ||
"version": "7.3.0", | ||
"version": "7.3.1", | ||
"main": "index.js", | ||
"browser": "browser.js", | ||
"browser": { | ||
"./index.js": "./browser.js", | ||
"assert": "nanoassert" | ||
}, | ||
"scripts": { | ||
@@ -15,2 +18,3 @@ "start": "node .", | ||
"dependencies": { | ||
"nanoassert": "^1.1.0", | ||
"nanoscheduler": "^1.0.2" | ||
@@ -17,0 +21,0 @@ }, |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7709
91
2
1
+ Addednanoassert@^1.1.0