Comparing version 1.6.1-alpha2 to 1.6.1-alpha3
@@ -46,3 +46,3 @@ var protect = module.exports = { | ||
var ignoreRule = {}; | ||
ignoreRule[vuln.from.slice(1).join(' > ')] = { | ||
ignoreRule[stripVersions(vuln.from.slice(1)).join(' > ')] = { | ||
reason: res.meta.reason, | ||
@@ -414,3 +414,3 @@ expires: new Date(Date.now() + (oneDay * days)).toJSON(), | ||
}; | ||
rule[vuln.from.slice(1).join(' > ')] = { | ||
rule[stripVersions(vuln.from.slice(1)).join(' > ')] = { | ||
patched: now.toJSON(), | ||
@@ -548,2 +548,8 @@ }; | ||
function stripVersions(packages) { | ||
return packages.map(function (pkg) { | ||
return moduleToObject(pkg).name; | ||
}); | ||
} | ||
function log(tasks) { | ||
@@ -550,0 +556,0 @@ return new Promise(function (resolve) { |
@@ -5,3 +5,3 @@ { | ||
"main": "lib/index.js", | ||
"version": "1.6.1-alpha2", | ||
"version": "1.6.1-alpha3", | ||
"directories": { | ||
@@ -8,0 +8,0 @@ "test": "test" |
Sorry, the diff of this file is not supported yet
3625250
3908