Comparing version 1.6.1-alpha6 to 1.6.1-alpha7
@@ -176,7 +176,9 @@ module.exports = wizard; | ||
if (task === 'patch' && answer.vuln.grouped) { | ||
var vuln = answer.vuln; | ||
if (task === 'patch' && vuln.grouped && vuln.grouped.upgrades) { | ||
// ignore the first as it's the same one as this particular answer | ||
var additionalPatches = answer.vuln.grouped.upgrades.slice(1); | ||
var additionalPatches = vuln.grouped.upgrades.slice(1); | ||
additionalPatches.forEach(function (from) { | ||
var copy = _.cloneDeep(answer.vuln); | ||
var copy = _.cloneDeep(vuln); | ||
copy.from = from; | ||
@@ -191,3 +193,3 @@ tasks.patch.push(copy); | ||
} else { | ||
tasks[task].push(answer.vuln); | ||
tasks[task].push(vuln); | ||
} | ||
@@ -194,0 +196,0 @@ }); |
@@ -5,3 +5,3 @@ { | ||
"main": "lib/index.js", | ||
"version": "1.6.1-alpha6", | ||
"version": "1.6.1-alpha7", | ||
"directories": { | ||
@@ -8,0 +8,0 @@ "test": "test" |
Sorry, the diff of this file is not supported yet
3679709
3966