🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

dependency-check

Package Overview
Dependencies
Maintainers
3
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependency-check - npm Package Compare versions

Comparing version

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",