@beuluis/hook-cli
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -62,3 +62,3 @@ "use strict"; | ||
}; | ||
const totalVulnerabilities = (obj) => Object.values(obj).reduce((a, b) => a + b); | ||
const totalVulnerabilities = (obj) => obj.info + obj.low + obj.moderate + obj.high + obj.critical; // be specific because the obj could have other stuff in it | ||
module.exports = (0, commandModule_helper_1.registerCommandModule)({ | ||
@@ -65,0 +65,0 @@ command: 'checkForVulnerabilities', |
{ | ||
"name": "@beuluis/hook-cli", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A small hook cli that can be used with for example husky", | ||
@@ -17,3 +17,3 @@ "bin": { | ||
"scripts": { | ||
"prepublishOnly": "npm run build", | ||
"prepack": "npm run build", | ||
"build": "tsc --build", | ||
@@ -20,0 +20,0 @@ "hook-cli": "ts-node src/index.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
50949