Socket
Socket
Sign inDemoInstall

serialize-error

Package Overview
Dependencies
1
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 11.0.2 to 11.0.3

3

index.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc