Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

@tinkoff/error-handlers

Package Overview
Dependencies
1
Maintainers
15
Versions
3
Issues
File Explorer

Advanced tools

@tinkoff/error-handlers

Library for logging of global errors and unhandled promise rejections. May work in browsers and nodejs.

    0.4.26latest

Version published
Maintainers
15
Yearly downloads
1,812

Weekly downloads

Readme

Source

Error handlers

Library for logging of global errors and unhandled promise rejections. May work in browsers and nodejs.

Api

  • globalErrorHandler = (logger: Logger = console) - init logging of global errors
  • unhandledRejectionHandler = (logger: Logger = console) - init logging of unhandled rejection promise

Parameters

  • Logger - used for logging errors

    export interface Logger { warn: Function; error: Function; }
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc