Comparing version 3.11.0 to 3.11.1
@@ -729,2 +729,3 @@ /* | ||
objectToStringStr = toString.call({}); | ||
const objectConstructorName = {}.constructor.name; | ||
const sourceObjects = rest; | ||
@@ -804,4 +805,4 @@ const initialRetValue = {}; | ||
if (sourceObject[property] && objectToStringStr === toString.call(sourceObject[property])) { | ||
// "sourceObject[property]" is an object. | ||
if (sourceObject[property] && objectToStringStr === toString.call(sourceObject[property]) && sourceObject[property].constructor && objectConstructorName === sourceObject[property].constructor.name) { | ||
// "sourceObject[property]" is an object of class "Object". | ||
destinationObject[property] = objectToStringStr === toString.call(destinationObject[property]) ? destinationObject[property] : {}; | ||
@@ -808,0 +809,0 @@ mapKeys(destinationObject[property], sourceObject[property], currentStack, currentPath); |
{ | ||
"name": "js-utl", | ||
"version": "3.11.0", | ||
"version": "3.11.1", | ||
"description": "A collection of JS utility functions to be used across several applications or libraries.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -743,2 +743,3 @@ /* | ||
objectToStringStr = toString.call({}); | ||
const objectConstructorName = {}.constructor.name; | ||
const sourceObjects = rest; | ||
@@ -813,5 +814,7 @@ const initialRetValue = {}; | ||
sourceObject[property] && | ||
objectToStringStr === toString.call(sourceObject[property]) | ||
objectToStringStr === toString.call(sourceObject[property]) && | ||
sourceObject[property].constructor && | ||
objectConstructorName === sourceObject[property].constructor.name | ||
) { | ||
// "sourceObject[property]" is an object. | ||
// "sourceObject[property]" is an object of class "Object". | ||
destinationObject[property] = | ||
@@ -818,0 +821,0 @@ objectToStringStr === toString.call(destinationObject[property]) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
1962998
22623