Socket
Socket
Sign inDemoInstall

@tinkoff/error-handlers

Package Overview
Dependencies
1
Maintainers
15
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @tinkoff/error-handlers

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


Version published
Weekly downloads
57
decreased by-5%
Maintainers
15
Created
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;
    }
    

FAQs

Last updated on 08 Nov 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc