Bump to v4.5.1.

This commit is contained in:
John-David Dalton
2016-02-24 08:12:35 -08:00
parent 0ceb6d1dad
commit 33d94a2a5e
178 changed files with 926 additions and 2372 deletions

View File

@@ -1,4 +1,4 @@
# lodash._baseclone v4.5.0
# lodash._baseclone v4.5.1
The internal [lodash](https://lodash.com/) function `baseClone` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var baseClone = require('lodash._baseclone');
```
See the [package source](https://github.com/lodash/lodash/blob/4.5.0-npm-packages/lodash._baseclone) for more details.
See the [package source](https://github.com/lodash/lodash/blob/4.5.1-npm-packages/lodash._baseclone) for more details.

View File

@@ -1,5 +1,5 @@
/**
* lodash 4.5.0 (Custom Build) <https://lodash.com/>
* lodash 4.5.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>
@@ -701,8 +701,7 @@ function assocSet(array, key, value) {
*/
function assignValue(object, key, value) {
var objValue = object[key];
if ((!eq(objValue, value) ||
(eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) ||
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
(value === undefined && !(key in object))) {
object[key] = value;
}
@@ -1159,11 +1158,9 @@ function initCloneArray(array) {
* @returns {Object} Returns the initialized clone.
*/
function initCloneObject(object) {
if (isPrototype(object)) {
return {};
}
var Ctor = object.constructor;
return baseCreate(isFunction(Ctor) ? Ctor.prototype : undefined);
return (isFunction(object.constructor) && !isPrototype(object))
? baseCreate(getPrototypeOf(object))
: {};
}
/**
@@ -1250,7 +1247,7 @@ function isKeyable(value) {
*/
function isPrototype(value) {
var Ctor = value && value.constructor,
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
proto = (isFunction(Ctor) && Ctor.prototype) || objectProto;
return value === proto;
}

View File

@@ -1,6 +1,6 @@
{
"name": "lodash._baseclone",
"version": "4.5.0",
"version": "4.5.1",
"description": "The internal lodash function `baseClone` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",