diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2016-09-08 03:54:58 +0300 |
---|---|---|
committer | Kat Marchán <kzm@sykosomatic.org> | 2016-09-09 00:53:11 +0300 |
commit | c3476780ef4483425e4ae1d095a5884b46b8db86 (patch) | |
tree | 6cef0c1a0aa73afadd142535967d46a6d28d9330 | |
parent | 4727f8646daca7b3e3c1c95860e02acf583b9dae (diff) |
lodash.union@4.6.0
Credit: @jdalton
-rw-r--r-- | node_modules/lodash.union/README.md | 4 | ||||
-rw-r--r-- | node_modules/lodash.union/index.js | 65 | ||||
-rw-r--r-- | node_modules/lodash.union/package.json | 39 | ||||
-rw-r--r-- | package.json | 2 |
4 files changed, 41 insertions, 69 deletions
diff --git a/node_modules/lodash.union/README.md b/node_modules/lodash.union/README.md index b688cbf7e..001092dde 100644 --- a/node_modules/lodash.union/README.md +++ b/node_modules/lodash.union/README.md @@ -1,4 +1,4 @@ -# lodash.union v4.5.0 +# lodash.union v4.6.0 The [lodash](https://lodash.com/) method `_.union` exported as a [Node.js](https://nodejs.org/) module. @@ -15,4 +15,4 @@ In Node.js: var union = require('lodash.union'); ``` -See the [documentation](https://lodash.com/docs#union) or [package source](https://github.com/lodash/lodash/blob/4.5.0-npm-packages/lodash.union) for more details. +See the [documentation](https://lodash.com/docs#union) or [package source](https://github.com/lodash/lodash/blob/4.6.0-npm-packages/lodash.union) for more details. diff --git a/node_modules/lodash.union/index.js b/node_modules/lodash.union/index.js index 3320a1070..d1eb0305d 100644 --- a/node_modules/lodash.union/index.js +++ b/node_modules/lodash.union/index.js @@ -24,7 +24,7 @@ var argsTag = '[object Arguments]', /** * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns). + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; @@ -65,7 +65,7 @@ function apply(func, thisArg, args) { * specifying an index to search from. * * @private - * @param {Array} [array] The array to search. + * @param {Array} [array] The array to inspect. * @param {*} target The value to search for. * @returns {boolean} Returns `true` if `target` is found, else `false`. */ @@ -78,7 +78,7 @@ function arrayIncludes(array, value) { * This function is like `arrayIncludes` except that it accepts a comparator. * * @private - * @param {Array} [array] The array to search. + * @param {Array} [array] The array to inspect. * @param {*} target The value to search for. * @param {Function} comparator The comparator invoked per element. * @returns {boolean} Returns `true` if `target` is found, else `false`. @@ -119,7 +119,7 @@ function arrayPush(array, values) { * support for iteratee shorthands. * * @private - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {Function} predicate The function invoked per iteration. * @param {number} fromIndex The index to search from. * @param {boolean} [fromRight] Specify iterating from right to left. @@ -141,7 +141,7 @@ function baseFindIndex(array, predicate, fromIndex, fromRight) { * The base implementation of `_.indexOf` without `fromIndex` bounds checks. * * @private - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} fromIndex The index to search from. * @returns {number} Returns the index of the matched value, else `-1`. @@ -173,19 +173,6 @@ function baseIsNaN(value) { } /** - * 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]; - }; -} - -/** * Checks if a cache value for `key` exists. * * @private @@ -247,6 +234,7 @@ function setToArray(set) { /** Used for built-in method references. */ var arrayProto = Array.prototype, + funcProto = Function.prototype, objectProto = Object.prototype; /** Used to detect overreaching core-js shims. */ @@ -259,14 +247,14 @@ var maskSrcKey = (function() { }()); /** Used to resolve the decompiled source of functions. */ -var funcToString = Function.prototype.toString; +var funcToString = funcProto.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) + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var objectToString = objectProto.toString; @@ -649,7 +637,7 @@ SetCache.prototype.has = setCacheHas; * Gets the index at which the `key` is found in `array` of key-value pairs. * * @private - * @param {Array} array The array to search. + * @param {Array} array The array to inspect. * @param {*} key The key to search for. * @returns {number} Returns the index of the matched value, else `-1`. */ @@ -815,19 +803,6 @@ var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop }; /** - * 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 data for `map`. * * @private @@ -864,7 +839,7 @@ function getNative(object, key) { */ function isFlattenable(value) { return isArray(value) || isArguments(value) || - !!(spreadableSymbol && value && value[spreadableSymbol]) + !!(spreadableSymbol && value && value[spreadableSymbol]); } /** @@ -913,7 +888,7 @@ function toSource(func) { /** * Creates an array of unique values, in order, from all given arrays using - * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @static @@ -933,7 +908,7 @@ var union = baseRest(function(arrays) { /** * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static @@ -986,7 +961,7 @@ function eq(value, other) { * // => false */ function isArguments(value) { - // Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode. + // Safari 8.1 makes `arguments.callee` enumerable in strict mode. return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag); } @@ -1042,7 +1017,7 @@ var isArray = Array.isArray; * // => false */ function isArrayLike(value) { - return value != null && isLength(getLength(value)) && !isFunction(value); + return value != null && isLength(value.length) && !isFunction(value); } /** @@ -1093,8 +1068,7 @@ function isArrayLikeObject(value) { */ 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. + // in Safari 8-9 which returns 'object' for typed array and other constructors. var tag = isObject(value) ? objectToString.call(value) : ''; return tag == funcTag || tag == genTag; } @@ -1102,16 +1076,15 @@ function isFunction(value) { /** * 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). + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.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`. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. * @example * * _.isLength(3); @@ -1133,7 +1106,7 @@ function isLength(value) { /** * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types) + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static diff --git a/node_modules/lodash.union/package.json b/node_modules/lodash.union/package.json index c424100d8..1bbb3cc10 100644 --- a/node_modules/lodash.union/package.json +++ b/node_modules/lodash.union/package.json @@ -2,51 +2,50 @@ "_args": [ [ { - "raw": "lodash.union@4.5.0", + "raw": "lodash.union@4.6.0", "scope": null, "escapedName": "lodash.union", "name": "lodash.union", - "rawSpec": "4.5.0", - "spec": "4.5.0", + "rawSpec": "4.6.0", + "spec": "4.6.0", "type": "version" }, - "/Users/rebecca/code/npm" + "/Users/zkat/Documents/code/npm" ] ], - "_from": "lodash.union@4.5.0", - "_id": "lodash.union@4.5.0", + "_from": "lodash.union@4.6.0", + "_id": "lodash.union@4.6.0", "_inCache": true, - "_installable": true, "_location": "/lodash.union", - "_nodeVersion": "4.2.4", + "_nodeVersion": "4.4.7", "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/lodash.union-4.5.0.tgz_1469458373533_0.2511256511788815" + "tmp": "tmp/lodash.union-4.6.0.tgz_1471110390292_0.8560791339259595" }, "_npmUser": { "name": "jdalton", "email": "john.david.dalton@gmail.com" }, - "_npmVersion": "2.15.9", + "_npmVersion": "2.15.10", "_phantomChildren": {}, "_requested": { - "raw": "lodash.union@4.5.0", + "raw": "lodash.union@4.6.0", "scope": null, "escapedName": "lodash.union", "name": "lodash.union", - "rawSpec": "4.5.0", - "spec": "4.5.0", + "rawSpec": "4.6.0", + "spec": "4.6.0", "type": "version" }, "_requiredBy": [ "#USER", "/" ], - "_resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.5.0.tgz", - "_shasum": "d273848d9bc556780a6b4fcfed822a79a685a683", + "_resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz", + "_shasum": "48bb5088409f16f1821666641c44dd1aaae3cd88", "_shrinkwrap": null, - "_spec": "lodash.union@4.5.0", - "_where": "/Users/rebecca/code/npm", + "_spec": "lodash.union@4.6.0", + "_where": "/Users/zkat/Documents/code/npm", "author": { "name": "John-David Dalton", "email": "john.david.dalton@gmail.com", @@ -77,8 +76,8 @@ "devDependencies": {}, "directories": {}, "dist": { - "shasum": "d273848d9bc556780a6b4fcfed822a79a685a683", - "tarball": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.5.0.tgz" + "shasum": "48bb5088409f16f1821666641c44dd1aaae3cd88", + "tarball": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz" }, "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -111,5 +110,5 @@ "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, - "version": "4.5.0" + "version": "4.6.0" } diff --git a/package.json b/package.json index 32f4fe017..7f9c41738 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "lockfile": "~1.0.1", "lodash._baseuniq": "~4.6.0", "lodash.clonedeep": "~4.5.0", - "lodash.union": "~4.5.0", + "lodash.union": "~4.6.0", "lodash.uniq": "~4.4.0", "lodash.without": "~4.3.0", "mkdirp": "~0.5.1", |