New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dotcom-reliability-kit/serialize-error

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dotcom-reliability-kit/serialize-error - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

6

lib/index.js

@@ -59,2 +59,7 @@ /**

// If set, we include the array of related systems
if (error.relatesToSystems && Array.isArray(error.relatesToSystems)) {
errorProperties.relatesToSystems = error.relatesToSystems;
}
// Only include error stack if it's a string

@@ -99,2 +104,3 @@ if (typeof error.stack === 'string') {

isOperational: false,
relatesToSystems: [],
stack: null,

@@ -101,0 +107,0 @@ statusCode: null,

2

package.json
{
"name": "@dotcom-reliability-kit/serialize-error",
"version": "0.1.0",
"version": "0.1.1",
"description": "A utility function to serialize an error object in a way that's friendly to loggers, view engines, and converting to JSON",

@@ -5,0 +5,0 @@ "repository": {

@@ -47,2 +47,3 @@

// isOperational: false,
// relatesToSystems: [],
// stack: '...',

@@ -82,2 +83,6 @@ // statusCode: null,

#### `SerializedError.relatesToSystems`
This array contains a list of [system codes](https://biz-ops.in.ft.com/list/Systems) which are related to the error. It defaults to an empty array.
#### `SerializedError.stack`

@@ -84,0 +89,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc