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 1.2.4 to 1.2.5

8

build/error-types/BaseError.js

@@ -216,3 +216,3 @@ "use strict";

}
if (this._config.onPreToJSONData) {
if (typeof this._config.onPreToJSONData === 'function') {
data = this._config.onPreToJSONData(data);

@@ -226,3 +226,3 @@ }

});
fieldsToOmit.forEach(item => {
fieldsToOmit === null || fieldsToOmit === void 0 ? void 0 : fieldsToOmit.forEach(item => {
delete data[item];

@@ -260,6 +260,6 @@ });

});
if (this._config.onPreToJSONSafeData) {
if (typeof this._config.onPreToJSONSafeData === 'function') {
data = this._config.onPreToJSONSafeData(data);
}
fieldsToOmit.forEach(item => {
fieldsToOmit === null || fieldsToOmit === void 0 ? void 0 : fieldsToOmit.forEach(item => {
delete data[item];

@@ -266,0 +266,0 @@ });

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

## 1.2.5 - Mon Mar 08 2021 22:54:45
**Contributor:** Theo Gravity
- Fix bug where specifying something other than an array for toJSON/toJSONSafe throws
## 1.2.4 - Mon Mar 08 2021 22:05:16

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

{
"name": "new-error",
"version": "1.2.4",
"version": "1.2.5",
"description": "A production-grade error creation and serialization library designed for Typescript",

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

Sorry, the diff of this file is not supported yet

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