Comparing version 1.0.2 to 1.1.0
{ | ||
"name": "this", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Traverses up the directory tree and returns the first module found", | ||
@@ -34,8 +34,8 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"ava": "^0.19.1", | ||
"coveralls": "^2.13.1", | ||
"ava": "^0.25.0", | ||
"coveralls": "^3.0.0", | ||
"eslint-config-xo-lukechilds": "^1.0.0", | ||
"nyc": "^10.3.2", | ||
"xo": "^0.19.0" | ||
"nyc": "^11.0.3", | ||
"xo": "^0.20.1" | ||
} | ||
} |
@@ -5,6 +5,4 @@ 'use strict'; | ||
try { | ||
module.exports = require(pkgDir.sync()); | ||
} catch (err) { | ||
module.exports = undefined; | ||
} | ||
const packageDir = pkgDir.sync(); | ||
module.exports = packageDir === null ? undefined : require(packageDir); |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
11
32
4422
4