Comparing version 1.0.2 to 1.0.3
@@ -9,3 +9,3 @@ var mutexify = require('mutexify') | ||
module.exports = benchmark | ||
module.exports = global.__NANOBENCH__ ? require(global.__NANOBENCH__) : benchmark | ||
@@ -12,0 +12,0 @@ benchmark.only = function (name, fn) { |
{ | ||
"name": "nanobench", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Simple benchmarking tool with TAP-like output that is easy to parse", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
#!/usr/bin/env node | ||
var bench = require('./') | ||
var path = require('path') | ||
var fs = require('fs') | ||
var src = [] | ||
for (var i = 2; i < process.argv.length; i++) { | ||
src.push(fs.readFileSync(path.join(process.cwd(), process.argv[i]), 'utf-8')) | ||
} | ||
global.__NANOBENCH__ = require.resolve('./') | ||
eval(src.join('\n')) // eslint-disable-line | ||
for (var i = 2; i < process.argv.length; i++) require(path.join(process.cwd(), process.argv[i])) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
6215
0
93
2