dependency-check
Advanced tools
Comparing version 4.0.1 to 4.1.0
19
cli.js
@@ -5,4 +5,7 @@ #!/usr/bin/env node | ||
if (process.version.match(/^v(\d+)\./)[1] < 6) { | ||
console.error('dependency-check: Node 6 or greater is required. `dependency-check` did not run.') | ||
const requiredNodeEngineMinimum = parseInt(require('./package.json').engines.node.match(/^>=(\d+)\./)[1], 10) | ||
const currentNodeEngine = parseInt(process.version.match(/^v(\d+)\./)[1], 10) | ||
if (currentNodeEngine < requiredNodeEngineMinimum) { | ||
console.error('dependency-check: Node ' + requiredNodeEngineMinimum + ' or greater is required. `dependency-check` did not run.') | ||
process.exit(0) | ||
@@ -103,7 +106,11 @@ } | ||
if (runAllTests || args.missing) { | ||
const missing = check.missing(pkg, deps, Object.assign({}, options, { | ||
excludeDev: false, | ||
excludePeer: false | ||
})) | ||
const optionsForMissingCheck = runAllTests | ||
? Object.assign({}, options, { | ||
excludeDev: false, | ||
excludePeer: false | ||
}) | ||
: options | ||
const missing = check.missing(pkg, deps, optionsForMissingCheck) | ||
failed += missing.length | ||
@@ -110,0 +117,0 @@ |
{ | ||
"name": "dependency-check", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "checks which modules you have used in your code and then makes sure they are listed as dependencies in your package.json", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
23056
397