fix(core): update

This commit is contained in:
2021-08-14 17:47:55 +02:00
parent 4dd2a94fbc
commit 68ad7d9814
7 changed files with 24884 additions and 611 deletions

View File

@ -14,13 +14,13 @@ export interface ISentryConstructorOptions {
export class Sentry {
constructor(optionsArg: ISentryConstructorOptions) {
plugins.sentry.init({
dsn: optionsArg.dsn
dsn: optionsArg.dsn,
});
process
.on('unhandledRejection', (reason, p) => {
console.error(reason, 'Unhandled Rejection at Promise', p);
})
.on('uncaughtException', err => {
.on('uncaughtException', (err) => {
console.log(err);
this.captureException(err);
process.exit(1);