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 Versions

1235

1.1.1

Diff

Changelog

Source

1.1.1 - Mon Sep 21 2020 03:57:31

Contributor: Theo Gravity

  • Add deserialization support (#7)
  • Include logLevel as part of toJSON()
  • Fix interface definitions and examples

Please read the README section on the limitations and security issues relating to deserialization.

gravity.bot
published 1.0.13 •

Changelog

Source

1.0.13 - Sat Jun 20 2020 03:22:14

Contributor: Theo Gravity

  • Add support for defining log levels

This adds the logLevel property to the error definitions along with corresponding getLogLevel() and withLogLevel() methods.

There are cases where certain errors do not warrant being logged under an error log level when combined with a logging system.

gravity.bot
published 1.0.12 •

Changelog

Source

1.0.12 - Wed Jun 03 2020 03:54:55

Contributor: Theo Gravity

  • Update README.md

Fix npm badge from http->https to fix render issues on the npm page

gravity.bot
published 1.0.11 •

Changelog

Source

1.0.11 - Sun May 17 2020 22:42:30

Contributor: Theo Gravity

  • Add withErrorId(), getErrorId() methods

These methods were added to help cross-refeference an error between systems. The readme has been updated with usage and an example on a best-practice situation.

gravity.bot
published 1.0.10 •

Changelog

Source

1.0.10 - Sun May 17 2020 21:02:32

Contributor: Theo Gravity

  • Add new methods and documentation (#4)

Added:

  • BaseError#getErrorType()
  • BaseError#getErrorName()
gravity.bot
published 1.0.9 •

Changelog

Source

1.0.9 - Sat May 16 2020 00:39:12

Contributor: Theo Gravity

  • Add missing methods to IBaseError (#3)
gravity.bot
published 1.0.8 •

Changelog

Source

1.0.8 - Sat May 16 2020 00:20:35

Contributor: Theo Gravity

  • Update readme with more examples
gravity.bot
published 1.0.7 •

Changelog

Source

1.0.7 - Sat May 16 2020 00:05:10

Contributor: Theo Gravity

  • Update readme with use-cases
gravity.bot
published 1.0.6 •

Changelog

Source

1.0.6 - Fri May 15 2020 23:34:12

Contributor: Theo Gravity

  • [minor] Concrete class-based support (#1)

  • Added examples on how to work with the library without the registry

  • Updated and exported some interfaces to assist with class-based creation

gravity.bot
published 1.0.5 •

Changelog

Source

1.0.5 - Fri May 15 2020 20:57:38

Contributor: Theo Gravity

  • Add getters / more examples / improved docs
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