Bump to v4.3.1.

This commit is contained in:
John-David Dalton
2016-02-16 00:58:24 -08:00
parent 607a8b4075
commit 5b0364fb20
131 changed files with 715 additions and 8345 deletions

View File

@@ -1,4 +1,4 @@
# lodash.orderby v4.3.0
# lodash.orderby v4.3.1
The [lodash](https://lodash.com/) method `_.orderBy` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var orderBy = require('lodash.orderby');
```
See the [documentation](https://lodash.com/docs#orderBy) or [package source](https://github.com/lodash/lodash/blob/4.3.0-npm-packages/lodash.orderby) for more details.
See the [documentation](https://lodash.com/docs#orderBy) or [package source](https://github.com/lodash/lodash/blob/4.3.1-npm-packages/lodash.orderby) for more details.

View File

@@ -1,5 +1,5 @@
/**
* lodash 4.3.0 (Custom Build) <https://lodash.com/>
* lodash 4.3.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Released under MIT license <https://lodash.com/license>
@@ -56,6 +56,19 @@ function baseSortBy(array, comparer) {
return array;
}
/**
* The base implementation of `_.unary` without support for storing wrapper metadata.
*
* @private
* @param {Function} func The function to cap arguments for.
* @returns {Function} Returns the new function.
*/
function baseUnary(func) {
return function(value) {
return func(value);
};
}
/**
* Compares values to sort them in ascending order.
*
@@ -168,7 +181,7 @@ function baseMap(collection, iteratee) {
*/
function baseOrderBy(collection, iteratees, orders) {
var index = -1;
iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseIteratee);
iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));
var result = baseMap(collection, function(value, key, collection) {
var criteria = arrayMap(iteratees, function(iteratee) {

View File

@@ -1,6 +1,6 @@
{
"name": "lodash.orderby",
"version": "4.3.0",
"version": "4.3.1",
"description": "The lodash method `_.orderBy` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",