Bump to v4.4.1.

This commit is contained in:
John-David Dalton
2016-03-01 21:08:54 -08:00
parent fb1f99d9d9
commit 7059f72e9c
95 changed files with 394 additions and 5947 deletions

View File

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

View File

@@ -1,5 +1,5 @@
/**
* lodash 4.4.0 (Custom Build) <https://lodash.com/>
* lodash (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>
@@ -55,6 +55,19 @@ function arrayMap(array, iteratee) {
return result;
}
/**
* 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 capped function.
*/
function baseUnary(func) {
return function(value) {
return func(value);
};
}
/** Used for built-in method references. */
var objectProto = Object.prototype;
@@ -113,7 +126,10 @@ function isFlattenableIteratee(value) {
* // => [100, 10]
*/
var overArgs = rest(function(func, transforms) {
transforms = arrayMap(baseFlatten(transforms, 1, isFlattenableIteratee), baseIteratee);
transforms = (transforms.length == 1 && isArray(transforms[0]))
? arrayMap(transforms[0], baseUnary(baseIteratee))
: arrayMap(baseFlatten(transforms, 1, isFlattenableIteratee), baseUnary(baseIteratee));
var funcsLength = transforms.length;
return rest(function(args) {
var index = -1,

View File

@@ -1,6 +1,6 @@
{
"name": "lodash.overargs",
"version": "4.4.0",
"version": "4.4.1",
"description": "The lodash method `_.overArgs` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",