Skip to content

Commit

Permalink
[dist] Update dependency async to v3 (#332)
Browse files Browse the repository at this point in the history
* [dist] Update dependency async to v3

* fix(async): support for  async v3

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Matt Hamann <mhamann@rownd.io>
  • Loading branch information
3 people committed Apr 10, 2022
1 parent f1ddb1b commit 26c768c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/nconf/provider.js
Expand Up @@ -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++;
Expand Down Expand Up @@ -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++;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -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"
Expand Down

0 comments on commit 26c768c

Please sign in to comment.