serialize-error
Advanced tools
Comparing version 11.0.2 to 11.0.3
@@ -96,4 +96,3 @@ import errorConstructors from './error-constructors.js'; | ||
for (const [key, value] of Object.entries(from)) { | ||
// eslint-disable-next-line node/prefer-global/buffer | ||
if (typeof Buffer === 'function' && Buffer.isBuffer(value)) { | ||
if (value && value instanceof Uint8Array && value.constructor.name === 'Buffer') { | ||
to[key] = '[object Buffer]'; | ||
@@ -100,0 +99,0 @@ continue; |
{ | ||
"name": "serialize-error", | ||
"version": "11.0.2", | ||
"version": "11.0.3", | ||
"description": "Serialize/deserialize an error into a plain object", | ||
@@ -15,2 +15,3 @@ "license": "MIT", | ||
"exports": "./index.js", | ||
"sideEffects": false, | ||
"engines": { | ||
@@ -17,0 +18,0 @@ "node": ">=14.16" |
16729
338