@hapi/hoek
Advanced tools
Comparing version 11.0.6 to 11.0.7
@@ -176,6 +176,8 @@ 'use strict'; | ||
/* $lab:coverage:off$ */ | ||
else if (baseProto === Types.error && internals.structuredCloneExists) { | ||
const err = structuredClone(obj); // Needed to copy internal stack state | ||
else if (baseProto === Types.error && internals.structuredCloneExists && | ||
(proto === baseProto || Error.isPrototypeOf(proto.constructor))) { // Don't match Util.inherit() subclassed errors | ||
const err = structuredClone(obj); // Needed to copy internal stack state | ||
if (Object.getPrototypeOf(err) !== proto) { | ||
Object.setPrototypeOf(err, proto); // Fix prototype | ||
Object.setPrototypeOf(err, proto); // Fix prototype | ||
} | ||
@@ -182,0 +184,0 @@ |
{ | ||
"name": "@hapi/hoek", | ||
"description": "General purpose node utilities", | ||
"version": "11.0.6", | ||
"version": "11.0.7", | ||
"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
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
56136
1574