mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Bump to v4.1.4.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# lodash v4.1.3
|
# lodash v4.1.4
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method.
|
The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method.
|
||||||
|
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
||||||
|
|
||||||
Based on Underscore.js, copyright Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
||||||
|
|
||||||
This software consists of voluntary contributions made by many
|
|
||||||
individuals. For exact contribution history, see the revision history
|
|
||||||
available at https://github.com/lodash/lodash
|
|
||||||
|
|
||||||
The following license applies to all parts of this software except as
|
|
||||||
documented below:
|
|
||||||
|
|
||||||
====
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
====
|
|
||||||
|
|
||||||
Copyright and related rights for sample code are waived via CC0. Sample
|
|
||||||
code is defined as all source code displayed within the prose of the
|
|
||||||
documentation.
|
|
||||||
|
|
||||||
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
|
||||||
|
|
||||||
====
|
|
||||||
|
|
||||||
Files located in the node_modules and vendor directories are externally
|
|
||||||
maintained libraries used by this software which have their own
|
|
||||||
licenses; we recommend you read them, as their terms may differ from the
|
|
||||||
terms above.
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
# lodash._baseeach v4.1.3
|
|
||||||
|
|
||||||
The internal [lodash](https://lodash.com/) function `baseEach` exported as a [Node.js](https://nodejs.org/) module.
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
```bash
|
|
||||||
$ {sudo -H} npm i -g npm
|
|
||||||
$ npm i --save lodash._baseeach
|
|
||||||
```
|
|
||||||
|
|
||||||
In Node.js:
|
|
||||||
```js
|
|
||||||
var baseEach = require('lodash._baseeach');
|
|
||||||
```
|
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash._baseeach) for more details.
|
|
||||||
@@ -1,556 +0,0 @@
|
|||||||
/**
|
|
||||||
* lodash (Custom Build) <https://lodash.com/>
|
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
|
||||||
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
||||||
* Released under MIT license <https://lodash.com/license>
|
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
||||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** Used as references for various `Number` constants. */
|
|
||||||
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
||||||
|
|
||||||
/** `Object#toString` result references. */
|
|
||||||
var argsTag = '[object Arguments]',
|
|
||||||
funcTag = '[object Function]',
|
|
||||||
genTag = '[object GeneratorFunction]',
|
|
||||||
stringTag = '[object String]';
|
|
||||||
|
|
||||||
/** Used to detect unsigned integer values. */
|
|
||||||
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of `_.times` without support for iteratee shorthands
|
|
||||||
* or max array length checks.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {number} n The number of times to invoke `iteratee`.
|
|
||||||
* @param {Function} iteratee The function invoked per iteration.
|
|
||||||
* @returns {Array} Returns the array of results.
|
|
||||||
*/
|
|
||||||
function baseTimes(n, iteratee) {
|
|
||||||
var index = -1,
|
|
||||||
result = Array(n);
|
|
||||||
|
|
||||||
while (++index < n) {
|
|
||||||
result[index] = iteratee(index);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Used for built-in 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 objectToString = objectProto.toString;
|
|
||||||
|
|
||||||
/** Built-in value references. */
|
|
||||||
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
||||||
|
|
||||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
||||||
var nativeGetPrototype = Object.getPrototypeOf,
|
|
||||||
nativeKeys = Object.keys;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of `_.forEach` without support for iteratee shorthands.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array|Object} collection The collection to iterate over.
|
|
||||||
* @param {Function} iteratee The function invoked per iteration.
|
|
||||||
* @returns {Array|Object} Returns `collection`.
|
|
||||||
*/
|
|
||||||
var baseEach = createBaseEach(baseForOwn);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of `baseForOwn` which iterates over `object`
|
|
||||||
* properties returned by `keysFunc` and invokes `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();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
|
||||||
*
|
|
||||||
* @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 object && baseFor(object, iteratee, keys);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of `_.has` without support for deep paths.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} object The object to query.
|
|
||||||
* @param {Array|string} key The key to check.
|
|
||||||
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
|
||||||
*/
|
|
||||||
function baseHas(object, key) {
|
|
||||||
// Avoid a bug in IE 10-11 where objects with a [[Prototype]] of `null`,
|
|
||||||
// that are composed entirely of index properties, return `false` for
|
|
||||||
// `hasOwnProperty` checks of them.
|
|
||||||
return hasOwnProperty.call(object, key) ||
|
|
||||||
(typeof object == 'object' && key in object && getPrototype(object) === null);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of `_.keys` which doesn't skip the constructor
|
|
||||||
* property of prototypes or treat sparse arrays as dense.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} object The object to query.
|
|
||||||
* @returns {Array} Returns the array of property names.
|
|
||||||
*/
|
|
||||||
function baseKeys(object) {
|
|
||||||
return nativeKeys(Object(object));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 accessor function.
|
|
||||||
*/
|
|
||||||
function baseProperty(key) {
|
|
||||||
return function(object) {
|
|
||||||
return object == null ? undefined : object[key];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a `baseEach` or `baseEachRight` function.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Function} eachFunc The function to iterate over a collection.
|
|
||||||
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
||||||
* @returns {Function} Returns the new base function.
|
|
||||||
*/
|
|
||||||
function createBaseEach(eachFunc, fromRight) {
|
|
||||||
return function(collection, iteratee) {
|
|
||||||
if (collection == null) {
|
|
||||||
return collection;
|
|
||||||
}
|
|
||||||
if (!isArrayLike(collection)) {
|
|
||||||
return eachFunc(collection, iteratee);
|
|
||||||
}
|
|
||||||
var length = collection.length,
|
|
||||||
index = fromRight ? length : -1,
|
|
||||||
iterable = Object(collection);
|
|
||||||
|
|
||||||
while ((fromRight ? index-- : ++index < length)) {
|
|
||||||
if (iteratee(iterable[index], index, iterable) === false) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return collection;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
||||||
* @returns {Function} Returns the new base function.
|
|
||||||
*/
|
|
||||||
function createBaseFor(fromRight) {
|
|
||||||
return function(object, iteratee, keysFunc) {
|
|
||||||
var index = -1,
|
|
||||||
iterable = Object(object),
|
|
||||||
props = keysFunc(object),
|
|
||||||
length = props.length;
|
|
||||||
|
|
||||||
while (length--) {
|
|
||||||
var key = props[fromRight ? length : ++index];
|
|
||||||
if (iteratee(iterable[key], key, iterable) === false) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return object;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the "length" property value of `object`.
|
|
||||||
*
|
|
||||||
* **Note:** This function is used to avoid a
|
|
||||||
* [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
|
|
||||||
* Safari on at least iOS 8.1-8.3 ARM64.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} object The object to query.
|
|
||||||
* @returns {*} Returns the "length" value.
|
|
||||||
*/
|
|
||||||
var getLength = baseProperty('length');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the `[[Prototype]]` of `value`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to query.
|
|
||||||
* @returns {null|Object} Returns the `[[Prototype]]`.
|
|
||||||
*/
|
|
||||||
function getPrototype(value) {
|
|
||||||
return nativeGetPrototype(Object(value));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates an array of index keys for `object` values of arrays,
|
|
||||||
* `arguments` objects, and strings, otherwise `null` is returned.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} object The object to query.
|
|
||||||
* @returns {Array|null} Returns index keys, else `null`.
|
|
||||||
*/
|
|
||||||
function indexKeys(object) {
|
|
||||||
var length = object ? object.length : undefined;
|
|
||||||
if (isLength(length) &&
|
|
||||||
(isArray(object) || isString(object) || isArguments(object))) {
|
|
||||||
return baseTimes(length, String);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is a valid array-like index.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
||||||
*/
|
|
||||||
function isIndex(value, length) {
|
|
||||||
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
||||||
return !!length &&
|
|
||||||
(typeof value == 'number' || reIsUint.test(value)) &&
|
|
||||||
(value > -1 && value % 1 == 0 && value < length);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is likely a prototype object.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
||||||
*/
|
|
||||||
function isPrototype(value) {
|
|
||||||
var Ctor = value && value.constructor,
|
|
||||||
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
|
|
||||||
|
|
||||||
return value === proto;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is likely an `arguments` object.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 0.1.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
|
||||||
* else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isArguments(function() { return arguments; }());
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isArguments([1, 2, 3]);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isArguments(value) {
|
|
||||||
// Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode.
|
|
||||||
return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
|
|
||||||
(!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is classified as an `Array` object.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 0.1.0
|
|
||||||
* @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 array-like. A value is considered array-like if it's
|
|
||||||
* not a function and has a `value.length` that's an integer greater than or
|
|
||||||
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 4.0.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isArrayLike([1, 2, 3]);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isArrayLike(document.body.children);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isArrayLike('abc');
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isArrayLike(_.noop);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isArrayLike(value) {
|
|
||||||
return value != null && isLength(getLength(value)) && !isFunction(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
||||||
* is an object.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 4.0.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
|
||||||
* else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isArrayLikeObject([1, 2, 3]);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isArrayLikeObject(document.body.children);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isArrayLikeObject('abc');
|
|
||||||
* // => false
|
|
||||||
*
|
|
||||||
* _.isArrayLikeObject(_.noop);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isArrayLikeObject(value) {
|
|
||||||
return isObjectLike(value) && isArrayLike(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is classified as a `Function` object.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 0.1.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
|
||||||
* else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isFunction(_);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isFunction(/abc/);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isFunction(value) {
|
|
||||||
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
||||||
// in Safari 8 which returns 'object' for typed array and weak map constructors,
|
|
||||||
// and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
|
|
||||||
var tag = isObject(value) ? objectToString.call(value) : '';
|
|
||||||
return tag == funcTag || tag == genTag;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is a valid array-like length.
|
|
||||||
*
|
|
||||||
* **Note:** This function is loosely based on
|
|
||||||
* [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 4.0.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is a valid length,
|
|
||||||
* else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isLength(3);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isLength(Number.MIN_VALUE);
|
|
||||||
* // => false
|
|
||||||
*
|
|
||||||
* _.isLength(Infinity);
|
|
||||||
* // => false
|
|
||||||
*
|
|
||||||
* _.isLength('3');
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isLength(value) {
|
|
||||||
return typeof value == 'number' &&
|
|
||||||
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is the
|
|
||||||
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
|
|
||||||
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 0.1.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isObject({});
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObject([1, 2, 3]);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObject(_.noop);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObject(null);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isObject(value) {
|
|
||||||
var type = typeof value;
|
|
||||||
return !!value && (type == 'object' || type == 'function');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 _
|
|
||||||
* @since 4.0.0
|
|
||||||
* @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';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is classified as a `String` primitive or object.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @since 0.1.0
|
|
||||||
* @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.call(value) == stringTag);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates an array of the own enumerable property names of `object`.
|
|
||||||
*
|
|
||||||
* **Note:** Non-object values are coerced to objects. See the
|
|
||||||
* [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @since 0.1.0
|
|
||||||
* @memberOf _
|
|
||||||
* @category Object
|
|
||||||
* @param {Object} object The object to query.
|
|
||||||
* @returns {Array} Returns the array of property names.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* function Foo() {
|
|
||||||
* this.a = 1;
|
|
||||||
* this.b = 2;
|
|
||||||
* }
|
|
||||||
*
|
|
||||||
* Foo.prototype.c = 3;
|
|
||||||
*
|
|
||||||
* _.keys(new Foo);
|
|
||||||
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
||||||
*
|
|
||||||
* _.keys('hi');
|
|
||||||
* // => ['0', '1']
|
|
||||||
*/
|
|
||||||
function keys(object) {
|
|
||||||
var isProto = isPrototype(object);
|
|
||||||
if (!(isProto || isArrayLike(object))) {
|
|
||||||
return baseKeys(object);
|
|
||||||
}
|
|
||||||
var indexes = indexKeys(object),
|
|
||||||
skipIndexes = !!indexes,
|
|
||||||
result = indexes || [],
|
|
||||||
length = result.length;
|
|
||||||
|
|
||||||
for (var key in object) {
|
|
||||||
if (baseHas(object, key) &&
|
|
||||||
!(skipIndexes && (key == 'length' || isIndex(key, length))) &&
|
|
||||||
!(isProto && key == 'constructor')) {
|
|
||||||
result.push(key);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = baseEach;
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "lodash._baseeach",
|
|
||||||
"version": "4.1.3",
|
|
||||||
"description": "The internal lodash function `baseEach` exported as a module.",
|
|
||||||
"homepage": "https://lodash.com/",
|
|
||||||
"icon": "https://lodash.com/icon.svg",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"contributors": [
|
|
||||||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
|
|
||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
|
||||||
],
|
|
||||||
"repository": "lodash/lodash",
|
|
||||||
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
|
||||||
}
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
||||||
|
|
||||||
Based on Underscore.js, copyright Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
||||||
|
|
||||||
This software consists of voluntary contributions made by many
|
|
||||||
individuals. For exact contribution history, see the revision history
|
|
||||||
available at https://github.com/lodash/lodash
|
|
||||||
|
|
||||||
The following license applies to all parts of this software except as
|
|
||||||
documented below:
|
|
||||||
|
|
||||||
====
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
====
|
|
||||||
|
|
||||||
Copyright and related rights for sample code are waived via CC0. Sample
|
|
||||||
code is defined as all source code displayed within the prose of the
|
|
||||||
documentation.
|
|
||||||
|
|
||||||
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
|
||||||
|
|
||||||
====
|
|
||||||
|
|
||||||
Files located in the node_modules and vendor directories are externally
|
|
||||||
maintained libraries used by this software which have their own
|
|
||||||
licenses; we recommend you read them, as their terms may differ from the
|
|
||||||
terms above.
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
# lodash._baseeachright v4.1.3
|
|
||||||
|
|
||||||
The internal [lodash](https://lodash.com/) function `baseEachRight` exported as a [Node.js](https://nodejs.org/) module.
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
```bash
|
|
||||||
$ {sudo -H} npm i -g npm
|
|
||||||
$ npm i --save lodash._baseeachright
|
|
||||||
```
|
|
||||||
|
|
||||||
In Node.js:
|
|
||||||
```js
|
|
||||||
var baseEachRight = require('lodash._baseeachright');
|
|
||||||
```
|
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash._baseeachright) for more details.
|
|
||||||
@@ -1,555 +0,0 @@
|
|||||||
/**
|
|
||||||
* lodash (Custom Build) <https://lodash.com/>
|
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
|
||||||
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
||||||
* Released under MIT license <https://lodash.com/license>
|
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
||||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** Used as references for various `Number` constants. */
|
|
||||||
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
||||||
|
|
||||||
/** `Object#toString` result references. */
|
|
||||||
var argsTag = '[object Arguments]',
|
|
||||||
funcTag = '[object Function]',
|
|
||||||
genTag = '[object GeneratorFunction]',
|
|
||||||
stringTag = '[object String]';
|
|
||||||
|
|
||||||
/** Used to detect unsigned integer values. */
|
|
||||||
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of `_.times` without support for iteratee shorthands
|
|
||||||
* or max array length checks.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {number} n The number of times to invoke `iteratee`.
|
|
||||||
* @param {Function} iteratee The function invoked per iteration.
|
|
||||||
* @returns {Array} Returns the array of results.
|
|
||||||
*/
|
|
||||||
function baseTimes(n, iteratee) {
|
|
||||||
var index = -1,
|
|
||||||
result = Array(n);
|
|
||||||
|
|
||||||
while (++index < n) {
|
|
||||||
result[index] = iteratee(index);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Used for built-in 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 objectToString = objectProto.toString;
|
|
||||||
|
|
||||||
/** Built-in value references. */
|
|
||||||
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
||||||
|
|
||||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
||||||
var nativeGetPrototype = Object.getPrototypeOf,
|
|
||||||
nativeKeys = Object.keys;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of `_.forEachRight` without support for iteratee shorthands.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array|Object} collection The collection to iterate over.
|
|
||||||
* @param {Function} iteratee The function invoked per iteration.
|
|
||||||
* @returns {Array|Object} Returns `collection`.
|
|
||||||
*/
|
|
||||||
var baseEachRight = createBaseEach(baseForOwnRight, true);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of `_.forOwnRight` without support for iteratee shorthands.
|
|
||||||
*
|
|
||||||
* @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 object && baseForRight(object, iteratee, keys);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of `_.has` without support for deep paths.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} object The object to query.
|
|
||||||
* @param {Array|string} key The key to check.
|
|
||||||
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
|
||||||
*/
|
|
||||||
function baseHas(object, key) {
|
|
||||||
// Avoid a bug in IE 10-11 where objects with a [[Prototype]] of `null`,
|
|
||||||
// that are composed entirely of index properties, return `false` for
|
|
||||||
// `hasOwnProperty` checks of them.
|
|
||||||
return hasOwnProperty.call(object, key) ||
|
|
||||||
(typeof object == 'object' && key in object && getPrototype(object) === null);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of `_.keys` which doesn't skip the constructor
|
|
||||||
* property of prototypes or treat sparse arrays as dense.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} object The object to query.
|
|
||||||
* @returns {Array} Returns the array of property names.
|
|
||||||
*/
|
|
||||||
function baseKeys(object) {
|
|
||||||
return nativeKeys(Object(object));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 accessor function.
|
|
||||||
*/
|
|
||||||
function baseProperty(key) {
|
|
||||||
return function(object) {
|
|
||||||
return object == null ? undefined : object[key];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a `baseEach` or `baseEachRight` function.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Function} eachFunc The function to iterate over a collection.
|
|
||||||
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
||||||
* @returns {Function} Returns the new base function.
|
|
||||||
*/
|
|
||||||
function createBaseEach(eachFunc, fromRight) {
|
|
||||||
return function(collection, iteratee) {
|
|
||||||
if (collection == null) {
|
|
||||||
return collection;
|
|
||||||
}
|
|
||||||
if (!isArrayLike(collection)) {
|
|
||||||
return eachFunc(collection, iteratee);
|
|
||||||
}
|
|
||||||
var length = collection.length,
|
|
||||||
index = fromRight ? length : -1,
|
|
||||||
iterable = Object(collection);
|
|
||||||
|
|
||||||
while ((fromRight ? index-- : ++index < length)) {
|
|
||||||
if (iteratee(iterable[index], index, iterable) === false) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return collection;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
||||||
* @returns {Function} Returns the new base function.
|
|
||||||
*/
|
|
||||||
function createBaseFor(fromRight) {
|
|
||||||
return function(object, iteratee, keysFunc) {
|
|
||||||
var index = -1,
|
|
||||||
iterable = Object(object),
|
|
||||||
props = keysFunc(object),
|
|
||||||
length = props.length;
|
|
||||||
|
|
||||||
while (length--) {
|
|
||||||
var key = props[fromRight ? length : ++index];
|
|
||||||
if (iteratee(iterable[key], key, iterable) === false) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return object;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the "length" property value of `object`.
|
|
||||||
*
|
|
||||||
* **Note:** This function is used to avoid a
|
|
||||||
* [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
|
|
||||||
* Safari on at least iOS 8.1-8.3 ARM64.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} object The object to query.
|
|
||||||
* @returns {*} Returns the "length" value.
|
|
||||||
*/
|
|
||||||
var getLength = baseProperty('length');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the `[[Prototype]]` of `value`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to query.
|
|
||||||
* @returns {null|Object} Returns the `[[Prototype]]`.
|
|
||||||
*/
|
|
||||||
function getPrototype(value) {
|
|
||||||
return nativeGetPrototype(Object(value));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates an array of index keys for `object` values of arrays,
|
|
||||||
* `arguments` objects, and strings, otherwise `null` is returned.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} object The object to query.
|
|
||||||
* @returns {Array|null} Returns index keys, else `null`.
|
|
||||||
*/
|
|
||||||
function indexKeys(object) {
|
|
||||||
var length = object ? object.length : undefined;
|
|
||||||
if (isLength(length) &&
|
|
||||||
(isArray(object) || isString(object) || isArguments(object))) {
|
|
||||||
return baseTimes(length, String);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is a valid array-like index.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
||||||
*/
|
|
||||||
function isIndex(value, length) {
|
|
||||||
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
||||||
return !!length &&
|
|
||||||
(typeof value == 'number' || reIsUint.test(value)) &&
|
|
||||||
(value > -1 && value % 1 == 0 && value < length);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is likely a prototype object.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
||||||
*/
|
|
||||||
function isPrototype(value) {
|
|
||||||
var Ctor = value && value.constructor,
|
|
||||||
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
|
|
||||||
|
|
||||||
return value === proto;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is likely an `arguments` object.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 0.1.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
|
||||||
* else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isArguments(function() { return arguments; }());
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isArguments([1, 2, 3]);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isArguments(value) {
|
|
||||||
// Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode.
|
|
||||||
return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
|
|
||||||
(!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is classified as an `Array` object.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 0.1.0
|
|
||||||
* @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 array-like. A value is considered array-like if it's
|
|
||||||
* not a function and has a `value.length` that's an integer greater than or
|
|
||||||
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 4.0.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isArrayLike([1, 2, 3]);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isArrayLike(document.body.children);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isArrayLike('abc');
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isArrayLike(_.noop);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isArrayLike(value) {
|
|
||||||
return value != null && isLength(getLength(value)) && !isFunction(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
||||||
* is an object.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 4.0.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
|
||||||
* else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isArrayLikeObject([1, 2, 3]);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isArrayLikeObject(document.body.children);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isArrayLikeObject('abc');
|
|
||||||
* // => false
|
|
||||||
*
|
|
||||||
* _.isArrayLikeObject(_.noop);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isArrayLikeObject(value) {
|
|
||||||
return isObjectLike(value) && isArrayLike(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is classified as a `Function` object.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 0.1.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
|
||||||
* else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isFunction(_);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isFunction(/abc/);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isFunction(value) {
|
|
||||||
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
||||||
// in Safari 8 which returns 'object' for typed array and weak map constructors,
|
|
||||||
// and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
|
|
||||||
var tag = isObject(value) ? objectToString.call(value) : '';
|
|
||||||
return tag == funcTag || tag == genTag;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is a valid array-like length.
|
|
||||||
*
|
|
||||||
* **Note:** This function is loosely based on
|
|
||||||
* [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 4.0.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is a valid length,
|
|
||||||
* else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isLength(3);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isLength(Number.MIN_VALUE);
|
|
||||||
* // => false
|
|
||||||
*
|
|
||||||
* _.isLength(Infinity);
|
|
||||||
* // => false
|
|
||||||
*
|
|
||||||
* _.isLength('3');
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isLength(value) {
|
|
||||||
return typeof value == 'number' &&
|
|
||||||
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is the
|
|
||||||
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
|
|
||||||
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 0.1.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isObject({});
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObject([1, 2, 3]);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObject(_.noop);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObject(null);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isObject(value) {
|
|
||||||
var type = typeof value;
|
|
||||||
return !!value && (type == 'object' || type == 'function');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 _
|
|
||||||
* @since 4.0.0
|
|
||||||
* @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';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is classified as a `String` primitive or object.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @since 0.1.0
|
|
||||||
* @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.call(value) == stringTag);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates an array of the own enumerable property names of `object`.
|
|
||||||
*
|
|
||||||
* **Note:** Non-object values are coerced to objects. See the
|
|
||||||
* [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @since 0.1.0
|
|
||||||
* @memberOf _
|
|
||||||
* @category Object
|
|
||||||
* @param {Object} object The object to query.
|
|
||||||
* @returns {Array} Returns the array of property names.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* function Foo() {
|
|
||||||
* this.a = 1;
|
|
||||||
* this.b = 2;
|
|
||||||
* }
|
|
||||||
*
|
|
||||||
* Foo.prototype.c = 3;
|
|
||||||
*
|
|
||||||
* _.keys(new Foo);
|
|
||||||
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
||||||
*
|
|
||||||
* _.keys('hi');
|
|
||||||
* // => ['0', '1']
|
|
||||||
*/
|
|
||||||
function keys(object) {
|
|
||||||
var isProto = isPrototype(object);
|
|
||||||
if (!(isProto || isArrayLike(object))) {
|
|
||||||
return baseKeys(object);
|
|
||||||
}
|
|
||||||
var indexes = indexKeys(object),
|
|
||||||
skipIndexes = !!indexes,
|
|
||||||
result = indexes || [],
|
|
||||||
length = result.length;
|
|
||||||
|
|
||||||
for (var key in object) {
|
|
||||||
if (baseHas(object, key) &&
|
|
||||||
!(skipIndexes && (key == 'length' || isIndex(key, length))) &&
|
|
||||||
!(isProto && key == 'constructor')) {
|
|
||||||
result.push(key);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = baseEachRight;
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "lodash._baseeachright",
|
|
||||||
"version": "4.1.3",
|
|
||||||
"description": "The internal lodash function `baseEachRight` exported as a module.",
|
|
||||||
"homepage": "https://lodash.com/",
|
|
||||||
"icon": "https://lodash.com/icon.svg",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"contributors": [
|
|
||||||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
|
|
||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
|
||||||
],
|
|
||||||
"repository": "lodash/lodash",
|
|
||||||
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
|
||||||
}
|
|
||||||
@@ -1,23 +1,47 @@
|
|||||||
The MIT License (MIT)
|
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
|
||||||
Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
Based on Underscore.js, copyright Jeremy Ashkenas,
|
||||||
Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
This software consists of voluntary contributions made by many
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
individuals. For exact contribution history, see the revision history
|
||||||
in the Software without restriction, including without limitation the rights
|
available at https://github.com/lodash/lodash
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
The following license applies to all parts of this software except as
|
||||||
copies or substantial portions of the Software.
|
documented below:
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
====
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
a copy of this software and associated documentation files (the
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
"Software"), to deal in the Software without restriction, including
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
SOFTWARE.
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Copyright and related rights for sample code are waived via CC0. Sample
|
||||||
|
code is defined as all source code displayed within the prose of the
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Files located in the node_modules and vendor directories are externally
|
||||||
|
maintained libraries used by this software which have their own
|
||||||
|
licenses; we recommend you read them, as their terms may differ from the
|
||||||
|
terms above.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash._mapcache v4.1.3
|
# lodash._mapcache v4.1.4
|
||||||
|
|
||||||
The internal [lodash](https://lodash.com/) function `MapCache` exported as a [Node.js](https://nodejs.org/) module.
|
The internal [lodash](https://lodash.com/) function `MapCache` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var MapCache = require('lodash._mapcache');
|
var MapCache = require('lodash._mapcache');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash._mapcache) for more details.
|
See the [package source](https://github.com/lodash/lodash/blob/4.1.4-npm-packages/lodash._mapcache) for more details.
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.1.3 (Custom Build) <https://lodash.com/>
|
* lodash 4.1.4 (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
* Released under MIT license <https://lodash.com/license>
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Used to stand-in for `undefined` hash values. */
|
/** Used to stand-in for `undefined` hash values. */
|
||||||
@@ -17,7 +17,7 @@ var funcTag = '[object Function]',
|
|||||||
/** Used to match `RegExp` [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns). */
|
/** Used to match `RegExp` [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns). */
|
||||||
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
||||||
|
|
||||||
/** Used to detect host constructors (Safari > 5). */
|
/** Used to detect host constructors (Safari). */
|
||||||
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
||||||
|
|
||||||
/** Used to determine if values are of the language type `Object`. */
|
/** Used to determine if values are of the language type `Object`. */
|
||||||
@@ -178,6 +178,9 @@ function hashSet(hash, key, value) {
|
|||||||
hash[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
hash[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Avoid inheriting from `Object.prototype` when possible.
|
||||||
|
Hash.prototype = nativeCreate ? nativeCreate(null) : objectProto;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a map cache object to store key-value pairs.
|
* Creates a map cache object to store key-value pairs.
|
||||||
*
|
*
|
||||||
@@ -270,7 +273,7 @@ function mapHas(key) {
|
|||||||
* @memberOf MapCache
|
* @memberOf MapCache
|
||||||
* @param {string} key The key of the value to set.
|
* @param {string} key The key of the value to set.
|
||||||
* @param {*} value The value to set.
|
* @param {*} value The value to set.
|
||||||
* @returns {Object} Returns the map cache object.
|
* @returns {Object} Returns the map cache instance.
|
||||||
*/
|
*/
|
||||||
function mapSet(key, value) {
|
function mapSet(key, value) {
|
||||||
var data = this.__data__;
|
var data = this.__data__;
|
||||||
@@ -284,11 +287,18 @@ function mapSet(key, value) {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add methods to `MapCache`.
|
||||||
|
MapCache.prototype.clear = mapClear;
|
||||||
|
MapCache.prototype['delete'] = mapDelete;
|
||||||
|
MapCache.prototype.get = mapGet;
|
||||||
|
MapCache.prototype.has = mapHas;
|
||||||
|
MapCache.prototype.set = mapSet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes `key` and its value from the associative array.
|
* Removes `key` and its value from the associative array.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Array} array The array to query.
|
* @param {Array} array The array to modify.
|
||||||
* @param {string} key The key of the value to remove.
|
* @param {string} key The key of the value to remove.
|
||||||
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
||||||
*/
|
*/
|
||||||
@@ -332,8 +342,7 @@ function assocHas(array, key) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the index at which the first occurrence of `key` is found in `array`
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
||||||
* of key-value pairs.
|
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Array} array The array to search.
|
* @param {Array} array The array to search.
|
||||||
@@ -394,11 +403,13 @@ function isKeyable(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
|
* Performs a
|
||||||
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
|
||||||
* comparison between two values to determine if they are equivalent.
|
* comparison between two values to determine if they are equivalent.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 4.0.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to compare.
|
* @param {*} value The value to compare.
|
||||||
* @param {*} other The other value to compare.
|
* @param {*} other The other value to compare.
|
||||||
@@ -432,9 +443,11 @@ function eq(value, other) {
|
|||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 0.1.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
||||||
|
* else `false`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.isFunction(_);
|
* _.isFunction(_);
|
||||||
@@ -457,6 +470,7 @@ function isFunction(value) {
|
|||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 0.1.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
||||||
@@ -485,6 +499,7 @@ function isObject(value) {
|
|||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 4.0.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
||||||
@@ -511,9 +526,11 @@ function isObjectLike(value) {
|
|||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 3.0.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is a native function, else `false`.
|
* @returns {boolean} Returns `true` if `value` is a native function,
|
||||||
|
* else `false`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.isNative(Array.prototype.push);
|
* _.isNative(Array.prototype.push);
|
||||||
@@ -533,14 +550,4 @@ function isNative(value) {
|
|||||||
(isHostObject(value) ? reIsNative : reIsHostCtor).test(value);
|
(isHostObject(value) ? reIsNative : reIsHostCtor).test(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Avoid inheriting from `Object.prototype` when possible.
|
|
||||||
Hash.prototype = nativeCreate ? nativeCreate(null) : objectProto;
|
|
||||||
|
|
||||||
// Add functions to the `MapCache`.
|
|
||||||
MapCache.prototype.clear = mapClear;
|
|
||||||
MapCache.prototype['delete'] = mapDelete;
|
|
||||||
MapCache.prototype.get = mapGet;
|
|
||||||
MapCache.prototype.has = mapHas;
|
|
||||||
MapCache.prototype.set = mapSet;
|
|
||||||
|
|
||||||
module.exports = MapCache;
|
module.exports = MapCache;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash._mapcache",
|
"name": "lodash._mapcache",
|
||||||
"version": "4.1.3",
|
"version": "4.1.4",
|
||||||
"description": "The internal lodash function `MapCache` exported as a module.",
|
"description": "The internal lodash function `MapCache` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
||||||
|
|
||||||
Based on Underscore.js, copyright Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
||||||
|
|
||||||
This software consists of voluntary contributions made by many
|
|
||||||
individuals. For exact contribution history, see the revision history
|
|
||||||
available at https://github.com/lodash/lodash
|
|
||||||
|
|
||||||
The following license applies to all parts of this software except as
|
|
||||||
documented below:
|
|
||||||
|
|
||||||
====
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
====
|
|
||||||
|
|
||||||
Copyright and related rights for sample code are waived via CC0. Sample
|
|
||||||
code is defined as all source code displayed within the prose of the
|
|
||||||
documentation.
|
|
||||||
|
|
||||||
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
|
||||||
|
|
||||||
====
|
|
||||||
|
|
||||||
Files located in the node_modules and vendor directories are externally
|
|
||||||
maintained libraries used by this software which have their own
|
|
||||||
licenses; we recommend you read them, as their terms may differ from the
|
|
||||||
terms above.
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
# lodash._setcache v4.1.3
|
|
||||||
|
|
||||||
The internal [lodash](https://lodash.com/) function `SetCache` exported as a [Node.js](https://nodejs.org/) module.
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
```bash
|
|
||||||
$ {sudo -H} npm i -g npm
|
|
||||||
$ npm i --save lodash._setcache
|
|
||||||
```
|
|
||||||
|
|
||||||
In Node.js:
|
|
||||||
```js
|
|
||||||
var SetCache = require('lodash._setcache');
|
|
||||||
```
|
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash._setcache) for more details.
|
|
||||||
@@ -1,588 +0,0 @@
|
|||||||
/**
|
|
||||||
* lodash 4.1.3 (Custom Build) <https://lodash.com/>
|
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
|
||||||
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
||||||
* Released under MIT license <https://lodash.com/license>
|
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
||||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** Used to stand-in for `undefined` hash values. */
|
|
||||||
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
||||||
|
|
||||||
/** `Object#toString` result references. */
|
|
||||||
var funcTag = '[object Function]',
|
|
||||||
genTag = '[object GeneratorFunction]';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Used to match `RegExp`
|
|
||||||
* [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
|
|
||||||
*/
|
|
||||||
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
||||||
|
|
||||||
/** Used to detect host constructors (Safari). */
|
|
||||||
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
||||||
|
|
||||||
/** 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
|
|
||||||
: undefined;
|
|
||||||
|
|
||||||
/** Detect free variable `module`. */
|
|
||||||
var freeModule = (objectTypes[typeof module] && module && !module.nodeType)
|
|
||||||
? module
|
|
||||||
: undefined;
|
|
||||||
|
|
||||||
/** 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')();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is a host object in IE < 9.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
||||||
*/
|
|
||||||
function isHostObject(value) {
|
|
||||||
// Many host objects are `Object` objects that can coerce to strings
|
|
||||||
// despite having improperly defined `toString` methods.
|
|
||||||
var result = false;
|
|
||||||
if (value != null && typeof value.toString != 'function') {
|
|
||||||
try {
|
|
||||||
result = !!(value + '');
|
|
||||||
} catch (e) {}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Used for built-in method references. */
|
|
||||||
var arrayProto = Array.prototype,
|
|
||||||
objectProto = Object.prototype;
|
|
||||||
|
|
||||||
/** Used to resolve the decompiled source of functions. */
|
|
||||||
var funcToString = Function.prototype.toString;
|
|
||||||
|
|
||||||
/** 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 objectToString = objectProto.toString;
|
|
||||||
|
|
||||||
/** Used to detect if a method is native. */
|
|
||||||
var reIsNative = RegExp('^' +
|
|
||||||
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
|
|
||||||
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
||||||
);
|
|
||||||
|
|
||||||
/** Built-in value references. */
|
|
||||||
var splice = arrayProto.splice;
|
|
||||||
|
|
||||||
/* Built-in method references that are verified to be native. */
|
|
||||||
var Map = getNative(root, 'Map'),
|
|
||||||
nativeCreate = getNative(Object, 'create');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a hash object.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @constructor
|
|
||||||
* @returns {Object} Returns the new hash object.
|
|
||||||
*/
|
|
||||||
function Hash() {}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes `key` and its value from the hash.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} hash The hash to modify.
|
|
||||||
* @param {string} key The key of the value to remove.
|
|
||||||
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
||||||
*/
|
|
||||||
function hashDelete(hash, key) {
|
|
||||||
return hashHas(hash, key) && delete hash[key];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the hash value for `key`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} hash The hash to query.
|
|
||||||
* @param {string} key The key of the value to get.
|
|
||||||
* @returns {*} Returns the entry value.
|
|
||||||
*/
|
|
||||||
function hashGet(hash, key) {
|
|
||||||
if (nativeCreate) {
|
|
||||||
var result = hash[key];
|
|
||||||
return result === HASH_UNDEFINED ? undefined : result;
|
|
||||||
}
|
|
||||||
return hasOwnProperty.call(hash, key) ? hash[key] : undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if a hash value for `key` exists.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} hash The hash to query.
|
|
||||||
* @param {string} key The key of the entry to check.
|
|
||||||
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
||||||
*/
|
|
||||||
function hashHas(hash, key) {
|
|
||||||
return nativeCreate ? hash[key] !== undefined : hasOwnProperty.call(hash, key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the hash `key` to `value`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} hash The hash to modify.
|
|
||||||
* @param {string} key The key of the value to set.
|
|
||||||
* @param {*} value The value to set.
|
|
||||||
*/
|
|
||||||
function hashSet(hash, key, value) {
|
|
||||||
hash[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Avoid inheriting from `Object.prototype` when possible.
|
|
||||||
Hash.prototype = nativeCreate ? nativeCreate(null) : objectProto;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a map cache object to store key-value pairs.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @constructor
|
|
||||||
* @param {Array} [values] The values to cache.
|
|
||||||
*/
|
|
||||||
function MapCache(values) {
|
|
||||||
var index = -1,
|
|
||||||
length = values ? values.length : 0;
|
|
||||||
|
|
||||||
this.clear();
|
|
||||||
while (++index < length) {
|
|
||||||
var entry = values[index];
|
|
||||||
this.set(entry[0], entry[1]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes all key-value entries from the map.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name clear
|
|
||||||
* @memberOf MapCache
|
|
||||||
*/
|
|
||||||
function mapClear() {
|
|
||||||
this.__data__ = {
|
|
||||||
'hash': new Hash,
|
|
||||||
'map': Map ? new Map : [],
|
|
||||||
'string': new Hash
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes `key` and its value from the map.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name delete
|
|
||||||
* @memberOf MapCache
|
|
||||||
* @param {string} key The key of the value to remove.
|
|
||||||
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
||||||
*/
|
|
||||||
function mapDelete(key) {
|
|
||||||
var data = this.__data__;
|
|
||||||
if (isKeyable(key)) {
|
|
||||||
return hashDelete(typeof key == 'string' ? data.string : data.hash, key);
|
|
||||||
}
|
|
||||||
return Map ? data.map['delete'](key) : assocDelete(data.map, key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the map value for `key`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name get
|
|
||||||
* @memberOf MapCache
|
|
||||||
* @param {string} key The key of the value to get.
|
|
||||||
* @returns {*} Returns the entry value.
|
|
||||||
*/
|
|
||||||
function mapGet(key) {
|
|
||||||
var data = this.__data__;
|
|
||||||
if (isKeyable(key)) {
|
|
||||||
return hashGet(typeof key == 'string' ? data.string : data.hash, key);
|
|
||||||
}
|
|
||||||
return Map ? data.map.get(key) : assocGet(data.map, key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if a map value for `key` exists.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name has
|
|
||||||
* @memberOf MapCache
|
|
||||||
* @param {string} key The key of the entry to check.
|
|
||||||
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
||||||
*/
|
|
||||||
function mapHas(key) {
|
|
||||||
var data = this.__data__;
|
|
||||||
if (isKeyable(key)) {
|
|
||||||
return hashHas(typeof key == 'string' ? data.string : data.hash, key);
|
|
||||||
}
|
|
||||||
return Map ? data.map.has(key) : assocHas(data.map, key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the map `key` to `value`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name set
|
|
||||||
* @memberOf MapCache
|
|
||||||
* @param {string} key The key of the value to set.
|
|
||||||
* @param {*} value The value to set.
|
|
||||||
* @returns {Object} Returns the map cache instance.
|
|
||||||
*/
|
|
||||||
function mapSet(key, value) {
|
|
||||||
var data = this.__data__;
|
|
||||||
if (isKeyable(key)) {
|
|
||||||
hashSet(typeof key == 'string' ? data.string : data.hash, key, value);
|
|
||||||
} else if (Map) {
|
|
||||||
data.map.set(key, value);
|
|
||||||
} else {
|
|
||||||
assocSet(data.map, key, value);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add methods to `MapCache`.
|
|
||||||
MapCache.prototype.clear = mapClear;
|
|
||||||
MapCache.prototype['delete'] = mapDelete;
|
|
||||||
MapCache.prototype.get = mapGet;
|
|
||||||
MapCache.prototype.has = mapHas;
|
|
||||||
MapCache.prototype.set = mapSet;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* Creates a set cache object to store unique values.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @constructor
|
|
||||||
* @param {Array} [values] The values to cache.
|
|
||||||
*/
|
|
||||||
function SetCache(values) {
|
|
||||||
var index = -1,
|
|
||||||
length = values ? values.length : 0;
|
|
||||||
|
|
||||||
this.__data__ = new MapCache;
|
|
||||||
while (++index < length) {
|
|
||||||
this.push(values[index]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds `value` to the set cache.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name push
|
|
||||||
* @memberOf SetCache
|
|
||||||
* @param {*} value The value to cache.
|
|
||||||
*/
|
|
||||||
function cachePush(value) {
|
|
||||||
var map = this.__data__;
|
|
||||||
if (isKeyable(value)) {
|
|
||||||
var data = map.__data__,
|
|
||||||
hash = typeof value == 'string' ? data.string : data.hash;
|
|
||||||
|
|
||||||
hash[value] = HASH_UNDEFINED;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
map.set(value, HASH_UNDEFINED);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add methods to `SetCache`.
|
|
||||||
SetCache.prototype.push = cachePush;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes `key` and its value from the associative array.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} array The array to modify.
|
|
||||||
* @param {string} key The key of the value to remove.
|
|
||||||
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
||||||
*/
|
|
||||||
function assocDelete(array, key) {
|
|
||||||
var index = assocIndexOf(array, key);
|
|
||||||
if (index < 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
var lastIndex = array.length - 1;
|
|
||||||
if (index == lastIndex) {
|
|
||||||
array.pop();
|
|
||||||
} else {
|
|
||||||
splice.call(array, index, 1);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the associative array value for `key`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} array The array to query.
|
|
||||||
* @param {string} key The key of the value to get.
|
|
||||||
* @returns {*} Returns the entry value.
|
|
||||||
*/
|
|
||||||
function assocGet(array, key) {
|
|
||||||
var index = assocIndexOf(array, key);
|
|
||||||
return index < 0 ? undefined : array[index][1];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if an associative array value for `key` exists.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} array The array to query.
|
|
||||||
* @param {string} key The key of the entry to check.
|
|
||||||
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
||||||
*/
|
|
||||||
function assocHas(array, key) {
|
|
||||||
return assocIndexOf(array, key) > -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} array The array to search.
|
|
||||||
* @param {*} key The key to search for.
|
|
||||||
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
||||||
*/
|
|
||||||
function assocIndexOf(array, key) {
|
|
||||||
var length = array.length;
|
|
||||||
while (length--) {
|
|
||||||
if (eq(array[length][0], key)) {
|
|
||||||
return length;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the associative array `key` to `value`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} array The array to modify.
|
|
||||||
* @param {string} key The key of the value to set.
|
|
||||||
* @param {*} value The value to set.
|
|
||||||
*/
|
|
||||||
function assocSet(array, key, value) {
|
|
||||||
var index = assocIndexOf(array, key);
|
|
||||||
if (index < 0) {
|
|
||||||
array.push([key, value]);
|
|
||||||
} else {
|
|
||||||
array[index][1] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the native function at `key` of `object`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} object The object to query.
|
|
||||||
* @param {string} key The key of the method to get.
|
|
||||||
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
||||||
*/
|
|
||||||
function getNative(object, key) {
|
|
||||||
var value = object[key];
|
|
||||||
return isNative(value) ? value : undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is suitable for use as unique object key.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
||||||
*/
|
|
||||||
function isKeyable(value) {
|
|
||||||
var type = typeof value;
|
|
||||||
return type == 'number' || type == 'boolean' ||
|
|
||||||
(type == 'string' && value != '__proto__') || value == null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Converts `func` to its source code.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Function} func The function to process.
|
|
||||||
* @returns {string} Returns the source code.
|
|
||||||
*/
|
|
||||||
function toSource(func) {
|
|
||||||
if (func != null) {
|
|
||||||
try {
|
|
||||||
return funcToString.call(func);
|
|
||||||
} catch (e) {}
|
|
||||||
try {
|
|
||||||
return (func + '');
|
|
||||||
} catch (e) {}
|
|
||||||
}
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Performs a
|
|
||||||
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
|
|
||||||
* comparison between two values to determine if they are equivalent.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 4.0.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to compare.
|
|
||||||
* @param {*} other The other value to compare.
|
|
||||||
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* var object = { 'user': 'fred' };
|
|
||||||
* var other = { 'user': 'fred' };
|
|
||||||
*
|
|
||||||
* _.eq(object, object);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.eq(object, other);
|
|
||||||
* // => false
|
|
||||||
*
|
|
||||||
* _.eq('a', 'a');
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.eq('a', Object('a'));
|
|
||||||
* // => false
|
|
||||||
*
|
|
||||||
* _.eq(NaN, NaN);
|
|
||||||
* // => true
|
|
||||||
*/
|
|
||||||
function eq(value, other) {
|
|
||||||
return value === other || (value !== value && other !== other);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is classified as a `Function` object.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 0.1.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
|
||||||
* else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isFunction(_);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isFunction(/abc/);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isFunction(value) {
|
|
||||||
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
||||||
// in Safari 8 which returns 'object' for typed array and weak map constructors,
|
|
||||||
// and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
|
|
||||||
var tag = isObject(value) ? objectToString.call(value) : '';
|
|
||||||
return tag == funcTag || tag == genTag;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is the
|
|
||||||
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
|
|
||||||
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 0.1.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isObject({});
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObject([1, 2, 3]);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObject(_.noop);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObject(null);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isObject(value) {
|
|
||||||
var type = typeof value;
|
|
||||||
return !!value && (type == 'object' || type == 'function');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is a native function.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 3.0.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
||||||
* else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isNative(Array.prototype.push);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isNative(_);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isNative(value) {
|
|
||||||
if (!isObject(value)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
|
|
||||||
return pattern.test(toSource(value));
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = SetCache;
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "lodash._setcache",
|
|
||||||
"version": "4.1.3",
|
|
||||||
"description": "The internal lodash function `SetCache` exported as a module.",
|
|
||||||
"homepage": "https://lodash.com/",
|
|
||||||
"icon": "https://lodash.com/icon.svg",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"contributors": [
|
|
||||||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
|
|
||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
|
||||||
],
|
|
||||||
"repository": "lodash/lodash",
|
|
||||||
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
|
||||||
}
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
||||||
|
|
||||||
Based on Underscore.js, copyright Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
||||||
|
|
||||||
This software consists of voluntary contributions made by many
|
|
||||||
individuals. For exact contribution history, see the revision history
|
|
||||||
available at https://github.com/lodash/lodash
|
|
||||||
|
|
||||||
The following license applies to all parts of this software except as
|
|
||||||
documented below:
|
|
||||||
|
|
||||||
====
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
====
|
|
||||||
|
|
||||||
Copyright and related rights for sample code are waived via CC0. Sample
|
|
||||||
code is defined as all source code displayed within the prose of the
|
|
||||||
documentation.
|
|
||||||
|
|
||||||
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
|
||||||
|
|
||||||
====
|
|
||||||
|
|
||||||
Files located in the node_modules and vendor directories are externally
|
|
||||||
maintained libraries used by this software which have their own
|
|
||||||
licenses; we recommend you read them, as their terms may differ from the
|
|
||||||
terms above.
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
# lodash._stack v4.1.3
|
|
||||||
|
|
||||||
The internal [lodash](https://lodash.com/) function `Stack` exported as a [Node.js](https://nodejs.org/) module.
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
```bash
|
|
||||||
$ {sudo -H} npm i -g npm
|
|
||||||
$ npm i --save lodash._stack
|
|
||||||
```
|
|
||||||
|
|
||||||
In Node.js:
|
|
||||||
```js
|
|
||||||
var Stack = require('lodash._stack');
|
|
||||||
```
|
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash._stack) for more details.
|
|
||||||
@@ -1,662 +0,0 @@
|
|||||||
/**
|
|
||||||
* lodash 4.1.3 (Custom Build) <https://lodash.com/>
|
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
|
||||||
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
||||||
* Released under MIT license <https://lodash.com/license>
|
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
||||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** Used as the size to enable large array optimizations. */
|
|
||||||
var LARGE_ARRAY_SIZE = 200;
|
|
||||||
|
|
||||||
/** Used to stand-in for `undefined` hash values. */
|
|
||||||
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
||||||
|
|
||||||
/** `Object#toString` result references. */
|
|
||||||
var funcTag = '[object Function]',
|
|
||||||
genTag = '[object GeneratorFunction]';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Used to match `RegExp`
|
|
||||||
* [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
|
|
||||||
*/
|
|
||||||
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
||||||
|
|
||||||
/** Used to detect host constructors (Safari). */
|
|
||||||
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
||||||
|
|
||||||
/** 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
|
|
||||||
: undefined;
|
|
||||||
|
|
||||||
/** Detect free variable `module`. */
|
|
||||||
var freeModule = (objectTypes[typeof module] && module && !module.nodeType)
|
|
||||||
? module
|
|
||||||
: undefined;
|
|
||||||
|
|
||||||
/** 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')();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is a host object in IE < 9.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
||||||
*/
|
|
||||||
function isHostObject(value) {
|
|
||||||
// Many host objects are `Object` objects that can coerce to strings
|
|
||||||
// despite having improperly defined `toString` methods.
|
|
||||||
var result = false;
|
|
||||||
if (value != null && typeof value.toString != 'function') {
|
|
||||||
try {
|
|
||||||
result = !!(value + '');
|
|
||||||
} catch (e) {}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Used for built-in method references. */
|
|
||||||
var arrayProto = Array.prototype,
|
|
||||||
objectProto = Object.prototype;
|
|
||||||
|
|
||||||
/** Used to resolve the decompiled source of functions. */
|
|
||||||
var funcToString = Function.prototype.toString;
|
|
||||||
|
|
||||||
/** 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 objectToString = objectProto.toString;
|
|
||||||
|
|
||||||
/** Used to detect if a method is native. */
|
|
||||||
var reIsNative = RegExp('^' +
|
|
||||||
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
|
|
||||||
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
||||||
);
|
|
||||||
|
|
||||||
/** Built-in value references. */
|
|
||||||
var splice = arrayProto.splice;
|
|
||||||
|
|
||||||
/* Built-in method references that are verified to be native. */
|
|
||||||
var Map = getNative(root, 'Map'),
|
|
||||||
nativeCreate = getNative(Object, 'create');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a hash object.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @constructor
|
|
||||||
* @returns {Object} Returns the new hash object.
|
|
||||||
*/
|
|
||||||
function Hash() {}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes `key` and its value from the hash.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} hash The hash to modify.
|
|
||||||
* @param {string} key The key of the value to remove.
|
|
||||||
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
||||||
*/
|
|
||||||
function hashDelete(hash, key) {
|
|
||||||
return hashHas(hash, key) && delete hash[key];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the hash value for `key`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} hash The hash to query.
|
|
||||||
* @param {string} key The key of the value to get.
|
|
||||||
* @returns {*} Returns the entry value.
|
|
||||||
*/
|
|
||||||
function hashGet(hash, key) {
|
|
||||||
if (nativeCreate) {
|
|
||||||
var result = hash[key];
|
|
||||||
return result === HASH_UNDEFINED ? undefined : result;
|
|
||||||
}
|
|
||||||
return hasOwnProperty.call(hash, key) ? hash[key] : undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if a hash value for `key` exists.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} hash The hash to query.
|
|
||||||
* @param {string} key The key of the entry to check.
|
|
||||||
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
||||||
*/
|
|
||||||
function hashHas(hash, key) {
|
|
||||||
return nativeCreate ? hash[key] !== undefined : hasOwnProperty.call(hash, key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the hash `key` to `value`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} hash The hash to modify.
|
|
||||||
* @param {string} key The key of the value to set.
|
|
||||||
* @param {*} value The value to set.
|
|
||||||
*/
|
|
||||||
function hashSet(hash, key, value) {
|
|
||||||
hash[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Avoid inheriting from `Object.prototype` when possible.
|
|
||||||
Hash.prototype = nativeCreate ? nativeCreate(null) : objectProto;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a map cache object to store key-value pairs.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @constructor
|
|
||||||
* @param {Array} [values] The values to cache.
|
|
||||||
*/
|
|
||||||
function MapCache(values) {
|
|
||||||
var index = -1,
|
|
||||||
length = values ? values.length : 0;
|
|
||||||
|
|
||||||
this.clear();
|
|
||||||
while (++index < length) {
|
|
||||||
var entry = values[index];
|
|
||||||
this.set(entry[0], entry[1]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes all key-value entries from the map.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name clear
|
|
||||||
* @memberOf MapCache
|
|
||||||
*/
|
|
||||||
function mapClear() {
|
|
||||||
this.__data__ = {
|
|
||||||
'hash': new Hash,
|
|
||||||
'map': Map ? new Map : [],
|
|
||||||
'string': new Hash
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes `key` and its value from the map.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name delete
|
|
||||||
* @memberOf MapCache
|
|
||||||
* @param {string} key The key of the value to remove.
|
|
||||||
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
||||||
*/
|
|
||||||
function mapDelete(key) {
|
|
||||||
var data = this.__data__;
|
|
||||||
if (isKeyable(key)) {
|
|
||||||
return hashDelete(typeof key == 'string' ? data.string : data.hash, key);
|
|
||||||
}
|
|
||||||
return Map ? data.map['delete'](key) : assocDelete(data.map, key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the map value for `key`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name get
|
|
||||||
* @memberOf MapCache
|
|
||||||
* @param {string} key The key of the value to get.
|
|
||||||
* @returns {*} Returns the entry value.
|
|
||||||
*/
|
|
||||||
function mapGet(key) {
|
|
||||||
var data = this.__data__;
|
|
||||||
if (isKeyable(key)) {
|
|
||||||
return hashGet(typeof key == 'string' ? data.string : data.hash, key);
|
|
||||||
}
|
|
||||||
return Map ? data.map.get(key) : assocGet(data.map, key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if a map value for `key` exists.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name has
|
|
||||||
* @memberOf MapCache
|
|
||||||
* @param {string} key The key of the entry to check.
|
|
||||||
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
||||||
*/
|
|
||||||
function mapHas(key) {
|
|
||||||
var data = this.__data__;
|
|
||||||
if (isKeyable(key)) {
|
|
||||||
return hashHas(typeof key == 'string' ? data.string : data.hash, key);
|
|
||||||
}
|
|
||||||
return Map ? data.map.has(key) : assocHas(data.map, key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the map `key` to `value`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name set
|
|
||||||
* @memberOf MapCache
|
|
||||||
* @param {string} key The key of the value to set.
|
|
||||||
* @param {*} value The value to set.
|
|
||||||
* @returns {Object} Returns the map cache instance.
|
|
||||||
*/
|
|
||||||
function mapSet(key, value) {
|
|
||||||
var data = this.__data__;
|
|
||||||
if (isKeyable(key)) {
|
|
||||||
hashSet(typeof key == 'string' ? data.string : data.hash, key, value);
|
|
||||||
} else if (Map) {
|
|
||||||
data.map.set(key, value);
|
|
||||||
} else {
|
|
||||||
assocSet(data.map, key, value);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add methods to `MapCache`.
|
|
||||||
MapCache.prototype.clear = mapClear;
|
|
||||||
MapCache.prototype['delete'] = mapDelete;
|
|
||||||
MapCache.prototype.get = mapGet;
|
|
||||||
MapCache.prototype.has = mapHas;
|
|
||||||
MapCache.prototype.set = mapSet;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a stack cache object to store key-value pairs.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @constructor
|
|
||||||
* @param {Array} [values] The values to cache.
|
|
||||||
*/
|
|
||||||
function Stack(values) {
|
|
||||||
var index = -1,
|
|
||||||
length = values ? values.length : 0;
|
|
||||||
|
|
||||||
this.clear();
|
|
||||||
while (++index < length) {
|
|
||||||
var entry = values[index];
|
|
||||||
this.set(entry[0], entry[1]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes all key-value entries from the stack.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name clear
|
|
||||||
* @memberOf Stack
|
|
||||||
*/
|
|
||||||
function stackClear() {
|
|
||||||
this.__data__ = { 'array': [], 'map': null };
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes `key` and its value from the stack.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name delete
|
|
||||||
* @memberOf Stack
|
|
||||||
* @param {string} key The key of the value to remove.
|
|
||||||
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
||||||
*/
|
|
||||||
function stackDelete(key) {
|
|
||||||
var data = this.__data__,
|
|
||||||
array = data.array;
|
|
||||||
|
|
||||||
return array ? assocDelete(array, key) : data.map['delete'](key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the stack value for `key`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name get
|
|
||||||
* @memberOf Stack
|
|
||||||
* @param {string} key The key of the value to get.
|
|
||||||
* @returns {*} Returns the entry value.
|
|
||||||
*/
|
|
||||||
function stackGet(key) {
|
|
||||||
var data = this.__data__,
|
|
||||||
array = data.array;
|
|
||||||
|
|
||||||
return array ? assocGet(array, key) : data.map.get(key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if a stack value for `key` exists.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name has
|
|
||||||
* @memberOf Stack
|
|
||||||
* @param {string} key The key of the entry to check.
|
|
||||||
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
||||||
*/
|
|
||||||
function stackHas(key) {
|
|
||||||
var data = this.__data__,
|
|
||||||
array = data.array;
|
|
||||||
|
|
||||||
return array ? assocHas(array, key) : data.map.has(key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the stack `key` to `value`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @name set
|
|
||||||
* @memberOf Stack
|
|
||||||
* @param {string} key The key of the value to set.
|
|
||||||
* @param {*} value The value to set.
|
|
||||||
* @returns {Object} Returns the stack cache instance.
|
|
||||||
*/
|
|
||||||
function stackSet(key, value) {
|
|
||||||
var data = this.__data__,
|
|
||||||
array = data.array;
|
|
||||||
|
|
||||||
if (array) {
|
|
||||||
if (array.length < (LARGE_ARRAY_SIZE - 1)) {
|
|
||||||
assocSet(array, key, value);
|
|
||||||
} else {
|
|
||||||
data.array = null;
|
|
||||||
data.map = new MapCache(array);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var map = data.map;
|
|
||||||
if (map) {
|
|
||||||
map.set(key, value);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add methods to `Stack`.
|
|
||||||
Stack.prototype.clear = stackClear;
|
|
||||||
Stack.prototype['delete'] = stackDelete;
|
|
||||||
Stack.prototype.get = stackGet;
|
|
||||||
Stack.prototype.has = stackHas;
|
|
||||||
Stack.prototype.set = stackSet;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes `key` and its value from the associative array.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} array The array to modify.
|
|
||||||
* @param {string} key The key of the value to remove.
|
|
||||||
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
||||||
*/
|
|
||||||
function assocDelete(array, key) {
|
|
||||||
var index = assocIndexOf(array, key);
|
|
||||||
if (index < 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
var lastIndex = array.length - 1;
|
|
||||||
if (index == lastIndex) {
|
|
||||||
array.pop();
|
|
||||||
} else {
|
|
||||||
splice.call(array, index, 1);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the associative array value for `key`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} array The array to query.
|
|
||||||
* @param {string} key The key of the value to get.
|
|
||||||
* @returns {*} Returns the entry value.
|
|
||||||
*/
|
|
||||||
function assocGet(array, key) {
|
|
||||||
var index = assocIndexOf(array, key);
|
|
||||||
return index < 0 ? undefined : array[index][1];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if an associative array value for `key` exists.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} array The array to query.
|
|
||||||
* @param {string} key The key of the entry to check.
|
|
||||||
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
||||||
*/
|
|
||||||
function assocHas(array, key) {
|
|
||||||
return assocIndexOf(array, key) > -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} array The array to search.
|
|
||||||
* @param {*} key The key to search for.
|
|
||||||
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
||||||
*/
|
|
||||||
function assocIndexOf(array, key) {
|
|
||||||
var length = array.length;
|
|
||||||
while (length--) {
|
|
||||||
if (eq(array[length][0], key)) {
|
|
||||||
return length;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the associative array `key` to `value`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} array The array to modify.
|
|
||||||
* @param {string} key The key of the value to set.
|
|
||||||
* @param {*} value The value to set.
|
|
||||||
*/
|
|
||||||
function assocSet(array, key, value) {
|
|
||||||
var index = assocIndexOf(array, key);
|
|
||||||
if (index < 0) {
|
|
||||||
array.push([key, value]);
|
|
||||||
} else {
|
|
||||||
array[index][1] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the native function at `key` of `object`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} object The object to query.
|
|
||||||
* @param {string} key The key of the method to get.
|
|
||||||
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
||||||
*/
|
|
||||||
function getNative(object, key) {
|
|
||||||
var value = object[key];
|
|
||||||
return isNative(value) ? value : undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is suitable for use as unique object key.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
||||||
*/
|
|
||||||
function isKeyable(value) {
|
|
||||||
var type = typeof value;
|
|
||||||
return type == 'number' || type == 'boolean' ||
|
|
||||||
(type == 'string' && value != '__proto__') || value == null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Converts `func` to its source code.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Function} func The function to process.
|
|
||||||
* @returns {string} Returns the source code.
|
|
||||||
*/
|
|
||||||
function toSource(func) {
|
|
||||||
if (func != null) {
|
|
||||||
try {
|
|
||||||
return funcToString.call(func);
|
|
||||||
} catch (e) {}
|
|
||||||
try {
|
|
||||||
return (func + '');
|
|
||||||
} catch (e) {}
|
|
||||||
}
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Performs a
|
|
||||||
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
|
|
||||||
* comparison between two values to determine if they are equivalent.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 4.0.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to compare.
|
|
||||||
* @param {*} other The other value to compare.
|
|
||||||
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* var object = { 'user': 'fred' };
|
|
||||||
* var other = { 'user': 'fred' };
|
|
||||||
*
|
|
||||||
* _.eq(object, object);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.eq(object, other);
|
|
||||||
* // => false
|
|
||||||
*
|
|
||||||
* _.eq('a', 'a');
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.eq('a', Object('a'));
|
|
||||||
* // => false
|
|
||||||
*
|
|
||||||
* _.eq(NaN, NaN);
|
|
||||||
* // => true
|
|
||||||
*/
|
|
||||||
function eq(value, other) {
|
|
||||||
return value === other || (value !== value && other !== other);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is classified as a `Function` object.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 0.1.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
|
||||||
* else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isFunction(_);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isFunction(/abc/);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isFunction(value) {
|
|
||||||
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
||||||
// in Safari 8 which returns 'object' for typed array and weak map constructors,
|
|
||||||
// and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
|
|
||||||
var tag = isObject(value) ? objectToString.call(value) : '';
|
|
||||||
return tag == funcTag || tag == genTag;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is the
|
|
||||||
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
|
|
||||||
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 0.1.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isObject({});
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObject([1, 2, 3]);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObject(_.noop);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObject(null);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isObject(value) {
|
|
||||||
var type = typeof value;
|
|
||||||
return !!value && (type == 'object' || type == 'function');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is a native function.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 3.0.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
||||||
* else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isNative(Array.prototype.push);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isNative(_);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isNative(value) {
|
|
||||||
if (!isObject(value)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
|
|
||||||
return pattern.test(toSource(value));
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = Stack;
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "lodash._stack",
|
|
||||||
"version": "4.1.3",
|
|
||||||
"description": "The internal lodash function `Stack` exported as a module.",
|
|
||||||
"homepage": "https://lodash.com/",
|
|
||||||
"icon": "https://lodash.com/icon.svg",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"contributors": [
|
|
||||||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
|
|
||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
|
||||||
],
|
|
||||||
"repository": "lodash/lodash",
|
|
||||||
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
|
||||||
}
|
|
||||||
@@ -1,23 +1,47 @@
|
|||||||
The MIT License (MIT)
|
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
|
||||||
Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
Based on Underscore.js, copyright Jeremy Ashkenas,
|
||||||
Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
This software consists of voluntary contributions made by many
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
individuals. For exact contribution history, see the revision history
|
||||||
in the Software without restriction, including without limitation the rights
|
available at https://github.com/lodash/lodash
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
The following license applies to all parts of this software except as
|
||||||
copies or substantial portions of the Software.
|
documented below:
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
====
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
a copy of this software and associated documentation files (the
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
"Software"), to deal in the Software without restriction, including
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
SOFTWARE.
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Copyright and related rights for sample code are waived via CC0. Sample
|
||||||
|
code is defined as all source code displayed within the prose of the
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Files located in the node_modules and vendor directories are externally
|
||||||
|
maintained libraries used by this software which have their own
|
||||||
|
licenses; we recommend you read them, as their terms may differ from the
|
||||||
|
terms above.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.bind v4.1.3
|
# lodash.bind v4.1.4
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.bind` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.bind` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var bind = require('lodash.bind');
|
var bind = require('lodash.bind');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#bind) or [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash.bind) for more details.
|
See the [documentation](https://lodash.com/docs#bind) or [package source](https://github.com/lodash/lodash/blob/4.1.4-npm-packages/lodash.bind) for more details.
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.1.3 (Custom Build) <https://lodash.com/>
|
* lodash (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
* Released under MIT license <https://lodash.com/license>
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
|
||||||
*/
|
*/
|
||||||
var createWrapper = require('lodash._createwrapper'),
|
var createWrapper = require('lodash._createwrapper'),
|
||||||
rest = require('lodash.rest');
|
rest = require('lodash.rest');
|
||||||
@@ -48,7 +48,7 @@ function replaceHolders(array, placeholder) {
|
|||||||
* @param {Function} func The function to inspect.
|
* @param {Function} func The function to inspect.
|
||||||
* @returns {*} Returns the placeholder value.
|
* @returns {*} Returns the placeholder value.
|
||||||
*/
|
*/
|
||||||
function getPlaceholder(func) {
|
function getHolder(func) {
|
||||||
var object = func;
|
var object = func;
|
||||||
return object.placeholder;
|
return object.placeholder;
|
||||||
}
|
}
|
||||||
@@ -91,7 +91,7 @@ function getPlaceholder(func) {
|
|||||||
var bind = rest(function(func, thisArg, partials) {
|
var bind = rest(function(func, thisArg, partials) {
|
||||||
var bitmask = BIND_FLAG;
|
var bitmask = BIND_FLAG;
|
||||||
if (partials.length) {
|
if (partials.length) {
|
||||||
var holders = replaceHolders(partials, getPlaceholder(bind));
|
var holders = replaceHolders(partials, getHolder(bind));
|
||||||
bitmask |= PARTIAL_FLAG;
|
bitmask |= PARTIAL_FLAG;
|
||||||
}
|
}
|
||||||
return createWrapper(func, bitmask, thisArg, partials, holders);
|
return createWrapper(func, bitmask, thisArg, partials, holders);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.bind",
|
"name": "lodash.bind",
|
||||||
"version": "4.1.3",
|
"version": "4.1.4",
|
||||||
"description": "The lodash method `_.bind` exported as a module.",
|
"description": "The lodash method `_.bind` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,23 +1,47 @@
|
|||||||
The MIT License (MIT)
|
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
|
||||||
Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
Based on Underscore.js, copyright Jeremy Ashkenas,
|
||||||
Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
This software consists of voluntary contributions made by many
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
individuals. For exact contribution history, see the revision history
|
||||||
in the Software without restriction, including without limitation the rights
|
available at https://github.com/lodash/lodash
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
The following license applies to all parts of this software except as
|
||||||
copies or substantial portions of the Software.
|
documented below:
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
====
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
a copy of this software and associated documentation files (the
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
"Software"), to deal in the Software without restriction, including
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
SOFTWARE.
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Copyright and related rights for sample code are waived via CC0. Sample
|
||||||
|
code is defined as all source code displayed within the prose of the
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Files located in the node_modules and vendor directories are externally
|
||||||
|
maintained libraries used by this software which have their own
|
||||||
|
licenses; we recommend you read them, as their terms may differ from the
|
||||||
|
terms above.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.bindkey v4.1.3
|
# lodash.bindkey v4.1.4
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.bindKey` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.bindKey` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var bindKey = require('lodash.bindkey');
|
var bindKey = require('lodash.bindkey');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#bindKey) or [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash.bindkey) for more details.
|
See the [documentation](https://lodash.com/docs#bindKey) or [package source](https://github.com/lodash/lodash/blob/4.1.4-npm-packages/lodash.bindkey) for more details.
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.1.3 (Custom Build) <https://lodash.com/>
|
* lodash (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
* Released under MIT license <https://lodash.com/license>
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
|
||||||
*/
|
*/
|
||||||
var createWrapper = require('lodash._createwrapper'),
|
var createWrapper = require('lodash._createwrapper'),
|
||||||
rest = require('lodash.rest');
|
rest = require('lodash.rest');
|
||||||
@@ -49,7 +49,7 @@ function replaceHolders(array, placeholder) {
|
|||||||
* @param {Function} func The function to inspect.
|
* @param {Function} func The function to inspect.
|
||||||
* @returns {*} Returns the placeholder value.
|
* @returns {*} Returns the placeholder value.
|
||||||
*/
|
*/
|
||||||
function getPlaceholder(func) {
|
function getHolder(func) {
|
||||||
var object = func;
|
var object = func;
|
||||||
return object.placeholder;
|
return object.placeholder;
|
||||||
}
|
}
|
||||||
@@ -102,7 +102,7 @@ function getPlaceholder(func) {
|
|||||||
var bindKey = rest(function(object, key, partials) {
|
var bindKey = rest(function(object, key, partials) {
|
||||||
var bitmask = BIND_FLAG | BIND_KEY_FLAG;
|
var bitmask = BIND_FLAG | BIND_KEY_FLAG;
|
||||||
if (partials.length) {
|
if (partials.length) {
|
||||||
var holders = replaceHolders(partials, getPlaceholder(bindKey));
|
var holders = replaceHolders(partials, getHolder(bindKey));
|
||||||
bitmask |= PARTIAL_FLAG;
|
bitmask |= PARTIAL_FLAG;
|
||||||
}
|
}
|
||||||
return createWrapper(key, bitmask, object, partials, holders);
|
return createWrapper(key, bitmask, object, partials, holders);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.bindkey",
|
"name": "lodash.bindkey",
|
||||||
"version": "4.1.3",
|
"version": "4.1.4",
|
||||||
"description": "The lodash method `_.bindKey` exported as a module.",
|
"description": "The lodash method `_.bindKey` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.isequal v4.1.3
|
# lodash.isequal v4.1.4
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.isEqual` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.isEqual` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var isEqual = require('lodash.isequal');
|
var isEqual = require('lodash.isequal');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#isEqual) or [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash.isequal) for more details.
|
See the [documentation](https://lodash.com/docs#isEqual) or [package source](https://github.com/lodash/lodash/blob/4.1.4-npm-packages/lodash.isequal) for more details.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.1.3 (Custom Build) <https://lodash.com/>
|
* lodash 4.1.4 (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
* Released under MIT license <https://lodash.com/license>
|
* Released under MIT license <https://lodash.com/license>
|
||||||
@@ -47,7 +47,10 @@ var arrayBufferTag = '[object ArrayBuffer]',
|
|||||||
uint16Tag = '[object Uint16Array]',
|
uint16Tag = '[object Uint16Array]',
|
||||||
uint32Tag = '[object Uint32Array]';
|
uint32Tag = '[object Uint32Array]';
|
||||||
|
|
||||||
/** Used to match `RegExp` [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns). */
|
/**
|
||||||
|
* Used to match `RegExp`
|
||||||
|
* [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
|
||||||
|
*/
|
||||||
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
||||||
|
|
||||||
/** Used to detect host constructors (Safari). */
|
/** Used to detect host constructors (Safari). */
|
||||||
@@ -154,7 +157,8 @@ var funcToString = Function.prototype.toString;
|
|||||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
* Used to resolve the
|
||||||
|
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
||||||
* of values.
|
* of values.
|
||||||
*/
|
*/
|
||||||
var objectToString = objectProto.toString;
|
var objectToString = objectProto.toString;
|
||||||
@@ -180,11 +184,11 @@ var DataView = getNative(root, 'DataView'),
|
|||||||
WeakMap = getNative(root, 'WeakMap');
|
WeakMap = getNative(root, 'WeakMap');
|
||||||
|
|
||||||
/** Used to detect maps, sets, and weakmaps. */
|
/** Used to detect maps, sets, and weakmaps. */
|
||||||
var dataViewCtorString = DataView ? (DataView + '') : '',
|
var dataViewCtorString = toSource(DataView),
|
||||||
mapCtorString = Map ? funcToString.call(Map) : '',
|
mapCtorString = toSource(Map),
|
||||||
promiseCtorString = Promise ? funcToString.call(Promise) : '',
|
promiseCtorString = toSource(Promise),
|
||||||
setCtorString = Set ? funcToString.call(Set) : '',
|
setCtorString = toSource(Set),
|
||||||
weakMapCtorString = WeakMap ? funcToString.call(WeakMap) : '';
|
weakMapCtorString = toSource(WeakMap);
|
||||||
|
|
||||||
/** Used to convert symbols to primitives and strings. */
|
/** Used to convert symbols to primitives and strings. */
|
||||||
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
||||||
@@ -411,7 +415,8 @@ function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
|
|||||||
case regexpTag:
|
case regexpTag:
|
||||||
case stringTag:
|
case stringTag:
|
||||||
// Coerce regexes to strings and treat strings, primitives and objects,
|
// Coerce regexes to strings and treat strings, primitives and objects,
|
||||||
// as equal. See https://es5.github.io/#x15.10.6.4 for more details.
|
// as equal. See http://www.ecma-international.org/ecma-262/6.0/#sec-regexp.prototype.tostring
|
||||||
|
// for more details.
|
||||||
return object == (other + '');
|
return object == (other + '');
|
||||||
|
|
||||||
case mapTag:
|
case mapTag:
|
||||||
@@ -563,8 +568,8 @@ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|||||||
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
||||||
getTag = function(value) {
|
getTag = function(value) {
|
||||||
var result = objectToString.call(value),
|
var result = objectToString.call(value),
|
||||||
Ctor = result == objectTag ? value.constructor : null,
|
Ctor = result == objectTag ? value.constructor : undefined,
|
||||||
ctorString = typeof Ctor == 'function' ? funcToString.call(Ctor) : '';
|
ctorString = Ctor ? toSource(Ctor) : undefined;
|
||||||
|
|
||||||
if (ctorString) {
|
if (ctorString) {
|
||||||
switch (ctorString) {
|
switch (ctorString) {
|
||||||
@@ -579,6 +584,25 @@ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts `func` to its source code.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {Function} func The function to process.
|
||||||
|
* @returns {string} Returns the source code.
|
||||||
|
*/
|
||||||
|
function toSource(func) {
|
||||||
|
if (func != null) {
|
||||||
|
try {
|
||||||
|
return funcToString.call(func);
|
||||||
|
} catch (e) {}
|
||||||
|
try {
|
||||||
|
return (func + '');
|
||||||
|
} catch (e) {}
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is classified as an `Array` object.
|
* Checks if `value` is classified as an `Array` object.
|
||||||
*
|
*
|
||||||
@@ -698,8 +722,9 @@ function isLength(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
* Checks if `value` is the
|
||||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
|
||||||
|
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
@@ -773,14 +798,11 @@ function isObjectLike(value) {
|
|||||||
* // => false
|
* // => false
|
||||||
*/
|
*/
|
||||||
function isNative(value) {
|
function isNative(value) {
|
||||||
if (value == null) {
|
if (!isObject(value)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (isFunction(value)) {
|
var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
|
||||||
return reIsNative.test(funcToString.call(value));
|
return pattern.test(toSource(value));
|
||||||
}
|
|
||||||
return isObjectLike(value) &&
|
|
||||||
(isHostObject(value) ? reIsNative : reIsHostCtor).test(value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.isequal",
|
"name": "lodash.isequal",
|
||||||
"version": "4.1.3",
|
"version": "4.1.4",
|
||||||
"description": "The lodash method `_.isEqual` exported as a module.",
|
"description": "The lodash method `_.isEqual` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.isequalwith v4.1.3
|
# lodash.isequalwith v4.1.4
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.isEqualWith` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.isEqualWith` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var isEqualWith = require('lodash.isequalwith');
|
var isEqualWith = require('lodash.isequalwith');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#isEqualWith) or [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash.isequalwith) for more details.
|
See the [documentation](https://lodash.com/docs#isEqualWith) or [package source](https://github.com/lodash/lodash/blob/4.1.4-npm-packages/lodash.isequalwith) for more details.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.1.3 (Custom Build) <https://lodash.com/>
|
* lodash 4.1.4 (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
* Released under MIT license <https://lodash.com/license>
|
* Released under MIT license <https://lodash.com/license>
|
||||||
@@ -47,7 +47,10 @@ var arrayBufferTag = '[object ArrayBuffer]',
|
|||||||
uint16Tag = '[object Uint16Array]',
|
uint16Tag = '[object Uint16Array]',
|
||||||
uint32Tag = '[object Uint32Array]';
|
uint32Tag = '[object Uint32Array]';
|
||||||
|
|
||||||
/** Used to match `RegExp` [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns). */
|
/**
|
||||||
|
* Used to match `RegExp`
|
||||||
|
* [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
|
||||||
|
*/
|
||||||
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
||||||
|
|
||||||
/** Used to detect host constructors (Safari). */
|
/** Used to detect host constructors (Safari). */
|
||||||
@@ -154,7 +157,8 @@ var funcToString = Function.prototype.toString;
|
|||||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
* Used to resolve the
|
||||||
|
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
||||||
* of values.
|
* of values.
|
||||||
*/
|
*/
|
||||||
var objectToString = objectProto.toString;
|
var objectToString = objectProto.toString;
|
||||||
@@ -180,11 +184,11 @@ var DataView = getNative(root, 'DataView'),
|
|||||||
WeakMap = getNative(root, 'WeakMap');
|
WeakMap = getNative(root, 'WeakMap');
|
||||||
|
|
||||||
/** Used to detect maps, sets, and weakmaps. */
|
/** Used to detect maps, sets, and weakmaps. */
|
||||||
var dataViewCtorString = DataView ? (DataView + '') : '',
|
var dataViewCtorString = toSource(DataView),
|
||||||
mapCtorString = Map ? funcToString.call(Map) : '',
|
mapCtorString = toSource(Map),
|
||||||
promiseCtorString = Promise ? funcToString.call(Promise) : '',
|
promiseCtorString = toSource(Promise),
|
||||||
setCtorString = Set ? funcToString.call(Set) : '',
|
setCtorString = toSource(Set),
|
||||||
weakMapCtorString = WeakMap ? funcToString.call(WeakMap) : '';
|
weakMapCtorString = toSource(WeakMap);
|
||||||
|
|
||||||
/** Used to convert symbols to primitives and strings. */
|
/** Used to convert symbols to primitives and strings. */
|
||||||
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
||||||
@@ -411,7 +415,8 @@ function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
|
|||||||
case regexpTag:
|
case regexpTag:
|
||||||
case stringTag:
|
case stringTag:
|
||||||
// Coerce regexes to strings and treat strings, primitives and objects,
|
// Coerce regexes to strings and treat strings, primitives and objects,
|
||||||
// as equal. See https://es5.github.io/#x15.10.6.4 for more details.
|
// as equal. See http://www.ecma-international.org/ecma-262/6.0/#sec-regexp.prototype.tostring
|
||||||
|
// for more details.
|
||||||
return object == (other + '');
|
return object == (other + '');
|
||||||
|
|
||||||
case mapTag:
|
case mapTag:
|
||||||
@@ -563,8 +568,8 @@ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|||||||
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
||||||
getTag = function(value) {
|
getTag = function(value) {
|
||||||
var result = objectToString.call(value),
|
var result = objectToString.call(value),
|
||||||
Ctor = result == objectTag ? value.constructor : null,
|
Ctor = result == objectTag ? value.constructor : undefined,
|
||||||
ctorString = typeof Ctor == 'function' ? funcToString.call(Ctor) : '';
|
ctorString = Ctor ? toSource(Ctor) : undefined;
|
||||||
|
|
||||||
if (ctorString) {
|
if (ctorString) {
|
||||||
switch (ctorString) {
|
switch (ctorString) {
|
||||||
@@ -579,6 +584,25 @@ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts `func` to its source code.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {Function} func The function to process.
|
||||||
|
* @returns {string} Returns the source code.
|
||||||
|
*/
|
||||||
|
function toSource(func) {
|
||||||
|
if (func != null) {
|
||||||
|
try {
|
||||||
|
return funcToString.call(func);
|
||||||
|
} catch (e) {}
|
||||||
|
try {
|
||||||
|
return (func + '');
|
||||||
|
} catch (e) {}
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is classified as an `Array` object.
|
* Checks if `value` is classified as an `Array` object.
|
||||||
*
|
*
|
||||||
@@ -608,7 +632,7 @@ var isArray = Array.isArray;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is like `_.isEqual` except that it accepts `customizer` which
|
* This method is like `_.isEqual` except that it accepts `customizer` which
|
||||||
* is invoked to compare values. If `customizer` returns `undefined` comparisons
|
* is invoked to compare values. If `customizer` returns `undefined`, comparisons
|
||||||
* are handled by the method instead. The `customizer` is invoked with up to
|
* are handled by the method instead. The `customizer` is invoked with up to
|
||||||
* six arguments: (objValue, othValue [, index|key, object, other, stack]).
|
* six arguments: (objValue, othValue [, index|key, object, other, stack]).
|
||||||
*
|
*
|
||||||
@@ -704,8 +728,9 @@ function isLength(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
* Checks if `value` is the
|
||||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
|
||||||
|
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
@@ -779,14 +804,11 @@ function isObjectLike(value) {
|
|||||||
* // => false
|
* // => false
|
||||||
*/
|
*/
|
||||||
function isNative(value) {
|
function isNative(value) {
|
||||||
if (value == null) {
|
if (!isObject(value)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (isFunction(value)) {
|
var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
|
||||||
return reIsNative.test(funcToString.call(value));
|
return pattern.test(toSource(value));
|
||||||
}
|
|
||||||
return isObjectLike(value) &&
|
|
||||||
(isHostObject(value) ? reIsNative : reIsHostCtor).test(value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.isequalwith",
|
"name": "lodash.isequalwith",
|
||||||
"version": "4.1.3",
|
"version": "4.1.4",
|
||||||
"description": "The lodash method `_.isEqualWith` exported as a module.",
|
"description": "The lodash method `_.isEqualWith` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.ismatch v4.1.3
|
# lodash.ismatch v4.1.4
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.isMatch` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.isMatch` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var isMatch = require('lodash.ismatch');
|
var isMatch = require('lodash.ismatch');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#isMatch) or [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash.ismatch) for more details.
|
See the [documentation](https://lodash.com/docs#isMatch) or [package source](https://github.com/lodash/lodash/blob/4.1.4-npm-packages/lodash.ismatch) for more details.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.1.3 (Custom Build) <https://lodash.com/>
|
* lodash 4.1.4 (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
* Released under MIT license <https://lodash.com/license>
|
* Released under MIT license <https://lodash.com/license>
|
||||||
@@ -47,7 +47,10 @@ var arrayBufferTag = '[object ArrayBuffer]',
|
|||||||
uint16Tag = '[object Uint16Array]',
|
uint16Tag = '[object Uint16Array]',
|
||||||
uint32Tag = '[object Uint32Array]';
|
uint32Tag = '[object Uint32Array]';
|
||||||
|
|
||||||
/** Used to match `RegExp` [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns). */
|
/**
|
||||||
|
* Used to match `RegExp`
|
||||||
|
* [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
|
||||||
|
*/
|
||||||
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
||||||
|
|
||||||
/** Used to detect host constructors (Safari). */
|
/** Used to detect host constructors (Safari). */
|
||||||
@@ -189,7 +192,8 @@ var funcToString = Function.prototype.toString;
|
|||||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
* Used to resolve the
|
||||||
|
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
||||||
* of values.
|
* of values.
|
||||||
*/
|
*/
|
||||||
var objectToString = objectProto.toString;
|
var objectToString = objectProto.toString;
|
||||||
@@ -215,11 +219,11 @@ var DataView = getNative(root, 'DataView'),
|
|||||||
WeakMap = getNative(root, 'WeakMap');
|
WeakMap = getNative(root, 'WeakMap');
|
||||||
|
|
||||||
/** Used to detect maps, sets, and weakmaps. */
|
/** Used to detect maps, sets, and weakmaps. */
|
||||||
var dataViewCtorString = DataView ? (DataView + '') : '',
|
var dataViewCtorString = toSource(DataView),
|
||||||
mapCtorString = Map ? funcToString.call(Map) : '',
|
mapCtorString = toSource(Map),
|
||||||
promiseCtorString = Promise ? funcToString.call(Promise) : '',
|
promiseCtorString = toSource(Promise),
|
||||||
setCtorString = Set ? funcToString.call(Set) : '',
|
setCtorString = toSource(Set),
|
||||||
weakMapCtorString = WeakMap ? funcToString.call(WeakMap) : '';
|
weakMapCtorString = toSource(WeakMap);
|
||||||
|
|
||||||
/** Used to convert symbols to primitives and strings. */
|
/** Used to convert symbols to primitives and strings. */
|
||||||
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
||||||
@@ -500,7 +504,8 @@ function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
|
|||||||
case regexpTag:
|
case regexpTag:
|
||||||
case stringTag:
|
case stringTag:
|
||||||
// Coerce regexes to strings and treat strings, primitives and objects,
|
// Coerce regexes to strings and treat strings, primitives and objects,
|
||||||
// as equal. See https://es5.github.io/#x15.10.6.4 for more details.
|
// as equal. See http://www.ecma-international.org/ecma-262/6.0/#sec-regexp.prototype.tostring
|
||||||
|
// for more details.
|
||||||
return object == (other + '');
|
return object == (other + '');
|
||||||
|
|
||||||
case mapTag:
|
case mapTag:
|
||||||
@@ -669,8 +674,8 @@ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|||||||
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
||||||
getTag = function(value) {
|
getTag = function(value) {
|
||||||
var result = objectToString.call(value),
|
var result = objectToString.call(value),
|
||||||
Ctor = result == objectTag ? value.constructor : null,
|
Ctor = result == objectTag ? value.constructor : undefined,
|
||||||
ctorString = typeof Ctor == 'function' ? funcToString.call(Ctor) : '';
|
ctorString = Ctor ? toSource(Ctor) : undefined;
|
||||||
|
|
||||||
if (ctorString) {
|
if (ctorString) {
|
||||||
switch (ctorString) {
|
switch (ctorString) {
|
||||||
@@ -697,6 +702,25 @@ function isStrictComparable(value) {
|
|||||||
return value === value && !isObject(value);
|
return value === value && !isObject(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts `func` to its source code.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {Function} func The function to process.
|
||||||
|
* @returns {string} Returns the source code.
|
||||||
|
*/
|
||||||
|
function toSource(func) {
|
||||||
|
if (func != null) {
|
||||||
|
try {
|
||||||
|
return funcToString.call(func);
|
||||||
|
} catch (e) {}
|
||||||
|
try {
|
||||||
|
return (func + '');
|
||||||
|
} catch (e) {}
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is classified as an `Array` object.
|
* Checks if `value` is classified as an `Array` object.
|
||||||
*
|
*
|
||||||
@@ -783,8 +807,9 @@ function isLength(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
* Checks if `value` is the
|
||||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
|
||||||
|
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
@@ -886,14 +911,11 @@ function isMatch(object, source) {
|
|||||||
* // => false
|
* // => false
|
||||||
*/
|
*/
|
||||||
function isNative(value) {
|
function isNative(value) {
|
||||||
if (value == null) {
|
if (!isObject(value)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (isFunction(value)) {
|
var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
|
||||||
return reIsNative.test(funcToString.call(value));
|
return pattern.test(toSource(value));
|
||||||
}
|
|
||||||
return isObjectLike(value) &&
|
|
||||||
(isHostObject(value) ? reIsNative : reIsHostCtor).test(value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.ismatch",
|
"name": "lodash.ismatch",
|
||||||
"version": "4.1.3",
|
"version": "4.1.4",
|
||||||
"description": "The lodash method `_.isMatch` exported as a module.",
|
"description": "The lodash method `_.isMatch` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.ismatchwith v4.1.3
|
# lodash.ismatchwith v4.1.4
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.isMatchWith` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.isMatchWith` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var isMatchWith = require('lodash.ismatchwith');
|
var isMatchWith = require('lodash.ismatchwith');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#isMatchWith) or [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash.ismatchwith) for more details.
|
See the [documentation](https://lodash.com/docs#isMatchWith) or [package source](https://github.com/lodash/lodash/blob/4.1.4-npm-packages/lodash.ismatchwith) for more details.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.1.3 (Custom Build) <https://lodash.com/>
|
* lodash 4.1.4 (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
* Released under MIT license <https://lodash.com/license>
|
* Released under MIT license <https://lodash.com/license>
|
||||||
@@ -47,7 +47,10 @@ var arrayBufferTag = '[object ArrayBuffer]',
|
|||||||
uint16Tag = '[object Uint16Array]',
|
uint16Tag = '[object Uint16Array]',
|
||||||
uint32Tag = '[object Uint32Array]';
|
uint32Tag = '[object Uint32Array]';
|
||||||
|
|
||||||
/** Used to match `RegExp` [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns). */
|
/**
|
||||||
|
* Used to match `RegExp`
|
||||||
|
* [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
|
||||||
|
*/
|
||||||
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
||||||
|
|
||||||
/** Used to detect host constructors (Safari). */
|
/** Used to detect host constructors (Safari). */
|
||||||
@@ -189,7 +192,8 @@ var funcToString = Function.prototype.toString;
|
|||||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
* Used to resolve the
|
||||||
|
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
||||||
* of values.
|
* of values.
|
||||||
*/
|
*/
|
||||||
var objectToString = objectProto.toString;
|
var objectToString = objectProto.toString;
|
||||||
@@ -215,11 +219,11 @@ var DataView = getNative(root, 'DataView'),
|
|||||||
WeakMap = getNative(root, 'WeakMap');
|
WeakMap = getNative(root, 'WeakMap');
|
||||||
|
|
||||||
/** Used to detect maps, sets, and weakmaps. */
|
/** Used to detect maps, sets, and weakmaps. */
|
||||||
var dataViewCtorString = DataView ? (DataView + '') : '',
|
var dataViewCtorString = toSource(DataView),
|
||||||
mapCtorString = Map ? funcToString.call(Map) : '',
|
mapCtorString = toSource(Map),
|
||||||
promiseCtorString = Promise ? funcToString.call(Promise) : '',
|
promiseCtorString = toSource(Promise),
|
||||||
setCtorString = Set ? funcToString.call(Set) : '',
|
setCtorString = toSource(Set),
|
||||||
weakMapCtorString = WeakMap ? funcToString.call(WeakMap) : '';
|
weakMapCtorString = toSource(WeakMap);
|
||||||
|
|
||||||
/** Used to convert symbols to primitives and strings. */
|
/** Used to convert symbols to primitives and strings. */
|
||||||
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
||||||
@@ -500,7 +504,8 @@ function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
|
|||||||
case regexpTag:
|
case regexpTag:
|
||||||
case stringTag:
|
case stringTag:
|
||||||
// Coerce regexes to strings and treat strings, primitives and objects,
|
// Coerce regexes to strings and treat strings, primitives and objects,
|
||||||
// as equal. See https://es5.github.io/#x15.10.6.4 for more details.
|
// as equal. See http://www.ecma-international.org/ecma-262/6.0/#sec-regexp.prototype.tostring
|
||||||
|
// for more details.
|
||||||
return object == (other + '');
|
return object == (other + '');
|
||||||
|
|
||||||
case mapTag:
|
case mapTag:
|
||||||
@@ -669,8 +674,8 @@ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|||||||
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
||||||
getTag = function(value) {
|
getTag = function(value) {
|
||||||
var result = objectToString.call(value),
|
var result = objectToString.call(value),
|
||||||
Ctor = result == objectTag ? value.constructor : null,
|
Ctor = result == objectTag ? value.constructor : undefined,
|
||||||
ctorString = typeof Ctor == 'function' ? funcToString.call(Ctor) : '';
|
ctorString = Ctor ? toSource(Ctor) : undefined;
|
||||||
|
|
||||||
if (ctorString) {
|
if (ctorString) {
|
||||||
switch (ctorString) {
|
switch (ctorString) {
|
||||||
@@ -697,6 +702,25 @@ function isStrictComparable(value) {
|
|||||||
return value === value && !isObject(value);
|
return value === value && !isObject(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts `func` to its source code.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {Function} func The function to process.
|
||||||
|
* @returns {string} Returns the source code.
|
||||||
|
*/
|
||||||
|
function toSource(func) {
|
||||||
|
if (func != null) {
|
||||||
|
try {
|
||||||
|
return funcToString.call(func);
|
||||||
|
} catch (e) {}
|
||||||
|
try {
|
||||||
|
return (func + '');
|
||||||
|
} catch (e) {}
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is classified as an `Array` object.
|
* Checks if `value` is classified as an `Array` object.
|
||||||
*
|
*
|
||||||
@@ -783,8 +807,9 @@ function isLength(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
* Checks if `value` is the
|
||||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
|
||||||
|
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
@@ -841,7 +866,7 @@ function isObjectLike(value) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is like `_.isMatch` except that it accepts `customizer` which
|
* This method is like `_.isMatch` except that it accepts `customizer` which
|
||||||
* is invoked to compare values. If `customizer` returns `undefined` comparisons
|
* is invoked to compare values. If `customizer` returns `undefined`, comparisons
|
||||||
* are handled by the method instead. The `customizer` is invoked with five
|
* are handled by the method instead. The `customizer` is invoked with five
|
||||||
* arguments: (objValue, srcValue, index|key, object, source).
|
* arguments: (objValue, srcValue, index|key, object, source).
|
||||||
*
|
*
|
||||||
@@ -895,14 +920,11 @@ function isMatchWith(object, source, customizer) {
|
|||||||
* // => false
|
* // => false
|
||||||
*/
|
*/
|
||||||
function isNative(value) {
|
function isNative(value) {
|
||||||
if (value == null) {
|
if (!isObject(value)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (isFunction(value)) {
|
var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
|
||||||
return reIsNative.test(funcToString.call(value));
|
return pattern.test(toSource(value));
|
||||||
}
|
|
||||||
return isObjectLike(value) &&
|
|
||||||
(isHostObject(value) ? reIsNative : reIsHostCtor).test(value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.ismatchwith",
|
"name": "lodash.ismatchwith",
|
||||||
"version": "4.1.3",
|
"version": "4.1.4",
|
||||||
"description": "The lodash method `_.isMatchWith` exported as a module.",
|
"description": "The lodash method `_.isMatchWith` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,23 +1,47 @@
|
|||||||
The MIT License (MIT)
|
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
|
||||||
Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
Based on Underscore.js, copyright Jeremy Ashkenas,
|
||||||
Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
This software consists of voluntary contributions made by many
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
individuals. For exact contribution history, see the revision history
|
||||||
in the Software without restriction, including without limitation the rights
|
available at https://github.com/lodash/lodash
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
The following license applies to all parts of this software except as
|
||||||
copies or substantial portions of the Software.
|
documented below:
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
====
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
a copy of this software and associated documentation files (the
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
"Software"), to deal in the Software without restriction, including
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
SOFTWARE.
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Copyright and related rights for sample code are waived via CC0. Sample
|
||||||
|
code is defined as all source code displayed within the prose of the
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Files located in the node_modules and vendor directories are externally
|
||||||
|
maintained libraries used by this software which have their own
|
||||||
|
licenses; we recommend you read them, as their terms may differ from the
|
||||||
|
terms above.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.keysin v4.1.3
|
# lodash.keysin v4.1.4
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.keysIn` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.keysIn` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var keysIn = require('lodash.keysin');
|
var keysIn = require('lodash.keysin');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#keysIn) or [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash.keysin) for more details.
|
See the [documentation](https://lodash.com/docs#keysIn) or [package source](https://github.com/lodash/lodash/blob/4.1.4-npm-packages/lodash.keysin) for more details.
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.1.3 (Custom Build) <https://lodash.com/>
|
* lodash (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
* Released under MIT license <https://lodash.com/license>
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Used as references for various `Number` constants. */
|
/** Used as references for various `Number` constants. */
|
||||||
@@ -87,20 +87,6 @@ function checkGlobal(value) {
|
|||||||
return (value && value.Object === Object) ? value : null;
|
return (value && value.Object === Object) ? value : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is a valid array-like index.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
||||||
*/
|
|
||||||
function isIndex(value, length) {
|
|
||||||
value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;
|
|
||||||
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
||||||
return value > -1 && value % 1 == 0 && value < length;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts `iterator` to an array.
|
* Converts `iterator` to an array.
|
||||||
*
|
*
|
||||||
@@ -166,7 +152,7 @@ if (enumerate && !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf')) {
|
|||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {string} key The key of the property to get.
|
* @param {string} key The key of the property to get.
|
||||||
* @returns {Function} Returns the new function.
|
* @returns {Function} Returns the new accessor function.
|
||||||
*/
|
*/
|
||||||
function baseProperty(key) {
|
function baseProperty(key) {
|
||||||
return function(object) {
|
return function(object) {
|
||||||
@@ -204,6 +190,21 @@ function indexKeys(object) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if `value` is a valid array-like index.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {*} value The value to check.
|
||||||
|
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
||||||
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
||||||
|
*/
|
||||||
|
function isIndex(value, length) {
|
||||||
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
||||||
|
return !!length &&
|
||||||
|
(typeof value == 'number' || reIsUint.test(value)) &&
|
||||||
|
(value > -1 && value % 1 == 0 && value < length);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is likely a prototype object.
|
* Checks if `value` is likely a prototype object.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.keysin",
|
"name": "lodash.keysin",
|
||||||
"version": "4.1.3",
|
"version": "4.1.4",
|
||||||
"description": "The lodash method `_.keysIn` exported as a module.",
|
"description": "The lodash method `_.keysIn` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,23 +1,47 @@
|
|||||||
The MIT License (MIT)
|
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
|
||||||
Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
Based on Underscore.js, copyright Jeremy Ashkenas,
|
||||||
Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
This software consists of voluntary contributions made by many
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
individuals. For exact contribution history, see the revision history
|
||||||
in the Software without restriction, including without limitation the rights
|
available at https://github.com/lodash/lodash
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
The following license applies to all parts of this software except as
|
||||||
copies or substantial portions of the Software.
|
documented below:
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
====
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
a copy of this software and associated documentation files (the
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
"Software"), to deal in the Software without restriction, including
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
SOFTWARE.
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Copyright and related rights for sample code are waived via CC0. Sample
|
||||||
|
code is defined as all source code displayed within the prose of the
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Files located in the node_modules and vendor directories are externally
|
||||||
|
maintained libraries used by this software which have their own
|
||||||
|
licenses; we recommend you read them, as their terms may differ from the
|
||||||
|
terms above.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.partial v4.1.3
|
# lodash.partial v4.1.4
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.partial` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.partial` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var partial = require('lodash.partial');
|
var partial = require('lodash.partial');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#partial) or [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash.partial) for more details.
|
See the [documentation](https://lodash.com/docs#partial) or [package source](https://github.com/lodash/lodash/blob/4.1.4-npm-packages/lodash.partial) for more details.
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.1.3 (Custom Build) <https://lodash.com/>
|
* lodash (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
* Released under MIT license <https://lodash.com/license>
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
|
||||||
*/
|
*/
|
||||||
var createWrapper = require('lodash._createwrapper'),
|
var createWrapper = require('lodash._createwrapper'),
|
||||||
rest = require('lodash.rest');
|
rest = require('lodash.rest');
|
||||||
@@ -47,7 +47,7 @@ function replaceHolders(array, placeholder) {
|
|||||||
* @param {Function} func The function to inspect.
|
* @param {Function} func The function to inspect.
|
||||||
* @returns {*} Returns the placeholder value.
|
* @returns {*} Returns the placeholder value.
|
||||||
*/
|
*/
|
||||||
function getPlaceholder(func) {
|
function getHolder(func) {
|
||||||
var object = func;
|
var object = func;
|
||||||
return object.placeholder;
|
return object.placeholder;
|
||||||
}
|
}
|
||||||
@@ -86,7 +86,7 @@ function getPlaceholder(func) {
|
|||||||
* // => 'hi fred'
|
* // => 'hi fred'
|
||||||
*/
|
*/
|
||||||
var partial = rest(function(func, partials) {
|
var partial = rest(function(func, partials) {
|
||||||
var holders = replaceHolders(partials, getPlaceholder(partial));
|
var holders = replaceHolders(partials, getHolder(partial));
|
||||||
return createWrapper(func, PARTIAL_FLAG, undefined, partials, holders);
|
return createWrapper(func, PARTIAL_FLAG, undefined, partials, holders);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.partial",
|
"name": "lodash.partial",
|
||||||
"version": "4.1.3",
|
"version": "4.1.4",
|
||||||
"description": "The lodash method `_.partial` exported as a module.",
|
"description": "The lodash method `_.partial` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,23 +1,47 @@
|
|||||||
The MIT License (MIT)
|
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
|
||||||
Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
Based on Underscore.js, copyright Jeremy Ashkenas,
|
||||||
Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
This software consists of voluntary contributions made by many
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
individuals. For exact contribution history, see the revision history
|
||||||
in the Software without restriction, including without limitation the rights
|
available at https://github.com/lodash/lodash
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
The following license applies to all parts of this software except as
|
||||||
copies or substantial portions of the Software.
|
documented below:
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
====
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
a copy of this software and associated documentation files (the
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
"Software"), to deal in the Software without restriction, including
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
SOFTWARE.
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Copyright and related rights for sample code are waived via CC0. Sample
|
||||||
|
code is defined as all source code displayed within the prose of the
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Files located in the node_modules and vendor directories are externally
|
||||||
|
maintained libraries used by this software which have their own
|
||||||
|
licenses; we recommend you read them, as their terms may differ from the
|
||||||
|
terms above.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.partialright v4.1.3
|
# lodash.partialright v4.1.4
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.partialRight` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.partialRight` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var partialRight = require('lodash.partialright');
|
var partialRight = require('lodash.partialright');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#partialRight) or [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash.partialright) for more details.
|
See the [documentation](https://lodash.com/docs#partialRight) or [package source](https://github.com/lodash/lodash/blob/4.1.4-npm-packages/lodash.partialright) for more details.
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.1.3 (Custom Build) <https://lodash.com/>
|
* lodash (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
* Released under MIT license <https://lodash.com/license>
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
|
||||||
*/
|
*/
|
||||||
var createWrapper = require('lodash._createwrapper'),
|
var createWrapper = require('lodash._createwrapper'),
|
||||||
rest = require('lodash.rest');
|
rest = require('lodash.rest');
|
||||||
@@ -47,7 +47,7 @@ function replaceHolders(array, placeholder) {
|
|||||||
* @param {Function} func The function to inspect.
|
* @param {Function} func The function to inspect.
|
||||||
* @returns {*} Returns the placeholder value.
|
* @returns {*} Returns the placeholder value.
|
||||||
*/
|
*/
|
||||||
function getPlaceholder(func) {
|
function getHolder(func) {
|
||||||
var object = func;
|
var object = func;
|
||||||
return object.placeholder;
|
return object.placeholder;
|
||||||
}
|
}
|
||||||
@@ -85,7 +85,7 @@ function getPlaceholder(func) {
|
|||||||
* // => 'hello fred'
|
* // => 'hello fred'
|
||||||
*/
|
*/
|
||||||
var partialRight = rest(function(func, partials) {
|
var partialRight = rest(function(func, partials) {
|
||||||
var holders = replaceHolders(partials, getPlaceholder(partialRight));
|
var holders = replaceHolders(partials, getHolder(partialRight));
|
||||||
return createWrapper(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders);
|
return createWrapper(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.partialright",
|
"name": "lodash.partialright",
|
||||||
"version": "4.1.3",
|
"version": "4.1.4",
|
||||||
"description": "The lodash method `_.partialRight` exported as a module.",
|
"description": "The lodash method `_.partialRight` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.replace v4.1.3
|
# lodash.replace v4.1.4
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.replace` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.replace` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var replace = require('lodash.replace');
|
var replace = require('lodash.replace');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#replace) or [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash.replace) for more details.
|
See the [documentation](https://lodash.com/docs#replace) or [package source](https://github.com/lodash/lodash/blob/4.1.4-npm-packages/lodash.replace) for more details.
|
||||||
|
|||||||
@@ -23,12 +23,11 @@ var freeSelf = typeof self == 'object' && self && self.Object === Object && self
|
|||||||
var root = freeGlobal || freeSelf || Function('return this')();
|
var root = freeGlobal || freeSelf || Function('return this')();
|
||||||
|
|
||||||
/** Used for built-in method references. */
|
/** Used for built-in method references. */
|
||||||
var objectProto = Object.prototype,
|
var objectProto = Object.prototype;
|
||||||
stringProto = String.prototype;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to resolve the
|
* Used to resolve the
|
||||||
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
||||||
* of values.
|
* of values.
|
||||||
*/
|
*/
|
||||||
var objectToString = objectProto.toString;
|
var objectToString = objectProto.toString;
|
||||||
@@ -36,9 +35,6 @@ var objectToString = objectProto.toString;
|
|||||||
/** Built-in value references. */
|
/** Built-in value references. */
|
||||||
var Symbol = root.Symbol;
|
var Symbol = root.Symbol;
|
||||||
|
|
||||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
||||||
var nativeReplace = stringProto.replace;
|
|
||||||
|
|
||||||
/** Used to convert symbols to primitives and strings. */
|
/** Used to convert symbols to primitives and strings. */
|
||||||
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
||||||
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
||||||
@@ -161,7 +157,7 @@ function replace() {
|
|||||||
var args = arguments,
|
var args = arguments,
|
||||||
string = toString(args[0]);
|
string = toString(args[0]);
|
||||||
|
|
||||||
return args.length < 3 ? string : nativeReplace.call(string, args[1], args[2]);
|
return args.length < 3 ? string : string.replace(args[1], args[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = replace;
|
module.exports = replace;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.replace",
|
"name": "lodash.replace",
|
||||||
"version": "4.1.3",
|
"version": "4.1.4",
|
||||||
"description": "The lodash method `_.replace` exported as a module.",
|
"description": "The lodash method `_.replace` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.tostring v4.1.3
|
# lodash.tostring v4.1.4
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.toString` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.toString` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var toString = require('lodash.tostring');
|
var toString = require('lodash.tostring');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#toString) or [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash.tostring) for more details.
|
See the [documentation](https://lodash.com/docs#toString) or [package source](https://github.com/lodash/lodash/blob/4.1.4-npm-packages/lodash.tostring) for more details.
|
||||||
|
|||||||
@@ -13,61 +13,21 @@ var INFINITY = 1 / 0;
|
|||||||
/** `Object#toString` result references. */
|
/** `Object#toString` result references. */
|
||||||
var symbolTag = '[object Symbol]';
|
var symbolTag = '[object Symbol]';
|
||||||
|
|
||||||
/** 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
|
|
||||||
: undefined;
|
|
||||||
|
|
||||||
/** Detect free variable `module`. */
|
|
||||||
var freeModule = (objectTypes[typeof module] && module && !module.nodeType)
|
|
||||||
? module
|
|
||||||
: undefined;
|
|
||||||
|
|
||||||
/** Detect free variable `global` from Node.js. */
|
/** Detect free variable `global` from Node.js. */
|
||||||
var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
|
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
||||||
|
|
||||||
/** Detect free variable `self`. */
|
/** Detect free variable `self`. */
|
||||||
var freeSelf = checkGlobal(objectTypes[typeof self] && self);
|
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
||||||
|
|
||||||
/** Detect free variable `window`. */
|
/** Used as a reference to the global object. */
|
||||||
var freeWindow = checkGlobal(objectTypes[typeof window] && window);
|
var root = freeGlobal || freeSelf || Function('return this')();
|
||||||
|
|
||||||
/** 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')();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 for built-in method references. */
|
/** Used for built-in method references. */
|
||||||
var objectProto = Object.prototype;
|
var objectProto = Object.prototype;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to resolve the
|
* Used to resolve the
|
||||||
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
||||||
* of values.
|
* of values.
|
||||||
*/
|
*/
|
||||||
var objectToString = objectProto.toString;
|
var objectToString = objectProto.toString;
|
||||||
@@ -135,8 +95,7 @@ function isObjectLike(value) {
|
|||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
||||||
* else `false`.
|
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.isSymbol(Symbol.iterator);
|
* _.isSymbol(Symbol.iterator);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.tostring",
|
"name": "lodash.tostring",
|
||||||
"version": "4.1.3",
|
"version": "4.1.4",
|
||||||
"description": "The lodash method `_.toString` exported as a module.",
|
"description": "The lodash method `_.toString` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
Reference in New Issue
Block a user