Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 62B9E18DB0 for ; Fri, 26 Feb 2016 21:30:29 +0000 (UTC) Received: (qmail 46970 invoked by uid 500); 26 Feb 2016 21:30:28 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 46900 invoked by uid 500); 26 Feb 2016 21:30:28 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 45718 invoked by uid 99); 26 Feb 2016 21:30:27 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2016 21:30:27 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3009CE0454; Fri, 26 Feb 2016 21:30:27 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: steven@apache.org To: commits@cordova.apache.org Date: Fri, 26 Feb 2016 21:30:38 -0000 Message-Id: In-Reply-To: <6cf8d3cc88be46f3a0499898f7aafb18@git.apache.org> References: <6cf8d3cc88be46f3a0499898f7aafb18@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [13/60] [abbrv] [partial] android commit: updated cordova-common dependnecy to 1.1.0 http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/LazyWrapper.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/LazyWrapper.js b/node_modules/lodash/internal/LazyWrapper.js new file mode 100644 index 0000000..d9c8080 --- /dev/null +++ b/node_modules/lodash/internal/LazyWrapper.js @@ -0,0 +1,26 @@ +var baseCreate = require('./baseCreate'), + baseLodash = require('./baseLodash'); + +/** Used as references for `-Infinity` and `Infinity`. */ +var POSITIVE_INFINITY = Number.POSITIVE_INFINITY; + +/** + * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation. + * + * @private + * @param {*} value The value to wrap. + */ +function LazyWrapper(value) { + this.__wrapped__ = value; + this.__actions__ = []; + this.__dir__ = 1; + this.__filtered__ = false; + this.__iteratees__ = []; + this.__takeCount__ = POSITIVE_INFINITY; + this.__views__ = []; +} + +LazyWrapper.prototype = baseCreate(baseLodash.prototype); +LazyWrapper.prototype.constructor = LazyWrapper; + +module.exports = LazyWrapper; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/LodashWrapper.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/LodashWrapper.js b/node_modules/lodash/internal/LodashWrapper.js new file mode 100644 index 0000000..ab06bc7 --- /dev/null +++ b/node_modules/lodash/internal/LodashWrapper.js @@ -0,0 +1,21 @@ +var baseCreate = require('./baseCreate'), + baseLodash = require('./baseLodash'); + +/** + * The base constructor for creating `lodash` wrapper objects. + * + * @private + * @param {*} value The value to wrap. + * @param {boolean} [chainAll] Enable chaining for all wrapper methods. + * @param {Array} [actions=[]] Actions to peform to resolve the unwrapped value. + */ +function LodashWrapper(value, chainAll, actions) { + this.__wrapped__ = value; + this.__actions__ = actions || []; + this.__chain__ = !!chainAll; +} + +LodashWrapper.prototype = baseCreate(baseLodash.prototype); +LodashWrapper.prototype.constructor = LodashWrapper; + +module.exports = LodashWrapper; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/MapCache.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/MapCache.js b/node_modules/lodash/internal/MapCache.js new file mode 100644 index 0000000..1d7ab98 --- /dev/null +++ b/node_modules/lodash/internal/MapCache.js @@ -0,0 +1,24 @@ +var mapDelete = require('./mapDelete'), + mapGet = require('./mapGet'), + mapHas = require('./mapHas'), + mapSet = require('./mapSet'); + +/** + * Creates a cache object to store key/value pairs. + * + * @private + * @static + * @name Cache + * @memberOf _.memoize + */ +function MapCache() { + this.__data__ = {}; +} + +// Add functions to the `Map` cache. +MapCache.prototype['delete'] = mapDelete; +MapCache.prototype.get = mapGet; +MapCache.prototype.has = mapHas; +MapCache.prototype.set = mapSet; + +module.exports = MapCache; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/SetCache.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/SetCache.js b/node_modules/lodash/internal/SetCache.js new file mode 100644 index 0000000..ae29c55 --- /dev/null +++ b/node_modules/lodash/internal/SetCache.js @@ -0,0 +1,29 @@ +var cachePush = require('./cachePush'), + getNative = require('./getNative'); + +/** Native method references. */ +var Set = getNative(global, 'Set'); + +/* Native method references for those with the same name as other `lodash` methods. */ +var nativeCreate = getNative(Object, 'create'); + +/** + * + * Creates a cache object to store unique values. + * + * @private + * @param {Array} [values] The values to cache. + */ +function SetCache(values) { + var length = values ? values.length : 0; + + this.data = { 'hash': nativeCreate(null), 'set': new Set }; + while (length--) { + this.push(values[length]); + } +} + +// Add functions to the `Set` cache. +SetCache.prototype.push = cachePush; + +module.exports = SetCache; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/arrayConcat.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/arrayConcat.js b/node_modules/lodash/internal/arrayConcat.js new file mode 100644 index 0000000..0d131e3 --- /dev/null +++ b/node_modules/lodash/internal/arrayConcat.js @@ -0,0 +1,25 @@ +/** + * Creates a new array joining `array` with `other`. + * + * @private + * @param {Array} array The array to join. + * @param {Array} other The other array to join. + * @returns {Array} Returns the new concatenated array. + */ +function arrayConcat(array, other) { + var index = -1, + length = array.length, + othIndex = -1, + othLength = other.length, + result = Array(length + othLength); + + while (++index < length) { + result[index] = array[index]; + } + while (++othIndex < othLength) { + result[index++] = other[othIndex]; + } + return result; +} + +module.exports = arrayConcat; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/arrayCopy.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/arrayCopy.js b/node_modules/lodash/internal/arrayCopy.js new file mode 100644 index 0000000..fa7067f --- /dev/null +++ b/node_modules/lodash/internal/arrayCopy.js @@ -0,0 +1,20 @@ +/** + * Copies the values of `source` to `array`. + * + * @private + * @param {Array} source The array to copy values from. + * @param {Array} [array=[]] The array to copy values to. + * @returns {Array} Returns `array`. + */ +function arrayCopy(source, array) { + var index = -1, + length = source.length; + + array || (array = Array(length)); + while (++index < length) { + array[index] = source[index]; + } + return array; +} + +module.exports = arrayCopy; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/arrayEach.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/arrayEach.js b/node_modules/lodash/internal/arrayEach.js new file mode 100644 index 0000000..0f51382 --- /dev/null +++ b/node_modules/lodash/internal/arrayEach.js @@ -0,0 +1,22 @@ +/** + * A specialized version of `_.forEach` for arrays without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns `array`. + */ +function arrayEach(array, iteratee) { + var index = -1, + length = array.length; + + while (++index < length) { + if (iteratee(array[index], index, array) === false) { + break; + } + } + return array; +} + +module.exports = arrayEach; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/arrayEachRight.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/arrayEachRight.js b/node_modules/lodash/internal/arrayEachRight.js new file mode 100644 index 0000000..367e066 --- /dev/null +++ b/node_modules/lodash/internal/arrayEachRight.js @@ -0,0 +1,21 @@ +/** + * A specialized version of `_.forEachRight` for arrays without support for + * callback shorthands and `this` binding. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns `array`. + */ +function arrayEachRight(array, iteratee) { + var length = array.length; + + while (length--) { + if (iteratee(array[length], length, array) === false) { + break; + } + } + return array; +} + +module.exports = arrayEachRight; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/arrayEvery.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/arrayEvery.js b/node_modules/lodash/internal/arrayEvery.js new file mode 100644 index 0000000..3fe6ed2 --- /dev/null +++ b/node_modules/lodash/internal/arrayEvery.js @@ -0,0 +1,23 @@ +/** + * A specialized version of `_.every` for arrays without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false`. + */ +function arrayEvery(array, predicate) { + var index = -1, + length = array.length; + + while (++index < length) { + if (!predicate(array[index], index, array)) { + return false; + } + } + return true; +} + +module.exports = arrayEvery; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/arrayExtremum.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/arrayExtremum.js b/node_modules/lodash/internal/arrayExtremum.js new file mode 100644 index 0000000..e45badb --- /dev/null +++ b/node_modules/lodash/internal/arrayExtremum.js @@ -0,0 +1,30 @@ +/** + * A specialized version of `baseExtremum` for arrays which invokes `iteratee` + * with one argument: (value). + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} comparator The function used to compare values. + * @param {*} exValue The initial extremum value. + * @returns {*} Returns the extremum value. + */ +function arrayExtremum(array, iteratee, comparator, exValue) { + var index = -1, + length = array.length, + computed = exValue, + result = computed; + + while (++index < length) { + var value = array[index], + current = +iteratee(value); + + if (comparator(current, computed)) { + computed = current; + result = value; + } + } + return result; +} + +module.exports = arrayExtremum; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/arrayFilter.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/arrayFilter.js b/node_modules/lodash/internal/arrayFilter.js new file mode 100644 index 0000000..e14fe06 --- /dev/null +++ b/node_modules/lodash/internal/arrayFilter.js @@ -0,0 +1,25 @@ +/** + * A specialized version of `_.filter` for arrays without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + */ +function arrayFilter(array, predicate) { + var index = -1, + length = array.length, + resIndex = -1, + result = []; + + while (++index < length) { + var value = array[index]; + if (predicate(value, index, array)) { + result[++resIndex] = value; + } + } + return result; +} + +module.exports = arrayFilter; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/arrayMap.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/arrayMap.js b/node_modules/lodash/internal/arrayMap.js new file mode 100644 index 0000000..777c7c9 --- /dev/null +++ b/node_modules/lodash/internal/arrayMap.js @@ -0,0 +1,21 @@ +/** + * A specialized version of `_.map` for arrays without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ +function arrayMap(array, iteratee) { + var index = -1, + length = array.length, + result = Array(length); + + while (++index < length) { + result[index] = iteratee(array[index], index, array); + } + return result; +} + +module.exports = arrayMap; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/arrayPush.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/arrayPush.js b/node_modules/lodash/internal/arrayPush.js new file mode 100644 index 0000000..7d742b3 --- /dev/null +++ b/node_modules/lodash/internal/arrayPush.js @@ -0,0 +1,20 @@ +/** + * Appends the elements of `values` to `array`. + * + * @private + * @param {Array} array The array to modify. + * @param {Array} values The values to append. + * @returns {Array} Returns `array`. + */ +function arrayPush(array, values) { + var index = -1, + length = values.length, + offset = array.length; + + while (++index < length) { + array[offset + index] = values[index]; + } + return array; +} + +module.exports = arrayPush; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/arrayReduce.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/arrayReduce.js b/node_modules/lodash/internal/arrayReduce.js new file mode 100644 index 0000000..f948c8e --- /dev/null +++ b/node_modules/lodash/internal/arrayReduce.js @@ -0,0 +1,26 @@ +/** + * A specialized version of `_.reduce` for arrays without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @param {boolean} [initFromArray] Specify using the first element of `array` + * as the initial value. + * @returns {*} Returns the accumulated value. + */ +function arrayReduce(array, iteratee, accumulator, initFromArray) { + var index = -1, + length = array.length; + + if (initFromArray && length) { + accumulator = array[++index]; + } + while (++index < length) { + accumulator = iteratee(accumulator, array[index], index, array); + } + return accumulator; +} + +module.exports = arrayReduce; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/arrayReduceRight.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/arrayReduceRight.js b/node_modules/lodash/internal/arrayReduceRight.js new file mode 100644 index 0000000..d4d68df --- /dev/null +++ b/node_modules/lodash/internal/arrayReduceRight.js @@ -0,0 +1,24 @@ +/** + * A specialized version of `_.reduceRight` for arrays without support for + * callback shorthands and `this` binding. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @param {boolean} [initFromArray] Specify using the last element of `array` + * as the initial value. + * @returns {*} Returns the accumulated value. + */ +function arrayReduceRight(array, iteratee, accumulator, initFromArray) { + var length = array.length; + if (initFromArray && length) { + accumulator = array[--length]; + } + while (length--) { + accumulator = iteratee(accumulator, array[length], length, array); + } + return accumulator; +} + +module.exports = arrayReduceRight; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/arraySome.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/arraySome.js b/node_modules/lodash/internal/arraySome.js new file mode 100644 index 0000000..f7a0bb5 --- /dev/null +++ b/node_modules/lodash/internal/arraySome.js @@ -0,0 +1,23 @@ +/** + * A specialized version of `_.some` for arrays without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + */ +function arraySome(array, predicate) { + var index = -1, + length = array.length; + + while (++index < length) { + if (predicate(array[index], index, array)) { + return true; + } + } + return false; +} + +module.exports = arraySome; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/arraySum.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/arraySum.js b/node_modules/lodash/internal/arraySum.js new file mode 100644 index 0000000..0e40c91 --- /dev/null +++ b/node_modules/lodash/internal/arraySum.js @@ -0,0 +1,20 @@ +/** + * A specialized version of `_.sum` for arrays without support for callback + * shorthands and `this` binding.. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {number} Returns the sum. + */ +function arraySum(array, iteratee) { + var length = array.length, + result = 0; + + while (length--) { + result += +iteratee(array[length]) || 0; + } + return result; +} + +module.exports = arraySum; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/assignDefaults.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/assignDefaults.js b/node_modules/lodash/internal/assignDefaults.js new file mode 100644 index 0000000..affd993 --- /dev/null +++ b/node_modules/lodash/internal/assignDefaults.js @@ -0,0 +1,13 @@ +/** + * Used by `_.defaults` to customize its `_.assign` use. + * + * @private + * @param {*} objectValue The destination object property value. + * @param {*} sourceValue The source object property value. + * @returns {*} Returns the value to assign to the destination object. + */ +function assignDefaults(objectValue, sourceValue) { + return objectValue === undefined ? sourceValue : objectValue; +} + +module.exports = assignDefaults; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/assignOwnDefaults.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/assignOwnDefaults.js b/node_modules/lodash/internal/assignOwnDefaults.js new file mode 100644 index 0000000..682c460 --- /dev/null +++ b/node_modules/lodash/internal/assignOwnDefaults.js @@ -0,0 +1,26 @@ +/** Used for native method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used by `_.template` to customize its `_.assign` use. + * + * **Note:** This function is like `assignDefaults` except that it ignores + * inherited property values when checking if a property is `undefined`. + * + * @private + * @param {*} objectValue The destination object property value. + * @param {*} sourceValue The source object property value. + * @param {string} key The key associated with the object and source values. + * @param {Object} object The destination object. + * @returns {*} Returns the value to assign to the destination object. + */ +function assignOwnDefaults(objectValue, sourceValue, key, object) { + return (objectValue === undefined || !hasOwnProperty.call(object, key)) + ? sourceValue + : objectValue; +} + +module.exports = assignOwnDefaults; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/assignWith.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/assignWith.js b/node_modules/lodash/internal/assignWith.js new file mode 100644 index 0000000..d2b261a --- /dev/null +++ b/node_modules/lodash/internal/assignWith.js @@ -0,0 +1,32 @@ +var keys = require('../object/keys'); + +/** + * A specialized version of `_.assign` for customizing assigned values without + * support for argument juggling, multiple sources, and `this` binding `customizer` + * functions. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @param {Function} customizer The function to customize assigned values. + * @returns {Object} Returns `object`. + */ +function assignWith(object, source, customizer) { + var index = -1, + props = keys(source), + length = props.length; + + while (++index < length) { + var key = props[index], + value = object[key], + result = customizer(value, source[key], key, object, source); + + if ((result === result ? (result !== value) : (value === value)) || + (value === undefined && !(key in object))) { + object[key] = result; + } + } + return object; +} + +module.exports = assignWith; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseAssign.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseAssign.js b/node_modules/lodash/internal/baseAssign.js new file mode 100644 index 0000000..cfad6e0 --- /dev/null +++ b/node_modules/lodash/internal/baseAssign.js @@ -0,0 +1,19 @@ +var baseCopy = require('./baseCopy'), + keys = require('../object/keys'); + +/** + * The base implementation of `_.assign` without support for argument juggling, + * multiple sources, and `customizer` functions. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @returns {Object} Returns `object`. + */ +function baseAssign(object, source) { + return source == null + ? object + : baseCopy(source, keys(source), object); +} + +module.exports = baseAssign; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseAt.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseAt.js b/node_modules/lodash/internal/baseAt.js new file mode 100644 index 0000000..bbafd1d --- /dev/null +++ b/node_modules/lodash/internal/baseAt.js @@ -0,0 +1,32 @@ +var isArrayLike = require('./isArrayLike'), + isIndex = require('./isIndex'); + +/** + * The base implementation of `_.at` without support for string collections + * and individual key arguments. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {number[]|string[]} props The property names or indexes of elements to pick. + * @returns {Array} Returns the new array of picked elements. + */ +function baseAt(collection, props) { + var index = -1, + isNil = collection == null, + isArr = !isNil && isArrayLike(collection), + length = isArr ? collection.length : 0, + propsLength = props.length, + result = Array(propsLength); + + while(++index < propsLength) { + var key = props[index]; + if (isArr) { + result[index] = isIndex(key, length) ? collection[key] : undefined; + } else { + result[index] = isNil ? undefined : collection[key]; + } + } + return result; +} + +module.exports = baseAt; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseCallback.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseCallback.js b/node_modules/lodash/internal/baseCallback.js new file mode 100644 index 0000000..67fe087 --- /dev/null +++ b/node_modules/lodash/internal/baseCallback.js @@ -0,0 +1,35 @@ +var baseMatches = require('./baseMatches'), + baseMatchesProperty = require('./baseMatchesProperty'), + bindCallback = require('./bindCallback'), + identity = require('../utility/identity'), + property = require('../utility/property'); + +/** + * The base implementation of `_.callback` which supports specifying the + * number of arguments to provide to `func`. + * + * @private + * @param {*} [func=_.identity] The value to convert to a callback. + * @param {*} [thisArg] The `this` binding of `func`. + * @param {number} [argCount] The number of arguments to provide to `func`. + * @returns {Function} Returns the callback. + */ +function baseCallback(func, thisArg, argCount) { + var type = typeof func; + if (type == 'function') { + return thisArg === undefined + ? func + : bindCallback(func, thisArg, argCount); + } + if (func == null) { + return identity; + } + if (type == 'object') { + return baseMatches(func); + } + return thisArg === undefined + ? property(func) + : baseMatchesProperty(func, thisArg); +} + +module.exports = baseCallback; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseClone.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseClone.js b/node_modules/lodash/internal/baseClone.js new file mode 100644 index 0000000..ebd6649 --- /dev/null +++ b/node_modules/lodash/internal/baseClone.js @@ -0,0 +1,128 @@ +var arrayCopy = require('./arrayCopy'), + arrayEach = require('./arrayEach'), + baseAssign = require('./baseAssign'), + baseForOwn = require('./baseForOwn'), + initCloneArray = require('./initCloneArray'), + initCloneByTag = require('./initCloneByTag'), + initCloneObject = require('./initCloneObject'), + isArray = require('../lang/isArray'), + isObject = require('../lang/isObject'); + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + funcTag = '[object Function]', + mapTag = '[object Map]', + numberTag = '[object Number]', + objectTag = '[object Object]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + weakMapTag = '[object WeakMap]'; + +var arrayBufferTag = '[object ArrayBuffer]', + float32Tag = '[object Float32Array]', + float64Tag = '[object Float64Array]', + int8Tag = '[object Int8Array]', + int16Tag = '[object Int16Array]', + int32Tag = '[object Int32Array]', + uint8Tag = '[object Uint8Array]', + uint8ClampedTag = '[object Uint8ClampedArray]', + uint16Tag = '[object Uint16Array]', + uint32Tag = '[object Uint32Array]'; + +/** Used to identify `toStringTag` values supported by `_.clone`. */ +var cloneableTags = {}; +cloneableTags[argsTag] = cloneableTags[arrayTag] = +cloneableTags[arrayBufferTag] = cloneableTags[boolTag] = +cloneableTags[dateTag] = cloneableTags[float32Tag] = +cloneableTags[float64Tag] = cloneableTags[int8Tag] = +cloneableTags[int16Tag] = cloneableTags[int32Tag] = +cloneableTags[numberTag] = cloneableTags[objectTag] = +cloneableTags[regexpTag] = cloneableTags[stringTag] = +cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = +cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; +cloneableTags[errorTag] = cloneableTags[funcTag] = +cloneableTags[mapTag] = cloneableTags[setTag] = +cloneableTags[weakMapTag] = false; + +/** Used for native method references. */ +var objectProto = Object.prototype; + +/** + * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * of values. + */ +var objToString = objectProto.toString; + +/** + * The base implementation of `_.clone` without support for argument juggling + * and `this` binding `customizer` functions. + * + * @private + * @param {*} value The value to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @param {Function} [customizer] The function to customize cloning values. + * @param {string} [key] The key of `value`. + * @param {Object} [object] The object `value` belongs to. + * @param {Array} [stackA=[]] Tracks traversed source objects. + * @param {Array} [stackB=[]] Associates clones with source counterparts. + * @returns {*} Returns the cloned value. + */ +function baseClone(value, isDeep, customizer, key, object, stackA, stackB) { + var result; + if (customizer) { + result = object ? customizer(value, key, object) : customizer(value); + } + if (result !== undefined) { + return result; + } + if (!isObject(value)) { + return value; + } + var isArr = isArray(value); + if (isArr) { + result = initCloneArray(value); + if (!isDeep) { + return arrayCopy(value, result); + } + } else { + var tag = objToString.call(value), + isFunc = tag == funcTag; + + if (tag == objectTag || tag == argsTag || (isFunc && !object)) { + result = initCloneObject(isFunc ? {} : value); + if (!isDeep) { + return baseAssign(result, value); + } + } else { + return cloneableTags[tag] + ? initCloneByTag(value, tag, isDeep) + : (object ? value : {}); + } + } + // Check for circular references and return its corresponding clone. + stackA || (stackA = []); + stackB || (stackB = []); + + var length = stackA.length; + while (length--) { + if (stackA[length] == value) { + return stackB[length]; + } + } + // Add the source value to the stack of traversed objects and associate it with its clone. + stackA.push(value); + stackB.push(result); + + // Recursively populate clone (susceptible to call stack limits). + (isArr ? arrayEach : baseForOwn)(value, function(subValue, key) { + result[key] = baseClone(subValue, isDeep, customizer, key, value, stackA, stackB); + }); + return result; +} + +module.exports = baseClone; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseCompareAscending.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseCompareAscending.js b/node_modules/lodash/internal/baseCompareAscending.js new file mode 100644 index 0000000..c8259c7 --- /dev/null +++ b/node_modules/lodash/internal/baseCompareAscending.js @@ -0,0 +1,34 @@ +/** + * The base implementation of `compareAscending` which compares values and + * sorts them in ascending order without guaranteeing a stable sort. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {number} Returns the sort order indicator for `value`. + */ +function baseCompareAscending(value, other) { + if (value !== other) { + var valIsNull = value === null, + valIsUndef = value === undefined, + valIsReflexive = value === value; + + var othIsNull = other === null, + othIsUndef = other === undefined, + othIsReflexive = other === other; + + if ((value > other && !othIsNull) || !valIsReflexive || + (valIsNull && !othIsUndef && othIsReflexive) || + (valIsUndef && othIsReflexive)) { + return 1; + } + if ((value < other && !valIsNull) || !othIsReflexive || + (othIsNull && !valIsUndef && valIsReflexive) || + (othIsUndef && valIsReflexive)) { + return -1; + } + } + return 0; +} + +module.exports = baseCompareAscending; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseCopy.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseCopy.js b/node_modules/lodash/internal/baseCopy.js new file mode 100644 index 0000000..15059f3 --- /dev/null +++ b/node_modules/lodash/internal/baseCopy.js @@ -0,0 +1,23 @@ +/** + * Copies properties of `source` to `object`. + * + * @private + * @param {Object} source The object to copy properties from. + * @param {Array} props The property names to copy. + * @param {Object} [object={}] The object to copy properties to. + * @returns {Object} Returns `object`. + */ +function baseCopy(source, props, object) { + object || (object = {}); + + var index = -1, + length = props.length; + + while (++index < length) { + var key = props[index]; + object[key] = source[key]; + } + return object; +} + +module.exports = baseCopy; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseCreate.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseCreate.js b/node_modules/lodash/internal/baseCreate.js new file mode 100644 index 0000000..be5e1d9 --- /dev/null +++ b/node_modules/lodash/internal/baseCreate.js @@ -0,0 +1,23 @@ +var isObject = require('../lang/isObject'); + +/** + * The base implementation of `_.create` without support for assigning + * properties to the created object. + * + * @private + * @param {Object} prototype The object to inherit from. + * @returns {Object} Returns the new object. + */ +var baseCreate = (function() { + function object() {} + return function(prototype) { + if (isObject(prototype)) { + object.prototype = prototype; + var result = new object; + object.prototype = undefined; + } + return result || {}; + }; +}()); + +module.exports = baseCreate; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseDelay.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseDelay.js b/node_modules/lodash/internal/baseDelay.js new file mode 100644 index 0000000..c405c37 --- /dev/null +++ b/node_modules/lodash/internal/baseDelay.js @@ -0,0 +1,21 @@ +/** Used as the `TypeError` message for "Functions" methods. */ +var FUNC_ERROR_TEXT = 'Expected a function'; + +/** + * The base implementation of `_.delay` and `_.defer` which accepts an index + * of where to slice the arguments to provide to `func`. + * + * @private + * @param {Function} func The function to delay. + * @param {number} wait The number of milliseconds to delay invocation. + * @param {Object} args The arguments provide to `func`. + * @returns {number} Returns the timer id. + */ +function baseDelay(func, wait, args) { + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + return setTimeout(function() { func.apply(undefined, args); }, wait); +} + +module.exports = baseDelay; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseDifference.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseDifference.js b/node_modules/lodash/internal/baseDifference.js new file mode 100644 index 0000000..40da1b6 --- /dev/null +++ b/node_modules/lodash/internal/baseDifference.js @@ -0,0 +1,55 @@ +var baseIndexOf = require('./baseIndexOf'), + cacheIndexOf = require('./cacheIndexOf'), + createCache = require('./createCache'); + +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; + +/** + * The base implementation of `_.difference` which accepts a single array + * of values to exclude. + * + * @private + * @param {Array} array The array to inspect. + * @param {Array} values The values to exclude. + * @returns {Array} Returns the new array of filtered values. + */ +function baseDifference(array, values) { + var length = array ? array.length : 0, + result = []; + + if (!length) { + return result; + } + var index = -1, + indexOf = baseIndexOf, + isCommon = true, + cache = (isCommon && values.length >= LARGE_ARRAY_SIZE) ? createCache(values) : null, + valuesLength = values.length; + + if (cache) { + indexOf = cacheIndexOf; + isCommon = false; + values = cache; + } + outer: + while (++index < length) { + var value = array[index]; + + if (isCommon && value === value) { + var valuesIndex = valuesLength; + while (valuesIndex--) { + if (values[valuesIndex] === value) { + continue outer; + } + } + result.push(value); + } + else if (indexOf(values, value, 0) < 0) { + result.push(value); + } + } + return result; +} + +module.exports = baseDifference; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseEach.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseEach.js b/node_modules/lodash/internal/baseEach.js new file mode 100644 index 0000000..09ef5a3 --- /dev/null +++ b/node_modules/lodash/internal/baseEach.js @@ -0,0 +1,15 @@ +var baseForOwn = require('./baseForOwn'), + createBaseEach = require('./createBaseEach'); + +/** + * The base implementation of `_.forEach` without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array|Object|string} Returns `collection`. + */ +var baseEach = createBaseEach(baseForOwn); + +module.exports = baseEach; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseEachRight.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseEachRight.js b/node_modules/lodash/internal/baseEachRight.js new file mode 100644 index 0000000..f0520a8 --- /dev/null +++ b/node_modules/lodash/internal/baseEachRight.js @@ -0,0 +1,15 @@ +var baseForOwnRight = require('./baseForOwnRight'), + createBaseEach = require('./createBaseEach'); + +/** + * The base implementation of `_.forEachRight` without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array|Object|string} Returns `collection`. + */ +var baseEachRight = createBaseEach(baseForOwnRight, true); + +module.exports = baseEachRight; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseEvery.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseEvery.js b/node_modules/lodash/internal/baseEvery.js new file mode 100644 index 0000000..a1fc1f3 --- /dev/null +++ b/node_modules/lodash/internal/baseEvery.js @@ -0,0 +1,22 @@ +var baseEach = require('./baseEach'); + +/** + * The base implementation of `_.every` without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false` + */ +function baseEvery(collection, predicate) { + var result = true; + baseEach(collection, function(value, index, collection) { + result = !!predicate(value, index, collection); + return result; + }); + return result; +} + +module.exports = baseEvery; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseExtremum.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseExtremum.js b/node_modules/lodash/internal/baseExtremum.js new file mode 100644 index 0000000..b0efff6 --- /dev/null +++ b/node_modules/lodash/internal/baseExtremum.js @@ -0,0 +1,29 @@ +var baseEach = require('./baseEach'); + +/** + * Gets the extremum value of `collection` invoking `iteratee` for each value + * in `collection` to generate the criterion by which the value is ranked. + * The `iteratee` is invoked with three arguments: (value, index|key, collection). + * + * @private + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} comparator The function used to compare values. + * @param {*} exValue The initial extremum value. + * @returns {*} Returns the extremum value. + */ +function baseExtremum(collection, iteratee, comparator, exValue) { + var computed = exValue, + result = computed; + + baseEach(collection, function(value, index, collection) { + var current = +iteratee(value, index, collection); + if (comparator(current, computed) || (current === exValue && current === result)) { + computed = current; + result = value; + } + }); + return result; +} + +module.exports = baseExtremum; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseFill.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseFill.js b/node_modules/lodash/internal/baseFill.js new file mode 100644 index 0000000..ef1a2fa --- /dev/null +++ b/node_modules/lodash/internal/baseFill.js @@ -0,0 +1,31 @@ +/** + * The base implementation of `_.fill` without an iteratee call guard. + * + * @private + * @param {Array} array The array to fill. + * @param {*} value The value to fill `array` with. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns `array`. + */ +function baseFill(array, value, start, end) { + var length = array.length; + + start = start == null ? 0 : (+start || 0); + if (start < 0) { + start = -start > length ? 0 : (length + start); + } + end = (end === undefined || end > length) ? length : (+end || 0); + if (end < 0) { + end += length; + } + length = start > end ? 0 : (end >>> 0); + start >>>= 0; + + while (start < length) { + array[start++] = value; + } + return array; +} + +module.exports = baseFill; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseFilter.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseFilter.js b/node_modules/lodash/internal/baseFilter.js new file mode 100644 index 0000000..27773a4 --- /dev/null +++ b/node_modules/lodash/internal/baseFilter.js @@ -0,0 +1,22 @@ +var baseEach = require('./baseEach'); + +/** + * The base implementation of `_.filter` without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + */ +function baseFilter(collection, predicate) { + var result = []; + baseEach(collection, function(value, index, collection) { + if (predicate(value, index, collection)) { + result.push(value); + } + }); + return result; +} + +module.exports = baseFilter; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseFind.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseFind.js b/node_modules/lodash/internal/baseFind.js new file mode 100644 index 0000000..be5848f --- /dev/null +++ b/node_modules/lodash/internal/baseFind.js @@ -0,0 +1,25 @@ +/** + * The base implementation of `_.find`, `_.findLast`, `_.findKey`, and `_.findLastKey`, + * without support for callback shorthands and `this` binding, which iterates + * over `collection` using the provided `eachFunc`. + * + * @private + * @param {Array|Object|string} collection The collection to search. + * @param {Function} predicate The function invoked per iteration. + * @param {Function} eachFunc The function to iterate over `collection`. + * @param {boolean} [retKey] Specify returning the key of the found element + * instead of the element itself. + * @returns {*} Returns the found element or its key, else `undefined`. + */ +function baseFind(collection, predicate, eachFunc, retKey) { + var result; + eachFunc(collection, function(value, key, collection) { + if (predicate(value, key, collection)) { + result = retKey ? key : value; + return false; + } + }); + return result; +} + +module.exports = baseFind; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseFindIndex.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseFindIndex.js b/node_modules/lodash/internal/baseFindIndex.js new file mode 100644 index 0000000..7d4b502 --- /dev/null +++ b/node_modules/lodash/internal/baseFindIndex.js @@ -0,0 +1,23 @@ +/** + * The base implementation of `_.findIndex` and `_.findLastIndex` without + * support for callback shorthands and `this` binding. + * + * @private + * @param {Array} array The array to search. + * @param {Function} predicate The function invoked per iteration. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseFindIndex(array, predicate, fromRight) { + var length = array.length, + index = fromRight ? length : -1; + + while ((fromRight ? index-- : ++index < length)) { + if (predicate(array[index], index, array)) { + return index; + } + } + return -1; +} + +module.exports = baseFindIndex; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseFlatten.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseFlatten.js b/node_modules/lodash/internal/baseFlatten.js new file mode 100644 index 0000000..7443233 --- /dev/null +++ b/node_modules/lodash/internal/baseFlatten.js @@ -0,0 +1,41 @@ +var arrayPush = require('./arrayPush'), + isArguments = require('../lang/isArguments'), + isArray = require('../lang/isArray'), + isArrayLike = require('./isArrayLike'), + isObjectLike = require('./isObjectLike'); + +/** + * The base implementation of `_.flatten` with added support for restricting + * flattening and specifying the start index. + * + * @private + * @param {Array} array The array to flatten. + * @param {boolean} [isDeep] Specify a deep flatten. + * @param {boolean} [isStrict] Restrict flattening to arrays-like objects. + * @param {Array} [result=[]] The initial result value. + * @returns {Array} Returns the new flattened array. + */ +function baseFlatten(array, isDeep, isStrict, result) { + result || (result = []); + + var index = -1, + length = array.length; + + while (++index < length) { + var value = array[index]; + if (isObjectLike(value) && isArrayLike(value) && + (isStrict || isArray(value) || isArguments(value))) { + if (isDeep) { + // Recursively flatten arrays (susceptible to call stack limits). + baseFlatten(value, isDeep, isStrict, result); + } else { + arrayPush(result, value); + } + } else if (!isStrict) { + result[result.length] = value; + } + } + return result; +} + +module.exports = baseFlatten; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseFor.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseFor.js b/node_modules/lodash/internal/baseFor.js new file mode 100644 index 0000000..94ee03f --- /dev/null +++ b/node_modules/lodash/internal/baseFor.js @@ -0,0 +1,17 @@ +var createBaseFor = require('./createBaseFor'); + +/** + * The base implementation of `baseForIn` and `baseForOwn` which iterates + * over `object` properties returned by `keysFunc` invoking `iteratee` for + * each property. Iteratee functions may exit iteration early by explicitly + * returning `false`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ +var baseFor = createBaseFor(); + +module.exports = baseFor; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseForIn.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseForIn.js b/node_modules/lodash/internal/baseForIn.js new file mode 100644 index 0000000..47d622c --- /dev/null +++ b/node_modules/lodash/internal/baseForIn.js @@ -0,0 +1,17 @@ +var baseFor = require('./baseFor'), + keysIn = require('../object/keysIn'); + +/** + * The base implementation of `_.forIn` without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ +function baseForIn(object, iteratee) { + return baseFor(object, iteratee, keysIn); +} + +module.exports = baseForIn; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseForOwn.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseForOwn.js b/node_modules/lodash/internal/baseForOwn.js new file mode 100644 index 0000000..bef4d4c --- /dev/null +++ b/node_modules/lodash/internal/baseForOwn.js @@ -0,0 +1,17 @@ +var baseFor = require('./baseFor'), + keys = require('../object/keys'); + +/** + * The base implementation of `_.forOwn` without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ +function baseForOwn(object, iteratee) { + return baseFor(object, iteratee, keys); +} + +module.exports = baseForOwn; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseForOwnRight.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseForOwnRight.js b/node_modules/lodash/internal/baseForOwnRight.js new file mode 100644 index 0000000..bb916bc --- /dev/null +++ b/node_modules/lodash/internal/baseForOwnRight.js @@ -0,0 +1,17 @@ +var baseForRight = require('./baseForRight'), + keys = require('../object/keys'); + +/** + * The base implementation of `_.forOwnRight` without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ +function baseForOwnRight(object, iteratee) { + return baseForRight(object, iteratee, keys); +} + +module.exports = baseForOwnRight; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseForRight.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseForRight.js b/node_modules/lodash/internal/baseForRight.js new file mode 100644 index 0000000..5ddd191 --- /dev/null +++ b/node_modules/lodash/internal/baseForRight.js @@ -0,0 +1,15 @@ +var createBaseFor = require('./createBaseFor'); + +/** + * This function is like `baseFor` except that it iterates over properties + * in the opposite order. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ +var baseForRight = createBaseFor(true); + +module.exports = baseForRight; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseFunctions.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseFunctions.js b/node_modules/lodash/internal/baseFunctions.js new file mode 100644 index 0000000..d56ea9c --- /dev/null +++ b/node_modules/lodash/internal/baseFunctions.js @@ -0,0 +1,27 @@ +var isFunction = require('../lang/isFunction'); + +/** + * The base implementation of `_.functions` which creates an array of + * `object` function property names filtered from those provided. + * + * @private + * @param {Object} object The object to inspect. + * @param {Array} props The property names to filter. + * @returns {Array} Returns the new array of filtered property names. + */ +function baseFunctions(object, props) { + var index = -1, + length = props.length, + resIndex = -1, + result = []; + + while (++index < length) { + var key = props[index]; + if (isFunction(object[key])) { + result[++resIndex] = key; + } + } + return result; +} + +module.exports = baseFunctions; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseGet.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseGet.js b/node_modules/lodash/internal/baseGet.js new file mode 100644 index 0000000..ad9b1ee --- /dev/null +++ b/node_modules/lodash/internal/baseGet.js @@ -0,0 +1,29 @@ +var toObject = require('./toObject'); + +/** + * The base implementation of `get` without support for string paths + * and default values. + * + * @private + * @param {Object} object The object to query. + * @param {Array} path The path of the property to get. + * @param {string} [pathKey] The key representation of path. + * @returns {*} Returns the resolved value. + */ +function baseGet(object, path, pathKey) { + if (object == null) { + return; + } + if (pathKey !== undefined && pathKey in toObject(object)) { + path = [pathKey]; + } + var index = 0, + length = path.length; + + while (object != null && index < length) { + object = object[path[index++]]; + } + return (index && index == length) ? object : undefined; +} + +module.exports = baseGet; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseIndexOf.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseIndexOf.js b/node_modules/lodash/internal/baseIndexOf.js new file mode 100644 index 0000000..6b479bc --- /dev/null +++ b/node_modules/lodash/internal/baseIndexOf.js @@ -0,0 +1,27 @@ +var indexOfNaN = require('./indexOfNaN'); + +/** + * The base implementation of `_.indexOf` without support for binary searches. + * + * @private + * @param {Array} array The array to search. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseIndexOf(array, value, fromIndex) { + if (value !== value) { + return indexOfNaN(array, fromIndex); + } + var index = fromIndex - 1, + length = array.length; + + while (++index < length) { + if (array[index] === value) { + return index; + } + } + return -1; +} + +module.exports = baseIndexOf; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseIsEqual.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseIsEqual.js b/node_modules/lodash/internal/baseIsEqual.js new file mode 100644 index 0000000..87e14ac --- /dev/null +++ b/node_modules/lodash/internal/baseIsEqual.js @@ -0,0 +1,28 @@ +var baseIsEqualDeep = require('./baseIsEqualDeep'), + isObject = require('../lang/isObject'), + isObjectLike = require('./isObjectLike'); + +/** + * The base implementation of `_.isEqual` without support for `this` binding + * `customizer` functions. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @param {Function} [customizer] The function to customize comparing values. + * @param {boolean} [isLoose] Specify performing partial comparisons. + * @param {Array} [stackA] Tracks traversed `value` objects. + * @param {Array} [stackB] Tracks traversed `other` objects. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + */ +function baseIsEqual(value, other, customizer, isLoose, stackA, stackB) { + if (value === other) { + return true; + } + if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) { + return value !== value && other !== other; + } + return baseIsEqualDeep(value, other, baseIsEqual, customizer, isLoose, stackA, stackB); +} + +module.exports = baseIsEqual; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseIsEqualDeep.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseIsEqualDeep.js b/node_modules/lodash/internal/baseIsEqualDeep.js new file mode 100644 index 0000000..f1dbffe --- /dev/null +++ b/node_modules/lodash/internal/baseIsEqualDeep.js @@ -0,0 +1,102 @@ +var equalArrays = require('./equalArrays'), + equalByTag = require('./equalByTag'), + equalObjects = require('./equalObjects'), + isArray = require('../lang/isArray'), + isTypedArray = require('../lang/isTypedArray'); + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + objectTag = '[object Object]'; + +/** Used for native method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * of values. + */ +var objToString = objectProto.toString; + +/** + * A specialized version of `baseIsEqual` for arrays and objects which performs + * deep comparisons and tracks traversed objects enabling objects with circular + * references to be compared. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Function} [customizer] The function to customize comparing objects. + * @param {boolean} [isLoose] Specify performing partial comparisons. + * @param {Array} [stackA=[]] Tracks traversed `value` objects. + * @param {Array} [stackB=[]] Tracks traversed `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function baseIsEqualDeep(object, other, equalFunc, customizer, isLoose, stackA, stackB) { + var objIsArr = isArray(object), + othIsArr = isArray(other), + objTag = arrayTag, + othTag = arrayTag; + + if (!objIsArr) { + objTag = objToString.call(object); + if (objTag == argsTag) { + objTag = objectTag; + } else if (objTag != objectTag) { + objIsArr = isTypedArray(object); + } + } + if (!othIsArr) { + othTag = objToString.call(other); + if (othTag == argsTag) { + othTag = objectTag; + } else if (othTag != objectTag) { + othIsArr = isTypedArray(other); + } + } + var objIsObj = objTag == objectTag, + othIsObj = othTag == objectTag, + isSameTag = objTag == othTag; + + if (isSameTag && !(objIsArr || objIsObj)) { + return equalByTag(object, other, objTag); + } + if (!isLoose) { + var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), + othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); + + if (objIsWrapped || othIsWrapped) { + return equalFunc(objIsWrapped ? object.value() : object, othIsWrapped ? other.value() : other, customizer, isLoose, stackA, stackB); + } + } + if (!isSameTag) { + return false; + } + // Assume cyclic values are equal. + // For more information on detecting circular references see https://es5.github.io/#JO. + stackA || (stackA = []); + stackB || (stackB = []); + + var length = stackA.length; + while (length--) { + if (stackA[length] == object) { + return stackB[length] == other; + } + } + // Add `object` and `other` to the stack of traversed objects. + stackA.push(object); + stackB.push(other); + + var result = (objIsArr ? equalArrays : equalObjects)(object, other, equalFunc, customizer, isLoose, stackA, stackB); + + stackA.pop(); + stackB.pop(); + + return result; +} + +module.exports = baseIsEqualDeep; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseIsFunction.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseIsFunction.js b/node_modules/lodash/internal/baseIsFunction.js new file mode 100644 index 0000000..cd92db3 --- /dev/null +++ b/node_modules/lodash/internal/baseIsFunction.js @@ -0,0 +1,15 @@ +/** + * The base implementation of `_.isFunction` without support for environments + * with incorrect `typeof` results. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + */ +function baseIsFunction(value) { + // Avoid a Chakra JIT bug in compatibility modes of IE 11. + // See https://github.com/jashkenas/underscore/issues/1621 for more details. + return typeof value == 'function' || false; +} + +module.exports = baseIsFunction; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseIsMatch.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseIsMatch.js b/node_modules/lodash/internal/baseIsMatch.js new file mode 100644 index 0000000..ea48bb6 --- /dev/null +++ b/node_modules/lodash/internal/baseIsMatch.js @@ -0,0 +1,52 @@ +var baseIsEqual = require('./baseIsEqual'), + toObject = require('./toObject'); + +/** + * The base implementation of `_.isMatch` without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Object} object The object to inspect. + * @param {Array} matchData The propery names, values, and compare flags to match. + * @param {Function} [customizer] The function to customize comparing objects. + * @returns {boolean} Returns `true` if `object` is a match, else `false`. + */ +function baseIsMatch(object, matchData, customizer) { + var index = matchData.length, + length = index, + noCustomizer = !customizer; + + if (object == null) { + return !length; + } + object = toObject(object); + while (index--) { + var data = matchData[index]; + if ((noCustomizer && data[2]) + ? data[1] !== object[data[0]] + : !(data[0] in object) + ) { + return false; + } + } + while (++index < length) { + data = matchData[index]; + var key = data[0], + objValue = object[key], + srcValue = data[1]; + + if (noCustomizer && data[2]) { + if (objValue === undefined && !(key in object)) { + return false; + } + } else { + var result = customizer ? customizer(objValue, srcValue, key) : undefined; + if (!(result === undefined ? baseIsEqual(srcValue, objValue, customizer, true) : result)) { + return false; + } + } + } + return true; +} + +module.exports = baseIsMatch; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseLodash.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseLodash.js b/node_modules/lodash/internal/baseLodash.js new file mode 100644 index 0000000..15b79d3 --- /dev/null +++ b/node_modules/lodash/internal/baseLodash.js @@ -0,0 +1,10 @@ +/** + * The function whose prototype all chaining wrappers inherit from. + * + * @private + */ +function baseLodash() { + // No operation performed. +} + +module.exports = baseLodash; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseMap.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseMap.js b/node_modules/lodash/internal/baseMap.js new file mode 100644 index 0000000..2906b51 --- /dev/null +++ b/node_modules/lodash/internal/baseMap.js @@ -0,0 +1,23 @@ +var baseEach = require('./baseEach'), + isArrayLike = require('./isArrayLike'); + +/** + * The base implementation of `_.map` without support for callback shorthands + * and `this` binding. + * + * @private + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ +function baseMap(collection, iteratee) { + var index = -1, + result = isArrayLike(collection) ? Array(collection.length) : []; + + baseEach(collection, function(value, key, collection) { + result[++index] = iteratee(value, key, collection); + }); + return result; +} + +module.exports = baseMap; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseMatches.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseMatches.js b/node_modules/lodash/internal/baseMatches.js new file mode 100644 index 0000000..5f76c67 --- /dev/null +++ b/node_modules/lodash/internal/baseMatches.js @@ -0,0 +1,30 @@ +var baseIsMatch = require('./baseIsMatch'), + getMatchData = require('./getMatchData'), + toObject = require('./toObject'); + +/** + * The base implementation of `_.matches` which does not clone `source`. + * + * @private + * @param {Object} source The object of property values to match. + * @returns {Function} Returns the new function. + */ +function baseMatches(source) { + var matchData = getMatchData(source); + if (matchData.length == 1 && matchData[0][2]) { + var key = matchData[0][0], + value = matchData[0][1]; + + return function(object) { + if (object == null) { + return false; + } + return object[key] === value && (value !== undefined || (key in toObject(object))); + }; + } + return function(object) { + return baseIsMatch(object, matchData); + }; +} + +module.exports = baseMatches; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseMatchesProperty.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseMatchesProperty.js b/node_modules/lodash/internal/baseMatchesProperty.js new file mode 100644 index 0000000..8f9005c --- /dev/null +++ b/node_modules/lodash/internal/baseMatchesProperty.js @@ -0,0 +1,45 @@ +var baseGet = require('./baseGet'), + baseIsEqual = require('./baseIsEqual'), + baseSlice = require('./baseSlice'), + isArray = require('../lang/isArray'), + isKey = require('./isKey'), + isStrictComparable = require('./isStrictComparable'), + last = require('../array/last'), + toObject = require('./toObject'), + toPath = require('./toPath'); + +/** + * The base implementation of `_.matchesProperty` which does not clone `srcValue`. + * + * @private + * @param {string} path The path of the property to get. + * @param {*} srcValue The value to compare. + * @returns {Function} Returns the new function. + */ +function baseMatchesProperty(path, srcValue) { + var isArr = isArray(path), + isCommon = isKey(path) && isStrictComparable(srcValue), + pathKey = (path + ''); + + path = toPath(path); + return function(object) { + if (object == null) { + return false; + } + var key = pathKey; + object = toObject(object); + if ((isArr || !isCommon) && !(key in object)) { + object = path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1)); + if (object == null) { + return false; + } + key = last(path); + object = toObject(object); + } + return object[key] === srcValue + ? (srcValue !== undefined || (key in object)) + : baseIsEqual(srcValue, object[key], undefined, true); + }; +} + +module.exports = baseMatchesProperty; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseMerge.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseMerge.js b/node_modules/lodash/internal/baseMerge.js new file mode 100644 index 0000000..ab81900 --- /dev/null +++ b/node_modules/lodash/internal/baseMerge.js @@ -0,0 +1,56 @@ +var arrayEach = require('./arrayEach'), + baseMergeDeep = require('./baseMergeDeep'), + isArray = require('../lang/isArray'), + isArrayLike = require('./isArrayLike'), + isObject = require('../lang/isObject'), + isObjectLike = require('./isObjectLike'), + isTypedArray = require('../lang/isTypedArray'), + keys = require('../object/keys'); + +/** + * The base implementation of `_.merge` without support for argument juggling, + * multiple sources, and `this` binding `customizer` functions. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @param {Function} [customizer] The function to customize merged values. + * @param {Array} [stackA=[]] Tracks traversed source objects. + * @param {Array} [stackB=[]] Associates values with source counterparts. + * @returns {Object} Returns `object`. + */ +function baseMerge(object, source, customizer, stackA, stackB) { + if (!isObject(object)) { + return object; + } + var isSrcArr = isArrayLike(source) && (isArray(source) || isTypedArray(source)), + props = isSrcArr ? undefined : keys(source); + + arrayEach(props || source, function(srcValue, key) { + if (props) { + key = srcValue; + srcValue = source[key]; + } + if (isObjectLike(srcValue)) { + stackA || (stackA = []); + stackB || (stackB = []); + baseMergeDeep(object, source, key, baseMerge, customizer, stackA, stackB); + } + else { + var value = object[key], + result = customizer ? customizer(value, srcValue, key, object, source) : undefined, + isCommon = result === undefined; + + if (isCommon) { + result = srcValue; + } + if ((result !== undefined || (isSrcArr && !(key in object))) && + (isCommon || (result === result ? (result !== value) : (value === value)))) { + object[key] = result; + } + } + }); + return object; +} + +module.exports = baseMerge; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseMergeDeep.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseMergeDeep.js b/node_modules/lodash/internal/baseMergeDeep.js new file mode 100644 index 0000000..f8aeac5 --- /dev/null +++ b/node_modules/lodash/internal/baseMergeDeep.js @@ -0,0 +1,67 @@ +var arrayCopy = require('./arrayCopy'), + isArguments = require('../lang/isArguments'), + isArray = require('../lang/isArray'), + isArrayLike = require('./isArrayLike'), + isPlainObject = require('../lang/isPlainObject'), + isTypedArray = require('../lang/isTypedArray'), + toPlainObject = require('../lang/toPlainObject'); + +/** + * A specialized version of `baseMerge` for arrays and objects which performs + * deep merges and tracks traversed objects enabling objects with circular + * references to be merged. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @param {string} key The key of the value to merge. + * @param {Function} mergeFunc The function to merge values. + * @param {Function} [customizer] The function to customize merged values. + * @param {Array} [stackA=[]] Tracks traversed source objects. + * @param {Array} [stackB=[]] Associates values with source counterparts. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function baseMergeDeep(object, source, key, mergeFunc, customizer, stackA, stackB) { + var length = stackA.length, + srcValue = source[key]; + + while (length--) { + if (stackA[length] == srcValue) { + object[key] = stackB[length]; + return; + } + } + var value = object[key], + result = customizer ? customizer(value, srcValue, key, object, source) : undefined, + isCommon = result === undefined; + + if (isCommon) { + result = srcValue; + if (isArrayLike(srcValue) && (isArray(srcValue) || isTypedArray(srcValue))) { + result = isArray(value) + ? value + : (isArrayLike(value) ? arrayCopy(value) : []); + } + else if (isPlainObject(srcValue) || isArguments(srcValue)) { + result = isArguments(value) + ? toPlainObject(value) + : (isPlainObject(value) ? value : {}); + } + else { + isCommon = false; + } + } + // Add the source value to the stack of traversed objects and associate + // it with its merged value. + stackA.push(srcValue); + stackB.push(result); + + if (isCommon) { + // Recursively merge objects and arrays (susceptible to call stack limits). + object[key] = mergeFunc(result, srcValue, customizer, stackA, stackB); + } else if (result === result ? (result !== value) : (value === value)) { + object[key] = result; + } +} + +module.exports = baseMergeDeep; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseProperty.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseProperty.js b/node_modules/lodash/internal/baseProperty.js new file mode 100644 index 0000000..e515941 --- /dev/null +++ b/node_modules/lodash/internal/baseProperty.js @@ -0,0 +1,14 @@ +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} + +module.exports = baseProperty; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/basePropertyDeep.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/basePropertyDeep.js b/node_modules/lodash/internal/basePropertyDeep.js new file mode 100644 index 0000000..1b6ce40 --- /dev/null +++ b/node_modules/lodash/internal/basePropertyDeep.js @@ -0,0 +1,19 @@ +var baseGet = require('./baseGet'), + toPath = require('./toPath'); + +/** + * A specialized version of `baseProperty` which supports deep paths. + * + * @private + * @param {Array|string} path The path of the property to get. + * @returns {Function} Returns the new function. + */ +function basePropertyDeep(path) { + var pathKey = (path + ''); + path = toPath(path); + return function(object) { + return baseGet(object, path, pathKey); + }; +} + +module.exports = basePropertyDeep; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/basePullAt.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/basePullAt.js b/node_modules/lodash/internal/basePullAt.js new file mode 100644 index 0000000..6c4ff84 --- /dev/null +++ b/node_modules/lodash/internal/basePullAt.js @@ -0,0 +1,30 @@ +var isIndex = require('./isIndex'); + +/** Used for native method references. */ +var arrayProto = Array.prototype; + +/** Native method references. */ +var splice = arrayProto.splice; + +/** + * The base implementation of `_.pullAt` without support for individual + * index arguments and capturing the removed elements. + * + * @private + * @param {Array} array The array to modify. + * @param {number[]} indexes The indexes of elements to remove. + * @returns {Array} Returns `array`. + */ +function basePullAt(array, indexes) { + var length = array ? indexes.length : 0; + while (length--) { + var index = indexes[length]; + if (index != previous && isIndex(index)) { + var previous = index; + splice.call(array, index, 1); + } + } + return array; +} + +module.exports = basePullAt; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseRandom.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseRandom.js b/node_modules/lodash/internal/baseRandom.js new file mode 100644 index 0000000..fa3326c --- /dev/null +++ b/node_modules/lodash/internal/baseRandom.js @@ -0,0 +1,18 @@ +/* Native method references for those with the same name as other `lodash` methods. */ +var nativeFloor = Math.floor, + nativeRandom = Math.random; + +/** + * The base implementation of `_.random` without support for argument juggling + * and returning floating-point numbers. + * + * @private + * @param {number} min The minimum possible value. + * @param {number} max The maximum possible value. + * @returns {number} Returns the random number. + */ +function baseRandom(min, max) { + return min + nativeFloor(nativeRandom() * (max - min + 1)); +} + +module.exports = baseRandom; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseReduce.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseReduce.js b/node_modules/lodash/internal/baseReduce.js new file mode 100644 index 0000000..5e6ae55 --- /dev/null +++ b/node_modules/lodash/internal/baseReduce.js @@ -0,0 +1,24 @@ +/** + * The base implementation of `_.reduce` and `_.reduceRight` without support + * for callback shorthands and `this` binding, which iterates over `collection` + * using the provided `eachFunc`. + * + * @private + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {*} accumulator The initial value. + * @param {boolean} initFromCollection Specify using the first or last element + * of `collection` as the initial value. + * @param {Function} eachFunc The function to iterate over `collection`. + * @returns {*} Returns the accumulated value. + */ +function baseReduce(collection, iteratee, accumulator, initFromCollection, eachFunc) { + eachFunc(collection, function(value, index, collection) { + accumulator = initFromCollection + ? (initFromCollection = false, value) + : iteratee(accumulator, value, index, collection); + }); + return accumulator; +} + +module.exports = baseReduce; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseSetData.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseSetData.js b/node_modules/lodash/internal/baseSetData.js new file mode 100644 index 0000000..5c98622 --- /dev/null +++ b/node_modules/lodash/internal/baseSetData.js @@ -0,0 +1,17 @@ +var identity = require('../utility/identity'), + metaMap = require('./metaMap'); + +/** + * The base implementation of `setData` without support for hot loop detection. + * + * @private + * @param {Function} func The function to associate metadata with. + * @param {*} data The metadata. + * @returns {Function} Returns `func`. + */ +var baseSetData = !metaMap ? identity : function(func, data) { + metaMap.set(func, data); + return func; +}; + +module.exports = baseSetData; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseSlice.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseSlice.js b/node_modules/lodash/internal/baseSlice.js new file mode 100644 index 0000000..9d1012e --- /dev/null +++ b/node_modules/lodash/internal/baseSlice.js @@ -0,0 +1,32 @@ +/** + * The base implementation of `_.slice` without an iteratee call guard. + * + * @private + * @param {Array} array The array to slice. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the slice of `array`. + */ +function baseSlice(array, start, end) { + var index = -1, + length = array.length; + + start = start == null ? 0 : (+start || 0); + if (start < 0) { + start = -start > length ? 0 : (length + start); + } + end = (end === undefined || end > length) ? length : (+end || 0); + if (end < 0) { + end += length; + } + length = start > end ? 0 : ((end - start) >>> 0); + start >>>= 0; + + var result = Array(length); + while (++index < length) { + result[index] = array[index + start]; + } + return result; +} + +module.exports = baseSlice; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseSome.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseSome.js b/node_modules/lodash/internal/baseSome.js new file mode 100644 index 0000000..39a0058 --- /dev/null +++ b/node_modules/lodash/internal/baseSome.js @@ -0,0 +1,23 @@ +var baseEach = require('./baseEach'); + +/** + * The base implementation of `_.some` without support for callback shorthands + * and `this` binding. + * + * @private + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + */ +function baseSome(collection, predicate) { + var result; + + baseEach(collection, function(value, index, collection) { + result = predicate(value, index, collection); + return !result; + }); + return !!result; +} + +module.exports = baseSome; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseSortBy.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseSortBy.js b/node_modules/lodash/internal/baseSortBy.js new file mode 100644 index 0000000..fec0afe --- /dev/null +++ b/node_modules/lodash/internal/baseSortBy.js @@ -0,0 +1,21 @@ +/** + * The base implementation of `_.sortBy` which uses `comparer` to define + * the sort order of `array` and replaces criteria objects with their + * corresponding values. + * + * @private + * @param {Array} array The array to sort. + * @param {Function} comparer The function to define sort order. + * @returns {Array} Returns `array`. + */ +function baseSortBy(array, comparer) { + var length = array.length; + + array.sort(comparer); + while (length--) { + array[length] = array[length].value; + } + return array; +} + +module.exports = baseSortBy; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseSortByOrder.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseSortByOrder.js b/node_modules/lodash/internal/baseSortByOrder.js new file mode 100644 index 0000000..0a9ef20 --- /dev/null +++ b/node_modules/lodash/internal/baseSortByOrder.js @@ -0,0 +1,31 @@ +var arrayMap = require('./arrayMap'), + baseCallback = require('./baseCallback'), + baseMap = require('./baseMap'), + baseSortBy = require('./baseSortBy'), + compareMultiple = require('./compareMultiple'); + +/** + * The base implementation of `_.sortByOrder` without param guards. + * + * @private + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by. + * @param {boolean[]} orders The sort orders of `iteratees`. + * @returns {Array} Returns the new sorted array. + */ +function baseSortByOrder(collection, iteratees, orders) { + var index = -1; + + iteratees = arrayMap(iteratees, function(iteratee) { return baseCallback(iteratee); }); + + var result = baseMap(collection, function(value) { + var criteria = arrayMap(iteratees, function(iteratee) { return iteratee(value); }); + return { 'criteria': criteria, 'index': ++index, 'value': value }; + }); + + return baseSortBy(result, function(object, other) { + return compareMultiple(object, other, orders); + }); +} + +module.exports = baseSortByOrder; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseSum.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseSum.js b/node_modules/lodash/internal/baseSum.js new file mode 100644 index 0000000..019e5ae --- /dev/null +++ b/node_modules/lodash/internal/baseSum.js @@ -0,0 +1,20 @@ +var baseEach = require('./baseEach'); + +/** + * The base implementation of `_.sum` without support for callback shorthands + * and `this` binding. + * + * @private + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {number} Returns the sum. + */ +function baseSum(collection, iteratee) { + var result = 0; + baseEach(collection, function(value, index, collection) { + result += +iteratee(value, index, collection) || 0; + }); + return result; +} + +module.exports = baseSum; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseToString.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseToString.js b/node_modules/lodash/internal/baseToString.js new file mode 100644 index 0000000..b802640 --- /dev/null +++ b/node_modules/lodash/internal/baseToString.js @@ -0,0 +1,13 @@ +/** + * Converts `value` to a string if it's not one. An empty string is returned + * for `null` or `undefined` values. + * + * @private + * @param {*} value The value to process. + * @returns {string} Returns the string. + */ +function baseToString(value) { + return value == null ? '' : (value + ''); +} + +module.exports = baseToString; http://git-wip-us.apache.org/repos/asf/cordova-android/blob/1d7ccaec/node_modules/lodash/internal/baseUniq.js ---------------------------------------------------------------------- diff --git a/node_modules/lodash/internal/baseUniq.js b/node_modules/lodash/internal/baseUniq.js new file mode 100644 index 0000000..a043443 --- /dev/null +++ b/node_modules/lodash/internal/baseUniq.js @@ -0,0 +1,60 @@ +var baseIndexOf = require('./baseIndexOf'), + cacheIndexOf = require('./cacheIndexOf'), + createCache = require('./createCache'); + +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; + +/** + * The base implementation of `_.uniq` without support for callback shorthands + * and `this` binding. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} [iteratee] The function invoked per iteration. + * @returns {Array} Returns the new duplicate free array. + */ +function baseUniq(array, iteratee) { + var index = -1, + indexOf = baseIndexOf, + length = array.length, + isCommon = true, + isLarge = isCommon && length >= LARGE_ARRAY_SIZE, + seen = isLarge ? createCache() : null, + result = []; + + if (seen) { + indexOf = cacheIndexOf; + isCommon = false; + } else { + isLarge = false; + seen = iteratee ? [] : result; + } + outer: + while (++index < length) { + var value = array[index], + computed = iteratee ? iteratee(value, index, array) : value; + + if (isCommon && value === value) { + var seenIndex = seen.length; + while (seenIndex--) { + if (seen[seenIndex] === computed) { + continue outer; + } + } + if (iteratee) { + seen.push(computed); + } + result.push(value); + } + else if (indexOf(seen, computed, 0) < 0) { + if (iteratee || isLarge) { + seen.push(computed); + } + result.push(value); + } + } + return result; +} + +module.exports = baseUniq; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org