serialize-error
Advanced tools
Comparing version 8.0.0 to 8.0.1
@@ -57,3 +57,3 @@ 'use strict'; | ||
for (const [key, value] of Object.entries(from)) { | ||
if (Buffer.isBuffer(value)) { | ||
if (typeof Buffer === 'function' && Buffer.isBuffer(value)) { | ||
to[key] = '[object Buffer]'; | ||
@@ -60,0 +60,0 @@ continue; |
{ | ||
"name": "serialize-error", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"description": "Serialize/deserialize an error into a plain object", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
8897