diff options
Diffstat (limited to 'node_modules/async/doWhilst.js')
-rw-r--r-- | node_modules/async/doWhilst.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/node_modules/async/doWhilst.js b/node_modules/async/doWhilst.js index a683bb6ec..088b2cf0e 100644 --- a/node_modules/async/doWhilst.js +++ b/node_modules/async/doWhilst.js @@ -9,9 +9,9 @@ var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); -var _rest = require('lodash/rest'); +var _baseRest = require('lodash/_baseRest'); -var _rest2 = _interopRequireDefault(_rest); +var _baseRest2 = _interopRequireDefault(_baseRest); var _onlyOnce = require('./internal/onlyOnce'); @@ -35,8 +35,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de * passes. The function is passed a `callback(err)`, which must be called once * it has completed with an optional `err` argument. Invoked with (callback). * @param {Function} test - synchronous truth test to perform after each - * execution of `iteratee`. Invoked with Invoked with the non-error callback - * results of `iteratee`. + * execution of `iteratee`. Invoked with the non-error callback results of + * `iteratee`. * @param {Function} [callback] - A callback which is called after the test * function has failed and repeated execution of `iteratee` has stopped. * `callback` will be passed an error and any arguments passed to the final @@ -44,7 +44,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de */ function doWhilst(iteratee, test, callback) { callback = (0, _onlyOnce2.default)(callback || _noop2.default); - var next = (0, _rest2.default)(function (err, args) { + var next = (0, _baseRest2.default)(function (err, args) { if (err) return callback(err); if (test.apply(this, args)) return iteratee(next); callback.apply(null, [null].concat(args)); |