lodash._baseclone
Advanced tools
Comparing version 4.5.0 to 4.5.1
15
index.js
/** | ||
* lodash 4.5.0 (Custom Build) <https://lodash.com/> | ||
* lodash 4.5.1 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -704,4 +704,3 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
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))) { | ||
@@ -1163,7 +1162,5 @@ object[key] = value; | ||
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)) | ||
: {}; | ||
} | ||
@@ -1255,3 +1252,3 @@ | ||
var Ctor = value && value.constructor, | ||
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; | ||
proto = (isFunction(Ctor) && Ctor.prototype) || objectProto; | ||
@@ -1258,0 +1255,0 @@ return value === proto; |
{ | ||
"name": "lodash._baseclone", | ||
"version": "4.5.0", | ||
"version": "4.5.1", | ||
"description": "The internal lodash function `baseClone` exported as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash._baseclone v4.5.0 | ||
# lodash._baseclone v4.5.1 | ||
@@ -18,2 +18,2 @@ The internal [lodash](https://lodash.com/) function `baseClone` exported as a [Node.js](https://nodejs.org/) module. | ||
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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
45673
1509