better-npm-audit
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -11,3 +11,3 @@ #!/usr/bin/env node | ||
const AUDIT_COMMAND = 'npm audit'; | ||
const SPLIT_STRING = 'https://nodesecurity.io/advisories/'; | ||
const SPLIT_REGEX = /(https:\/\/(nodesecurity.io|npmjs.com)\/advisories\/)/; | ||
@@ -33,3 +33,3 @@ let exceptionIds = []; | ||
audit.stdout.on('data', data => { | ||
const ids = data.split(SPLIT_STRING).map(str => str.substring(0, 4).trim()); | ||
const ids = data.split(SPLIT_REGEX).map(str => str.substring(0, 4).trim()); | ||
@@ -36,0 +36,0 @@ const numberIds = ids.map(id => { |
{ | ||
"name": "better-npm-audit", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"author": "Jee Mok <jee.ict@hotmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Better npm audit", |
6837
5