Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

new-error

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

new-error - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 2.1.2 - Fri Mar 19 2021 02:53:03
**Contributor:** Theo Gravity
- Update readme
## 2.1.1 - Fri Mar 19 2021 02:47:52

@@ -2,0 +8,0 @@

2

package.json
{
"name": "new-error",
"version": "2.1.1",
"version": "2.1.2",
"description": "A production-grade error creation and serialization library designed for Typescript",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -32,3 +32,5 @@ # new-error

- [Auto-generate high level error properties](#auto-generate-high-level-error-properties)
- [Configuration:](#configuration)
- [Auto-generate low level error properties](#auto-generate-low-level-error-properties)
- [Configuration:](#configuration-1)
- [Class-based with low level errors without a registry](#class-based-with-low-level-errors-without-a-registry)

@@ -41,4 +43,6 @@ - [Bare-bones class-based error](#bare-bones-class-based-error)

- [Configuration options](#configuration-options)
- [Example](#example)
- [Child registry with context](#child-registry-with-context)
- [Configuration options](#configuration-options-1)
- [Example](#example-1)
- [Creating errors](#creating-errors)

@@ -281,3 +285,3 @@ - [Create a well-defined error](#create-a-well-defined-error)

Options:
##### Configuration:

@@ -326,3 +330,3 @@ ```ts

Options:
##### Configuration:

@@ -538,3 +542,3 @@ ```ts

Example:
### Example

@@ -579,3 +583,3 @@ ```ts

Example:
### Example

@@ -630,3 +634,3 @@ ```typescript

statusCode: 500,
// err.toJSONSafe() would exclude contextA
// err.toJSONSafe() would exclude contextA and moreMeta
meta: { contextA: 'context-a', contextB: 'context-b', moreMeta: 'data' },

@@ -633,0 +637,0 @@ stack: '...'

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