Compare commits

...

1 Commits

Author SHA1 Message Date
jdalton
dbf44fcc0b Bump to v3.5.3. 2018-02-03 19:13:32 -08:00
5 changed files with 16 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
# lodash v3.5.2 # lodash v3.5.3
The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method. The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method.

View File

@@ -1,4 +1,4 @@
# lodash._basesortbyorder v3.5.2 # lodash._basesortbyorder v3.5.3
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) internal `baseSortByOrder` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](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'); var baseSortByOrder = require('lodash._basesortbyorder');
``` ```
See the [package source](https://github.com/lodash/lodash/blob/3.5.2-npm-packages/lodash._basesortbyorder) for more details. See the [package source](https://github.com/lodash/lodash/blob/3.5.3-npm-packages/lodash._basesortbyorder) for more details.

View File

@@ -1,5 +1,5 @@
/** /**
* lodash 3.5.2 (Custom Build) <https://lodash.com/> * lodash 3.5.3 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -13,16 +13,16 @@ var arrayMap = require('lodash._arraymap'),
baseSortBy = require('lodash._basesortby'); baseSortBy = require('lodash._basesortby');
/** /**
* Used by `_.sortByOrder` to compare multiple properties of each element * Used by `_.sortByOrder` to compare multiple properties of a value to another
* in a collection and stable sort them in the following order: * and stable sort them.
* *
* If `orders` is unspecified, sort in ascending order for all properties. * If `orders` is unspecified, all valuess are sorted in ascending order. Otherwise,
* Otherwise, for each property, sort in ascending order if its corresponding value in * a value is sorted in ascending order if its corresponding order is "asc", and
* orders is true, and descending order if false. * descending if "desc".
* *
* @private * @private
* @param {Object} object The object to compare to `other`. * @param {Object} object The object to compare.
* @param {Object} other The object to compare to `object`. * @param {Object} other The other object to compare.
* @param {boolean[]} orders The order to sort by for each property. * @param {boolean[]} orders The order to sort by for each property.
* @returns {number} Returns the sort order indicator for `object`. * @returns {number} Returns the sort order indicator for `object`.
*/ */
@@ -39,7 +39,8 @@ function compareMultiple(object, other, orders) {
if (index >= ordersLength) { if (index >= ordersLength) {
return result; return result;
} }
return result * (orders[index] ? 1 : -1); var order = orders[index];
return result * ((order === 'asc' || order === true) ? 1 : -1);
} }
} }
// Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
@@ -53,7 +54,7 @@ function compareMultiple(object, other, orders) {
} }
/** /**
* 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. * of an array-like value.
*/ */
var MAX_SAFE_INTEGER = 9007199254740991; var MAX_SAFE_INTEGER = 9007199254740991;
@@ -140,7 +141,7 @@ function isArrayLike(value) {
/** /**
* Checks if `value` is a valid array-like 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 * @private
* @param {*} value The value to check. * @param {*} value The value to check.

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash._basesortbyorder", "name": "lodash._basesortbyorder",
"version": "3.5.2", "version": "3.5.3",
"description": "The modern build of lodashs internal `baseSortByOrder` as a module.", "description": "The modern build of lodashs internal `baseSortByOrder` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",