Bump to v3.2.2.

This commit is contained in:
jdalton
2015-03-08 20:19:46 -07:00
committed by John-David Dalton
parent 2a20de4a1e
commit 45b95364ef
35 changed files with 336 additions and 122 deletions

View File

@@ -1,4 +1,4 @@
# lodash.invoke v3.2.1
# lodash.invoke v3.2.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.invoke` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var invoke = require('lodash.invoke');
```
See the [documentation](https://lodash.com/docs#invoke) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.invoke) for more details.
See the [documentation](https://lodash.com/docs#invoke) or [package source](https://github.com/lodash/lodash/blob/3.2.2-npm-packages/lodash.invoke) for more details.

View File

@@ -1,5 +1,5 @@
/**
* lodash 3.2.1 (Custom Build) <https://lodash.com/>
* lodash 3.2.2 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -19,7 +19,7 @@ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,
* 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;
var MAX_SAFE_INTEGER = 9007199254740991;
/**
* The base implementation of `_.property` without support for deep paths.
@@ -91,7 +91,7 @@ function isLength(value) {
}
/**
* 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.
@@ -102,7 +102,7 @@ function toObject(value) {
}
/**
* Invokes the method at `path` on each element in `collection`, returning
* Invokes the method at `path` of each element in `collection`, returning
* an array of the results of each invoked method. Any additional arguments
* are provided to each invoked method. If `methodName` is a function it is
* invoked for, and `this` bound to, each element in `collection`.
@@ -130,7 +130,7 @@ var invoke = restParam(function(collection, path, args) {
result = isArrayLike(collection) ? Array(collection.length) : [];
baseEach(collection, function(value) {
var func = isFunc ? path : (isProp && value != null && value[path]);
var func = isFunc ? path : ((isProp && value != null) ? value[path] : null);
result[++index] = func ? func.apply(value, args) : invokePath(value, path, args);
});
return result;
@@ -160,7 +160,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 = invoke;

View File

@@ -1,6 +1,6 @@
{
"name": "lodash.invoke",
"version": "3.2.1",
"version": "3.2.2",
"description": "The modern build of lodashs `_.invoke` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",