Comparing version 2.1.1 to 2.1.2
@@ -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 @@ |
{ | ||
"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: '...' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112393
1345