diff --git a/README.md b/README.md index a06a93a2e..c59bc8f01 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# lodash v3.0.1 +# lodash v3.0.2 The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method. diff --git a/lodash._baseassign/LICENSE.txt b/lodash._baseassign/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._baseassign/LICENSE.txt +++ b/lodash._baseassign/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._baseassign/README.md b/lodash._baseassign/README.md index 7646a8e19..c4e1e5cdf 100644 --- a/lodash._baseassign/README.md +++ b/lodash._baseassign/README.md @@ -1,4 +1,4 @@ -# lodash._baseassign v3.0.1 +# lodash._baseassign v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseAssign` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseAssign = require('lodash._baseassign'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseassign) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseassign) for more details. diff --git a/lodash._baseassign/index.js b/lodash._baseassign/index.js index c7df9f352..c4879d506 100644 --- a/lodash._baseassign/index.js +++ b/lodash._baseassign/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -32,7 +32,7 @@ function baseAssign(object, source, customizer) { value = object[key], result = customizer(value, source[key], key, object, source); - if ((result === result ? result !== value : value === value) || + if ((result === result ? (result !== value) : (value === value)) || (typeof value == 'undefined' && !(key in object))) { object[key] = result; } diff --git a/lodash._baseassign/package.json b/lodash._baseassign/package.json index d3e953d6c..8da2a58a4 100644 --- a/lodash._baseassign/package.json +++ b/lodash._baseassign/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseassign", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `baseAssign` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._baseat/README.md b/lodash._baseat/README.md index 394f71743..c5156e050 100644 --- a/lodash._baseat/README.md +++ b/lodash._baseat/README.md @@ -1,4 +1,4 @@ -# lodash._baseat v3.0.1 +# lodash._baseat v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseAt` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseAt = require('lodash._baseat'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseat) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseat) for more details. diff --git a/lodash._baseat/index.js b/lodash._baseat/index.js index 99d485cc1..ee014bdd9 100644 --- a/lodash._baseat/index.js +++ b/lodash._baseat/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.3 @@ -24,8 +24,9 @@ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; */ function baseAt(collection, props) { var index = -1, - length = collection.length, - isArr = isLength(length), + isNil = collection == null, + isArr = !isNil && isArrayLike(collection), + length = isArr && collection.length, propsLength = props.length, result = Array(propsLength); @@ -34,12 +35,48 @@ function baseAt(collection, props) { if (isArr) { result[index] = isIndex(key, length) ? collection[key] : undefined; } else { - result[index] = collection[key]; + result[index] = isNil ? undefined : collection[key]; } } return result; } +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} + +/** + * 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'); + +/** + * Checks if `value` is array-like. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + */ +function isArrayLike(value) { + return value != null && isLength(getLength(value)); +} + /** * Checks if `value` is a valid array-like index. * diff --git a/lodash._baseat/package.json b/lodash._baseat/package.json index 75aa9ceac..ae46217a6 100644 --- a/lodash._baseat/package.json +++ b/lodash._baseat/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseat", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `baseAt` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._basecompareascending/README.md b/lodash._basecompareascending/README.md index c73537332..340b5b3ab 100644 --- a/lodash._basecompareascending/README.md +++ b/lodash._basecompareascending/README.md @@ -1,4 +1,4 @@ -# lodash._basecompareascending v3.0.1 +# lodash._basecompareascending v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseCompareAscending` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseCompareAscending = require('lodash._basecompareascending'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basecompareascending) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._basecompareascending) for more details. diff --git a/lodash._basecompareascending/index.js b/lodash._basecompareascending/index.js index 0ebc24ee1..fd092dd21 100644 --- a/lodash._basecompareascending/index.js +++ b/lodash._basecompareascending/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.3 @@ -12,19 +12,28 @@ * sorts them in ascending order without guaranteeing a stable sort. * * @private - * @param {*} value The value to compare to `other`. - * @param {*} other The value to compare to `value`. + * @param {*} value The value to compare. + * @param {*} other The other value to compare. * @returns {number} Returns the sort order indicator for `value`. */ function baseCompareAscending(value, other) { if (value !== other) { - var valIsReflexive = value === value, + var valIsNull = value === null, + valIsUndef = value === undefined, + valIsReflexive = value === value; + + var othIsNull = other === null, + othIsUndef = other === undefined, othIsReflexive = other === other; - if (value > other || !valIsReflexive || (value === undefined && othIsReflexive)) { + if ((value > other && !othIsNull) || !valIsReflexive || + (valIsNull && !othIsUndef && othIsReflexive) || + (valIsUndef && othIsReflexive)) { return 1; } - if (value < other || !othIsReflexive || (other === undefined && valIsReflexive)) { + if ((value < other && !valIsNull) || !othIsReflexive || + (othIsNull && !valIsUndef && valIsReflexive) || + (othIsUndef && valIsReflexive)) { return -1; } } diff --git a/lodash._basecompareascending/package.json b/lodash._basecompareascending/package.json index d402a1c11..a96f8ea81 100644 --- a/lodash._basecompareascending/package.json +++ b/lodash._basecompareascending/package.json @@ -1,6 +1,6 @@ { "name": "lodash._basecompareascending", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `baseCompareAscending` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._basecreate/README.md b/lodash._basecreate/README.md index e78c10cd8..82140c3d0 100644 --- a/lodash._basecreate/README.md +++ b/lodash._basecreate/README.md @@ -1,4 +1,4 @@ -# lodash._basecreate v3.0.1 +# lodash._basecreate v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseCreate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseCreate = require('lodash._basecreate'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basecreate) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._basecreate) for more details. diff --git a/lodash._basecreate/index.js b/lodash._basecreate/index.js index 49a9e7aa1..dc7ace497 100644 --- a/lodash._basecreate/index.js +++ b/lodash._basecreate/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -16,14 +16,14 @@ * @returns {Object} Returns the new object. */ var baseCreate = (function() { - function Object() {} + function object() {} return function(prototype) { if (isObject(prototype)) { - Object.prototype = prototype; - var result = new Object; - Object.prototype = null; + object.prototype = prototype; + var result = new object; + object.prototype = null; } - return result || global.Object(); + return result || {}; }; }()); @@ -51,7 +51,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (!!value && type == 'object'); + return !!value && (type == 'object' || type == 'function'); } module.exports = baseCreate; diff --git a/lodash._basecreate/package.json b/lodash._basecreate/package.json index 3a4f42cf6..cd25304f8 100644 --- a/lodash._basecreate/package.json +++ b/lodash._basecreate/package.json @@ -1,6 +1,6 @@ { "name": "lodash._basecreate", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `baseCreate` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._basedifference/README.md b/lodash._basedifference/README.md index 7a39235b9..6b84e00a3 100644 --- a/lodash._basedifference/README.md +++ b/lodash._basedifference/README.md @@ -1,4 +1,4 @@ -# lodash._basedifference v3.0.1 +# lodash._basedifference v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseDifference` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseDifference = require('lodash._basedifference'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basedifference) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._basedifference) for more details. diff --git a/lodash._basedifference/index.js b/lodash._basedifference/index.js index 4297b89f1..3e4435ef6 100644 --- a/lodash._basedifference/index.js +++ b/lodash._basedifference/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.2 @@ -50,7 +50,7 @@ function baseDifference(array, values) { } result.push(value); } - else if (indexOf(values, value) < 0) { + else if (indexOf(values, value, 0) < 0) { result.push(value); } } diff --git a/lodash._basedifference/package.json b/lodash._basedifference/package.json index 900921d8c..58d830af9 100644 --- a/lodash._basedifference/package.json +++ b/lodash._basedifference/package.json @@ -1,6 +1,6 @@ { "name": "lodash._basedifference", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `baseDifference` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._baseeach/LICENSE.txt b/lodash._baseeach/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._baseeach/LICENSE.txt +++ b/lodash._baseeach/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._baseeach/README.md b/lodash._baseeach/README.md index 2f3d32621..dde32fba2 100644 --- a/lodash._baseeach/README.md +++ b/lodash._baseeach/README.md @@ -1,4 +1,4 @@ -# lodash._baseeach v3.0.1 +# lodash._baseeach v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseEach` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseEach = require('lodash._baseeach'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseeach) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseeach) for more details. diff --git a/lodash._baseeach/index.js b/lodash._baseeach/index.js index 6ecc2979f..2d4d6102f 100644 --- a/lodash._baseeach/index.js +++ b/lodash._baseeach/index.js @@ -1,17 +1,16 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ var keys = require('lodash.keys'); /** - * Used as the maximum length of an array-like value. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) - * for more details. + * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) + * of an array-like value. */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; @@ -24,21 +23,7 @@ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; * @param {Function} iteratee The function invoked per iteration. * @returns {Array|Object|string} Returns `collection`. */ -function baseEach(collection, iteratee) { - var length = collection ? collection.length : 0; - if (!isLength(length)) { - return baseForOwn(collection, iteratee); - } - var index = -1, - iterable = toObject(collection); - - while (++index < length) { - if (iteratee(iterable[index], index, iterable) === false) { - break; - } - } - return collection; -} +var baseEach = createBaseEach(baseForOwn); /** * The base implementation of `baseForIn` and `baseForOwn` which iterates @@ -52,20 +37,7 @@ function baseEach(collection, iteratee) { * @param {Function} keysFunc The function to get the keys of `object`. * @returns {Object} Returns `object`. */ -function baseFor(object, iteratee, keysFunc) { - var index = -1, - iterable = toObject(object), - props = keysFunc(object), - length = props.length; - - while (++index < length) { - var key = props[index]; - if (iteratee(iterable[key], key, iterable) === false) { - break; - } - } - return object; -} +var baseFor = createBaseFor(); /** * The base implementation of `_.forOwn` without support for callback @@ -80,12 +52,60 @@ function baseForOwn(object, iteratee) { return baseFor(object, iteratee, keys); } +/** + * 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) { + var length = collection ? collection.length : 0; + if (!isLength(length)) { + return eachFunc(collection, iteratee); + } + var index = fromRight ? length : -1, + iterable = toObject(collection); + + while ((fromRight ? index-- : ++index < length)) { + if (iteratee(iterable[index], index, iterable) === false) { + break; + } + } + return collection; + }; +} + +/** + * Creates a base function for `_.forIn` or `_.forInRight`. + * + * @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 iterable = toObject(object), + props = keysFunc(object), + length = props.length, + index = fromRight ? length : -1; + + while ((fromRight ? index-- : ++index < length)) { + var key = props[index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; +} + /** * Checks if `value` is a valid array-like length. * - * **Note:** This function is based on ES `ToLength`. See the - * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength) - * for more details. + * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength). * * @private * @param {*} value The value to check. @@ -107,11 +127,9 @@ function toObject(value) { } /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -132,7 +150,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } module.exports = baseEach; diff --git a/lodash._baseeach/package.json b/lodash._baseeach/package.json index f432cafc3..b440a1d5d 100644 --- a/lodash._baseeach/package.json +++ b/lodash._baseeach/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseeach", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `baseEach` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._baseeachright/README.md b/lodash._baseeachright/README.md index 89f19c791..cd7d7feb7 100644 --- a/lodash._baseeachright/README.md +++ b/lodash._baseeachright/README.md @@ -1,4 +1,4 @@ -# lodash._baseeachright v3.0.1 +# lodash._baseeachright v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseEachRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseEachRight = require('lodash._baseeachright'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseeachright) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseeachright) for more details. diff --git a/lodash._baseeachright/index.js b/lodash._baseeachright/index.js index 56b4ebb83..0c13fc406 100644 --- a/lodash._baseeachright/index.js +++ b/lodash._baseeachright/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -39,6 +39,19 @@ function baseForOwnRight(object, iteratee) { return baseForRight(object, iteratee, keys); } +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} + /** * Creates a `baseEach` or `baseEachRight` function. * @@ -49,7 +62,7 @@ function baseForOwnRight(object, iteratee) { */ function createBaseEach(eachFunc, fromRight) { return function(collection, iteratee) { - var length = collection ? collection.length : 0; + var length = collection ? getLength(collection) : 0; if (!isLength(length)) { return eachFunc(collection, iteratee); } @@ -65,6 +78,18 @@ function createBaseEach(eachFunc, fromRight) { }; } +/** + * 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'); + /** * Checks if `value` is a valid array-like length. * diff --git a/lodash._baseeachright/package.json b/lodash._baseeachright/package.json index 1897a590f..8c79017c5 100644 --- a/lodash._baseeachright/package.json +++ b/lodash._baseeachright/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseeachright", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `baseEachRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._basefor/README.md b/lodash._basefor/README.md index 62f07918e..d9e33731b 100644 --- a/lodash._basefor/README.md +++ b/lodash._basefor/README.md @@ -1,4 +1,4 @@ -# lodash._basefor v3.0.1 +# lodash._basefor v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseFor` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseFor = require('lodash._basefor'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basefor) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._basefor) for more details. diff --git a/lodash._basefor/index.js b/lodash._basefor/index.js index b7fb2e89c..a3d7dcd10 100644 --- a/lodash._basefor/index.js +++ b/lodash._basefor/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -10,7 +10,7 @@ /** * The base implementation of `baseForIn` and `baseForOwn` which iterates * over `object` properties returned by `keysFunc` invoking `iteratee` for - * each property. Iterator functions may exit iteration early by explicitly + * each property. Iteratee functions may exit iteration early by explicitly * returning `false`. * * @private @@ -46,7 +46,7 @@ function createBaseFor(fromRight) { } /** - * Converts `value` to an object if it is not one. + * Converts `value` to an object if it's not one. * * @private * @param {*} value The value to process. @@ -80,7 +80,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (!!value && type == 'object'); + return !!value && (type == 'object' || type == 'function'); } module.exports = baseFor; diff --git a/lodash._basefor/package.json b/lodash._basefor/package.json index fe661b9b6..283cd3191 100644 --- a/lodash._basefor/package.json +++ b/lodash._basefor/package.json @@ -1,6 +1,6 @@ { "name": "lodash._basefor", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `baseFor` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._baseforright/README.md b/lodash._baseforright/README.md index 6a68c9d09..de3902bee 100644 --- a/lodash._baseforright/README.md +++ b/lodash._baseforright/README.md @@ -1,4 +1,4 @@ -# lodash._baseforright v3.0.1 +# lodash._baseforright v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseForRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseForRight = require('lodash._baseforright'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseforright) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseforright) for more details. diff --git a/lodash._baseforright/index.js b/lodash._baseforright/index.js index 940c2f40d..ffefbc4b1 100644 --- a/lodash._baseforright/index.js +++ b/lodash._baseforright/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -44,7 +44,7 @@ function createBaseFor(fromRight) { } /** - * Converts `value` to an object if it is not one. + * Converts `value` to an object if it's not one. * * @private * @param {*} value The value to process. @@ -78,7 +78,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (!!value && type == 'object'); + return !!value && (type == 'object' || type == 'function'); } module.exports = baseForRight; diff --git a/lodash._baseforright/package.json b/lodash._baseforright/package.json index 880be0aba..0c1eb82f9 100644 --- a/lodash._baseforright/package.json +++ b/lodash._baseforright/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseforright", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `baseForRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._baseisequal/LICENSE.txt b/lodash._baseisequal/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._baseisequal/LICENSE.txt +++ b/lodash._baseisequal/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._baseisequal/README.md b/lodash._baseisequal/README.md index 5c234c495..290938f1b 100644 --- a/lodash._baseisequal/README.md +++ b/lodash._baseisequal/README.md @@ -1,4 +1,4 @@ -# lodash._baseisequal v3.0.1 +# lodash._baseisequal v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseIsEqual` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseIsEqual = require('lodash._baseisequal'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseisequal) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseisequal) for more details. diff --git a/lodash._baseisequal/index.js b/lodash._baseisequal/index.js index 12250eb45..572e20b25 100644 --- a/lodash._baseisequal/index.js +++ b/lodash._baseisequal/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -289,8 +289,10 @@ function equalObjects(object, other, equalFunc, customizer, isWhere, stackA, sta othCtor = other.constructor; // Non `Object` object instances with different constructors are not equal. - if (objCtor != othCtor && ('constructor' in object && 'constructor' in other) && - !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) { + if (objCtor != othCtor && + ('constructor' in object && 'constructor' in other) && + !(typeof objCtor == 'function' && objCtor instanceof objCtor && + typeof othCtor == 'function' && othCtor instanceof othCtor)) { return false; } } diff --git a/lodash._baseisequal/package.json b/lodash._baseisequal/package.json index 489ed596f..b787f0ee4 100644 --- a/lodash._baseisequal/package.json +++ b/lodash._baseisequal/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseisequal", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `baseIsEqual` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isnumber/LICENSE.txt b/lodash._basereduce/LICENSE similarity index 89% rename from lodash.isnumber/LICENSE.txt rename to lodash._basereduce/LICENSE index 9cd87e5dc..b054ca5a3 100644 --- a/lodash.isnumber/LICENSE.txt +++ b/lodash._basereduce/LICENSE @@ -1,5 +1,5 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, +Copyright 2012-2016 The Dojo Foundation +Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._basereduce/README.md b/lodash._basereduce/README.md index 3ddfc898f..5c9fd7f8c 100644 --- a/lodash._basereduce/README.md +++ b/lodash._basereduce/README.md @@ -1,20 +1,18 @@ -# lodash._basereduce v3.0.1 +# lodash._basereduce v3.0.2 -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseReduce` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. +The internal [lodash](https://lodash.com/) function `baseReduce` exported as a [Node.js](https://nodejs.org/) module. ## Installation Using npm: - ```bash $ {sudo -H} npm i -g npm $ npm i --save lodash._basereduce ``` -In Node.js/io.js: - +In Node.js: ```js var baseReduce = require('lodash._basereduce'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basereduce) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._basereduce) for more details. diff --git a/lodash._basereduce/index.js b/lodash._basereduce/index.js index 2553d6c17..111cd2b8d 100644 --- a/lodash._basereduce/index.js +++ b/lodash._basereduce/index.js @@ -1,29 +1,29 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * Copyright 2012-2016 The Dojo Foundation + * Based on Underscore.js 1.8.3 + * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ /** * The base implementation of `_.reduce` and `_.reduceRight`, without support - * for iteratee shorthands, which iterates over `collection` using the provided - * `eachFunc`. + * for iteratee shorthands, which iterates over `collection` using `eachFunc`. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {*} accumulator The initial value. - * @param {boolean} initFromCollection Specify using the first or last element of `collection` as the initial value. + * @param {boolean} initAccum Specify using the first or last element of + * `collection` as the initial value. * @param {Function} eachFunc The function to iterate over `collection`. * @returns {*} Returns the accumulated value. */ -function baseReduce(collection, iteratee, accumulator, initFromCollection, eachFunc) { +function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { eachFunc(collection, function(value, index, collection) { - accumulator = initFromCollection - ? (initFromCollection = false, value) + accumulator = initAccum + ? (initAccum = false, value) : iteratee(accumulator, value, index, collection); }); return accumulator; diff --git a/lodash._basereduce/package.json b/lodash._basereduce/package.json index 8dab5dafa..e101093e5 100644 --- a/lodash._basereduce/package.json +++ b/lodash._basereduce/package.json @@ -1,16 +1,14 @@ { "name": "lodash._basereduce", - "version": "3.0.1", - "description": "The modern build of lodash’s internal `baseReduce` as a module.", + "version": "3.0.2", + "description": "The internal lodash function `baseReduce` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", + "Blaine Bublitz (https://github.com/phated)", "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", diff --git a/lodash._baseslice/LICENSE.txt b/lodash._baseslice/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._baseslice/LICENSE.txt +++ b/lodash._baseslice/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._baseslice/README.md b/lodash._baseslice/README.md index 9fcb7068f..ee4b9718b 100644 --- a/lodash._baseslice/README.md +++ b/lodash._baseslice/README.md @@ -1,4 +1,4 @@ -# lodash._baseslice v3.0.1 +# lodash._baseslice v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseSlice` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseSlice = require('lodash._baseslice'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseslice) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseslice) for more details. diff --git a/lodash._baseslice/index.js b/lodash._baseslice/index.js index 278bd0535..598015d19 100644 --- a/lodash._baseslice/index.js +++ b/lodash._baseslice/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -28,7 +28,7 @@ function baseSlice(array, start, end) { if (end < 0) { end += length; } - length = start > end ? 0 : (end - start) >>> 0; + length = start > end ? 0 : ((end - start) >>> 0); start >>>= 0; var result = Array(length); diff --git a/lodash._baseslice/package.json b/lodash._baseslice/package.json index 42adab643..0ef700111 100644 --- a/lodash._baseslice/package.json +++ b/lodash._baseslice/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseslice", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `baseSlice` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._baseuniq/README.md b/lodash._baseuniq/README.md index feac220e3..01e56d111 100644 --- a/lodash._baseuniq/README.md +++ b/lodash._baseuniq/README.md @@ -1,4 +1,4 @@ -# lodash._baseuniq v3.0.1 +# lodash._baseuniq v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseUniq` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseUniq = require('lodash._baseuniq'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseuniq) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._baseuniq) for more details. diff --git a/lodash._baseuniq/index.js b/lodash._baseuniq/index.js index f55c02a42..264b0a731 100644 --- a/lodash._baseuniq/index.js +++ b/lodash._baseuniq/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.2 @@ -52,7 +52,7 @@ function baseUniq(array, iteratee) { } result.push(value); } - else if (indexOf(seen, computed) < 0) { + else if (indexOf(seen, computed, 0) < 0) { if (iteratee || isLarge) { seen.push(computed); } diff --git a/lodash._baseuniq/package.json b/lodash._baseuniq/package.json index 62256e4b0..013540a2f 100644 --- a/lodash._baseuniq/package.json +++ b/lodash._baseuniq/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseuniq", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `baseUniq` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._binaryindexby/README.md b/lodash._binaryindexby/README.md index 0dcd08067..d32643420 100644 --- a/lodash._binaryindexby/README.md +++ b/lodash._binaryindexby/README.md @@ -1,4 +1,4 @@ -# lodash._binaryindexby v3.0.1 +# lodash._binaryindexby v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `binaryIndexBy` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var binaryIndexBy = require('lodash._binaryindexby'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._binaryindexby) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._binaryindexby) for more details. diff --git a/lodash._binaryindexby/index.js b/lodash._binaryindexby/index.js index 4c4c2d081..6a9531414 100644 --- a/lodash._binaryindexby/index.js +++ b/lodash._binaryindexby/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.3 @@ -14,7 +14,7 @@ var floor = Math.floor; var nativeMin = Math.min; /** Used as references for the maximum length and index of an array. */ -var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1, +var MAX_ARRAY_LENGTH = 4294967295, MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1; /** @@ -36,17 +36,23 @@ function binaryIndexBy(array, value, iteratee, retHighest) { var low = 0, high = array ? array.length : 0, valIsNaN = value !== value, + valIsNull = value === null, valIsUndef = value === undefined; while (low < high) { var mid = floor((low + high) / 2), computed = iteratee(array[mid]), + isDef = computed !== undefined, isReflexive = computed === computed; if (valIsNaN) { var setLow = isReflexive || retHighest; + } else if (valIsNull) { + setLow = isReflexive && isDef && (retHighest || computed != null); } else if (valIsUndef) { - setLow = isReflexive && (retHighest || computed !== undefined); + setLow = isReflexive && (retHighest || isDef); + } else if (computed == null) { + setLow = false; } else { setLow = retHighest ? (computed <= value) : (computed < value); } diff --git a/lodash._binaryindexby/package.json b/lodash._binaryindexby/package.json index 8bc3fe773..6168fc519 100644 --- a/lodash._binaryindexby/package.json +++ b/lodash._binaryindexby/package.json @@ -1,6 +1,6 @@ { "name": "lodash._binaryindexby", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `binaryIndexBy` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._cacheindexof/README.md b/lodash._cacheindexof/README.md index 9d819a923..69d2b62bf 100644 --- a/lodash._cacheindexof/README.md +++ b/lodash._cacheindexof/README.md @@ -1,4 +1,4 @@ -# lodash._cacheindexof v3.0.1 +# lodash._cacheindexof v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `cacheIndexOf` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var cacheIndexOf = require('lodash._cacheindexof'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._cacheindexof) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._cacheindexof) for more details. diff --git a/lodash._cacheindexof/index.js b/lodash._cacheindexof/index.js index ad369bb16..bc1d5afcf 100644 --- a/lodash._cacheindexof/index.js +++ b/lodash._cacheindexof/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -47,7 +47,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (!!value && type == 'object'); + return !!value && (type == 'object' || type == 'function'); } module.exports = cacheIndexOf; diff --git a/lodash._cacheindexof/package.json b/lodash._cacheindexof/package.json index f0de8b345..ca672af6e 100644 --- a/lodash._cacheindexof/package.json +++ b/lodash._cacheindexof/package.json @@ -1,6 +1,6 @@ { "name": "lodash._cacheindexof", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `cacheIndexOf` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._createextremum/README.md b/lodash._createextremum/README.md deleted file mode 100644 index 96cda1b61..000000000 --- a/lodash._createextremum/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._createextremum v3.0.1 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `createExtremum` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._createextremum -``` - -In Node.js/io.js: - -```js -var createExtremum = require('lodash._createextremum'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._createextremum) for more details. diff --git a/lodash._createextremum/index.js b/lodash._createextremum/index.js deleted file mode 100644 index e25cfd2b2..000000000 --- a/lodash._createextremum/index.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * lodash 3.0.1 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var baseCallback = require('lodash._basecallback'), - baseEach = require('lodash._baseeach'), - isIterateeCall = require('lodash._isiterateecall'), - toIterable = require('lodash._toiterable'), - isArray = require('lodash.isarray'), - isString = require('lodash.isstring'); - -/** - * Used by `_.max` and `_.min` as the default callback for string values. - * - * @private - * @param {string} string The string to inspect. - * @returns {number} Returns the code unit of the first character of the string. - */ -function charAtCallback(string) { - return string.charCodeAt(0); -} - -/** Used as references for `-Infinity` and `Infinity`. */ -var NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY, - POSITIVE_INFINITY = Number.POSITIVE_INFINITY; - -/** - * Creates a function that gets the extremum value of a collection. - * - * @private - * @param {Function} arrayFunc The function to get the extremum value from an array. - * @param {boolean} [isMin] Specify returning the minimum, instead of the maximum, - * extremum value. - * @returns {Function} Returns the new extremum function. - */ -function createExtremum(arrayFunc, isMin) { - return function(collection, iteratee, thisArg) { - if (thisArg && isIterateeCall(collection, iteratee, thisArg)) { - iteratee = null; - } - var noIteratee = iteratee == null; - - iteratee = noIteratee ? iteratee : baseCallback(iteratee, thisArg, 3); - if (noIteratee) { - var isArr = isArray(collection); - if (!isArr && isString(collection)) { - iteratee = charAtCallback; - } else { - return arrayFunc(isArr ? collection : toIterable(collection)); - } - } - return extremumBy(collection, iteratee, isMin); - }; -} - -/** - * Gets the extremum value of `collection` invoking `iteratee` for each value - * in `collection` to generate the criterion by which the value is ranked. - * The `iteratee` is invoked with three arguments; (value, index, collection). - * - * @private - * @param {Array|Object|string} collection The collection to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {boolean} [isMin] Specify returning the minimum, instead of the - * maximum, extremum value. - * @returns {*} Returns the extremum value. - */ -function extremumBy(collection, iteratee, isMin) { - var exValue = isMin ? POSITIVE_INFINITY : NEGATIVE_INFINITY, - computed = exValue, - result = computed; - - baseEach(collection, function(value, index, collection) { - var current = iteratee(value, index, collection); - if ((isMin ? (current < computed) : (current > computed)) || - (current === exValue && current === result)) { - computed = current; - result = value; - } - }); - return result; -} - -module.exports = createExtremum; diff --git a/lodash._createextremum/package.json b/lodash._createextremum/package.json deleted file mode 100644 index ce1c0b788..000000000 --- a/lodash._createextremum/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "lodash._createextremum", - "version": "3.0.1", - "description": "The modern build of lodash’s internal `createExtremum` as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "author": "John-David Dalton (http://allyoucanleet.com/)", - "contributors": [ - "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", - "Mathias Bynens (https://mathiasbynens.be/)" - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, - "dependencies": { - "lodash._basecallback": "^3.0.0", - "lodash._baseeach": "^3.0.0", - "lodash._isiterateecall": "^3.0.0", - "lodash._toiterable": "^3.0.0", - "lodash.isarray": "^3.0.0", - "lodash.isstring": "^3.0.0" - } -} diff --git a/lodash._createpad/LICENSE.txt b/lodash._createpad/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash._createpad/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. diff --git a/lodash._createpad/README.md b/lodash._createpad/README.md deleted file mode 100644 index 7825373fd..000000000 --- a/lodash._createpad/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._createpad v3.0.1 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `createPad` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._createpad -``` - -In Node.js/io.js: - -```js -var createPad = require('lodash._createpad'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._createpad) for more details. diff --git a/lodash._createpad/index.js b/lodash._createpad/index.js deleted file mode 100644 index bbeb7de1b..000000000 --- a/lodash._createpad/index.js +++ /dev/null @@ -1,40 +0,0 @@ -/** - * lodash 3.0.1 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var repeat = require('lodash.repeat'); - -/** Native method references. */ -var ceil = Math.ceil; - -/* Native method references for those with the same name as other `lodash` methods. */ -var nativeIsFinite = global.isFinite; - -/** - * Creates the pad required for `string` based on the given padding length. - * The `chars` string may be truncated if the number of padding characters - * exceeds the padding length. - * - * @private - * @param {string} string The string to create padding for. - * @param {number} [length=0] The padding length. - * @param {string} [chars=' '] The string used as padding. - * @returns {string} Returns the pad for `string`. - */ -function createPad(string, length, chars) { - var strLength = string.length; - length = +length; - - if (strLength >= length || !nativeIsFinite(length)) { - return ''; - } - var padLength = length - strLength; - chars = chars == null ? ' ' : (chars + ''); - return repeat(chars, ceil(padLength / chars.length)).slice(0, padLength); -} - -module.exports = createPad; diff --git a/lodash._createpad/package.json b/lodash._createpad/package.json deleted file mode 100644 index f175cc382..000000000 --- a/lodash._createpad/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "lodash._createpad", - "version": "3.0.1", - "description": "The modern build of lodash’s internal `createPad` as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "author": "John-David Dalton (http://allyoucanleet.com/)", - "contributors": [ - "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", - "Mathias Bynens (https://mathiasbynens.be/)" - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, - "dependencies": { - "lodash.repeat": "^3.0.0" - } -} diff --git a/lodash._createwrapper/LICENSE.txt b/lodash._createwrapper/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._createwrapper/LICENSE.txt +++ b/lodash._createwrapper/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._createwrapper/README.md b/lodash._createwrapper/README.md index d7bc6144e..0db45a3a6 100644 --- a/lodash._createwrapper/README.md +++ b/lodash._createwrapper/README.md @@ -1,4 +1,4 @@ -# lodash._createwrapper v3.0.1 +# lodash._createwrapper v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `createWrapper` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var createWrapper = require('lodash._createwrapper'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._createwrapper) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._createwrapper) for more details. diff --git a/lodash._createwrapper/index.js b/lodash._createwrapper/index.js index 8df136e9b..a4aad6448 100644 --- a/lodash._createwrapper/index.js +++ b/lodash._createwrapper/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -109,7 +109,8 @@ function createBindWrapper(func, thisArg) { var Ctor = createCtorWrapper(func); function wrapper() { - return (this instanceof wrapper ? Ctor : func).apply(thisArg, arguments); + var fn = (this && this !== global && this instanceof wrapper) ? Ctor : func; + return fn.apply(thisArg, arguments); } return wrapper; } @@ -211,7 +212,8 @@ function createHybridWrapper(func, bitmask, thisArg, partials, holders, partials if (isAry && ary < args.length) { args.length = ary; } - return (this instanceof wrapper ? (Ctor || createCtorWrapper(func)) : func).apply(thisBinding, args); + var fn = (this && this !== global && this instanceof wrapper) ? (Ctor || createCtorWrapper(func)) : func; + return fn.apply(thisBinding, args); } return wrapper; } @@ -247,7 +249,8 @@ function createPartialWrapper(func, bitmask, thisArg, partials) { while (argsLength--) { args[leftIndex++] = arguments[++argsIndex]; } - return (this instanceof wrapper ? Ctor : func).apply(isBind ? thisArg : this, args); + var fn = (this && this !== global && this instanceof wrapper) ? Ctor : func; + return fn.apply(isBind ? thisArg : this, args); } return wrapper; } diff --git a/lodash._createwrapper/package.json b/lodash._createwrapper/package.json index 0d6b6cfde..4efca37a9 100644 --- a/lodash._createwrapper/package.json +++ b/lodash._createwrapper/package.json @@ -1,6 +1,6 @@ { "name": "lodash._createwrapper", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `createWrapper` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._isiterateecall/README.md b/lodash._isiterateecall/README.md index 69c712bdb..6f34b4284 100644 --- a/lodash._isiterateecall/README.md +++ b/lodash._isiterateecall/README.md @@ -1,4 +1,4 @@ -# lodash._isiterateecall v3.0.1 +# lodash._isiterateecall v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `isIterateeCall` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isIterateeCall = require('lodash._isiterateecall'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._isiterateecall) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._isiterateecall) for more details. diff --git a/lodash._isiterateecall/index.js b/lodash._isiterateecall/index.js index aab88e7b6..465a59cbd 100644 --- a/lodash._isiterateecall/index.js +++ b/lodash._isiterateecall/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -48,7 +48,8 @@ function isIterateeCall(value, index, object) { } else { prereq = type == 'string' && index in object; } - return prereq && object[index] === value; + var other = object[index]; + return prereq && (value === value ? value === other : other !== other); } /** diff --git a/lodash._isiterateecall/package.json b/lodash._isiterateecall/package.json index 8dcf9ea87..790ff86ad 100644 --- a/lodash._isiterateecall/package.json +++ b/lodash._isiterateecall/package.json @@ -1,6 +1,6 @@ { "name": "lodash._isiterateecall", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `isIterateeCall` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._pickbyarray/README.md b/lodash._pickbyarray/README.md index de1f8de4e..c824e12ad 100644 --- a/lodash._pickbyarray/README.md +++ b/lodash._pickbyarray/README.md @@ -1,4 +1,4 @@ -# lodash._pickbyarray v3.0.1 +# lodash._pickbyarray v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `pickByArray` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var pickByArray = require('lodash._pickbyarray'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._pickbyarray) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._pickbyarray) for more details. diff --git a/lodash._pickbyarray/index.js b/lodash._pickbyarray/index.js index 8483d9dd4..ffbd391f4 100644 --- a/lodash._pickbyarray/index.js +++ b/lodash._pickbyarray/index.js @@ -1,15 +1,15 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ /** - * A specialized version of `_.pick` that picks `object` properties specified - * by the `props` array. + * A specialized version of `_.pick` which picks `object` properties specified + * by `props`. * * @private * @param {Object} object The source object. @@ -33,7 +33,7 @@ function pickByArray(object, props) { } /** - * Converts `value` to an object if it is not one. + * Converts `value` to an object if it's not one. * * @private * @param {*} value The value to process. @@ -67,7 +67,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (!!value && type == 'object'); + return !!value && (type == 'object' || type == 'function'); } module.exports = pickByArray; diff --git a/lodash._pickbyarray/package.json b/lodash._pickbyarray/package.json index 065eaa8e1..3a80738f3 100644 --- a/lodash._pickbyarray/package.json +++ b/lodash._pickbyarray/package.json @@ -1,6 +1,6 @@ { "name": "lodash._pickbyarray", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `pickByArray` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._root/LICENSE b/lodash._root/LICENSE deleted file mode 100644 index bcbe13d67..000000000 --- a/lodash._root/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -The MIT License (MIT) - -Copyright 2012-2016 The Dojo Foundation -Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. diff --git a/lodash._root/README.md b/lodash._root/README.md deleted file mode 100644 index 0329abf23..000000000 --- a/lodash._root/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash._root v3.0.1 - -The internal [lodash](https://lodash.com/) function `root` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._root -``` - -In Node.js: -```js -var root = require('lodash._root'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._root) for more details. diff --git a/lodash._root/index.js b/lodash._root/index.js deleted file mode 100644 index 2d8ba0aff..000000000 --- a/lodash._root/index.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * lodash 3.0.1 (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2016 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** 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; -} - -module.exports = root; diff --git a/lodash._root/package.json b/lodash._root/package.json deleted file mode 100644 index f75400d14..000000000 --- a/lodash._root/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "lodash._root", - "version": "3.0.1", - "description": "The internal lodash function `root` exported as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "author": "John-David Dalton (http://allyoucanleet.com/)", - "contributors": [ - "John-David Dalton (http://allyoucanleet.com/)", - "Blaine Bublitz (https://github.com/phated)", - "Mathias Bynens (https://mathiasbynens.be/)" - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } -} diff --git a/lodash._toiterable/README.md b/lodash._toiterable/README.md index e2299e28d..675e9d9e2 100644 --- a/lodash._toiterable/README.md +++ b/lodash._toiterable/README.md @@ -1,4 +1,4 @@ -# lodash._toiterable v3.0.1 +# lodash._toiterable v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `toIterable` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var toIterable = require('lodash._toiterable'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._toiterable) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash._toiterable) for more details. diff --git a/lodash._toiterable/index.js b/lodash._toiterable/index.js index 83947cf43..6be6fa8fb 100644 --- a/lodash._toiterable/index.js +++ b/lodash._toiterable/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -15,6 +15,31 @@ var baseValues = require('lodash._basevalues'), */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} + +/** + * 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) + * in Safari on iOS 8.1 ARM64. + * + * @private + * @param {Object} object The object to query. + * @returns {*} Returns the "length" value. + */ +var getLength = baseProperty('length'); + /** * Checks if `value` is a valid array-like length. * @@ -39,7 +64,7 @@ function toIterable(value) { if (value == null) { return []; } - if (!isLength(value.length)) { + if (!isLength(getLength(value))) { return values(value); } return isObject(value) ? value : Object(value); diff --git a/lodash._toiterable/package.json b/lodash._toiterable/package.json index a1d561808..16f4eaeec 100644 --- a/lodash._toiterable/package.json +++ b/lodash._toiterable/package.json @@ -1,6 +1,6 @@ { "name": "lodash._toiterable", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s internal `toIterable` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._createextremum/LICENSE.txt b/lodash.ary/LICENSE similarity index 100% rename from lodash._createextremum/LICENSE.txt rename to lodash.ary/LICENSE diff --git a/lodash.ary/README.md b/lodash.ary/README.md index c5c4ed05a..e45f1981d 100644 --- a/lodash.ary/README.md +++ b/lodash.ary/README.md @@ -1,4 +1,4 @@ -# lodash.ary v3.0.1 +# lodash.ary v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.ary` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var ary = require('lodash.ary'); ``` -See the [documentation](https://lodash.com/docs#ary) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.ary) for more details. +See the [documentation](https://lodash.com/docs#ary) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.ary) for more details. diff --git a/lodash.ary/index.js b/lodash.ary/index.js index d7b495869..5aceda8f3 100644 --- a/lodash.ary/index.js +++ b/lodash.ary/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -33,10 +33,10 @@ var nativeMax = Math.max; */ function ary(func, n, guard) { if (guard && isIterateeCall(func, n, guard)) { - n = null; + n = undefined; } n = (func && n == null) ? func.length : nativeMax(+n || 0, 0); - return createWrapper(func, ARY_FLAG, null, null, null, null, n); + return createWrapper(func, ARY_FLAG, undefined, undefined, undefined, undefined, n); } module.exports = ary; diff --git a/lodash.ary/package.json b/lodash.ary/package.json index 9742c3d84..cc5a0036e 100644 --- a/lodash.ary/package.json +++ b/lodash.ary/package.json @@ -1,6 +1,6 @@ { "name": "lodash.ary", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.ary` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.before/LICENSE.txt b/lodash.before/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.before/LICENSE.txt +++ b/lodash.before/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.before/README.md b/lodash.before/README.md index 1a4f93348..961230212 100644 --- a/lodash.before/README.md +++ b/lodash.before/README.md @@ -1,4 +1,4 @@ -# lodash.before v3.0.1 +# lodash.before v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.before` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var before = require('lodash.before'); ``` -See the [documentation](https://lodash.com/docs#before) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.before) for more details. +See the [documentation](https://lodash.com/docs#before) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.before) for more details. diff --git a/lodash.before/index.js b/lodash.before/index.js index 7175d123c..7c45eb705 100644 --- a/lodash.before/index.js +++ b/lodash.before/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -40,7 +40,8 @@ function before(n, func) { return function() { if (--n > 0) { result = func.apply(this, arguments); - } else { + } + if (n <= 1) { func = null; } return result; diff --git a/lodash.before/package.json b/lodash.before/package.json index cd5c15e80..fb84e8bcd 100644 --- a/lodash.before/package.json +++ b/lodash.before/package.json @@ -1,6 +1,6 @@ { "name": "lodash.before", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.before` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.clone/LICENSE.txt b/lodash.clone/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.clone/LICENSE.txt +++ b/lodash.clone/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.clone/README.md b/lodash.clone/README.md index 185ce302a..d6d570788 100644 --- a/lodash.clone/README.md +++ b/lodash.clone/README.md @@ -1,4 +1,4 @@ -# lodash.clone v3.0.1 +# lodash.clone v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.clone` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var clone = require('lodash.clone'); ``` -See the [documentation](https://lodash.com/docs#clone) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.clone) for more details. +See the [documentation](https://lodash.com/docs#clone) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.clone) for more details. diff --git a/lodash.clone/index.js b/lodash.clone/index.js index e9aab9f75..b1f19e731 100644 --- a/lodash.clone/index.js +++ b/lodash.clone/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -70,8 +70,9 @@ function clone(value, isDeep, customizer, thisArg) { customizer = isDeep; isDeep = false; } - customizer = typeof customizer == 'function' && bindCallback(customizer, thisArg, 1); - return baseClone(value, isDeep, customizer); + return typeof customizer == 'function' + ? baseClone(value, isDeep, bindCallback(customizer, thisArg, 1)) + : baseClone(value, isDeep); } module.exports = clone; diff --git a/lodash.clone/package.json b/lodash.clone/package.json index 7bc1234fb..83a9d47bc 100644 --- a/lodash.clone/package.json +++ b/lodash.clone/package.json @@ -1,6 +1,6 @@ { "name": "lodash.clone", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.clone` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.ary/LICENSE.txt b/lodash.clonedeep/LICENSE similarity index 100% rename from lodash.ary/LICENSE.txt rename to lodash.clonedeep/LICENSE diff --git a/lodash.clonedeep/README.md b/lodash.clonedeep/README.md index 79c88487d..7be9a82e4 100644 --- a/lodash.clonedeep/README.md +++ b/lodash.clonedeep/README.md @@ -1,4 +1,4 @@ -# lodash.clonedeep v3.0.1 +# lodash.clonedeep v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.cloneDeep` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var cloneDeep = require('lodash.clonedeep'); ``` -See the [documentation](https://lodash.com/docs#cloneDeep) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.clonedeep) for more details. +See the [documentation](https://lodash.com/docs#cloneDeep) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.clonedeep) for more details. diff --git a/lodash.clonedeep/index.js b/lodash.clonedeep/index.js index 26b9ddcb8..f486c2246 100644 --- a/lodash.clonedeep/index.js +++ b/lodash.clonedeep/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.3 @@ -10,10 +10,10 @@ var baseClone = require('lodash._baseclone'), bindCallback = require('lodash._bindcallback'); /** - * Creates a deep clone of `value`. If `customizer` is provided it is invoked + * Creates a deep clone of `value`. If `customizer` is provided it's invoked * to produce the cloned values. If `customizer` returns `undefined` cloning * is handled by the method instead. The `customizer` is bound to `thisArg` - * and invoked with two argument; (value [, index|key, object]). + * and invoked with up to three argument; (value [, index|key, object]). * * **Note:** This method is loosely based on the * [structured clone algorithm](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm). @@ -56,7 +56,7 @@ var baseClone = require('lodash._baseclone'), */ function cloneDeep(value, customizer, thisArg) { return typeof customizer == 'function' - ? baseClone(value, true, bindCallback(customizer, thisArg, 1)) + ? baseClone(value, true, bindCallback(customizer, thisArg, 3)) : baseClone(value, true); } diff --git a/lodash.clonedeep/package.json b/lodash.clonedeep/package.json index c5ec7d85a..1b6b8c386 100644 --- a/lodash.clonedeep/package.json +++ b/lodash.clonedeep/package.json @@ -1,6 +1,6 @@ { "name": "lodash.clonedeep", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.cloneDeep` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.clonedeep/LICENSE.txt b/lodash.curry/LICENSE similarity index 100% rename from lodash.clonedeep/LICENSE.txt rename to lodash.curry/LICENSE diff --git a/lodash.curry/README.md b/lodash.curry/README.md index 9d7342e15..b71d35b33 100644 --- a/lodash.curry/README.md +++ b/lodash.curry/README.md @@ -1,4 +1,4 @@ -# lodash.curry v3.0.1 +# lodash.curry v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.curry` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var curry = require('lodash.curry'); ``` -See the [documentation](https://lodash.com/docs#curry) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.curry) for more details. +See the [documentation](https://lodash.com/docs#curry) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.curry) for more details. diff --git a/lodash.curry/index.js b/lodash.curry/index.js index 391b36926..889bdd60b 100644 --- a/lodash.curry/index.js +++ b/lodash.curry/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -22,9 +22,9 @@ var CURRY_FLAG = 8; function createCurry(flag) { function curryFunc(func, arity, guard) { if (guard && isIterateeCall(func, arity, guard)) { - arity = null; + arity = undefined; } - var result = createWrapper(func, flag, null, null, null, null, null, arity); + var result = createWrapper(func, flag, undefined, undefined, undefined, undefined, undefined, arity); result.placeholder = curryFunc.placeholder; return result; } diff --git a/lodash.curry/package.json b/lodash.curry/package.json index dabecc5c2..0526df645 100644 --- a/lodash.curry/package.json +++ b/lodash.curry/package.json @@ -1,6 +1,6 @@ { "name": "lodash.curry", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.curry` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.curry/LICENSE.txt b/lodash.curryright/LICENSE similarity index 100% rename from lodash.curry/LICENSE.txt rename to lodash.curryright/LICENSE diff --git a/lodash.curryright/README.md b/lodash.curryright/README.md index 33a835777..8fa7191b7 100644 --- a/lodash.curryright/README.md +++ b/lodash.curryright/README.md @@ -1,4 +1,4 @@ -# lodash.curryright v3.0.1 +# lodash.curryright v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.curryRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var curryRight = require('lodash.curryright'); ``` -See the [documentation](https://lodash.com/docs#curryRight) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.curryright) for more details. +See the [documentation](https://lodash.com/docs#curryRight) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.curryright) for more details. diff --git a/lodash.curryright/index.js b/lodash.curryright/index.js index d6b417294..93bd356ed 100644 --- a/lodash.curryright/index.js +++ b/lodash.curryright/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -22,9 +22,9 @@ var CURRY_RIGHT_FLAG = 16; function createCurry(flag) { function curryFunc(func, arity, guard) { if (guard && isIterateeCall(func, arity, guard)) { - arity = null; + arity = undefined; } - var result = createWrapper(func, flag, null, null, null, null, null, arity); + var result = createWrapper(func, flag, undefined, undefined, undefined, undefined, undefined, arity); result.placeholder = curryFunc.placeholder; return result; } diff --git a/lodash.curryright/package.json b/lodash.curryright/package.json index 981ff0d21..d84cb27b6 100644 --- a/lodash.curryright/package.json +++ b/lodash.curryright/package.json @@ -1,6 +1,6 @@ { "name": "lodash.curryright", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.curryRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.debounce/README.md b/lodash.debounce/README.md index e68391d74..0b998466f 100644 --- a/lodash.debounce/README.md +++ b/lodash.debounce/README.md @@ -1,4 +1,4 @@ -# lodash.debounce v3.0.1 +# lodash.debounce v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.debounce` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var debounce = require('lodash.debounce'); ``` -See the [documentation](https://lodash.com/docs#debounce) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.debounce) for more details. +See the [documentation](https://lodash.com/docs#debounce) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.debounce) for more details. diff --git a/lodash.debounce/index.js b/lodash.debounce/index.js index cfabe6215..17e0b7370 100644 --- a/lodash.debounce/index.js +++ b/lodash.debounce/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -52,7 +52,7 @@ var now = nativeNow || function() { * @memberOf _ * @category Function * @param {Function} func The function to debounce. - * @param {number} wait The number of milliseconds to delay. + * @param {number} [wait=0] The number of milliseconds to delay. * @param {Object} [options] The options object. * @param {boolean} [options.leading=false] Specify invoking on the leading * edge of the timeout. @@ -110,7 +110,7 @@ function debounce(func, wait, options) { if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } - wait = wait < 0 ? 0 : wait; + wait = wait < 0 ? 0 : (+wait || 0); if (options === true) { var leading = true; trailing = false; diff --git a/lodash.debounce/package.json b/lodash.debounce/package.json index 615531836..83ec8e86e 100644 --- a/lodash.debounce/package.json +++ b/lodash.debounce/package.json @@ -1,6 +1,6 @@ { "name": "lodash.debounce", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.debounce` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.deburr/README.md b/lodash.deburr/README.md index de6013092..19d789c6f 100644 --- a/lodash.deburr/README.md +++ b/lodash.deburr/README.md @@ -1,4 +1,4 @@ -# lodash.deburr v3.0.1 +# lodash.deburr v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.deburr` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var deburr = require('lodash.deburr'); ``` -See the [documentation](https://lodash.com/docs#deburr) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.deburr) for more details. +See the [documentation](https://lodash.com/docs#deburr) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.deburr) for more details. diff --git a/lodash.deburr/index.js b/lodash.deburr/index.js index e1e914773..3bbda44ba 100644 --- a/lodash.deburr/index.js +++ b/lodash.deburr/index.js @@ -1,17 +1,15 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ var baseToString = require('lodash._basetostring'); -/** - * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). - */ -var reComboMarks = /[\u0300-\u036f\ufe20-\ufe23]/g; +/** Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). */ +var reComboMark = /[\u0300-\u036f\ufe20-\ufe23]/g; /** Used to match latin-1 supplementary letters (excluding mathematical operators). */ var reLatin1 = /[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g; @@ -64,7 +62,7 @@ function deburrLetter(letter) { */ function deburr(string) { string = baseToString(string); - return string && string.replace(reLatin1, deburrLetter).replace(reComboMarks, ''); + return string && string.replace(reLatin1, deburrLetter).replace(reComboMark, ''); } module.exports = deburr; diff --git a/lodash.deburr/package.json b/lodash.deburr/package.json index b8ceead10..2ede9010f 100644 --- a/lodash.deburr/package.json +++ b/lodash.deburr/package.json @@ -1,6 +1,6 @@ { "name": "lodash.deburr", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.deburr` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.endswith/README.md b/lodash.endswith/README.md index c132ca4c3..11e270b74 100644 --- a/lodash.endswith/README.md +++ b/lodash.endswith/README.md @@ -1,4 +1,4 @@ -# lodash.endswith v3.0.1 +# lodash.endswith v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.endsWith` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var endsWith = require('lodash.endswith'); ``` -See the [documentation](https://lodash.com/docs#endsWith) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.endswith) for more details. +See the [documentation](https://lodash.com/docs#endsWith) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.endswith) for more details. diff --git a/lodash.endswith/index.js b/lodash.endswith/index.js index de7000e54..794c1d1ed 100644 --- a/lodash.endswith/index.js +++ b/lodash.endswith/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -37,7 +37,7 @@ function endsWith(string, target, position) { target = (target + ''); var length = string.length; - position = typeof position == 'undefined' + position = position === undefined ? length : nativeMin(position < 0 ? 0 : (+position || 0), length); diff --git a/lodash.endswith/package.json b/lodash.endswith/package.json index 0a972a7d5..30f74a0a7 100644 --- a/lodash.endswith/package.json +++ b/lodash.endswith/package.json @@ -1,6 +1,6 @@ { "name": "lodash.endswith", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.endsWith` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.flatten/LICENSE.txt b/lodash.flatten/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.flatten/LICENSE.txt +++ b/lodash.flatten/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.flatten/README.md b/lodash.flatten/README.md index 71e79196b..0c283198c 100644 --- a/lodash.flatten/README.md +++ b/lodash.flatten/README.md @@ -1,4 +1,4 @@ -# lodash.flatten v3.0.1 +# lodash.flatten v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.flatten` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var flatten = require('lodash.flatten'); ``` -See the [documentation](https://lodash.com/docs#flatten) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.flatten) for more details. +See the [documentation](https://lodash.com/docs#flatten) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.flatten) for more details. diff --git a/lodash.flatten/index.js b/lodash.flatten/index.js index a9d981d06..eea66541e 100644 --- a/lodash.flatten/index.js +++ b/lodash.flatten/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.2 @@ -11,7 +11,7 @@ var baseFlatten = require('lodash._baseflatten'), /** * Flattens a nested array. If `isDeep` is `true` the array is recursively - * flattened, otherwise it is only flattened a single level. + * flattened, otherwise it's only flattened a single level. * * @static * @memberOf _ @@ -23,18 +23,18 @@ var baseFlatten = require('lodash._baseflatten'), * @example * * _.flatten([1, [2, 3, [4]]]); - * // => [1, 2, 3, [4]]; + * // => [1, 2, 3, [4]] * * // using `isDeep` * _.flatten([1, [2, 3, [4]]], true); - * // => [1, 2, 3, 4]; + * // => [1, 2, 3, 4] */ function flatten(array, isDeep, guard) { var length = array ? array.length : 0; if (guard && isIterateeCall(array, isDeep, guard)) { isDeep = false; } - return length ? baseFlatten(array, isDeep, false, 0) : []; + return length ? baseFlatten(array, isDeep) : []; } module.exports = flatten; diff --git a/lodash.flatten/package.json b/lodash.flatten/package.json index a570afcc8..19a2bdab3 100644 --- a/lodash.flatten/package.json +++ b/lodash.flatten/package.json @@ -1,6 +1,6 @@ { "name": "lodash.flatten", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.flatten` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.flattendeep/LICENSE.txt b/lodash.flattendeep/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.flattendeep/LICENSE.txt +++ b/lodash.flattendeep/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.flattendeep/README.md b/lodash.flattendeep/README.md index a4b17b30b..677614a9e 100644 --- a/lodash.flattendeep/README.md +++ b/lodash.flattendeep/README.md @@ -1,4 +1,4 @@ -# lodash.flattendeep v3.0.1 +# lodash.flattendeep v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.flattenDeep` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var flattenDeep = require('lodash.flattendeep'); ``` -See the [documentation](https://lodash.com/docs#flattenDeep) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.flattendeep) for more details. +See the [documentation](https://lodash.com/docs#flattenDeep) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.flattendeep) for more details. diff --git a/lodash.flattendeep/index.js b/lodash.flattendeep/index.js index 9fbff8379..6f70166d6 100644 --- a/lodash.flattendeep/index.js +++ b/lodash.flattendeep/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.2 @@ -19,11 +19,11 @@ var baseFlatten = require('lodash._baseflatten'); * @example * * _.flattenDeep([1, [2, 3, [4]]]); - * // => [1, 2, 3, 4]; + * // => [1, 2, 3, 4] */ function flattenDeep(array) { var length = array ? array.length : 0; - return length ? baseFlatten(array, true, false, 0) : []; + return length ? baseFlatten(array, true) : []; } module.exports = flattenDeep; diff --git a/lodash.flattendeep/package.json b/lodash.flattendeep/package.json index 1f7153414..9e11a41fc 100644 --- a/lodash.flattendeep/package.json +++ b/lodash.flattendeep/package.json @@ -1,6 +1,6 @@ { "name": "lodash.flattendeep", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.flattenDeep` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.flow/README.md b/lodash.flow/README.md index a07e0e4c7..0e7bc739f 100644 --- a/lodash.flow/README.md +++ b/lodash.flow/README.md @@ -1,4 +1,4 @@ -# lodash.flow v3.0.0 +# lodash.flow v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.flow` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var flow = require('lodash.flow'); ``` -See the [documentation](https://lodash.com/docs#flow) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.flow) for more details. +See the [documentation](https://lodash.com/docs#flow) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.flow) for more details. diff --git a/lodash.flow/index.js b/lodash.flow/index.js index dc8920853..9517f39fd 100644 --- a/lodash.flow/index.js +++ b/lodash.flow/index.js @@ -1,17 +1,30 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ -var arrayEvery = require('lodash._arrayevery'), - isFunction = require('lodash.isfunction'); +var arrayEvery = require('lodash._arrayevery'); /** Used as the `TypeError` message for "Functions" methods. */ var FUNC_ERROR_TEXT = 'Expected a function'; +/** + * The base implementation of `_.isFunction` without support for environments + * with incorrect `typeof` results. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + */ +function baseIsFunction(value) { + // Avoid a Chakra JIT bug in compatibility modes of IE 11. + // See https://github.com/jashkenas/underscore/issues/1621 for more details. + return typeof value == 'function' || false; +} + /** * Creates a function that returns the result of invoking the provided * functions with the `this` binding of the created function, where each @@ -24,15 +37,11 @@ var FUNC_ERROR_TEXT = 'Expected a function'; * @returns {Function} Returns the new function. * @example * - * function add(x, y) { - * return x + y; - * } - * * function square(n) { * return n * n; * } * - * var addSquare = _.flow(add, square); + * var addSquare = _.flow(_.add, square); * addSquare(1, 2); * // => 9 */ @@ -41,9 +50,9 @@ function flow() { length = funcs.length; if (!length) { - return function() {}; + return function() { return arguments[0]; }; } - if (!arrayEvery(funcs, isFunction)) { + if (!arrayEvery(funcs, baseIsFunction)) { throw new TypeError(FUNC_ERROR_TEXT); } return function() { diff --git a/lodash.flow/package.json b/lodash.flow/package.json index 8bf3ff987..4d184dd09 100644 --- a/lodash.flow/package.json +++ b/lodash.flow/package.json @@ -1,6 +1,6 @@ { "name": "lodash.flow", - "version": "3.0.0", + "version": "3.0.2", "description": "The modern build of lodash’s `_.flow` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -17,7 +17,6 @@ "repository": "lodash/lodash", "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "dependencies": { - "lodash._arrayevery": "^3.0.0", - "lodash.isfunction": "^3.0.0" + "lodash._arrayevery": "^3.0.0" } } diff --git a/lodash.flowright/README.md b/lodash.flowright/README.md index 57e0ee3a6..4af3fc6c5 100644 --- a/lodash.flowright/README.md +++ b/lodash.flowright/README.md @@ -1,4 +1,4 @@ -# lodash.flowright v3.0.0 +# lodash.flowright v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.flowRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var flowRight = require('lodash.flowright'); ``` -See the [documentation](https://lodash.com/docs#flowRight) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.flowright) for more details. +See the [documentation](https://lodash.com/docs#flowRight) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.flowright) for more details. diff --git a/lodash.flowright/index.js b/lodash.flowright/index.js index ed3ed1ad8..4d6162dfb 100644 --- a/lodash.flowright/index.js +++ b/lodash.flowright/index.js @@ -1,17 +1,30 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ -var arrayEvery = require('lodash._arrayevery'), - isFunction = require('lodash.isfunction'); +var arrayEvery = require('lodash._arrayevery'); /** Used as the `TypeError` message for "Functions" methods. */ var FUNC_ERROR_TEXT = 'Expected a function'; +/** + * The base implementation of `_.isFunction` without support for environments + * with incorrect `typeof` results. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + */ +function baseIsFunction(value) { + // Avoid a Chakra JIT bug in compatibility modes of IE 11. + // See https://github.com/jashkenas/underscore/issues/1621 for more details. + return typeof value == 'function' || false; +} + /** * This method is like `_.flow` except that it creates a function that * invokes the provided functions from right to left. @@ -24,15 +37,11 @@ var FUNC_ERROR_TEXT = 'Expected a function'; * @returns {Function} Returns the new function. * @example * - * function add(x, y) { - * return x + y; - * } - * * function square(n) { * return n * n; * } * - * var addSquare = _.flowRight(square, add); + * var addSquare = _.flowRight(square, _.add); * addSquare(1, 2); * // => 9 */ @@ -41,9 +50,9 @@ function flowRight() { fromIndex = funcs.length - 1; if (fromIndex < 0) { - return function() {}; + return function() { return arguments[0]; }; } - if (!arrayEvery(funcs, isFunction)) { + if (!arrayEvery(funcs, baseIsFunction)) { throw new TypeError(FUNC_ERROR_TEXT); } return function() { diff --git a/lodash.flowright/package.json b/lodash.flowright/package.json index 648ef0430..e39141daf 100644 --- a/lodash.flowright/package.json +++ b/lodash.flowright/package.json @@ -1,6 +1,6 @@ { "name": "lodash.flowright", - "version": "3.0.0", + "version": "3.0.2", "description": "The modern build of lodash’s `_.flowRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -17,7 +17,6 @@ "repository": "lodash/lodash", "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "dependencies": { - "lodash._arrayevery": "^3.0.0", - "lodash.isfunction": "^3.0.0" + "lodash._arrayevery": "^3.0.0" } } diff --git a/lodash.foreach/LICENSE.txt b/lodash.foreach/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.foreach/LICENSE.txt +++ b/lodash.foreach/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.foreach/README.md b/lodash.foreach/README.md index 4531a6bb4..0748fd105 100644 --- a/lodash.foreach/README.md +++ b/lodash.foreach/README.md @@ -1,4 +1,4 @@ -# lodash.foreach v3.0.1 +# lodash.foreach v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.forEach` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var forEach = require('lodash.foreach'); ``` -See the [documentation](https://lodash.com/docs#forEach) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.foreach) for more details. +See the [documentation](https://lodash.com/docs#forEach) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.foreach) for more details. diff --git a/lodash.foreach/index.js b/lodash.foreach/index.js index 6242e9dbb..bbf18fdda 100644 --- a/lodash.foreach/index.js +++ b/lodash.foreach/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -11,9 +11,25 @@ var arrayEach = require('lodash._arrayeach'), bindCallback = require('lodash._bindcallback'), isArray = require('lodash.isarray'); +/** + * Creates a function for `_.forEach` or `_.forEachRight`. + * + * @private + * @param {Function} arrayFunc The function to iterate over an array. + * @param {Function} eachFunc The function to iterate over a collection. + * @returns {Function} Returns the new each function. + */ +function createForEach(arrayFunc, eachFunc) { + return function(collection, iteratee, thisArg) { + return (typeof iteratee == 'function' && typeof thisArg == 'undefined' && isArray(collection)) + ? arrayFunc(collection, iteratee) + : eachFunc(collection, bindCallback(iteratee, thisArg, 3)); + }; +} + /** * Iterates over elements of `collection` invoking `iteratee` for each element. - * The `iteratee` is bound to `thisArg` and invoked with three arguments; + * The `iteratee` is bound to `thisArg` and invoked with three arguments: * (value, index|key, collection). Iterator functions may exit iteration early * by explicitly returning `false`. * @@ -41,10 +57,6 @@ var arrayEach = require('lodash._arrayeach'), * }); * // => logs each value-key pair and returns the object (iteration order is not guaranteed) */ -function forEach(collection, iteratee, thisArg) { - return (typeof iteratee == 'function' && typeof thisArg == 'undefined' && isArray(collection)) - ? arrayEach(collection, iteratee) - : baseEach(collection, bindCallback(iteratee, thisArg, 3)); -} +var forEach = createForEach(arrayEach, baseEach); module.exports = forEach; diff --git a/lodash.foreach/package.json b/lodash.foreach/package.json index 64bfc0f2d..c49b4c0fe 100644 --- a/lodash.foreach/package.json +++ b/lodash.foreach/package.json @@ -1,6 +1,6 @@ { "name": "lodash.foreach", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.forEach` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.foreachright/README.md b/lodash.foreachright/README.md index 4c4cfa1fb..048bc0d51 100644 --- a/lodash.foreachright/README.md +++ b/lodash.foreachright/README.md @@ -1,4 +1,4 @@ -# lodash.foreachright v3.0.1 +# lodash.foreachright v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.forEachRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var forEachRight = require('lodash.foreachright'); ``` -See the [documentation](https://lodash.com/docs#forEachRight) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.foreachright) for more details. +See the [documentation](https://lodash.com/docs#forEachRight) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.foreachright) for more details. diff --git a/lodash.foreachright/index.js b/lodash.foreachright/index.js index 4db2a46cc..d900dc7d4 100644 --- a/lodash.foreachright/index.js +++ b/lodash.foreachright/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -40,7 +40,7 @@ function arrayEachRight(array, iteratee) { */ function createForEach(arrayFunc, eachFunc) { return function(collection, iteratee, thisArg) { - return (typeof iteratee == 'function' && typeof thisArg == 'undefined' && isArray(collection)) + return (typeof iteratee == 'function' && thisArg === undefined && isArray(collection)) ? arrayFunc(collection, iteratee) : eachFunc(collection, bindCallback(iteratee, thisArg, 3)); }; diff --git a/lodash.foreachright/package.json b/lodash.foreachright/package.json index d95400698..8a1a8e9e5 100644 --- a/lodash.foreachright/package.json +++ b/lodash.foreachright/package.json @@ -1,6 +1,6 @@ { "name": "lodash.foreachright", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.forEachRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.forin/README.md b/lodash.forin/README.md index 5ae3e792e..fe7d8f5ca 100644 --- a/lodash.forin/README.md +++ b/lodash.forin/README.md @@ -1,4 +1,4 @@ -# lodash.forin v3.0.1 +# lodash.forin v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.forIn` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var forIn = require('lodash.forin'); ``` -See the [documentation](https://lodash.com/docs#forIn) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.forin) for more details. +See the [documentation](https://lodash.com/docs#forIn) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.forin) for more details. diff --git a/lodash.forin/index.js b/lodash.forin/index.js index 1038aacd3..5b60ddee8 100644 --- a/lodash.forin/index.js +++ b/lodash.forin/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -19,7 +19,7 @@ var baseFor = require('lodash._basefor'), */ function createForIn(objectFunc) { return function(object, iteratee, thisArg) { - if (typeof iteratee != 'function' || typeof thisArg != 'undefined') { + if (typeof iteratee != 'function' || thisArg !== undefined) { iteratee = bindCallback(iteratee, thisArg, 3); } return objectFunc(object, iteratee, keysIn); @@ -29,7 +29,7 @@ function createForIn(objectFunc) { /** * Iterates over own and inherited enumerable properties of an object invoking * `iteratee` for each property. The `iteratee` is bound to `thisArg` and invoked - * with three arguments: (value, key, object). Iterator functions may exit + * with three arguments: (value, key, object). Iteratee functions may exit * iteration early by explicitly returning `false`. * * @static diff --git a/lodash.forin/package.json b/lodash.forin/package.json index 695db810c..a2e6dd6f5 100644 --- a/lodash.forin/package.json +++ b/lodash.forin/package.json @@ -1,6 +1,6 @@ { "name": "lodash.forin", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.forIn` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.forinright/README.md b/lodash.forinright/README.md index 2b38104ad..cbe2fd714 100644 --- a/lodash.forinright/README.md +++ b/lodash.forinright/README.md @@ -1,4 +1,4 @@ -# lodash.forinright v3.0.1 +# lodash.forinright v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.forInRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var forInRight = require('lodash.forinright'); ``` -See the [documentation](https://lodash.com/docs#forInRight) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.forinright) for more details. +See the [documentation](https://lodash.com/docs#forInRight) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.forinright) for more details. diff --git a/lodash.forinright/index.js b/lodash.forinright/index.js index 21e53f846..b1e275b8e 100644 --- a/lodash.forinright/index.js +++ b/lodash.forinright/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -19,7 +19,7 @@ var baseForRight = require('lodash._baseforright'), */ function createForIn(objectFunc) { return function(object, iteratee, thisArg) { - if (typeof iteratee != 'function' || typeof thisArg != 'undefined') { + if (typeof iteratee != 'function' || thisArg !== undefined) { iteratee = bindCallback(iteratee, thisArg, 3); } return objectFunc(object, iteratee, keysIn); diff --git a/lodash.forinright/package.json b/lodash.forinright/package.json index f284949eb..6023203ed 100644 --- a/lodash.forinright/package.json +++ b/lodash.forinright/package.json @@ -1,6 +1,6 @@ { "name": "lodash.forinright", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.forInRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.forown/README.md b/lodash.forown/README.md index a16d35b1d..a9f38f1f9 100644 --- a/lodash.forown/README.md +++ b/lodash.forown/README.md @@ -1,4 +1,4 @@ -# lodash.forown v3.0.1 +# lodash.forown v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.forOwn` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var forOwn = require('lodash.forown'); ``` -See the [documentation](https://lodash.com/docs#forOwn) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.forown) for more details. +See the [documentation](https://lodash.com/docs#forOwn) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.forown) for more details. diff --git a/lodash.forown/index.js b/lodash.forown/index.js index 998cf7428..b347571d2 100644 --- a/lodash.forown/index.js +++ b/lodash.forown/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -32,7 +32,7 @@ function baseForOwn(object, iteratee) { */ function createForOwn(objectFunc) { return function(object, iteratee, thisArg) { - if (typeof iteratee != 'function' || typeof thisArg != 'undefined') { + if (typeof iteratee != 'function' || thisArg !== undefined) { iteratee = bindCallback(iteratee, thisArg, 3); } return objectFunc(object, iteratee); @@ -42,7 +42,7 @@ function createForOwn(objectFunc) { /** * Iterates over own enumerable properties of an object invoking `iteratee` * for each property. The `iteratee` is bound to `thisArg` and invoked with - * three arguments: (value, key, object). Iterator functions may exit iteration + * three arguments: (value, key, object). Iteratee functions may exit iteration * early by explicitly returning `false`. * * @static diff --git a/lodash.forown/package.json b/lodash.forown/package.json index 507c4d3c1..28122f83d 100644 --- a/lodash.forown/package.json +++ b/lodash.forown/package.json @@ -1,6 +1,6 @@ { "name": "lodash.forown", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.forOwn` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.forownright/README.md b/lodash.forownright/README.md index 321162116..bdb0bde09 100644 --- a/lodash.forownright/README.md +++ b/lodash.forownright/README.md @@ -1,4 +1,4 @@ -# lodash.forownright v3.0.1 +# lodash.forownright v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.forOwnRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var forOwnRight = require('lodash.forownright'); ``` -See the [documentation](https://lodash.com/docs#forOwnRight) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.forownright) for more details. +See the [documentation](https://lodash.com/docs#forOwnRight) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.forownright) for more details. diff --git a/lodash.forownright/index.js b/lodash.forownright/index.js index 5d965ba92..5063c15ad 100644 --- a/lodash.forownright/index.js +++ b/lodash.forownright/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -32,7 +32,7 @@ function baseForOwnRight(object, iteratee) { */ function createForOwn(objectFunc) { return function(object, iteratee, thisArg) { - if (typeof iteratee != 'function' || typeof thisArg != 'undefined') { + if (typeof iteratee != 'function' || thisArg !== undefined) { iteratee = bindCallback(iteratee, thisArg, 3); } return objectFunc(object, iteratee); diff --git a/lodash.forownright/package.json b/lodash.forownright/package.json index e895ee6e5..b8601ed08 100644 --- a/lodash.forownright/package.json +++ b/lodash.forownright/package.json @@ -1,6 +1,6 @@ { "name": "lodash.forownright", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.forOwnRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.indexof/LICENSE.txt b/lodash.indexof/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.indexof/LICENSE.txt +++ b/lodash.indexof/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.indexof/README.md b/lodash.indexof/README.md index 24c004838..913c84eee 100644 --- a/lodash.indexof/README.md +++ b/lodash.indexof/README.md @@ -1,4 +1,4 @@ -# lodash.indexof v3.0.1 +# lodash.indexof v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.indexOf` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var indexOf = require('lodash.indexof'); ``` -See the [documentation](https://lodash.com/docs#indexOf) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.indexof) for more details. +See the [documentation](https://lodash.com/docs#indexOf) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.indexof) for more details. diff --git a/lodash.indexof/index.js b/lodash.indexof/index.js index e34c5c5fd..116a21435 100644 --- a/lodash.indexof/index.js +++ b/lodash.indexof/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.2 @@ -14,14 +14,10 @@ var nativeMax = Math.max; /** * Gets the index at which the first occurrence of `value` is found in `array` - * using `SameValueZero` for equality comparisons. If `fromIndex` is negative, - * it is used as the offset from the end of `array`. If `array` is sorted - * providing `true` for `fromIndex` performs a faster binary search. - * - * **Note:** `SameValueZero` comparisons are like strict equality comparisons, - * e.g. `===`, except that `NaN` matches `NaN`. See the - * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) - * for more details. + * using [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) + * for equality comparisons. If `fromIndex` is negative, it is used as the offset + * from the end of `array`. If `array` is sorted providing `true` for `fromIndex` + * performs a faster binary search. * * @static * @memberOf _ @@ -55,7 +51,10 @@ function indexOf(array, value, fromIndex) { var index = binaryIndex(array, value), other = array[index]; - return (value === value ? value === other : other !== other) ? index : -1; + if (value === value ? (value === other) : (other !== other)) { + return index; + } + return -1; } return baseIndexOf(array, value, fromIndex || 0); } diff --git a/lodash.indexof/package.json b/lodash.indexof/package.json index af269fc07..68579eb1e 100644 --- a/lodash.indexof/package.json +++ b/lodash.indexof/package.json @@ -1,6 +1,6 @@ { "name": "lodash.indexof", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.indexOf` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.intersection/README.md b/lodash.intersection/README.md index 05150b98c..148396af6 100644 --- a/lodash.intersection/README.md +++ b/lodash.intersection/README.md @@ -1,4 +1,4 @@ -# lodash.intersection v3.0.1 +# lodash.intersection v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.intersection` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var intersection = require('lodash.intersection'); ``` -See the [documentation](https://lodash.com/docs#intersection) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.intersection) for more details. +See the [documentation](https://lodash.com/docs#intersection) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.intersection) for more details. diff --git a/lodash.intersection/index.js b/lodash.intersection/index.js index 40cc1ed7a..52edcff68 100644 --- a/lodash.intersection/index.js +++ b/lodash.intersection/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.2 @@ -16,10 +16,9 @@ var baseIndexOf = require('lodash._baseindexof'), * Creates an array of unique values in all provided arrays using `SameValueZero` * for equality comparisons. * - * **Note:** `SameValueZero` comparisons are like strict equality comparisons, - * e.g. `===`, except that `NaN` matches `NaN`. See the - * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) - * for more details. + * **Note:** [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) + * comparisons are like strict equality comparisons, e.g. `===`, except that + * `NaN` matches `NaN`. * * @static * @memberOf _ @@ -55,11 +54,11 @@ function intersection() { outer: while (++index < length) { value = array[index]; - if ((seen ? cacheIndexOf(seen, value) : indexOf(result, value)) < 0) { + if ((seen ? cacheIndexOf(seen, value) : indexOf(result, value, 0)) < 0) { argsIndex = argsLength; while (--argsIndex) { var cache = caches[argsIndex]; - if ((cache ? cacheIndexOf(cache, value) : indexOf(args[argsIndex], value)) < 0) { + if ((cache ? cacheIndexOf(cache, value) : indexOf(args[argsIndex], value, 0)) < 0) { continue outer; } } diff --git a/lodash.intersection/package.json b/lodash.intersection/package.json index 897bf0729..4cf329fd5 100644 --- a/lodash.intersection/package.json +++ b/lodash.intersection/package.json @@ -1,6 +1,6 @@ { "name": "lodash.intersection", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.intersection` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isarguments/README.md b/lodash.isarguments/README.md index f2f48d3eb..8fa46e499 100644 --- a/lodash.isarguments/README.md +++ b/lodash.isarguments/README.md @@ -1,4 +1,4 @@ -# lodash.isarguments v3.0.1 +# lodash.isarguments v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isArguments` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isArguments = require('lodash.isarguments'); ``` -See the [documentation](https://lodash.com/docs#isArguments) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isarguments) for more details. +See the [documentation](https://lodash.com/docs#isArguments) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.isarguments) for more details. diff --git a/lodash.isarguments/index.js b/lodash.isarguments/index.js index aee5b99b5..a2bbf95a2 100644 --- a/lodash.isarguments/index.js +++ b/lodash.isarguments/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -36,6 +36,42 @@ var objToString = objectProto.toString; */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} + +/** + * 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'); + +/** + * Checks if `value` is array-like. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + */ +function isArrayLike(value) { + return value != null && isLength(getLength(value)); +} + /** * Checks if `value` is a valid array-like length. * @@ -66,8 +102,7 @@ function isLength(value) { * // => false */ function isArguments(value) { - var length = isObjectLike(value) ? value.length : undefined; - return isLength(length) && objToString.call(value) == argsTag; + return isObjectLike(value) && isArrayLike(value) && objToString.call(value) == argsTag; } module.exports = isArguments; diff --git a/lodash.isarguments/package.json b/lodash.isarguments/package.json index 8748ad41a..0d4a480ce 100644 --- a/lodash.isarguments/package.json +++ b/lodash.isarguments/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isarguments", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.isArguments` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isarray/README.md b/lodash.isarray/README.md index 76d21dd04..1b2c93709 100644 --- a/lodash.isarray/README.md +++ b/lodash.isarray/README.md @@ -1,4 +1,4 @@ -# lodash.isarray v3.0.1 +# lodash.isarray v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isArray` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isArray = require('lodash.isarray'); ``` -See the [documentation](https://lodash.com/docs#isArray) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isarray) for more details. +See the [documentation](https://lodash.com/docs#isArray) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.isarray) for more details. diff --git a/lodash.isarray/index.js b/lodash.isarray/index.js index 0e4c4c822..842c0f6df 100644 --- a/lodash.isarray/index.js +++ b/lodash.isarray/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -11,9 +11,6 @@ var arrayTag = '[object Array]', funcTag = '[object Function]'; -/** Used to detect host constructors (Safari > 5). */ -var reHostCtor = /^\[object .+?Constructor\]$/; - /** * Used to match `RegExp` [special characters](http://www.regular-expressions.info/characters.html#special). * In addition to special characters the forward slash is escaped to allow for @@ -22,6 +19,9 @@ var reHostCtor = /^\[object .+?Constructor\]$/; var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g, reHasRegExpChars = RegExp(reRegExpChars.source); +/** Used to detect host constructors (Safari > 5). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; + /** * Converts `value` to a string if it is not one. An empty string is returned * for `null` or `undefined` values. @@ -61,7 +61,7 @@ var fnToString = Function.prototype.toString; var objToString = objectProto.toString; /** Used to detect if a method is native. */ -var reNative = RegExp('^' + +var reIsNative = RegExp('^' + escapeRegExp(objToString) .replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); @@ -129,9 +129,9 @@ function isNative(value) { return false; } if (objToString.call(value) == funcTag) { - return reNative.test(fnToString.call(value)); + return reIsNative.test(fnToString.call(value)); } - return isObjectLike(value) && reHostCtor.test(value); + return isObjectLike(value) && reIsHostCtor.test(value); } /** diff --git a/lodash.isarray/package.json b/lodash.isarray/package.json index cde780008..ebde5eafc 100644 --- a/lodash.isarray/package.json +++ b/lodash.isarray/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isarray", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.isArray` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.parseint/LICENSE.txt b/lodash.isboolean/LICENSE similarity index 89% rename from lodash.parseint/LICENSE.txt rename to lodash.isboolean/LICENSE index 9cd87e5dc..b054ca5a3 100644 --- a/lodash.parseint/LICENSE.txt +++ b/lodash.isboolean/LICENSE @@ -1,5 +1,5 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, +Copyright 2012-2016 The Dojo Foundation +Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isboolean/README.md b/lodash.isboolean/README.md index 907008de1..3490dffb7 100644 --- a/lodash.isboolean/README.md +++ b/lodash.isboolean/README.md @@ -1,20 +1,18 @@ -# lodash.isboolean v3.0.1 +# lodash.isboolean v3.0.2 -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isBoolean` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. +The [lodash](https://lodash.com/) method `_.isBoolean` exported as a [Node.js](https://nodejs.org/) module. ## Installation Using npm: - ```bash $ {sudo -H} npm i -g npm $ npm i --save lodash.isboolean ``` -In Node.js/io.js: - +In Node.js: ```js var isBoolean = require('lodash.isboolean'); ``` -See the [documentation](https://lodash.com/docs#isBoolean) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isboolean) for more details. +See the [documentation](https://lodash.com/docs#isBoolean) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.isboolean) for more details. diff --git a/lodash.isboolean/index.js b/lodash.isboolean/index.js index 98577743d..7416aab69 100644 --- a/lodash.isboolean/index.js +++ b/lodash.isboolean/index.js @@ -1,27 +1,23 @@ -/** `Object#toString` result references. */ +/** + * lodash 3.0.2 (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright 2012-2016 The Dojo Foundation + * Based on Underscore.js 1.8.3 + * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * Available under MIT license + */ /** `Object#toString` result references. */ var boolTag = '[object Boolean]'; -/** - * Checks if `value` is object-like. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** Used for native method references. */ -var objectProto = Object.prototype; +/** Used for built-in method references. */ +var objectProto = global.Object.prototype; /** * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) * of values. */ -var objToString = objectProto.toString; +var objectToString = objectProto.toString; /** * Checks if `value` is classified as a boolean primitive or object. @@ -40,7 +36,35 @@ var objToString = objectProto.toString; * // => false */ function isBoolean(value) { - return value === true || value === false || (isObjectLike(value) && objToString.call(value) == boolTag); + return value === true || value === false || + (isObjectLike(value) && objectToString.call(value) == boolTag); +} + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; } module.exports = isBoolean; diff --git a/lodash.isboolean/package.json b/lodash.isboolean/package.json index f331fb932..013f1a740 100644 --- a/lodash.isboolean/package.json +++ b/lodash.isboolean/package.json @@ -1,17 +1,15 @@ { "name": "lodash.isboolean", - "version": "3.0.1", - "description": "The modern build of lodash’s `_.isBoolean` as a module.", + "version": "3.0.2", + "description": "The lodash method `_.isBoolean` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", - "keywords": "lodash, lodash-modularized, stdlib, util", + "keywords": "lodash, lodash-modularized, stdlib, util, isboolean", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", + "Blaine Bublitz (https://github.com/phated)", "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", diff --git a/lodash.isdate/LICENSE.txt b/lodash.isdate/LICENSE similarity index 89% rename from lodash.isdate/LICENSE.txt rename to lodash.isdate/LICENSE index 9cd87e5dc..b054ca5a3 100644 --- a/lodash.isdate/LICENSE.txt +++ b/lodash.isdate/LICENSE @@ -1,5 +1,5 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, +Copyright 2012-2016 The Dojo Foundation +Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isdate/README.md b/lodash.isdate/README.md index 7c12a8a9d..783b91aeb 100644 --- a/lodash.isdate/README.md +++ b/lodash.isdate/README.md @@ -1,20 +1,18 @@ -# lodash.isdate v3.0.1 +# lodash.isdate v3.0.2 -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isDate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. +The [lodash](https://lodash.com/) method `_.isDate` exported as a [Node.js](https://nodejs.org/) module. ## Installation Using npm: - ```bash $ {sudo -H} npm i -g npm $ npm i --save lodash.isdate ``` -In Node.js/io.js: - +In Node.js: ```js var isDate = require('lodash.isdate'); ``` -See the [documentation](https://lodash.com/docs#isDate) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isdate) for more details. +See the [documentation](https://lodash.com/docs#isDate) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.isdate) for more details. diff --git a/lodash.isdate/index.js b/lodash.isdate/index.js index 9396fd0df..5246f9925 100644 --- a/lodash.isdate/index.js +++ b/lodash.isdate/index.js @@ -1,27 +1,23 @@ -/** `Object#toString` result references. */ +/** + * lodash 3.0.2 (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright 2012-2016 The Dojo Foundation + * Based on Underscore.js 1.8.3 + * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * Available under MIT license + */ /** `Object#toString` result references. */ var dateTag = '[object Date]'; -/** - * Checks if `value` is object-like. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** Used for native method references. */ -var objectProto = Object.prototype; +/** Used for built-in method references. */ +var objectProto = global.Object.prototype; /** * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) * of values. */ -var objToString = objectProto.toString; +var objectToString = objectProto.toString; /** * Checks if `value` is classified as a `Date` object. @@ -40,7 +36,34 @@ var objToString = objectProto.toString; * // => false */ function isDate(value) { - return isObjectLike(value) && objToString.call(value) == dateTag; + return isObjectLike(value) && objectToString.call(value) == dateTag; +} + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; } module.exports = isDate; diff --git a/lodash.isdate/package.json b/lodash.isdate/package.json index 935939542..04544c73c 100644 --- a/lodash.isdate/package.json +++ b/lodash.isdate/package.json @@ -1,17 +1,15 @@ { "name": "lodash.isdate", - "version": "3.0.1", - "description": "The modern build of lodash’s `_.isDate` as a module.", + "version": "3.0.2", + "description": "The lodash method `_.isDate` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", - "keywords": "lodash, lodash-modularized, stdlib, util", + "keywords": "lodash, lodash-modularized, stdlib, util, isdate", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", + "Blaine Bublitz (https://github.com/phated)", "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", diff --git a/lodash.iselement/README.md b/lodash.iselement/README.md index c39f5929f..251acd37b 100644 --- a/lodash.iselement/README.md +++ b/lodash.iselement/README.md @@ -1,4 +1,4 @@ -# lodash.iselement v3.0.1 +# lodash.iselement v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isElement` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isElement = require('lodash.iselement'); ``` -See the [documentation](https://lodash.com/docs#isElement) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.iselement) for more details. +See the [documentation](https://lodash.com/docs#isElement) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.iselement) for more details. diff --git a/lodash.iselement/index.js b/lodash.iselement/index.js index 20351189c..a2b13569e 100644 --- a/lodash.iselement/index.js +++ b/lodash.iselement/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -32,9 +32,6 @@ var document = (document = global.window) && document.document; */ var objToString = objectProto.toString; -/** Native method references. */ -var propertyIsEnumerable = objectProto.propertyIsEnumerable; - /** * An object environment feature flags. * @@ -44,38 +41,17 @@ var propertyIsEnumerable = objectProto.propertyIsEnumerable; */ var support = {}; -(function(x) { - - /** - * Detect if the DOM is supported. - * - * @memberOf _.support - * @type boolean - */ - try { - support.dom = document.createDocumentFragment().nodeType === 11; - } catch(e) { - support.dom = false; - } - - /** - * Detect if `arguments` object indexes are non-enumerable. - * - * In Firefox < 4, IE < 9, PhantomJS, and Safari < 5.1 `arguments` object - * indexes are non-enumerable. Chrome < 25 and Node.js < 0.11.0 treat - * `arguments` object indexes as non-enumerable and fail `hasOwnProperty` - * checks for indexes that exceed their function's formal parameters with - * associated values of `0`. - * - * @memberOf _.support - * @type boolean - */ - try { - support.nonEnumArgs = !propertyIsEnumerable.call(arguments, 1); - } catch(e) { - support.nonEnumArgs = true; - } -}(0, 0)); +/** + * Detect if the DOM is supported. + * + * @memberOf _.support + * @type boolean + */ +try { + support.dom = document.createDocumentFragment().nodeType === 11; +} catch(e) { + support.dom = false; +} /** * Checks if `value` is a DOM element. diff --git a/lodash.iselement/package.json b/lodash.iselement/package.json index 726e9204c..9ff49514c 100644 --- a/lodash.iselement/package.json +++ b/lodash.iselement/package.json @@ -1,6 +1,6 @@ { "name": "lodash.iselement", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.isElement` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isempty/README.md b/lodash.isempty/README.md index f20a43c0e..aeff859e3 100644 --- a/lodash.isempty/README.md +++ b/lodash.isempty/README.md @@ -1,4 +1,4 @@ -# lodash.isempty v3.0.1 +# lodash.isempty v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isEmpty` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isEmpty = require('lodash.isempty'); ``` -See the [documentation](https://lodash.com/docs#isEmpty) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isempty) for more details. +See the [documentation](https://lodash.com/docs#isEmpty) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.isempty) for more details. diff --git a/lodash.isempty/index.js b/lodash.isempty/index.js index 6e9a2e342..e1bba520a 100644 --- a/lodash.isempty/index.js +++ b/lodash.isempty/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -29,6 +29,31 @@ function isObjectLike(value) { */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} + +/** + * 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) + * in Safari on iOS 8.1 ARM64. + * + * @private + * @param {Object} object The object to query. + * @returns {*} Returns the "length" value. + */ +var getLength = baseProperty('length'); + /** * Checks if `value` is a valid array-like length. * @@ -73,7 +98,7 @@ function isEmpty(value) { if (value == null) { return true; } - var length = value.length; + var length = getLength(value); if (isLength(length) && (isArray(value) || isString(value) || isArguments(value) || (isObjectLike(value) && isFunction(value.splice)))) { return !length; diff --git a/lodash.isempty/package.json b/lodash.isempty/package.json index d6decc27e..17f592c45 100644 --- a/lodash.isempty/package.json +++ b/lodash.isempty/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isempty", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.isEmpty` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isequal/README.md b/lodash.isequal/README.md index c46e16d68..3932e5e4a 100644 --- a/lodash.isequal/README.md +++ b/lodash.isequal/README.md @@ -1,4 +1,4 @@ -# lodash.isequal v3.0.1 +# lodash.isequal v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isEqual` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isEqual = require('lodash.isequal'); ``` -See the [documentation](https://lodash.com/docs#isEqual) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isequal) for more details. +See the [documentation](https://lodash.com/docs#isEqual) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.isequal) for more details. diff --git a/lodash.isequal/index.js b/lodash.isequal/index.js index aed9416bf..d86ba02a5 100644 --- a/lodash.isequal/index.js +++ b/lodash.isequal/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -39,7 +39,7 @@ function isStrictComparable(value) { * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. - * @param {Function} [customizer] The function to customize comparing values. + * @param {Function} [customizer] The function to customize value comparisons. * @param {*} [thisArg] The `this` binding of `customizer`. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example @@ -70,7 +70,7 @@ function isEqual(value, other, customizer, thisArg) { return value === other; } var result = customizer ? customizer(value, other) : undefined; - return typeof result == 'undefined' ? baseIsEqual(value, other, customizer) : !!result; + return result === undefined ? baseIsEqual(value, other, customizer) : !!result; } /** diff --git a/lodash.isequal/package.json b/lodash.isequal/package.json index 1d94510a2..20fc158fa 100644 --- a/lodash.isequal/package.json +++ b/lodash.isequal/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isequal", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.isEqual` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.iserror/LICENSE.txt b/lodash.iserror/LICENSE similarity index 89% rename from lodash.iserror/LICENSE.txt rename to lodash.iserror/LICENSE index 9cd87e5dc..b054ca5a3 100644 --- a/lodash.iserror/LICENSE.txt +++ b/lodash.iserror/LICENSE @@ -1,5 +1,5 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, +Copyright 2012-2016 The Dojo Foundation +Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.iserror/README.md b/lodash.iserror/README.md index 64bcbaf75..3f560eaae 100644 --- a/lodash.iserror/README.md +++ b/lodash.iserror/README.md @@ -1,20 +1,18 @@ -# lodash.iserror v3.0.1 +# lodash.iserror v3.0.2 -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isError` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. +The [lodash](https://lodash.com/) method `_.isError` exported as a [Node.js](https://nodejs.org/) module. ## Installation Using npm: - ```bash $ {sudo -H} npm i -g npm $ npm i --save lodash.iserror ``` -In Node.js/io.js: - +In Node.js: ```js var isError = require('lodash.iserror'); ``` -See the [documentation](https://lodash.com/docs#isError) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.iserror) for more details. +See the [documentation](https://lodash.com/docs#isError) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.iserror) for more details. diff --git a/lodash.iserror/index.js b/lodash.iserror/index.js index 41b4acc68..9ca77efdd 100644 --- a/lodash.iserror/index.js +++ b/lodash.iserror/index.js @@ -1,27 +1,23 @@ -/** `Object#toString` result references. */ +/** + * lodash 3.0.2 (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright 2012-2016 The Dojo Foundation + * Based on Underscore.js 1.8.3 + * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * Available under MIT license + */ /** `Object#toString` result references. */ var errorTag = '[object Error]'; -/** - * Checks if `value` is object-like. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** Used for native method references. */ -var objectProto = Object.prototype; +/** Used for built-in method references. */ +var objectProto = global.Object.prototype; /** * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) * of values. */ -var objToString = objectProto.toString; +var objectToString = objectProto.toString; /** * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`, @@ -41,7 +37,35 @@ var objToString = objectProto.toString; * // => false */ function isError(value) { - return isObjectLike(value) && typeof value.message == 'string' && objToString.call(value) == errorTag; + return isObjectLike(value) && + typeof value.message == 'string' && objectToString.call(value) == errorTag; +} + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; } module.exports = isError; diff --git a/lodash.iserror/package.json b/lodash.iserror/package.json index b0ef65516..2d3c62fa7 100644 --- a/lodash.iserror/package.json +++ b/lodash.iserror/package.json @@ -1,17 +1,15 @@ { "name": "lodash.iserror", - "version": "3.0.1", - "description": "The modern build of lodash’s `_.isError` as a module.", + "version": "3.0.2", + "description": "The lodash method `_.isError` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", - "keywords": "lodash, lodash-modularized, stdlib, util", + "keywords": "lodash, lodash-modularized, stdlib, util, iserror", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", + "Blaine Bublitz (https://github.com/phated)", "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", diff --git a/lodash.isfunction/LICENSE.txt b/lodash.isfunction/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.isfunction/LICENSE.txt +++ b/lodash.isfunction/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isfunction/README.md b/lodash.isfunction/README.md index 2abdecf18..7b5b75561 100644 --- a/lodash.isfunction/README.md +++ b/lodash.isfunction/README.md @@ -1,4 +1,4 @@ -# lodash.isfunction v3.0.1 +# lodash.isfunction v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isFunction` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isFunction = require('lodash.isfunction'); ``` -See the [documentation](https://lodash.com/docs#isFunction) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isfunction) for more details. +See the [documentation](https://lodash.com/docs#isFunction) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.isfunction) for more details. diff --git a/lodash.isfunction/index.js b/lodash.isfunction/index.js index 16a5af931..ea4225ce9 100644 --- a/lodash.isfunction/index.js +++ b/lodash.isfunction/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -14,9 +14,9 @@ var funcTag = '[object Function]'; var reHostCtor = /^\[object .+?Constructor\]$/; /** - * Used to match `RegExp` special characters. - * See this [article on `RegExp` characters](http://www.regular-expressions.info/characters.html#special) - * for more details. + * Used to match `RegExp` [special characters](http://www.regular-expressions.info/characters.html#special). + * In addition to special characters the forward slash is escaped to allow for + * easier `eval` use and `Function` compilation. */ var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g, reHasRegExpChars = RegExp(reRegExpChars.source); @@ -58,7 +58,7 @@ function baseToString(value) { * @returns {boolean} Returns `true` if `value` is object-like, else `false`. */ function isObjectLike(value) { - return (value && typeof value == 'object') || false; + return !!value && typeof value == 'object'; } /** Used for native method references. */ @@ -68,9 +68,8 @@ var objectProto = Object.prototype; var fnToString = Function.prototype.toString; /** - * Used to resolve the `toStringTag` of values. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) - * for more details. + * Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) + * of values. */ var objToString = objectProto.toString; @@ -129,12 +128,12 @@ function isNative(value) { if (objToString.call(value) == funcTag) { return reNative.test(fnToString.call(value)); } - return (isObjectLike(value) && reHostCtor.test(value)) || false; + return isObjectLike(value) && reHostCtor.test(value); } /** - * Escapes the `RegExp` special characters "\", "^", "$", ".", "|", "?", "*", - * "+", "(", ")", "[", "]", "{" and "}" in `string`. + * Escapes the `RegExp` special characters "\", "/", "^", "$", ".", "|", "?", + * "*", "+", "(", ")", "[", "]", "{" and "}" in `string`. * * @static * @memberOf _ @@ -144,7 +143,7 @@ function isNative(value) { * @example * * _.escapeRegExp('[lodash](https://lodash.com/)'); - * // => '\[lodash\]\(https://lodash\.com/\)' + * // => '\[lodash\]\(https:\/\/lodash\.com\/\)' */ function escapeRegExp(string) { string = baseToString(string); diff --git a/lodash.isfunction/package.json b/lodash.isfunction/package.json index 69f86e262..0d23299ae 100644 --- a/lodash.isfunction/package.json +++ b/lodash.isfunction/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isfunction", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.isFunction` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isnan/README.md b/lodash.isnan/README.md index b6ea0dcd1..92adde6ca 100644 --- a/lodash.isnan/README.md +++ b/lodash.isnan/README.md @@ -1,4 +1,4 @@ -# lodash.isnan v3.0.1 +# lodash.isnan v3.0.2 The [lodash](https://lodash.com/) method `_.isNaN` exported as a [Node.js](https://nodejs.org/) module. @@ -15,4 +15,4 @@ In Node.js: var isNaN = require('lodash.isnan'); ``` -See the [documentation](https://lodash.com/docs#isNaN) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isnan) for more details. +See the [documentation](https://lodash.com/docs#isNaN) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.isnan) for more details. diff --git a/lodash.isnan/index.js b/lodash.isnan/index.js index 4aeb63734..d9645a4f2 100644 --- a/lodash.isnan/index.js +++ b/lodash.isnan/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash (Custom Build) * Build: `lodash modularize exports="npm" -o ./` * Copyright 2012-2016 The Dojo Foundation * Based on Underscore.js 1.8.3 @@ -11,10 +11,11 @@ var numberTag = '[object Number]'; /** Used for built-in method references. */ -var objectProto = global.Object.prototype; +var objectProto = Object.prototype; /** - * 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/7.0/#sec-object.prototype.tostring) * of values. */ var objectToString = objectProto.toString; @@ -25,6 +26,7 @@ var objectToString = objectProto.toString; * * @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`. @@ -49,11 +51,14 @@ function isObjectLike(value) { /** * Checks if `value` is `NaN`. * - * **Note:** This method is not the same as [`isNaN`](https://es5.github.io/#x15.1.2.4) - * which returns `true` for `undefined` and other non-numeric values. + * **Note:** This method is based on + * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as + * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for + * `undefined` and other non-number values. * * @static * @memberOf _ + * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. @@ -73,21 +78,23 @@ function isObjectLike(value) { */ function isNaN(value) { // An `NaN` primitive is the only value that is not equal to itself. - // Perform the `toStringTag` check first to avoid errors with some ActiveX objects in IE. + // Perform the `toStringTag` check first to avoid errors with some + // ActiveX objects in IE. return isNumber(value) && value != +value; } /** * Checks if `value` is classified as a `Number` primitive or object. * - * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are classified - * as numbers, use the `_.isFinite` method. + * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are + * classified as numbers, use the `_.isFinite` method. * * @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`. + * @returns {boolean} Returns `true` if `value` is a number, else `false`. * @example * * _.isNumber(3); diff --git a/lodash.isnan/package.json b/lodash.isnan/package.json index dfe8989f9..5aea87bcd 100644 --- a/lodash.isnan/package.json +++ b/lodash.isnan/package.json @@ -1,11 +1,11 @@ { "name": "lodash.isnan", - "version": "3.0.1", + "version": "3.0.2", "description": "The lodash method `_.isNaN` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", - "keywords": "lodash, lodash-modularized, stdlib, util, isnan", + "keywords": "lodash-modularized, isnan", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)", diff --git a/lodash.isnative/README.md b/lodash.isnative/README.md index e9cea5950..5213f402b 100644 --- a/lodash.isnative/README.md +++ b/lodash.isnative/README.md @@ -1,4 +1,4 @@ -# lodash.isnative v3.0.1 +# lodash.isnative v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isNative` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isNative = require('lodash.isnative'); ``` -See the [documentation](https://lodash.com/docs#isNative) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isnative) for more details. +See the [documentation](https://lodash.com/docs#isNative) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.isnative) for more details. diff --git a/lodash.isnative/index.js b/lodash.isnative/index.js index 91f847636..92e2c48a9 100644 --- a/lodash.isnative/index.js +++ b/lodash.isnative/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -10,9 +10,6 @@ /** `Object#toString` result references. */ var funcTag = '[object Function]'; -/** Used to detect host constructors (Safari > 5). */ -var reHostCtor = /^\[object .+?Constructor\]$/; - /** * Used to match `RegExp` [special characters](http://www.regular-expressions.info/characters.html#special). * In addition to special characters the forward slash is escaped to allow for @@ -21,6 +18,9 @@ var reHostCtor = /^\[object .+?Constructor\]$/; var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g, reHasRegExpChars = RegExp(reRegExpChars.source); +/** Used to detect host constructors (Safari > 5). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; + /** * Converts `value` to a string if it is not one. An empty string is returned * for `null` or `undefined` values. @@ -60,7 +60,7 @@ var fnToString = Function.prototype.toString; var objToString = objectProto.toString; /** Used to detect if a method is native. */ -var reNative = RegExp('^' + +var reIsNative = RegExp('^' + escapeRegExp(objToString) .replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); @@ -86,9 +86,9 @@ function isNative(value) { return false; } if (objToString.call(value) == funcTag) { - return reNative.test(fnToString.call(value)); + return reIsNative.test(fnToString.call(value)); } - return isObjectLike(value) && reHostCtor.test(value); + return isObjectLike(value) && reIsHostCtor.test(value); } /** diff --git a/lodash.isnative/package.json b/lodash.isnative/package.json index 76d2a7212..753403652 100644 --- a/lodash.isnative/package.json +++ b/lodash.isnative/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isnative", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.isNative` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isnumber/LICENSE b/lodash.isnumber/LICENSE new file mode 100644 index 000000000..b054ca5a3 --- /dev/null +++ b/lodash.isnumber/LICENSE @@ -0,0 +1,22 @@ +Copyright 2012-2016 The Dojo Foundation +Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +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. diff --git a/lodash.isnumber/README.md b/lodash.isnumber/README.md index 6d223f140..593c8d37e 100644 --- a/lodash.isnumber/README.md +++ b/lodash.isnumber/README.md @@ -1,20 +1,18 @@ -# lodash.isnumber v3.0.1 +# lodash.isnumber v3.0.2 -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isNumber` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. +The [lodash](https://lodash.com/) method `_.isNumber` exported as a [Node.js](https://nodejs.org/) module. ## Installation Using npm: - ```bash $ {sudo -H} npm i -g npm $ npm i --save lodash.isnumber ``` -In Node.js/io.js: - +In Node.js: ```js var isNumber = require('lodash.isnumber'); ``` -See the [documentation](https://lodash.com/docs#isNumber) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isnumber) for more details. +See the [documentation](https://lodash.com/docs#isNumber) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.isnumber) for more details. diff --git a/lodash.isnumber/index.js b/lodash.isnumber/index.js index 43e04dccd..4d20c6ebf 100644 --- a/lodash.isnumber/index.js +++ b/lodash.isnumber/index.js @@ -1,27 +1,50 @@ -/** `Object#toString` result references. */ +/** + * lodash 3.0.2 (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright 2012-2016 The Dojo Foundation + * Based on Underscore.js 1.8.3 + * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * Available under MIT license + */ /** `Object#toString` result references. */ var numberTag = '[object Number]'; -/** - * Checks if `value` is object-like. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** Used for native method references. */ -var objectProto = Object.prototype; +/** Used for built-in method references. */ +var objectProto = global.Object.prototype; /** * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) * of values. */ -var objToString = objectProto.toString; +var objectToString = objectProto.toString; + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} /** * Checks if `value` is classified as a `Number` primitive or object. @@ -36,17 +59,21 @@ var objToString = objectProto.toString; * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. * @example * - * _.isNumber(8.4); + * _.isNumber(3); * // => true * - * _.isNumber(NaN); + * _.isNumber(Number.MIN_VALUE); * // => true * - * _.isNumber('8.4'); + * _.isNumber(Infinity); + * // => true + * + * _.isNumber('3'); * // => false */ function isNumber(value) { - return typeof value == 'number' || (isObjectLike(value) && objToString.call(value) == numberTag); + return typeof value == 'number' || + (isObjectLike(value) && objectToString.call(value) == numberTag); } module.exports = isNumber; diff --git a/lodash.isnumber/package.json b/lodash.isnumber/package.json index c1f7266a0..4fcdacc4e 100644 --- a/lodash.isnumber/package.json +++ b/lodash.isnumber/package.json @@ -1,17 +1,15 @@ { "name": "lodash.isnumber", - "version": "3.0.1", - "description": "The modern build of lodash’s `_.isNumber` as a module.", + "version": "3.0.2", + "description": "The lodash method `_.isNumber` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", - "keywords": "lodash, lodash-modularized, stdlib, util", + "keywords": "lodash, lodash-modularized, stdlib, util, isnumber", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", + "Blaine Bublitz (https://github.com/phated)", "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", diff --git a/lodash.isobject/README.md b/lodash.isobject/README.md index a136e61be..4e923517d 100644 --- a/lodash.isobject/README.md +++ b/lodash.isobject/README.md @@ -1,4 +1,4 @@ -# lodash.isobject v3.0.1 +# lodash.isobject v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isObject` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isObject = require('lodash.isobject'); ``` -See the [documentation](https://lodash.com/docs#isObject) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isobject) for more details. +See the [documentation](https://lodash.com/docs#isObject) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.isobject) for more details. diff --git a/lodash.isobject/index.js b/lodash.isobject/index.js index 7dd6aaa44..78b66baf5 100644 --- a/lodash.isobject/index.js +++ b/lodash.isobject/index.js @@ -1,18 +1,20 @@ /** - * lodash 3.0.1 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ /** - * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. - * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * Checks if `value` is the + * [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 * @memberOf _ + * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. @@ -24,14 +26,15 @@ * _.isObject([1, 2, 3]); * // => true * - * _.isObject(1); + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); * // => false */ function isObject(value) { - // Avoid a V8 JIT bug in Chrome 19-20. - // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (!!value && type == 'object'); + return !!value && (type == 'object' || type == 'function'); } module.exports = isObject; diff --git a/lodash.isobject/package.json b/lodash.isobject/package.json index 8946a85de..9a855510b 100644 --- a/lodash.isobject/package.json +++ b/lodash.isobject/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isobject", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.isObject` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isplainobject/README.md b/lodash.isplainobject/README.md index 7744f3ca5..fd2512683 100644 --- a/lodash.isplainobject/README.md +++ b/lodash.isplainobject/README.md @@ -1,4 +1,4 @@ -# lodash.isplainobject v3.0.1 +# lodash.isplainobject v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isPlainObject` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isPlainObject = require('lodash.isplainobject'); ``` -See the [documentation](https://lodash.com/docs#isPlainObject) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isplainobject) for more details. +See the [documentation](https://lodash.com/docs#isPlainObject) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.isplainobject) for more details. diff --git a/lodash.isplainobject/index.js b/lodash.isplainobject/index.js index 4583cd903..b39aea454 100644 --- a/lodash.isplainobject/index.js +++ b/lodash.isplainobject/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -80,7 +80,7 @@ function shimIsPlainObject(value) { baseForIn(value, function(subValue, key) { result = key; }); - return typeof result == 'undefined' || hasOwnProperty.call(value, result); + return result === undefined || hasOwnProperty.call(value, result); } /** diff --git a/lodash.isplainobject/package.json b/lodash.isplainobject/package.json index 030809f67..260c054de 100644 --- a/lodash.isplainobject/package.json +++ b/lodash.isplainobject/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isplainobject", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.isPlainObject` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isregexp/README.md b/lodash.isregexp/README.md index edf4b9456..c01946a2b 100644 --- a/lodash.isregexp/README.md +++ b/lodash.isregexp/README.md @@ -1,4 +1,4 @@ -# lodash.isregexp v3.0.1 +# lodash.isregexp v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isRegExp` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isRegExp = require('lodash.isregexp'); ``` -See the [documentation](https://lodash.com/docs#isRegExp) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isregexp) for more details. +See the [documentation](https://lodash.com/docs#isRegExp) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.isregexp) for more details. diff --git a/lodash.isregexp/index.js b/lodash.isregexp/index.js index ce1723c85..d1268ee63 100644 --- a/lodash.isregexp/index.js +++ b/lodash.isregexp/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -47,7 +47,7 @@ var objToString = objectProto.toString; * // => false */ function isRegExp(value) { - return (isObjectLike(value) && objToString.call(value) == regexpTag) || false; + return isObjectLike(value) && objToString.call(value) == regexpTag; } module.exports = isRegExp; diff --git a/lodash.isregexp/package.json b/lodash.isregexp/package.json index 10f2c50a0..cfd235444 100644 --- a/lodash.isregexp/package.json +++ b/lodash.isregexp/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isregexp", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.isRegExp` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.istypedarray/README.md b/lodash.istypedarray/README.md index c91334d43..b1779ccf7 100644 --- a/lodash.istypedarray/README.md +++ b/lodash.istypedarray/README.md @@ -1,4 +1,4 @@ -# lodash.istypedarray v3.0.1 +# lodash.istypedarray v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isTypedArray` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isTypedArray = require('lodash.istypedarray'); ``` -See the [documentation](https://lodash.com/docs#isTypedArray) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.istypedarray) for more details. +See the [documentation](https://lodash.com/docs#isTypedArray) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.istypedarray) for more details. diff --git a/lodash.istypedarray/index.js b/lodash.istypedarray/index.js index 664dce5ed..006e17d93 100644 --- a/lodash.istypedarray/index.js +++ b/lodash.istypedarray/index.js @@ -1,11 +1,4 @@ -/** - * lodash 3.0.1 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ +/** `Object#toString` result references. */ /** `Object#toString` result references. */ var argsTag = '[object Arguments]', @@ -63,21 +56,21 @@ function isObjectLike(value) { var objectProto = Object.prototype; /** - * Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) + * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) * of values. */ var objToString = objectProto.toString; /** - * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) + * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer) * of an array-like value. */ -var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; +var MAX_SAFE_INTEGER = 9007199254740991; /** * Checks if `value` is a valid array-like length. * - * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength). + * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). * * @private * @param {*} value The value to check. diff --git a/lodash.istypedarray/package.json b/lodash.istypedarray/package.json index 50cf1ca2c..45484ce22 100644 --- a/lodash.istypedarray/package.json +++ b/lodash.istypedarray/package.json @@ -1,6 +1,6 @@ { "name": "lodash.istypedarray", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.isTypedArray` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.keys/README.md b/lodash.keys/README.md index 32a642d11..2bdf5e614 100644 --- a/lodash.keys/README.md +++ b/lodash.keys/README.md @@ -1,4 +1,4 @@ -# lodash.keys v3.0.1 +# lodash.keys v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.keys` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var keys = require('lodash.keys'); ``` -See the [documentation](https://lodash.com/docs#keys) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.keys) for more details. +See the [documentation](https://lodash.com/docs#keys) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.keys) for more details. diff --git a/lodash.keys/index.js b/lodash.keys/index.js index 58397edee..444fa5977 100644 --- a/lodash.keys/index.js +++ b/lodash.keys/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -13,9 +13,6 @@ var isArguments = require('lodash.isarguments'), /** Used for native method references. */ var objectProto = Object.prototype; -/** Used to detect DOM support. */ -var document = (document = global.window) && document.document; - /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; @@ -43,18 +40,6 @@ var support = {}; (function(x) { - /** - * Detect if the DOM is supported. - * - * @memberOf _.support - * @type boolean - */ - try { - support.dom = document.createDocumentFragment().nodeType === 11; - } catch(e) { - support.dom = false; - } - /** * Detect if `arguments` object indexes are non-enumerable. * diff --git a/lodash.keys/package.json b/lodash.keys/package.json index 2b3c8b6e6..e245109ea 100644 --- a/lodash.keys/package.json +++ b/lodash.keys/package.json @@ -1,6 +1,6 @@ { "name": "lodash.keys", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.keys` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.keysin/README.md b/lodash.keysin/README.md index aa7daa140..c6e55a0f8 100644 --- a/lodash.keysin/README.md +++ b/lodash.keysin/README.md @@ -1,4 +1,4 @@ -# lodash.keysin v3.0.1 +# lodash.keysin v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.keysIn` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var keysIn = require('lodash.keysin'); ``` -See the [documentation](https://lodash.com/docs#keysIn) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.keysin) for more details. +See the [documentation](https://lodash.com/docs#keysIn) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.keysin) for more details. diff --git a/lodash.keysin/index.js b/lodash.keysin/index.js index 23b5e2fc8..138893122 100644 --- a/lodash.keysin/index.js +++ b/lodash.keysin/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -12,9 +12,6 @@ var isArguments = require('lodash.isarguments'), /** Used for native method references. */ var objectProto = Object.prototype; -/** Used to detect DOM support. */ -var document = (document = global.window) && document.document; - /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; @@ -39,18 +36,6 @@ var support = {}; (function(x) { - /** - * Detect if the DOM is supported. - * - * @memberOf _.support - * @type boolean - */ - try { - support.dom = document.createDocumentFragment().nodeType === 11; - } catch(e) { - support.dom = false; - } - /** * Detect if `arguments` object indexes are non-enumerable. * diff --git a/lodash.keysin/package.json b/lodash.keysin/package.json index 5aae7060e..dd453b24c 100644 --- a/lodash.keysin/package.json +++ b/lodash.keysin/package.json @@ -1,6 +1,6 @@ { "name": "lodash.keysin", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.keysIn` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.lastindexof/LICENSE.txt b/lodash.lastindexof/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.lastindexof/LICENSE.txt +++ b/lodash.lastindexof/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.lastindexof/README.md b/lodash.lastindexof/README.md index 05802611d..4c705cac5 100644 --- a/lodash.lastindexof/README.md +++ b/lodash.lastindexof/README.md @@ -1,4 +1,4 @@ -# lodash.lastindexof v3.0.1 +# lodash.lastindexof v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.lastIndexOf` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var lastIndexOf = require('lodash.lastindexof'); ``` -See the [documentation](https://lodash.com/docs#lastIndexOf) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.lastindexof) for more details. +See the [documentation](https://lodash.com/docs#lastIndexOf) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.lastindexof) for more details. diff --git a/lodash.lastindexof/index.js b/lodash.lastindexof/index.js index cf9607bfb..311ace748 100644 --- a/lodash.lastindexof/index.js +++ b/lodash.lastindexof/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.2 @@ -10,7 +10,6 @@ var binaryIndex = require('lodash._binaryindex'); /** * Gets the index at which the first occurrence of `NaN` is found in `array`. - * If `fromRight` is provided elements of `array` are iterated from right to left. * * @private * @param {Array} array The array to search. @@ -71,7 +70,10 @@ function lastIndexOf(array, value, fromIndex) { } else if (fromIndex) { index = binaryIndex(array, value, true) - 1; var other = array[index]; - return (value === value ? value === other : other !== other) ? index : -1; + if (value === value ? (value === other) : (other !== other)) { + return index; + } + return -1; } if (value !== value) { return indexOfNaN(array, index, true); diff --git a/lodash.lastindexof/package.json b/lodash.lastindexof/package.json index afbb04cb3..1f3581838 100644 --- a/lodash.lastindexof/package.json +++ b/lodash.lastindexof/package.json @@ -1,6 +1,6 @@ { "name": "lodash.lastindexof", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.lastIndexOf` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.memoize/README.md b/lodash.memoize/README.md index 5783b1210..a153c61a7 100644 --- a/lodash.memoize/README.md +++ b/lodash.memoize/README.md @@ -1,4 +1,4 @@ -# lodash.memoize v3.0.1 +# lodash.memoize v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.memoize` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var memoize = require('lodash.memoize'); ``` -See the [documentation](https://lodash.com/docs#memoize) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.memoize) for more details. +See the [documentation](https://lodash.com/docs#memoize) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.memoize) for more details. diff --git a/lodash.memoize/index.js b/lodash.memoize/index.js index 3a9270872..fa3112917 100644 --- a/lodash.memoize/index.js +++ b/lodash.memoize/index.js @@ -1,12 +1,11 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ -var isFunction = require('lodash.isfunction'); /** Used as the `TypeError` message for "Functions" methods. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -139,7 +138,7 @@ function mapSet(key, value) { * // => { 'user': 'barney' } */ function memoize(func, resolver) { - if (!isFunction(func) || (resolver && !isFunction(resolver))) { + if (typeof func != 'function' || (resolver && typeof resolver != 'function')) { throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function() { diff --git a/lodash.memoize/package.json b/lodash.memoize/package.json index ae14238ad..4e71cb698 100644 --- a/lodash.memoize/package.json +++ b/lodash.memoize/package.json @@ -1,6 +1,6 @@ { "name": "lodash.memoize", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.memoize` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -15,8 +15,5 @@ "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, - "dependencies": { - "lodash.isfunction": "^3.0.0" - } + "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } } diff --git a/lodash.merge/README.md b/lodash.merge/README.md index d3fec31d1..27d4c58f9 100644 --- a/lodash.merge/README.md +++ b/lodash.merge/README.md @@ -1,4 +1,4 @@ -# lodash.merge v3.0.1 +# lodash.merge v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.merge` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var merge = require('lodash.merge'); ``` -See the [documentation](https://lodash.com/docs#merge) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.merge) for more details. +See the [documentation](https://lodash.com/docs#merge) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.merge) for more details. diff --git a/lodash.merge/index.js b/lodash.merge/index.js index 32ce185c7..0a09d8995 100644 --- a/lodash.merge/index.js +++ b/lodash.merge/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -61,8 +61,10 @@ function baseForOwn(object, iteratee) { * @returns {Object} Returns the destination object. */ function baseMerge(object, source, customizer, stackA, stackB) { + if (!isObject(object)) { + return object; + } var isSrcArr = isLength(source.length) && (isArray(source) || isTypedArray(source)); - (isSrcArr ? arrayEach : baseForOwn)(source, function(srcValue, key, source) { if (isObjectLike(srcValue)) { stackA || (stackA = []); @@ -157,6 +159,35 @@ function isLength(value) { return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } +/** + * Checks if `value` is the language type of `Object`. + * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. + * + * @static + * @memberOf _ + * @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(1); + * // => false + */ +function isObject(value) { + // Avoid a V8 JIT bug in Chrome 19-20. + // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. + var type = typeof value; + return type == 'function' || (value && type == 'object') || false; +} + /** * Recursively merges own enumerable properties of the source object(s), that * don't resolve to `undefined` into the destination object. Subsequent sources @@ -199,7 +230,9 @@ function isLength(value) { * }; * * _.merge(object, other, function(a, b) { - * return _.isArray(a) ? a.concat(b) : undefined; + * if (_.isArray(a)) { + * return a.concat(b); + * } * }); * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] } */ diff --git a/lodash.merge/package.json b/lodash.merge/package.json index 79cee3a7d..aecacc0d3 100644 --- a/lodash.merge/package.json +++ b/lodash.merge/package.json @@ -1,6 +1,6 @@ { "name": "lodash.merge", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.merge` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.mixin/README.md b/lodash.mixin/README.md index c85b76ebe..d404f7594 100644 --- a/lodash.mixin/README.md +++ b/lodash.mixin/README.md @@ -1,4 +1,4 @@ -# lodash.mixin v3.0.1 +# lodash.mixin v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.mixin` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var mixin = require('lodash.mixin'); ``` -See the [documentation](https://lodash.com/docs#mixin) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.mixin) for more details. +See the [documentation](https://lodash.com/docs#mixin) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.mixin) for more details. diff --git a/lodash.mixin/index.js b/lodash.mixin/index.js index d541ae449..8993637f7 100644 --- a/lodash.mixin/index.js +++ b/lodash.mixin/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.2 @@ -18,11 +18,9 @@ var arrayProto = Array.prototype; var push = arrayProto.push; /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -43,7 +41,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } /** @@ -51,10 +49,13 @@ function isObject(value) { * destination object. If `object` is a function then methods are added to * its prototype as well. * + * **Note:** Use `_.runInContext` to create a pristine `lodash` function to + * avoid conflicts caused by modifying the original. + * * @static * @memberOf _ * @category Utility - * @param {Function|Object} [object=this] object The destination object. + * @param {Function|Object} [object=lodash] The destination object. * @param {Object} source The object of functions to add. * @param {Object} [options] The options object. * @param {boolean} [options.chain=true] Specify whether the functions added @@ -68,7 +69,7 @@ function isObject(value) { * }); * } * - * // use `_.runInContext` to avoid potential conflicts (esp. in Node.js) + * // use `_.runInContext` to avoid conflicts (esp. in Node.js) * var _ = require('lodash').runInContext(); * * _.mixin({ 'vowels': vowels }); @@ -105,12 +106,10 @@ function mixin(object, source, options) { return function() { var chainAll = this.__chain__; if (chain || chainAll) { - var result = object(this.__wrapped__); - (result.__actions__ = arrayCopy(this.__actions__)).push({ - 'func': func, - 'args': arguments, - 'thisArg': object - }); + var result = object(this.__wrapped__), + actions = result.__actions__ = arrayCopy(this.__actions__); + + actions.push({ 'func': func, 'args': arguments, 'thisArg': object }); result.__chain__ = chainAll; return result; } diff --git a/lodash.mixin/package.json b/lodash.mixin/package.json index 39788ff57..f873bda7e 100644 --- a/lodash.mixin/package.json +++ b/lodash.mixin/package.json @@ -1,6 +1,6 @@ { "name": "lodash.mixin", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.mixin` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._basereduce/LICENSE.txt b/lodash.negate/LICENSE similarity index 56% rename from lodash._basereduce/LICENSE.txt rename to lodash.negate/LICENSE index 17764328c..e0c69d560 100644 --- a/lodash._basereduce/LICENSE.txt +++ b/lodash.negate/LICENSE @@ -1,7 +1,17 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Copyright jQuery Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors +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 @@ -20,3 +30,18 @@ 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. diff --git a/lodash.negate/LICENSE.txt b/lodash.negate/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash.negate/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. diff --git a/lodash.negate/README.md b/lodash.negate/README.md index ee212d5bd..0084680ed 100644 --- a/lodash.negate/README.md +++ b/lodash.negate/README.md @@ -1,20 +1,18 @@ -# lodash.negate v3.0.1 +# lodash.negate v3.0.2 -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.negate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. +The [lodash](https://lodash.com/) method `_.negate` exported as a [Node.js](https://nodejs.org/) module. ## Installation Using npm: - ```bash $ {sudo -H} npm i -g npm $ npm i --save lodash.negate ``` -In Node.js/io.js: - +In Node.js: ```js var negate = require('lodash.negate'); ``` -See the [documentation](https://lodash.com/docs#negate) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.negate) for more details. +See the [documentation](https://lodash.com/docs#negate) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.negate) for more details. diff --git a/lodash.negate/index.js b/lodash.negate/index.js index 65b8ddc49..30c454d62 100644 --- a/lodash.negate/index.js +++ b/lodash.negate/index.js @@ -1,10 +1,10 @@ /** * lodash (Custom Build) * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ /** Used as the `TypeError` message for "Functions" methods. */ @@ -35,7 +35,14 @@ function negate(predicate) { throw new TypeError(FUNC_ERROR_TEXT); } return function() { - return !predicate.apply(this, arguments); + var args = arguments; + switch (args.length) { + case 0: return !predicate.call(this); + case 1: return !predicate.call(this, args[0]); + case 2: return !predicate.call(this, args[0], args[1]); + case 3: return !predicate.call(this, args[0], args[1], args[2]); + } + return !predicate.apply(this, args); }; } diff --git a/lodash.negate/package.json b/lodash.negate/package.json index 9aacbbe14..e45c4842d 100644 --- a/lodash.negate/package.json +++ b/lodash.negate/package.json @@ -1,17 +1,15 @@ { "name": "lodash.negate", - "version": "3.0.1", - "description": "The modern build of lodash’s `_.negate` as a module.", + "version": "3.0.2", + "description": "The lodash method `_.negate` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", - "keywords": "lodash, lodash-modularized, stdlib, util", + "keywords": "lodash-modularized, negate", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", + "Blaine Bublitz (https://github.com/phated)", "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", diff --git a/lodash.curryright/LICENSE.txt b/lodash.parseint/LICENSE similarity index 100% rename from lodash.curryright/LICENSE.txt rename to lodash.parseint/LICENSE diff --git a/lodash.parseint/README.md b/lodash.parseint/README.md index b5dbcb80a..ce3b94244 100644 --- a/lodash.parseint/README.md +++ b/lodash.parseint/README.md @@ -1,4 +1,4 @@ -# lodash.parseint v3.0.1 +# lodash.parseint v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.parseInt` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var parseInt = require('lodash.parseint'); ``` -See the [documentation](https://lodash.com/docs#parseInt) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.parseint) for more details. +See the [documentation](https://lodash.com/docs#parseInt) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.parseint) for more details. diff --git a/lodash.parseint/index.js b/lodash.parseint/index.js index 9e08fad6b..02f86b0c3 100644 --- a/lodash.parseint/index.js +++ b/lodash.parseint/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.3 @@ -12,18 +12,6 @@ var isIterateeCall = require('lodash._isiterateecall'), /** Used to detect hexadecimal string values. */ var reHasHexPrefix = /^0[xX]/; -/** Used to detect and test for whitespace. */ -var whitespace = ( - // Basic whitespace characters. - ' \t\x0b\f\xa0\ufeff' + - - // Line terminators. - '\n\r\u2028\u2029' + - - // Unicode category "Zs" space separators. - '\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000' -); - /* Native method references for those with the same name as other `lodash` methods. */ var nativeParseInt = global.parseInt; @@ -51,25 +39,16 @@ var nativeParseInt = global.parseInt; * // => [6, 8, 10] */ function parseInt(string, radix, guard) { - if (guard && isIterateeCall(string, radix, guard)) { + // Firefox < 21 and Opera < 15 follow ES3 for `parseInt`. + // Chrome fails to trim leading whitespace characters. + // See https://code.google.com/p/v8/issues/detail?id=3109 for more details. + if (guard ? isIterateeCall(string, radix, guard) : radix == null) { radix = 0; + } else if (radix) { + radix = +radix; } - return nativeParseInt(string, radix); -} -// Fallback for environments with pre-ES5 implementations. -if (nativeParseInt(whitespace + '08') != 8) { - parseInt = function(string, radix, guard) { - // Firefox < 21 and Opera < 15 follow ES3 for `parseInt`. - // Chrome fails to trim leading whitespace characters. - // See https://code.google.com/p/v8/issues/detail?id=3109 for more details. - if (guard ? isIterateeCall(string, radix, guard) : radix == null) { - radix = 0; - } else if (radix) { - radix = +radix; - } - string = trim(string); - return nativeParseInt(string, radix || (reHasHexPrefix.test(string) ? 16 : 10)); - }; + string = trim(string); + return nativeParseInt(string, radix || (reHasHexPrefix.test(string) ? 16 : 10)); } module.exports = parseInt; diff --git a/lodash.parseint/package.json b/lodash.parseint/package.json index a510e8d7b..fe3052f30 100644 --- a/lodash.parseint/package.json +++ b/lodash.parseint/package.json @@ -1,6 +1,6 @@ { "name": "lodash.parseint", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.parseInt` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.pluck/README.md b/lodash.pluck/README.md index 0c0264488..651e31d87 100644 --- a/lodash.pluck/README.md +++ b/lodash.pluck/README.md @@ -1,4 +1,4 @@ -# lodash.pluck v3.0.1 +# lodash.pluck v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.pluck` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var pluck = require('lodash.pluck'); ``` -See the [documentation](https://lodash.com/docs#pluck) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.pluck) for more details. +See the [documentation](https://lodash.com/docs#pluck) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.pluck) for more details. diff --git a/lodash.pluck/index.js b/lodash.pluck/index.js index ba22aaa44..b2c21227d 100644 --- a/lodash.pluck/index.js +++ b/lodash.pluck/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -33,7 +33,7 @@ var baseProperty = require('lodash._baseproperty'), * // => [36, 40] (iteration order is not guaranteed) */ function pluck(collection, key) { - return map(collection, baseProperty(key + '')); + return map(collection, baseProperty(key)); } module.exports = pluck; diff --git a/lodash.pluck/package.json b/lodash.pluck/package.json index e2e51125f..ec3ff4914 100644 --- a/lodash.pluck/package.json +++ b/lodash.pluck/package.json @@ -1,6 +1,6 @@ { "name": "lodash.pluck", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.pluck` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.reescape/LICENSE.txt b/lodash.reescape/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash.reescape/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. diff --git a/lodash.reescape/README.md b/lodash.reescape/README.md deleted file mode 100644 index 63c24b504..000000000 --- a/lodash.reescape/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._reescape v3.0.1 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `reEscape` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.reescape -``` - -In Node.js/io.js: - -```js -var reEscape = require('lodash.reescape'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.reescape) for more details. diff --git a/lodash.reescape/index.js b/lodash.reescape/index.js deleted file mode 100644 index a1f06a103..000000000 --- a/lodash.reescape/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('lodash._reescape'); diff --git a/lodash.reescape/package.json b/lodash.reescape/package.json deleted file mode 100644 index b64564b00..000000000 --- a/lodash.reescape/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "lodash.reescape", - "version": "3.0.1", - "description": "The modern build of lodash’s internal `reEscape` as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "author": "John-David Dalton (http://allyoucanleet.com/)", - "contributors": [ - "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", - "Mathias Bynens (https://mathiasbynens.be/)" - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, - "dependencies": { - "lodash._reescape": "^3.0.0" - } -} diff --git a/lodash.reevaluate/LICENSE.txt b/lodash.reevaluate/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash.reevaluate/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. diff --git a/lodash.reevaluate/README.md b/lodash.reevaluate/README.md deleted file mode 100644 index 6b3a7c368..000000000 --- a/lodash.reevaluate/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._reevaluate v3.0.1 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `reEvaluate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.reevaluate -``` - -In Node.js/io.js: - -```js -var reEvaluate = require('lodash.reevaluate'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.reevaluate) for more details. diff --git a/lodash.reevaluate/index.js b/lodash.reevaluate/index.js deleted file mode 100644 index e94b069b4..000000000 --- a/lodash.reevaluate/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('lodash._reevaluate'); diff --git a/lodash.reevaluate/package.json b/lodash.reevaluate/package.json deleted file mode 100644 index 8e4b412ec..000000000 --- a/lodash.reevaluate/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "lodash.reevaluate", - "version": "3.0.1", - "description": "The modern build of lodash’s internal `reEvaluate` as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "author": "John-David Dalton (http://allyoucanleet.com/)", - "contributors": [ - "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", - "Mathias Bynens (https://mathiasbynens.be/)" - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, - "dependencies": { - "lodash._reevaluate": "^3.0.0" - } -} diff --git a/lodash.reinterpolate/LICENSE.txt b/lodash.reinterpolate/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash.reinterpolate/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. diff --git a/lodash.reinterpolate/README.md b/lodash.reinterpolate/README.md deleted file mode 100644 index c762c1715..000000000 --- a/lodash.reinterpolate/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._reinterpolate v3.0.1 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `reInterpolate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.reinterpolate -``` - -In Node.js/io.js: - -```js -var reInterpolate = require('lodash.reinterpolate'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.reinterpolate) for more details. diff --git a/lodash.reinterpolate/index.js b/lodash.reinterpolate/index.js deleted file mode 100644 index 6b7b738e2..000000000 --- a/lodash.reinterpolate/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('lodash._reinterpolate'); diff --git a/lodash.reinterpolate/package.json b/lodash.reinterpolate/package.json deleted file mode 100644 index 1c88e54cb..000000000 --- a/lodash.reinterpolate/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "lodash.reinterpolate", - "version": "3.0.1", - "description": "The modern build of lodash’s internal `reInterpolate` as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "author": "John-David Dalton (http://allyoucanleet.com/)", - "contributors": [ - "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", - "Mathias Bynens (https://mathiasbynens.be/)" - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, - "dependencies": { - "lodash._reinterpolate": "^3.0.0" - } -} diff --git a/lodash.size/README.md b/lodash.size/README.md index 693222926..3e9c8704f 100644 --- a/lodash.size/README.md +++ b/lodash.size/README.md @@ -1,4 +1,4 @@ -# lodash.size v3.0.1 +# lodash.size v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.size` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var size = require('lodash.size'); ``` -See the [documentation](https://lodash.com/docs#size) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.size) for more details. +See the [documentation](https://lodash.com/docs#size) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.size) for more details. diff --git a/lodash.size/index.js b/lodash.size/index.js index 2df6137be..6e4230bb7 100644 --- a/lodash.size/index.js +++ b/lodash.size/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.3 @@ -9,10 +9,10 @@ var keys = require('lodash.keys'); /** - * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) + * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer) * of an array-like value. */ -var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; +var MAX_SAFE_INTEGER = 9007199254740991; /** * The base implementation of `_.property` without support for deep paths. @@ -42,7 +42,7 @@ var getLength = baseProperty('length'); /** * Checks if `value` is a valid array-like length. * - * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength). + * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). * * @private * @param {*} value The value to check. diff --git a/lodash.size/package.json b/lodash.size/package.json index 5bc597f89..7433e5da3 100644 --- a/lodash.size/package.json +++ b/lodash.size/package.json @@ -1,6 +1,6 @@ { "name": "lodash.size", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.size` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.support/README.md b/lodash.support/README.md index e1f75ba04..eb9c46cfb 100644 --- a/lodash.support/README.md +++ b/lodash.support/README.md @@ -1,4 +1,4 @@ -# lodash.support v3.0.1 +# lodash.support v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.support` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var support = require('lodash.support'); ``` -See the [documentation](https://lodash.com/docs#support) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.support) for more details. +See the [documentation](https://lodash.com/docs#support) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.support) for more details. diff --git a/lodash.support/index.js b/lodash.support/index.js index e2571497f..5c4fcf964 100644 --- a/lodash.support/index.js +++ b/lodash.support/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.3 @@ -27,6 +27,7 @@ var support = {}; (function(x) { var Ctor = function() { this.x = x; }, + args = arguments, object = { '0': x, 'length': x }, props = []; @@ -58,7 +59,7 @@ var support = {}; * @type boolean */ try { - support.nonEnumArgs = !propertyIsEnumerable.call(arguments, 1); + support.nonEnumArgs = !propertyIsEnumerable.call(args, 1); } catch(e) { support.nonEnumArgs = true; } diff --git a/lodash.support/package.json b/lodash.support/package.json index a4875f6ad..825afb883 100644 --- a/lodash.support/package.json +++ b/lodash.support/package.json @@ -1,6 +1,6 @@ { "name": "lodash.support", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.support` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.throttle/LICENSE.txt b/lodash.throttle/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.throttle/LICENSE.txt +++ b/lodash.throttle/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.throttle/README.md b/lodash.throttle/README.md index 4f15501cc..192b2a65e 100644 --- a/lodash.throttle/README.md +++ b/lodash.throttle/README.md @@ -1,4 +1,4 @@ -# lodash.throttle v3.0.1 +# lodash.throttle v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.throttle` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var throttle = require('lodash.throttle'); ``` -See the [documentation](https://lodash.com/docs#throttle) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.throttle) for more details. +See the [documentation](https://lodash.com/docs#throttle) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.throttle) for more details. diff --git a/lodash.throttle/index.js b/lodash.throttle/index.js index 889659f5d..4bdf262ce 100644 --- a/lodash.throttle/index.js +++ b/lodash.throttle/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -77,11 +77,9 @@ function throttle(func, wait, options) { } /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -102,7 +100,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } module.exports = throttle; diff --git a/lodash.throttle/package.json b/lodash.throttle/package.json index e57548773..33a016a4f 100644 --- a/lodash.throttle/package.json +++ b/lodash.throttle/package.json @@ -1,6 +1,6 @@ { "name": "lodash.throttle", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.throttle` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.times/README.md b/lodash.times/README.md index b792c4e04..e2dff6178 100644 --- a/lodash.times/README.md +++ b/lodash.times/README.md @@ -1,4 +1,4 @@ -# lodash.times v3.0.1 +# lodash.times v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.times` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var times = require('lodash.times'); ``` -See the [documentation](https://lodash.com/docs#times) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.times) for more details. +See the [documentation](https://lodash.com/docs#times) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.times) for more details. diff --git a/lodash.times/index.js b/lodash.times/index.js index c8606e329..309d22393 100644 --- a/lodash.times/index.js +++ b/lodash.times/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.3 @@ -16,7 +16,7 @@ var nativeIsFinite = global.isFinite, nativeMin = Math.min; /** Used as references for the maximum length and index of an array. */ -var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1; +var MAX_ARRAY_LENGTH = 4294967295; /** * Invokes the iteratee function `n` times, returning an array of the results diff --git a/lodash.times/package.json b/lodash.times/package.json index 10e22aaea..8ae76d4b4 100644 --- a/lodash.times/package.json +++ b/lodash.times/package.json @@ -1,6 +1,6 @@ { "name": "lodash.times", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.times` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.toarray/README.md b/lodash.toarray/README.md index d5cabb980..e03179715 100644 --- a/lodash.toarray/README.md +++ b/lodash.toarray/README.md @@ -1,4 +1,4 @@ -# lodash.toarray v3.0.1 +# lodash.toarray v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.toArray` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var toArray = require('lodash.toarray'); ``` -See the [documentation](https://lodash.com/docs#toArray) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.toarray) for more details. +See the [documentation](https://lodash.com/docs#toArray) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.toarray) for more details. diff --git a/lodash.toarray/index.js b/lodash.toarray/index.js index 9d31024bd..3f88ee476 100644 --- a/lodash.toarray/index.js +++ b/lodash.toarray/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.3 @@ -11,10 +11,10 @@ var arrayCopy = require('lodash._arraycopy'), keys = require('lodash.keys'); /** - * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) + * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer) * of an array-like value. */ -var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; +var MAX_SAFE_INTEGER = 9007199254740991; /** * The base implementation of `_.property` without support for deep paths. @@ -44,7 +44,7 @@ var getLength = baseProperty('length'); /** * Checks if `value` is a valid array-like length. * - * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength). + * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). * * @private * @param {*} value The value to check. diff --git a/lodash.toarray/package.json b/lodash.toarray/package.json index 4b74bb79c..83428b5cc 100644 --- a/lodash.toarray/package.json +++ b/lodash.toarray/package.json @@ -1,6 +1,6 @@ { "name": "lodash.toarray", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.toArray` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.transform/LICENSE.txt b/lodash.transform/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.transform/LICENSE.txt +++ b/lodash.transform/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.transform/README.md b/lodash.transform/README.md index 0ccb779e6..19a9630fb 100644 --- a/lodash.transform/README.md +++ b/lodash.transform/README.md @@ -1,4 +1,4 @@ -# lodash.transform v3.0.1 +# lodash.transform v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.transform` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var transform = require('lodash.transform'); ``` -See the [documentation](https://lodash.com/docs#transform) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.transform) for more details. +See the [documentation](https://lodash.com/docs#transform) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.transform) for more details. diff --git a/lodash.transform/index.js b/lodash.transform/index.js index a269c9cab..286662c2d 100644 --- a/lodash.transform/index.js +++ b/lodash.transform/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -29,11 +29,9 @@ function baseForOwn(object, iteratee) { } /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -54,7 +52,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } /** @@ -62,7 +60,7 @@ function isObject(value) { * `accumulator` object which is the result of running each of its own enumerable * properties through `iteratee`, with each invocation potentially mutating * the `accumulator` object. The `iteratee` is bound to `thisArg` and invoked - * with four arguments; (accumulator, value, key, object). Iterator functions + * with four arguments: (accumulator, value, key, object). Iteratee functions * may exit iteration early by explicitly returning `false`. * * @static diff --git a/lodash.transform/package.json b/lodash.transform/package.json index b07d5e038..cdab04239 100644 --- a/lodash.transform/package.json +++ b/lodash.transform/package.json @@ -1,6 +1,6 @@ { "name": "lodash.transform", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.transform` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.trimleft/README.md b/lodash.trimleft/README.md index e960e87ef..937c73741 100644 --- a/lodash.trimleft/README.md +++ b/lodash.trimleft/README.md @@ -1,4 +1,4 @@ -# lodash.trimleft v3.0.1 +# lodash.trimleft v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.trimLeft` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var trimLeft = require('lodash.trimleft'); ``` -See the [documentation](https://lodash.com/docs#trimLeft) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.trimleft) for more details. +See the [documentation](https://lodash.com/docs#trimLeft) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.trimleft) for more details. diff --git a/lodash.trimleft/index.js b/lodash.trimleft/index.js index 3dcb2ef6c..c7722fbde 100644 --- a/lodash.trimleft/index.js +++ b/lodash.trimleft/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -36,7 +36,7 @@ function trimLeft(string, chars, guard) { return string; } if (guard ? isIterateeCall(value, chars, guard) : chars == null) { - return string.slice(trimmedLeftIndex(string)) + return string.slice(trimmedLeftIndex(string)); } return string.slice(charsLeftIndex(string, (chars + ''))); } diff --git a/lodash.trimleft/package.json b/lodash.trimleft/package.json index dda04609c..0dd1cab1d 100644 --- a/lodash.trimleft/package.json +++ b/lodash.trimleft/package.json @@ -1,6 +1,6 @@ { "name": "lodash.trimleft", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.trimLeft` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.trimright/README.md b/lodash.trimright/README.md index d59c6ce8f..7e54a1278 100644 --- a/lodash.trimright/README.md +++ b/lodash.trimright/README.md @@ -1,4 +1,4 @@ -# lodash.trimright v3.0.1 +# lodash.trimright v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.trimRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var trimRight = require('lodash.trimright'); ``` -See the [documentation](https://lodash.com/docs#trimRight) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.trimright) for more details. +See the [documentation](https://lodash.com/docs#trimRight) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.trimright) for more details. diff --git a/lodash.trimright/index.js b/lodash.trimright/index.js index 6e2b22d63..d7b033e3d 100644 --- a/lodash.trimright/index.js +++ b/lodash.trimright/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -36,7 +36,7 @@ function trimRight(string, chars, guard) { return string; } if (guard ? isIterateeCall(value, chars, guard) : chars == null) { - return string.slice(0, trimmedRightIndex(string) + 1) + return string.slice(0, trimmedRightIndex(string) + 1); } return string.slice(0, charsRightIndex(string, (chars + '')) + 1); } diff --git a/lodash.trimright/package.json b/lodash.trimright/package.json index 5e91aa05f..122c7cb00 100644 --- a/lodash.trimright/package.json +++ b/lodash.trimright/package.json @@ -1,6 +1,6 @@ { "name": "lodash.trimright", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.trimRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.trunc/README.md b/lodash.trunc/README.md index 8bf972f7e..05bda9f80 100644 --- a/lodash.trunc/README.md +++ b/lodash.trunc/README.md @@ -1,4 +1,4 @@ -# lodash.trunc v3.0.1 +# lodash.trunc v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.trunc` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var trunc = require('lodash.trunc'); ``` -See the [documentation](https://lodash.com/docs#trunc) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.trunc) for more details. +See the [documentation](https://lodash.com/docs#trunc) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.trunc) for more details. diff --git a/lodash.trunc/index.js b/lodash.trunc/index.js index cb0486d7c..7c4f04d13 100644 --- a/lodash.trunc/index.js +++ b/lodash.trunc/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.2 @@ -18,11 +18,9 @@ var DEFAULT_TRUNC_LENGTH = 30, var reFlags = /\w*$/; /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -43,7 +41,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } /** @@ -79,7 +77,7 @@ function isObject(value) { * 'length': 24, * 'separator': /,? +/ * }); - * //=> 'hi-diddly-ho there...' + * // => 'hi-diddly-ho there...' * * _.trunc('hi-diddly-ho there, neighborino', { * 'omission': ' [...]' diff --git a/lodash.trunc/package.json b/lodash.trunc/package.json index a4c65a38b..a61717b08 100644 --- a/lodash.trunc/package.json +++ b/lodash.trunc/package.json @@ -1,6 +1,6 @@ { "name": "lodash.trunc", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.trunc` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isboolean/LICENSE.txt b/lodash.words/LICENSE similarity index 100% rename from lodash.isboolean/LICENSE.txt rename to lodash.words/LICENSE diff --git a/lodash.words/LICENSE.txt b/lodash.words/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash.words/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. diff --git a/lodash.words/README.md b/lodash.words/README.md index 4ca06c9db..9b79fa13d 100644 --- a/lodash.words/README.md +++ b/lodash.words/README.md @@ -1,4 +1,4 @@ -# lodash.words v3.0.1 +# lodash.words v3.0.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.words` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var words = require('lodash.words'); ``` -See the [documentation](https://lodash.com/docs#words) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.words) for more details. +See the [documentation](https://lodash.com/docs#words) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.words) for more details. diff --git a/lodash.words/index.js b/lodash.words/index.js index 72f43a055..e593dc6f7 100644 --- a/lodash.words/index.js +++ b/lodash.words/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.1 (Custom Build) + * lodash 3.0.2 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.2 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -37,7 +37,7 @@ var reWords = (function() { */ function words(string, pattern, guard) { if (guard && isIterateeCall(string, pattern, guard)) { - pattern = null; + pattern = undefined; } string = baseToString(string); return string.match(pattern || reWords) || []; diff --git a/lodash.words/package.json b/lodash.words/package.json index ea937b3c1..ccceda164 100644 --- a/lodash.words/package.json +++ b/lodash.words/package.json @@ -1,6 +1,6 @@ { "name": "lodash.words", - "version": "3.0.1", + "version": "3.0.2", "description": "The modern build of lodash’s `_.words` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg",