Skip to content

Commit 4736c82

Browse files
Toby Sullivancaub
Toby Sullivan
authored andcommitted
Upgrade async to fix vulnerabilities
Upgrade async to 0.9.2 Upgrade async to 1.0.0 Upgrade async to 1.1.0 Upgrade async to 1.2.0 Upgrade async to 1.3.0 Upgrade async to 1.4.0 Upgrade async to 1.5.0 Upgrade async to 1.5.2 Upgrade async to 2.0.0 Import specific async modules Upgrade async to 2.1.5 Upgrade async to 2.2.0 Upgrade async to 2.3.0 Upgrade async to 2.4.1 Upgrade async to 2.5.0 Upgrade async to 2.6.1 Upgrade async to 2.6.2 Upgrade async to 2.6.3 Upgrade async to 3.0.0 Upgrade async to 3.1.1 Upgrade async to 3.2.3
1 parent 85502f5 commit 4736c82

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

lib/prompt.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
var events = require('events'),
99
readline = require('readline'),
10-
async = require('async'),
10+
eachSeries = require('async/eachSeries'),
11+
rejectSeries = require('async/rejectSeries'),
1112
read = require('read'),
1213
validate = require('revalidator').validate,
1314
winston = require('winston'),
@@ -317,7 +318,7 @@ prompt._get = function (schema, callback) {
317318
//
318319
// Now, iterate and assemble the result.
319320
//
320-
async.forEachSeries(iterator, function (branch, next) {
321+
eachSeries(iterator, function (branch, next) {
321322
get(branch, function assembler(err, line) {
322323
if (err) {
323324
return next(err);
@@ -409,11 +410,11 @@ prompt.confirm = function (/* msg, options, callback */) {
409410
}
410411

411412
prompt.get([options], function (err, result) {
412-
next(err ? false : yes.test(result[options.name]));
413+
next(null, err ? false : yes.test(result[options.name]));
413414
});
414415
}
415416

416-
async.rejectSeries(vars, confirm, function(result) {
417+
rejectSeries(vars, confirm, function(err, result) {
417418
callback(null, result.length===0);
418419
});
419420
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"validation"
1919
],
2020
"dependencies": {
21-
"async": "~0.9.0",
2221
"@colors/colors": "1.5.0",
22+
"async": "3.2.3",
2323
"read": "1.0.x",
2424
"revalidator": "0.1.x",
2525
"winston": "2.x"
@@ -35,6 +35,6 @@
3535
},
3636
"license": "MIT",
3737
"engines": {
38-
"node": ">= 0.6.6"
38+
"node": ">= 6.0.0"
3939
}
4040
}

0 commit comments

Comments
 (0)