From 2017284ed9739fe4fc499b1c28e862555d8f0708 Mon Sep 17 00:00:00 2001 From: jdalton Date: Sun, 8 Mar 2015 20:25:13 -0700 Subject: [PATCH] Bump to v3.4.1. --- README.md | 2 +- lodash._basesortbyorder/README.md | 4 ++-- lodash._basesortbyorder/index.js | 14 ++++------- lodash._basesortbyorder/package.json | 2 +- lodash._createcomposer/README.md | 4 ++-- lodash._createcomposer/index.js | 4 ++-- lodash._createcomposer/package.json | 2 +- lodash.add/README.md | 4 ++-- lodash.add/index.js | 6 ++--- lodash.add/package.json | 2 +- lodash.sortbyorder/README.md | 4 ++-- lodash.sortbyorder/index.js | 35 +--------------------------- lodash.sortbyorder/package.json | 2 +- 13 files changed, 24 insertions(+), 61 deletions(-) diff --git a/README.md b/README.md index 15a126184..66a6a5ff5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# lodash v3.4.0 +# lodash v3.4.1 The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method. diff --git a/lodash._basesortbyorder/README.md b/lodash._basesortbyorder/README.md index 36898d01b..e202828fa 100644 --- a/lodash._basesortbyorder/README.md +++ b/lodash._basesortbyorder/README.md @@ -1,4 +1,4 @@ -# lodash._basesortbyorder v3.4.0 +# lodash._basesortbyorder v3.4.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseSortByOrder` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseSortByOrder = require('lodash._basesortbyorder'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.4.0-npm-packages/lodash._basesortbyorder) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.4.1-npm-packages/lodash._basesortbyorder) for more details. diff --git a/lodash._basesortbyorder/index.js b/lodash._basesortbyorder/index.js index e2ba883f0..2c9c27712 100644 --- a/lodash._basesortbyorder/index.js +++ b/lodash._basesortbyorder/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.4.0 (Custom Build) + * lodash 3.4.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.2 @@ -36,9 +36,8 @@ function compareMultiple(object, other, orders) { if (result) { if (index >= ordersLength) { return result; - } else { - return orders[index] ? result : result * -1; } + return result * (orders[index] ? 1 : -1); } } // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications @@ -52,9 +51,8 @@ function compareMultiple(object, other, orders) { } /** - * 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; @@ -90,9 +88,7 @@ function baseSortByOrder(collection, props, orders) { /** * 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. diff --git a/lodash._basesortbyorder/package.json b/lodash._basesortbyorder/package.json index b515b524d..7de981a98 100644 --- a/lodash._basesortbyorder/package.json +++ b/lodash._basesortbyorder/package.json @@ -1,6 +1,6 @@ { "name": "lodash._basesortbyorder", - "version": "3.4.0", + "version": "3.4.1", "description": "The modern build of lodash’s internal `baseSortByOrder` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._createcomposer/README.md b/lodash._createcomposer/README.md index 4f6b77bfc..3c9afcf10 100644 --- a/lodash._createcomposer/README.md +++ b/lodash._createcomposer/README.md @@ -1,4 +1,4 @@ -# lodash._createcomposer v3.4.0 +# lodash._createcomposer v3.4.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `createComposer` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var createComposer = require('lodash._createcomposer'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.4.0-npm-packages/lodash._createcomposer) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.4.1-npm-packages/lodash._createcomposer) for more details. diff --git a/lodash._createcomposer/index.js b/lodash._createcomposer/index.js index d794b884c..e695518c0 100644 --- a/lodash._createcomposer/index.js +++ b/lodash._createcomposer/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.4.0 (Custom Build) + * lodash 3.4.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.2 @@ -21,7 +21,7 @@ function createComposer(fromRight) { return function() { var length = arguments.length, index = length, - fromIndex = fromRight ? length - 1 : 0; + fromIndex = fromRight ? (length - 1) : 0; if (!length) { return function() { return arguments[0]; }; diff --git a/lodash._createcomposer/package.json b/lodash._createcomposer/package.json index 62a91ff4b..0722432a4 100644 --- a/lodash._createcomposer/package.json +++ b/lodash._createcomposer/package.json @@ -1,6 +1,6 @@ { "name": "lodash._createcomposer", - "version": "3.4.0", + "version": "3.4.1", "description": "The modern build of lodash’s internal `createComposer` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.add/README.md b/lodash.add/README.md index cf8c8c0ab..7595fdce0 100644 --- a/lodash.add/README.md +++ b/lodash.add/README.md @@ -1,4 +1,4 @@ -# lodash.add v3.4.0 +# lodash.add v3.4.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.add` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var add = require('lodash.add'); ``` -See the [documentation](https://lodash.com/docs#add) or [package source](https://github.com/lodash/lodash/blob/3.4.0-npm-packages/lodash.add) for more details. +See the [documentation](https://lodash.com/docs#add) or [package source](https://github.com/lodash/lodash/blob/3.4.1-npm-packages/lodash.add) for more details. diff --git a/lodash.add/index.js b/lodash.add/index.js index 654629e52..abcefc9e7 100644 --- a/lodash.add/index.js +++ b/lodash.add/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.4.0 (Custom Build) + * lodash 3.4.1 (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,7 +22,7 @@ * // => 10 */ function add(augend, addend) { - return augend + addend; + return (+augend || 0) + (+addend || 0); } module.exports = add; diff --git a/lodash.add/package.json b/lodash.add/package.json index 1e46aac14..9a7bcaea1 100644 --- a/lodash.add/package.json +++ b/lodash.add/package.json @@ -1,6 +1,6 @@ { "name": "lodash.add", - "version": "3.4.0", + "version": "3.4.1", "description": "The modern build of lodash’s `_.add` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.sortbyorder/README.md b/lodash.sortbyorder/README.md index 217fb3ff6..1d6a7f38b 100644 --- a/lodash.sortbyorder/README.md +++ b/lodash.sortbyorder/README.md @@ -1,4 +1,4 @@ -# lodash.sortbyorder v3.4.0 +# lodash.sortbyorder v3.4.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.sortByOrder` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var sortByOrder = require('lodash.sortbyorder'); ``` -See the [documentation](https://lodash.com/docs#sortByOrder) or [package source](https://github.com/lodash/lodash/blob/3.4.0-npm-packages/lodash.sortbyorder) for more details. +See the [documentation](https://lodash.com/docs#sortByOrder) or [package source](https://github.com/lodash/lodash/blob/3.4.1-npm-packages/lodash.sortbyorder) for more details. diff --git a/lodash.sortbyorder/index.js b/lodash.sortbyorder/index.js index 550493f4f..1fa057738 100644 --- a/lodash.sortbyorder/index.js +++ b/lodash.sortbyorder/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.4.0 (Custom Build) + * lodash 3.4.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.2 @@ -11,39 +11,6 @@ var baseEach = require('lodash._baseeach'), isIterateeCall = require('lodash._isiterateecall'), isArray = require('lodash.isarray'); -/** - * 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') || false; -} - -/** - * 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. - */ -var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; - -/** - * 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. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. - */ -function isLength(value) { - return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; -} - /** * This method is like `_.sortByAll` except that it allows specifying the * sort orders of the property names to sort by. A truthy value in `orders` diff --git a/lodash.sortbyorder/package.json b/lodash.sortbyorder/package.json index 05bb5fb81..65c8e826e 100644 --- a/lodash.sortbyorder/package.json +++ b/lodash.sortbyorder/package.json @@ -1,6 +1,6 @@ { "name": "lodash.sortbyorder", - "version": "3.4.0", + "version": "3.4.1", "description": "The modern build of lodash’s `_.sortByOrder` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg",