@erickmerchant/checkup
Advanced tools
Comparing version 12.1.0 to 12.1.1
{ | ||
"name": "@erickmerchant/checkup", | ||
"version": "12.1.0", | ||
"version": "12.1.1", | ||
"description": "Check multiple projects for various things.", | ||
@@ -21,3 +21,3 @@ "bin": { | ||
"builtin-modules": "^3.1.0", | ||
"execa": "^2.0.3", | ||
"execa": "^2.0.4", | ||
"globby": "^10.0.1", | ||
@@ -30,5 +30,6 @@ "kleur": "^3.0.3", | ||
"devDependencies": { | ||
"@erickmerchant/lint": "^3.1.1", | ||
"eslint": "^6.1.0", | ||
"proxyquire": "^2.1.1", | ||
"@erickmerchant/lint": "^3.1.2", | ||
"babel-eslint": "^10.0.3", | ||
"eslint": "^6.4.0", | ||
"proxyquire": "^2.1.3", | ||
"tape": "^4.11.0" | ||
@@ -35,0 +36,0 @@ }, |
@@ -20,7 +20,11 @@ const fs = require('fs') | ||
for (const type of Object.keys(report.metadata.vulnerabilities)) { | ||
const count = report.metadata.vulnerabilities[type] | ||
if (count > 0) { | ||
results.push(`${count} ${type} ${count > 1 ? 'vulnerabilities' : 'vulnerability'}`) | ||
if (report.metadata) { | ||
for (const type of Object.keys(report.metadata.vulnerabilities)) { | ||
const count = report.metadata.vulnerabilities[type] | ||
if (count > 0) { | ||
results.push(`${count} ${type} ${count > 1 ? 'vulnerabilities' : 'vulnerability'}`) | ||
} | ||
} | ||
} else { | ||
console.error(report) | ||
} | ||
@@ -27,0 +31,0 @@ |
20916
668
5
Updatedexeca@^2.0.4