Comparing version 6.1.2 to 6.1.3
@@ -55,10 +55,16 @@ 'use strict'; | ||
else { | ||
const proto = Object.getPrototypeOf(obj); | ||
if (proto && | ||
proto.isImmutable) { | ||
if (options.prototype !== false) { // Defaults to true | ||
const proto = Object.getPrototypeOf(obj); | ||
if (proto && | ||
proto.isImmutable) { | ||
newObj = obj; | ||
newObj = obj; | ||
} | ||
else { | ||
newObj = Object.create(proto); | ||
cloneDeep = true; | ||
} | ||
} | ||
else { | ||
newObj = Object.create(proto); | ||
newObj = {}; | ||
cloneDeep = true; | ||
@@ -65,0 +71,0 @@ } |
{ | ||
"name": "hoek", | ||
"description": "General purpose node utilities", | ||
"version": "6.1.2", | ||
"version": "6.1.3", | ||
"repository": "git://github.com/hapijs/hoek", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
31095
817