diff options
author | --global <aearly@fluid.com> | 2016-01-13 02:16:22 -0800 |
---|---|---|
committer | --global <aearly@fluid.com> | 2016-01-13 02:16:22 -0800 |
commit | 9f5a7d04f5c9aa05fabe9f94c393c536e6561bec (patch) | |
tree | 28921a10367c7267b9d3b16dd0a8443d62a60f1a | |
parent | f694f0987f7d3d95569eaf1de6654c30aa30618b (diff) | |
download | async-9f5a7d04f5c9aa05fabe9f94c393c536e6561bec.tar.gz |
update locations of lodash methods
56 files changed, 218 insertions, 319 deletions
diff --git a/build/async-bundle.js b/build/async-bundle.js index d6b8c79..84513d7 100644 --- a/build/async-bundle.js +++ b/build/async-bundle.js @@ -55,107 +55,6 @@ return func.apply(thisArg, args); } - /** - * Checks if `value` is a global object. - * - * @private - * @param {*} value The value to check. - * @returns {null|Object} Returns `value` if it's a global object, else `null`. - */ - function checkGlobal(value) { - return (value && value.Object === Object) ? value : null; - } - - /** Used to determine if values are of the language type `Object`. */ - var objectTypes = { - 'function': true, - 'object': true - }; - - /** Detect free variable `exports`. */ - var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null; - - /** Detect free variable `module`. */ - var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null; - - /** Detect free variable `global` from Node.js. */ - var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global); - - /** Detect free variable `self`. */ - var freeSelf = checkGlobal(objectTypes[typeof self] && self); - - /** Detect free variable `window`. */ - var freeWindow = checkGlobal(objectTypes[typeof window] && window); - - /** Detect `this` as the global object. */ - var thisGlobal = checkGlobal(objectTypes[typeof this] && this); - - /** - * Used as a reference to the global object. - * - * The `this` value is used if it's the global object to avoid Greasemonkey's - * restricted `window` object, otherwise the `window` object is used. - */ - var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')(); - - /** - * Used by `trimmedStartIndex` and `trimmedEndIndex` to determine if a - * character code is whitespace. - * - * @private - * @param {number} charCode The character code to inspect. - * @returns {boolean} Returns `true` if `charCode` is whitespace, else `false`. - */ - function isSpace(charCode) { - return ((charCode <= 160 && (charCode >= 9 && charCode <= 13) || charCode == 32 || charCode == 160) || charCode == 5760 || charCode == 6158 || - (charCode >= 8192 && (charCode <= 8202 || charCode == 8232 || charCode == 8233 || charCode == 8239 || charCode == 8287 || charCode == 12288 || charCode == 65279))); - } - - /** - * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace - * character of `string`. - * - * @private - * @param {string} string The string to inspect. - * @returns {number} Returns the index of the last non-whitespace character. - */ - function trimmedEndIndex(string) { - var index = string.length; - - while (index-- && isSpace(string.charCodeAt(index))) {} - return index; - } - - /** - * Used by `_.trim` and `_.trimStart` to get the index of the first non-whitespace - * character of `string`. - * - * @private - * @param {string} string The string to inspect. - * @returns {number} Returns the index of the first non-whitespace character. - */ - function trimmedStartIndex(string) { - var index = -1, - length = string.length; - - while (++index < length && isSpace(string.charCodeAt(index))) {} - return index; - } - - /** - * The base implementation of `_.trim` without support trimming non-whitespace - * characters. - * - * @private - * @param {string} string The string to trim. - * @returns {string} Returns the trimmed string. - */ - function baseTrim(string) { - return string - ? string.slice(trimmedStartIndex(string), trimmedEndIndex(string) + 1) - : string; - } - var funcTag = '[object Function]'; var genTag = '[object GeneratorFunction]'; /** Used for built-in method references. */ @@ -191,94 +90,12 @@ return tag == funcTag || tag == genTag; } - /** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @type Function - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ - var isArray = Array.isArray; - - /** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ - function isObjectLike(value) { - return !!value && typeof value == 'object'; - } - - /** `Object#toString` result references. */ - var stringTag = '[object String]'; - - /** Used for built-in method references. */ - var objectProto$3 = Object.prototype; - - /** - * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) - * of values. - */ - var objectToString$1 = objectProto$3.toString; - - /** - * Checks if `value` is classified as a `String` primitive or object. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isString('abc'); - * // => true - * - * _.isString(1); - * // => false - */ - function isString(value) { - return typeof value == 'string' || - (!isArray(value) && isObjectLike(value) && objectToString$1.call(value) == stringTag); - } - /** Used as references for various `Number` constants. */ var NAN = 0 / 0; + /** Used to match leading and trailing whitespace. */ + var reTrim = /^\s+|\s+$/g; + /** Used to detect bad signed hexadecimal string values. */ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; @@ -288,8 +105,8 @@ /** Used to detect octal string values. */ var reIsOctal = /^0o[0-7]+$/i; - /* Built-in method references for those with the same name as other `lodash` methods. */ - var nativeParseInt = root.parseInt; + /** Built-in method references without a dependency on `root`. */ + var freeParseInt = parseInt; /** * Converts `value` to a number. @@ -314,20 +131,17 @@ * // => 3 */ function toNumber(value) { - if (!value) { - return value === 0 ? value : +value; - } if (isObject(value)) { var other = isFunction(value.valueOf) ? value.valueOf() : value; value = isObject(other) ? (other + '') : other; } - if (typeof value == 'number' || !isString(value)) { - return +value; + if (typeof value != 'string') { + return value === 0 ? value : +value; } - value = baseTrim(value); + value = value.replace(reTrim, ''); var isBinary = reIsBinary.test(value); return (isBinary || reIsOctal.test(value)) - ? nativeParseInt(value.slice(2), isBinary ? 2 : 8) + ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : (reIsBadHex.test(value) ? NAN : +value); } @@ -450,7 +264,7 @@ } /** - * A specialized version of `_.map` for arrays without support for callback + * A specialized version of `_.map` for arrays without support for iteratee * shorthands. * * @private @@ -561,7 +375,7 @@ * * @static * @memberOf _ - * @category Utility + * @category Util * @example * * var object = { 'user': 'fred' }; @@ -688,7 +502,7 @@ } /** - * The base implementation of `_.times` without support for callback shorthands + * The base implementation of `_.times` without support for iteratee shorthands * or max array length checks. * * @private @@ -707,6 +521,33 @@ } /** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ + function isObjectLike(value) { + return !!value && typeof value == 'object'; + } + + /** * This method is like `_.isArrayLike` except that it also checks if `value` * is an object. * @@ -775,6 +616,64 @@ } /** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @type Function + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ + var isArray = Array.isArray; + + /** `Object#toString` result references. */ + var stringTag = '[object String]'; + + /** Used for built-in method references. */ + var objectProto$3 = Object.prototype; + + /** + * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * of values. + */ + var objectToString$1 = objectProto$3.toString; + + /** + * Checks if `value` is classified as a `String` primitive or object. + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + * @example + * + * _.isString('abc'); + * // => true + * + * _.isString(1); + * // => false + */ + function isString(value) { + return typeof value == 'string' || + (!isArray(value) && isObjectLike(value) && objectToString$1.call(value) == stringTag); + } + + /** * Creates an array of index keys for `object` values of arrays, * `arguments` objects, and strings, otherwise `null` is returned. * @@ -1088,7 +987,7 @@ * * @static * @memberOf _ - * @category Utility + * @category Util * @param {*} value Any value. * @returns {*} Returns `value`. * @example @@ -1250,8 +1149,8 @@ var nativeCeil = Math.ceil; var nativeMax$2 = Math.max; /** - * The base implementation of `_.range` and `_.rangeRight` without support - * for non-number arguments. + * The base implementation of `_.range` and `_.rangeRight` which doesn't + * coerce arguments to numbers. * * @private * @param {number} start The start of the range. @@ -1441,7 +1340,7 @@ /** * A specialized version of `_.forEach` for arrays without support for - * callback shorthands. + * iteratee shorthands. * * @private * @param {Array} array The array to iterate over. @@ -1821,7 +1720,7 @@ /** * A specialized version of `_.every` for arrays without support for - * callback shorthands. + * iteratee shorthands. * * @private * @param {Array} array The array to iterate over. @@ -1879,7 +1778,7 @@ var baseFor = createBaseFor(); /** - * The base implementation of `_.forOwn` without support for callback shorthands. + * The base implementation of `_.forOwn` without support for iteratee shorthands. * * @private * @param {Object} object The object to iterate over. diff --git a/build/async-cjs.js b/build/async-cjs.js index 7c0daa6..09063d1 100644 --- a/build/async-cjs.js +++ b/build/async-cjs.js @@ -1,8 +1,8 @@ 'use strict'; -var rest = require('lodash/function/rest'); +var rest = require('lodash/rest'); rest = 'default' in rest ? rest['default'] : rest; -var isObject = require('lodash/lang/isObject'); +var isObject = require('lodash/isObject'); isObject = 'default' in isObject ? isObject['default'] : isObject; var arrayEach = require('lodash/internal/arrayEach'); arrayEach = 'default' in arrayEach ? arrayEach['default'] : arrayEach; @@ -10,19 +10,19 @@ var arrayEvery = require('lodash/internal/arrayEvery'); arrayEvery = 'default' in arrayEvery ? arrayEvery['default'] : arrayEvery; var baseHas = require('lodash/internal/baseHas'); baseHas = 'default' in baseHas ? baseHas['default'] : baseHas; -var forOwn = require('lodash/object/forOwn'); +var forOwn = require('lodash/forOwn'); forOwn = 'default' in forOwn ? forOwn['default'] : forOwn; -var indexOf = require('lodash/array/indexOf'); +var indexOf = require('lodash/indexOf'); indexOf = 'default' in indexOf ? indexOf['default'] : indexOf; -var isArray = require('lodash/lang/isArray'); +var isArray = require('lodash/isArray'); isArray = 'default' in isArray ? isArray['default'] : isArray; -var okeys = require('lodash/object/keys'); +var okeys = require('lodash/keys'); okeys = 'default' in okeys ? okeys['default'] : okeys; -var noop = require('lodash/utility/noop'); +var noop = require('lodash/noop'); noop = 'default' in noop ? noop['default'] : noop; -var once = require('lodash/function/once'); +var once = require('lodash/once'); once = 'default' in once ? once['default'] : once; -var identity = require('lodash/utility/identity'); +var identity = require('lodash/identity'); identity = 'default' in identity ? identity['default'] : identity; var arrayMap = require('lodash/internal/arrayMap'); arrayMap = 'default' in arrayMap ? arrayMap['default'] : arrayMap; @@ -30,7 +30,7 @@ var property = require('lodash/internal/baseProperty'); property = 'default' in property ? property['default'] : property; var range = require('lodash/internal/baseRange'); range = 'default' in range ? range['default'] : range; -var isArrayLike = require('lodash/lang/isArrayLike'); +var isArrayLike = require('lodash/isArrayLike'); isArrayLike = 'default' in isArrayLike ? isArrayLike['default'] : isArrayLike; function asyncify(func) { diff --git a/build/modules/apply.js b/build/modules/apply.js index a12b99c..17ebec2 100644 --- a/build/modules/apply.js +++ b/build/modules/apply.js @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _rest = require('lodash/function/rest'); +var _rest = require('lodash/rest'); var _rest2 = _interopRequireDefault(_rest); diff --git a/build/modules/asyncify.js b/build/modules/asyncify.js index 5e90ed5..6fa1ca0 100644 --- a/build/modules/asyncify.js +++ b/build/modules/asyncify.js @@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = asyncify; -var _isObject = require('lodash/lang/isObject'); +var _isObject = require('lodash/isObject'); var _isObject2 = _interopRequireDefault(_isObject); -var _rest = require('lodash/function/rest'); +var _rest = require('lodash/rest'); var _rest2 = _interopRequireDefault(_rest); diff --git a/build/modules/auto.js b/build/modules/auto.js index fda8904..37a3575 100644 --- a/build/modules/auto.js +++ b/build/modules/auto.js @@ -108,31 +108,31 @@ var _baseHas = require('lodash/internal/baseHas'); var _baseHas2 = _interopRequireDefault(_baseHas); -var _forOwn = require('lodash/object/forOwn'); +var _forOwn = require('lodash/forOwn'); var _forOwn2 = _interopRequireDefault(_forOwn); -var _indexOf = require('lodash/array/indexOf'); +var _indexOf = require('lodash/indexOf'); var _indexOf2 = _interopRequireDefault(_indexOf); -var _isArray = require('lodash/lang/isArray'); +var _isArray = require('lodash/isArray'); var _isArray2 = _interopRequireDefault(_isArray); -var _keys = require('lodash/object/keys'); +var _keys = require('lodash/keys'); var _keys2 = _interopRequireDefault(_keys); -var _noop = require('lodash/utility/noop'); +var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); -var _once = require('lodash/function/once'); +var _once = require('lodash/once'); var _once2 = _interopRequireDefault(_once); -var _rest = require('lodash/function/rest'); +var _rest = require('lodash/rest'); var _rest2 = _interopRequireDefault(_rest); diff --git a/build/modules/constant.js b/build/modules/constant.js index f305457..757cd6f 100644 --- a/build/modules/constant.js +++ b/build/modules/constant.js @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _rest = require('lodash/function/rest'); +var _rest = require('lodash/rest'); var _rest2 = _interopRequireDefault(_rest); diff --git a/build/modules/detect.js b/build/modules/detect.js index a4a2db9..ea3fc69 100644 --- a/build/modules/detect.js +++ b/build/modules/detect.js @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _identity = require('lodash/utility/identity'); +var _identity = require('lodash/identity'); var _identity2 = _interopRequireDefault(_identity); diff --git a/build/modules/detectLimit.js b/build/modules/detectLimit.js index d8a709c..105c569 100644 --- a/build/modules/detectLimit.js +++ b/build/modules/detectLimit.js @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _identity = require('lodash/utility/identity'); +var _identity = require('lodash/identity'); var _identity2 = _interopRequireDefault(_identity); diff --git a/build/modules/detectSeries.js b/build/modules/detectSeries.js index 0b59bd9..42b6890 100644 --- a/build/modules/detectSeries.js +++ b/build/modules/detectSeries.js @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _identity = require('lodash/utility/identity'); +var _identity = require('lodash/identity'); var _identity2 = _interopRequireDefault(_identity); diff --git a/build/modules/during.js b/build/modules/during.js index be5e641..9729ceb 100644 --- a/build/modules/during.js +++ b/build/modules/during.js @@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = during; -var _noop = require('lodash/utility/noop'); +var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); -var _rest = require('lodash/function/rest'); +var _rest = require('lodash/rest'); var _rest2 = _interopRequireDefault(_rest); diff --git a/build/modules/eachOf.js b/build/modules/eachOf.js index c27543a..31214fa 100644 --- a/build/modules/eachOf.js +++ b/build/modules/eachOf.js @@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = eachOf; -var _once = require('lodash/function/once'); +var _once = require('lodash/once'); var _once2 = _interopRequireDefault(_once); -var _noop = require('lodash/utility/noop'); +var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); diff --git a/build/modules/eachOfSeries.js b/build/modules/eachOfSeries.js index 56e2f14..50e2ab6 100644 --- a/build/modules/eachOfSeries.js +++ b/build/modules/eachOfSeries.js @@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = eachOfSeries; -var _once = require('lodash/function/once'); +var _once = require('lodash/once'); var _once2 = _interopRequireDefault(_once); -var _noop = require('lodash/utility/noop'); +var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); diff --git a/build/modules/ensureAsync.js b/build/modules/ensureAsync.js index 26a551d..8fdef97 100644 --- a/build/modules/ensureAsync.js +++ b/build/modules/ensureAsync.js @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = ensureAsync; -var _rest = require('lodash/function/rest'); +var _rest = require('lodash/rest'); var _rest2 = _interopRequireDefault(_rest); diff --git a/build/modules/forever.js b/build/modules/forever.js index 80ad54a..d6864f1 100644 --- a/build/modules/forever.js +++ b/build/modules/forever.js @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = forever; -var _noop = require('lodash/utility/noop'); +var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); diff --git a/build/modules/internal/applyEach.js b/build/modules/internal/applyEach.js index be8e3d8..a2534e0 100644 --- a/build/modules/internal/applyEach.js +++ b/build/modules/internal/applyEach.js @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = applyEach; -var _rest = require('lodash/function/rest'); +var _rest = require('lodash/rest'); var _rest2 = _interopRequireDefault(_rest); diff --git a/build/modules/internal/consoleFunc.js b/build/modules/internal/consoleFunc.js index 08c9f32..de591e1 100644 --- a/build/modules/internal/consoleFunc.js +++ b/build/modules/internal/consoleFunc.js @@ -9,7 +9,7 @@ var _arrayEach = require('lodash/internal/arrayEach'); var _arrayEach2 = _interopRequireDefault(_arrayEach); -var _rest = require('lodash/function/rest'); +var _rest = require('lodash/rest'); var _rest2 = _interopRequireDefault(_rest); diff --git a/build/modules/internal/eachOfLimit.js b/build/modules/internal/eachOfLimit.js index b2b851e..314b224 100644 --- a/build/modules/internal/eachOfLimit.js +++ b/build/modules/internal/eachOfLimit.js @@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = _eachOfLimit; -var _noop = require('lodash/utility/noop'); +var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); -var _once = require('lodash/function/once'); +var _once = require('lodash/once'); var _once2 = _interopRequireDefault(_once); diff --git a/build/modules/internal/keyIterator.js b/build/modules/internal/keyIterator.js index 2d60c89..3ed3ab1 100644 --- a/build/modules/internal/keyIterator.js +++ b/build/modules/internal/keyIterator.js @@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = keyIterator; -var _isArrayLike = require('lodash/lang/isArrayLike'); +var _isArrayLike = require('lodash/isArrayLike'); var _isArrayLike2 = _interopRequireDefault(_isArrayLike); -var _keys = require('lodash/object/keys'); +var _keys = require('lodash/keys'); var _keys2 = _interopRequireDefault(_keys); diff --git a/build/modules/internal/map.js b/build/modules/internal/map.js index bfc5bf5..ac47206 100644 --- a/build/modules/internal/map.js +++ b/build/modules/internal/map.js @@ -5,15 +5,15 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = _asyncMap; -var _isArrayLike = require('lodash/lang/isArrayLike'); +var _isArrayLike = require('lodash/isArrayLike'); var _isArrayLike2 = _interopRequireDefault(_isArrayLike); -var _noop = require('lodash/utility/noop'); +var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); -var _once = require('lodash/function/once'); +var _once = require('lodash/once'); var _once2 = _interopRequireDefault(_once); diff --git a/build/modules/internal/parallel.js b/build/modules/internal/parallel.js index c9167ab..f04888c 100644 --- a/build/modules/internal/parallel.js +++ b/build/modules/internal/parallel.js @@ -5,15 +5,15 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = _parallel; -var _noop = require('lodash/utility/noop'); +var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); -var _isArrayLike = require('lodash/lang/isArrayLike'); +var _isArrayLike = require('lodash/isArrayLike'); var _isArrayLike2 = _interopRequireDefault(_isArrayLike); -var _rest = require('lodash/function/rest'); +var _rest = require('lodash/rest'); var _rest2 = _interopRequireDefault(_rest); diff --git a/build/modules/internal/queue.js b/build/modules/internal/queue.js index 643ee13..0c5c51b 100644 --- a/build/modules/internal/queue.js +++ b/build/modules/internal/queue.js @@ -13,11 +13,11 @@ var _arrayMap = require('lodash/internal/arrayMap'); var _arrayMap2 = _interopRequireDefault(_arrayMap); -var _isArray = require('lodash/lang/isArray'); +var _isArray = require('lodash/isArray'); var _isArray2 = _interopRequireDefault(_isArray); -var _noop = require('lodash/utility/noop'); +var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); diff --git a/build/modules/memoize.js b/build/modules/memoize.js index f3c4066..3436f42 100644 --- a/build/modules/memoize.js +++ b/build/modules/memoize.js @@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = memoize; -var _identity = require('lodash/utility/identity'); +var _identity = require('lodash/identity'); var _identity2 = _interopRequireDefault(_identity); -var _rest = require('lodash/function/rest'); +var _rest = require('lodash/rest'); var _rest2 = _interopRequireDefault(_rest); diff --git a/build/modules/priorityQueue.js b/build/modules/priorityQueue.js index e3ea771..c42751d 100644 --- a/build/modules/priorityQueue.js +++ b/build/modules/priorityQueue.js @@ -71,11 +71,11 @@ var _arrayEach = require('lodash/internal/arrayEach'); var _arrayEach2 = _interopRequireDefault(_arrayEach); -var _isArray = require('lodash/lang/isArray'); +var _isArray = require('lodash/isArray'); var _isArray2 = _interopRequireDefault(_isArray); -var _noop = require('lodash/utility/noop'); +var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); diff --git a/build/modules/seq.js b/build/modules/seq.js index 369f3f5..ee316c4 100644 --- a/build/modules/seq.js +++ b/build/modules/seq.js @@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = seq; -var _noop = require('lodash/utility/noop'); +var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); -var _reduce = require('./reduce'); +var _rest = require('lodash/rest'); -var _reduce2 = _interopRequireDefault(_reduce); +var _rest2 = _interopRequireDefault(_rest); -var _rest = require('lodash/function/rest'); +var _reduce = require('./reduce'); -var _rest2 = _interopRequireDefault(_rest); +var _reduce2 = _interopRequireDefault(_reduce); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } diff --git a/build/modules/some.js b/build/modules/some.js index 95b781c..624800f 100644 --- a/build/modules/some.js +++ b/build/modules/some.js @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _identity = require('lodash/utility/identity'); +var _identity = require('lodash/identity'); var _identity2 = _interopRequireDefault(_identity); diff --git a/build/modules/someLimit.js b/build/modules/someLimit.js index 1fbacd5..5d940bd 100644 --- a/build/modules/someLimit.js +++ b/build/modules/someLimit.js @@ -12,7 +12,7 @@ var _eachOfLimit = require('./eachOfLimit'); var _eachOfLimit2 = _interopRequireDefault(_eachOfLimit); -var _identity = require('lodash/utility/identity'); +var _identity = require('lodash/identity'); var _identity2 = _interopRequireDefault(_identity); diff --git a/build/modules/transform.js b/build/modules/transform.js index fe6c751..311cda3 100644 --- a/build/modules/transform.js +++ b/build/modules/transform.js @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = transform; -var _isArray = require('lodash/lang/isArray'); +var _isArray = require('lodash/isArray'); var _isArray2 = _interopRequireDefault(_isArray); diff --git a/build/modules/waterfall.js b/build/modules/waterfall.js index 35b3da9..af0f70d 100644 --- a/build/modules/waterfall.js +++ b/build/modules/waterfall.js @@ -27,19 +27,19 @@ exports.default = function (tasks, cb) { wrapIterator((0, _iterator2.default)(tasks))(); }; -var _isArray = require('lodash/lang/isArray'); +var _isArray = require('lodash/isArray'); var _isArray2 = _interopRequireDefault(_isArray); -var _noop = require('lodash/utility/noop'); +var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); -var _once = require('lodash/function/once'); +var _once = require('lodash/once'); var _once2 = _interopRequireDefault(_once); -var _rest = require('lodash/function/rest'); +var _rest = require('lodash/rest'); var _rest2 = _interopRequireDefault(_rest); diff --git a/build/modules/whilst.js b/build/modules/whilst.js index 938c647..10b14a0 100644 --- a/build/modules/whilst.js +++ b/build/modules/whilst.js @@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = whilst; -var _noop = require('lodash/utility/noop'); +var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); -var _rest = require('lodash/function/rest'); +var _rest = require('lodash/rest'); var _rest2 = _interopRequireDefault(_rest); diff --git a/lib/apply.js b/lib/apply.js index 1d62d75..76b5602 100644 --- a/lib/apply.js +++ b/lib/apply.js @@ -1,6 +1,6 @@ 'use strict'; -import rest from 'lodash/function/rest'; +import rest from 'lodash/rest'; export default rest(function(fn, args) { return rest(function(callArgs) { diff --git a/lib/asyncify.js b/lib/asyncify.js index 6f6cd57..f9f00e1 100644 --- a/lib/asyncify.js +++ b/lib/asyncify.js @@ -1,7 +1,7 @@ 'use strict'; -import isObject from 'lodash/lang/isObject'; -import rest from 'lodash/function/rest'; +import isObject from 'lodash/isObject'; +import rest from 'lodash/rest'; export default function asyncify(func) { return rest(function (args) { diff --git a/lib/auto.js b/lib/auto.js index 262e59b..2b3db6e 100644 --- a/lib/auto.js +++ b/lib/auto.js @@ -3,13 +3,13 @@ import arrayEach from 'lodash/internal/arrayEach'; import arrayEvery from 'lodash/internal/arrayEvery'; import baseHas from 'lodash/internal/baseHas'; -import forOwn from 'lodash/object/forOwn'; -import indexOf from 'lodash/array/indexOf'; -import isArray from 'lodash/lang/isArray'; -import okeys from 'lodash/object/keys'; -import noop from 'lodash/utility/noop'; -import once from 'lodash/function/once'; -import rest from 'lodash/function/rest'; +import forOwn from 'lodash/forOwn'; +import indexOf from 'lodash/indexOf'; +import isArray from 'lodash/isArray'; +import okeys from 'lodash/keys'; +import noop from 'lodash/noop'; +import once from 'lodash/once'; +import rest from 'lodash/rest'; import setImmediate from './internal/setImmediate'; diff --git a/lib/constant.js b/lib/constant.js index 1eff0cf..706507f 100644 --- a/lib/constant.js +++ b/lib/constant.js @@ -1,6 +1,6 @@ 'use strict'; -import rest from 'lodash/function/rest'; +import rest from 'lodash/rest'; export default rest(function(values) { var args = [null].concat(values); diff --git a/lib/detect.js b/lib/detect.js index 8cd7a8e..b2c4778 100644 --- a/lib/detect.js +++ b/lib/detect.js @@ -1,6 +1,6 @@ 'use strict'; -import identity from 'lodash/utility/identity'; +import identity from 'lodash/identity'; import createTester from './internal/createTester'; import eachOf from './eachOf'; diff --git a/lib/detectLimit.js b/lib/detectLimit.js index 74a2003..357786d 100644 --- a/lib/detectLimit.js +++ b/lib/detectLimit.js @@ -1,6 +1,6 @@ 'use strict'; -import identity from 'lodash/utility/identity'; +import identity from 'lodash/identity'; import createTester from './internal/createTester'; import eachOfLimit from './eachOfLimit'; diff --git a/lib/detectSeries.js b/lib/detectSeries.js index 717685e..325a500 100644 --- a/lib/detectSeries.js +++ b/lib/detectSeries.js @@ -1,6 +1,6 @@ 'use strict'; -import identity from 'lodash/utility/identity'; +import identity from 'lodash/identity'; import createTester from './internal/createTester'; import eachOfSeries from './eachOfSeries'; diff --git a/lib/during.js b/lib/during.js index cc75e31..6b7c4d4 100644 --- a/lib/during.js +++ b/lib/during.js @@ -1,7 +1,7 @@ 'use strict'; -import noop from 'lodash/utility/noop'; -import rest from 'lodash/function/rest'; +import noop from 'lodash/noop'; +import rest from 'lodash/rest'; export default function during(test, iterator, cb) { cb = cb || noop; diff --git a/lib/eachOf.js b/lib/eachOf.js index bad6700..c370bbb 100644 --- a/lib/eachOf.js +++ b/lib/eachOf.js @@ -1,7 +1,7 @@ 'use strict'; -import once from 'lodash/function/once'; -import noop from 'lodash/utility/noop'; +import once from 'lodash/once'; +import noop from 'lodash/noop'; import keyIterator from './internal/keyIterator'; import onlyOnce from './internal/onlyOnce'; diff --git a/lib/eachOfSeries.js b/lib/eachOfSeries.js index 8dd8eca..bcfa029 100644 --- a/lib/eachOfSeries.js +++ b/lib/eachOfSeries.js @@ -1,7 +1,7 @@ 'use strict'; -import once from 'lodash/function/once'; -import noop from 'lodash/utility/noop'; +import once from 'lodash/once'; +import noop from 'lodash/noop'; import keyIterator from './internal/keyIterator'; import onlyOnce from './internal/onlyOnce'; diff --git a/lib/ensureAsync.js b/lib/ensureAsync.js index ae5f131..4f4f762 100644 --- a/lib/ensureAsync.js +++ b/lib/ensureAsync.js @@ -1,6 +1,6 @@ 'use strict'; -import rest from 'lodash/function/rest'; +import rest from 'lodash/rest'; import setImmediate from './internal/setImmediate'; diff --git a/lib/forever.js b/lib/forever.js index 0ec395a..82d004a 100644 --- a/lib/forever.js +++ b/lib/forever.js @@ -1,6 +1,6 @@ 'use strict'; -import noop from 'lodash/utility/noop'; +import noop from 'lodash/noop'; import onlyOnce from './internal/onlyOnce'; import ensureAsync from './ensureAsync'; diff --git a/lib/internal/applyEach.js b/lib/internal/applyEach.js index bb18978..25bcce1 100644 --- a/lib/internal/applyEach.js +++ b/lib/internal/applyEach.js @@ -1,6 +1,6 @@ 'use strict'; -import rest from 'lodash/function/rest'; +import rest from 'lodash/rest'; export default function applyEach(eachfn) { return rest(function(fns, args) { diff --git a/lib/internal/consoleFunc.js b/lib/internal/consoleFunc.js index ea262ed..1ff702b 100644 --- a/lib/internal/consoleFunc.js +++ b/lib/internal/consoleFunc.js @@ -1,7 +1,7 @@ 'use strict'; import arrayEach from 'lodash/internal/arrayEach'; -import rest from 'lodash/function/rest'; +import rest from 'lodash/rest'; export default function consoleFunc(name) { return rest(function (fn, args) { diff --git a/lib/internal/eachOfLimit.js b/lib/internal/eachOfLimit.js index 0ad6a7e..be1eab8 100644 --- a/lib/internal/eachOfLimit.js +++ b/lib/internal/eachOfLimit.js @@ -1,7 +1,7 @@ 'use strict'; -import noop from 'lodash/utility/noop'; -import once from 'lodash/function/once'; +import noop from 'lodash/noop'; +import once from 'lodash/once'; import keyIterator from './keyIterator'; import onlyOnce from './onlyOnce'; diff --git a/lib/internal/keyIterator.js b/lib/internal/keyIterator.js index 4040c19..0e2b0c3 100644 --- a/lib/internal/keyIterator.js +++ b/lib/internal/keyIterator.js @@ -1,7 +1,7 @@ 'use strict'; -import isArrayLike from 'lodash/lang/isArrayLike'; -import keys from 'lodash/object/keys'; +import isArrayLike from 'lodash/isArrayLike'; +import keys from 'lodash/keys'; export default function keyIterator(coll) { var i = -1; diff --git a/lib/internal/map.js b/lib/internal/map.js index 3ae9d6c..a7c19ac 100644 --- a/lib/internal/map.js +++ b/lib/internal/map.js @@ -1,8 +1,8 @@ 'use strict'; -import isArrayLike from 'lodash/lang/isArrayLike'; -import noop from 'lodash/utility/noop'; -import once from 'lodash/function/once'; +import isArrayLike from 'lodash/isArrayLike'; +import noop from 'lodash/noop'; +import once from 'lodash/once'; export default function _asyncMap(eachfn, arr, iterator, callback) { callback = once(callback || noop); diff --git a/lib/internal/parallel.js b/lib/internal/parallel.js index d6c9258..52b0303 100644 --- a/lib/internal/parallel.js +++ b/lib/internal/parallel.js @@ -1,8 +1,8 @@ 'use strict'; -import noop from 'lodash/utility/noop'; -import isArrayLike from 'lodash/lang/isArrayLike'; -import rest from 'lodash/function/rest'; +import noop from 'lodash/noop'; +import isArrayLike from 'lodash/isArrayLike'; +import rest from 'lodash/rest'; export default function _parallel(eachfn, tasks, callback) { callback = callback || noop; diff --git a/lib/internal/queue.js b/lib/internal/queue.js index 7dce0e5..f6e665b 100644 --- a/lib/internal/queue.js +++ b/lib/internal/queue.js @@ -2,8 +2,8 @@ import arrayEach from 'lodash/internal/arrayEach'; import arrayMap from 'lodash/internal/arrayMap'; -import isArray from 'lodash/lang/isArray'; -import noop from 'lodash/utility/noop'; +import isArray from 'lodash/isArray'; +import noop from 'lodash/noop'; import property from 'lodash/internal/baseProperty'; import onlyOnce from './onlyOnce'; diff --git a/lib/memoize.js b/lib/memoize.js index 2dc8808..59c8ae3 100644 --- a/lib/memoize.js +++ b/lib/memoize.js @@ -1,7 +1,7 @@ 'use strict'; -import identity from 'lodash/utility/identity'; -import rest from 'lodash/function/rest'; +import identity from 'lodash/identity'; +import rest from 'lodash/rest'; import setImmediate from './internal/setImmediate'; diff --git a/lib/priorityQueue.js b/lib/priorityQueue.js index b9c1b53..6599c3e 100644 --- a/lib/priorityQueue.js +++ b/lib/priorityQueue.js @@ -1,8 +1,8 @@ 'use strict'; import arrayEach from 'lodash/internal/arrayEach'; -import isArray from 'lodash/lang/isArray'; -import noop from 'lodash/utility/noop'; +import isArray from 'lodash/isArray'; +import noop from 'lodash/noop'; import setImmediate from './setImmediate'; @@ -1,8 +1,8 @@ 'use strict'; -import noop from 'lodash/utility/noop'; +import noop from 'lodash/noop'; +import rest from 'lodash/rest'; import reduce from './reduce'; -import rest from 'lodash/function/rest'; export default function seq( /* functions... */ ) { var fns = arguments; diff --git a/lib/some.js b/lib/some.js index 6a0e178..23b884b 100644 --- a/lib/some.js +++ b/lib/some.js @@ -1,6 +1,6 @@ 'use strict'; -import identity from 'lodash/utility/identity'; +import identity from 'lodash/identity'; import createTester from './internal/createTester'; import eachOf from './eachOf'; diff --git a/lib/someLimit.js b/lib/someLimit.js index ac239cd..498a262 100644 --- a/lib/someLimit.js +++ b/lib/someLimit.js @@ -2,6 +2,6 @@ import createTester from './internal/createTester'; import eachOfLimit from './eachOfLimit'; -import identity from 'lodash/utility/identity'; +import identity from 'lodash/identity'; export default createTester(eachOfLimit, Boolean, identity); diff --git a/lib/transform.js b/lib/transform.js index 08d4f3d..3dddae8 100644 --- a/lib/transform.js +++ b/lib/transform.js @@ -1,6 +1,6 @@ 'use strict'; -import isArray from 'lodash/lang/isArray'; +import isArray from 'lodash/isArray'; import eachOf from './eachOf'; diff --git a/lib/waterfall.js b/lib/waterfall.js index 601c569..8867c87 100644 --- a/lib/waterfall.js +++ b/lib/waterfall.js @@ -1,9 +1,9 @@ 'use strict'; -import isArray from 'lodash/lang/isArray'; -import noop from 'lodash/utility/noop'; -import once from 'lodash/function/once'; -import rest from 'lodash/function/rest'; +import isArray from 'lodash/isArray'; +import noop from 'lodash/noop'; +import once from 'lodash/once'; +import rest from 'lodash/rest'; import ensureAsync from './ensureAsync'; import iterator from './iterator'; diff --git a/lib/whilst.js b/lib/whilst.js index eea3a67..feaec00 100644 --- a/lib/whilst.js +++ b/lib/whilst.js @@ -1,7 +1,7 @@ 'use strict'; -import noop from 'lodash/utility/noop'; -import rest from 'lodash/function/rest'; +import noop from 'lodash/noop'; +import rest from 'lodash/rest'; export default function whilst(test, iterator, cb) { cb = cb || noop; |