2.0.3 • Published 4 years ago

bugsnag-browser-lite v2.0.3

Weekly downloads
50
License
MIT
Repository
github
Last release
4 years ago

bugsnag-browser-lite is a light weight replacement for @bugsnag/js.

@bugsnag/js does a lot of stuff and works in both browser and nodejs. This makes the library very large. I made bugsnag-browser-lite which can be used only in the browser and is significantly smaller than @bugsnag/js.

This library does not yet have auto notification on unhandled errors and exceptions.

Installation

npm install bugsnag-browser-lite -save-dev

Usage

import bugsnag from 'bugsnag-browser-lite';

const bugsnagClient = bugsnag('your-bugsnag-api-key')

// on error, call notify
bugsnagClient.notify(error, { metaData: additionalInformation });

Catching and logging all unhandled exceptions in react.

import bugsnag, { ErrorBoundary } from 'bugsnag-browser-lite';

const bugsnagClient = bugsnag('your-bugsnag-api-key')

<ErrorBoundary bugsnagClient={bugsnagClient}> >
  <YourApp />
</ErrorBoundary>

It's written in typescript and the types are published with the package.

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

2.0.0

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago