Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e1262c2ca4 | |||
| f041623403 | |||
| f1528a799b | |||
| 7d28966e5a |
4
.snyk
Normal file
4
.snyk
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
|
||||||
|
version: v1.12.0
|
||||||
|
ignore: {}
|
||||||
|
patch: {}
|
||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/sentry",
|
"name": "@mojoio/sentry",
|
||||||
"version": "1.0.2",
|
"version": "1.0.4",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/sentry",
|
"name": "@mojoio/sentry",
|
||||||
"version": "1.0.2",
|
"version": "1.0.4",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "an unofficial abstraction package for sentry.io",
|
"description": "an unofficial abstraction package for sentry.io",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|||||||
@@ -17,6 +17,15 @@ export class Sentry {
|
|||||||
plugins.sentry.init({
|
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 => {
|
||||||
|
console.log(err);
|
||||||
|
this.captureException(err);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
captureException(exceptionArg: any) {
|
captureException(exceptionArg: any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user