3.5.1 • Published 4 years ago

@sanar/error-handler v3.5.1

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

TypeScript version Node.js version APLv2 Build Status Quality Gate Status

Use

import SER from '@sanar/error-handler';

const confSentry: IConfigSentryInit = {
      dsn:
        'https://VALID_NUMEBER_DSR@.sentry.io/9982828',
      environment: 'production',
      isToSend: true, // Send to Sentry
      scopeDefault: {
        namePackage: require(`${__dirname}/../package.json`).name,
        release: require(`${__dirname}/../package.json`).version, // change to get the version
      },
    };

SER.init(confSentry);

 SER.report(
      new Error('ERROR on Sentry'),
      contextError,
    );

License

See the LICENSE file for details.

3.5.1

4 years ago

3.5.0

4 years ago

3.4.0

4 years ago

3.3.0

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.3

4 years ago

3.0.1

4 years ago