From 26c768c3b6f05b984d17a0047f29832a3236e5c7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 5 Jul 2021 00:31:11 -0400 Subject: [PATCH] [dist] Update dependency async to v3 (#332) * [dist] Update dependency async to v3 * fix(async): support for async v3 Co-authored-by: Renovate Bot Co-authored-by: Matt Hamann --- lib/nconf/provider.js | 8 ++++---- package.json | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/nconf/provider.js b/lib/nconf/provider.js index bb8d0491..9a62a70f 100644 --- a/lib/nconf/provider.js +++ b/lib/nconf/provider.js @@ -234,8 +234,8 @@ Provider.prototype.get = function (key, callback) { response, mergeObjs = []; - async.whilst(function () { - return typeof response === 'undefined' && current < names.length; + async.whilst(function (cb) { + cb(null, typeof response === 'undefined' && current < names.length); }, function (next) { var store = self.stores[names[current]]; current++; @@ -312,8 +312,8 @@ Provider.prototype.any = function (keys, callback) { result, self = this; - async.whilst(function() { - return !result && keyIndex < keys.length; + async.whilst(function(cb) { + cb(null, !result && keyIndex < keys.length); }, function(next) { var key = keys[keyIndex]; keyIndex++; diff --git a/package.json b/package.json index afbe4074..557c34ae 100644 --- a/package.json +++ b/package.json @@ -19,14 +19,14 @@ "plugabble" ], "dependencies": { - "async": "^1.4.0", + "async": "^3.0.0", "ini": "^2.0.0", "secure-keys": "^1.0.0", "yargs": "^16.1.1" }, "devDependencies": { "coveralls": "^3.1.0", - "eslint": "^4.9.0", + "eslint": "^7.0.0", "istanbul": "^0.4.5", "nconf-yaml": "^1.0.2", "vows": "^0.8.3"