Bump to v4.2.1.

This commit is contained in:
John-David Dalton
2016-02-15 12:01:21 -08:00
parent fdf249c94e
commit 3b6af7b0a3
269 changed files with 1098 additions and 1145 deletions

View File

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

View File

@@ -1,5 +1,5 @@
/**
* lodash 4.2.0 (Custom Build) <https://lodash.com/>
* lodash 4.2.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -86,7 +86,8 @@ var objectProto = Object.prototype;
var objectToString = objectProto.toString;
/** Built-in value references. */
var objectCreate = Object.create;
var getPrototypeOf = Object.getPrototypeOf,
objectCreate = Object.create;
/**
* The base implementation of `_.create` without support for assigning
@@ -155,8 +156,8 @@ var isArray = Array.isArray;
*/
function isFunction(value) {
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 8 which returns 'object' for typed array constructors, and
// PhantomJS 1.9 which returns 'function' for `NodeList` instances.
// in Safari 8 which returns 'object' for typed array and weak map constructors,
// and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
var tag = isObject(value) ? objectToString.call(value) : '';
return tag == funcTag || tag == genTag;
}
@@ -304,7 +305,7 @@ function transform(object, iteratee, accumulator) {
if (isArr) {
accumulator = isArray(object) ? new Ctor : [];
} else {
accumulator = baseCreate(isFunction(Ctor) ? Ctor.prototype : undefined);
accumulator = isFunction(Ctor) ? baseCreate(getPrototypeOf(object)) : {};
}
} else {
accumulator = {};

View File

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