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

new-error

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

new-error - npm Package Versions

1245

1.2.9

Diff

Changelog

Source

1.2.9 - Tue Mar 09 2021 22:34:18

Contributor: Theo Gravity

  • Add helper utilities for registry definitions

Two utility methods have been defined:

  • generateHighLevelErrors()
  • generateLowLevelErrors()

See readme for more details.

gravity.bot
published 1.2.8 •

Changelog

Source

1.2.8 - Tue Mar 09 2021 03:52:59

Contributor: Theo Gravity

  • Update readme
gravity.bot
published 1.2.7 •

Changelog

Source

1.2.7 - Tue Mar 09 2021 01:55:52

Contributor: Theo Gravity

  • Add ErrorRegistry config option onCreateError

You can now globally modify new errors created from the error registry via the onCreateError handler.

gravity.bot
published 1.2.6 •

Changelog

Source

1.2.6 - Tue Mar 09 2021 00:23:04

Contributor: Theo Gravity

  • Clean up stack traces

If you are calling ErrorRegistry#newError or related functions to create errors, the stack trace includes an ErrorRegistry entry. This change removes that entry for easier readability.

gravity.bot
published 1.2.5 •

Changelog

Source

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
gravity.bot
published 1.2.4 •

Changelog

Source

1.2.4 - Mon Mar 08 2021 22:05:16

Contributor: Theo Gravity

  • Update readme

Fix handler example, add config usage

gravity.bot
published 1.2.3 •

Changelog

Source

1.2.3 - Mon Mar 08 2021 21:59:38

Contributor: Theo Gravity

  • Add toJSON / toJSONSafe post-processing handler options (#10)

You can now perform post-processing on serialized data via onPreToJSONData / onPreToJSONDataSafe options. See readme for more details.

gravity.bot
published 1.2.2 •

Changelog

Source

1.2.2 - Mon Mar 08 2021 21:06:07

Contributor: Theo Gravity

  • Add option to not include empty metadata on serialization (#9)

This adds omitEmptyMetadata to the BaseError configuration.

gravity.bot
published 1.2.1 •

Changelog

Source

1.2.1 - Mon Mar 08 2021 20:33:41

Contributor: Theo Gravity

  • Add configuration options for ErrorRegistry / BaseError (#8)

New configuration options have been added to the ErrorRegistry and BaseError. See readme for more details.

gravity.bot
published 1.1.2 •

Changelog

Source

1.1.2 - Mon Sep 21 2020 04:13:44

Contributor: Theo Gravity

  • Fix README.md
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