File tree 3 files changed +13
-11
lines changed
3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
- // Install Raven to send errors to Sentry
2
- import Raven from 'raven-js' ;
3
- Raven
4
- . config ( 'https://151ecfab1a8242009012d45a19064cfd@sentry.io/133175' )
5
- . install ( ) ;
1
+ // Install Sentry to send errors to Sentry
2
+ import * as Sentry from '@sentry/browser' ;
3
+ Sentry . init (
4
+ {
5
+ dsn : 'https://151ecfab1a8242009012d45a19064cfd@sentry.io/133175'
6
+ }
7
+ ) ;
6
8
7
9
// Capture unhandled exceptions in promises
8
10
window . addEventListener ( 'unhandledrejection' , err => {
9
- Raven . captureException ( err . reason ) ;
11
+ Sentry . captureException ( err . reason ) ;
10
12
} ) ;
11
13
12
14
// Load the rest of the modules
Original file line number Diff line number Diff line change 1
- import Raven from 'raven-js ' ;
1
+ import * as Sentry from '@sentry/browser ' ;
2
2
3
3
export default class ErrorReport {
4
4
constructor ( btn ) {
@@ -8,11 +8,11 @@ export default class ErrorReport {
8
8
}
9
9
10
10
render ( ) {
11
- this . btn . addEventListener ( 'click' , ( ) => this . _invokeRavenModal ( ) ) ;
11
+ this . btn . addEventListener ( 'click' , ( ) => this . _invokeSentryModal ( ) ) ;
12
12
}
13
13
14
- _invokeRavenModal ( ) {
15
- Raven . showReportDialog ( {
14
+ _invokeSentryModal ( ) {
15
+ Sentry . showReportDialog ( {
16
16
eventId : this . eventId
17
17
} ) ;
18
18
}
Original file line number Diff line number Diff line change 25
25
"demo" : " gulp production"
26
26
},
27
27
"dependencies" : {
28
+ "@sentry/browser" : " ^5.29.2" ,
28
29
"bootstrap" : " ^3.3.6" ,
29
30
"bootstrap-material-datetimepicker" : " https://github.com/T00rk/bootstrap-material-datetimepicker.git#gh-pages" ,
30
31
"bootstrap-sass" : " ^3.4.1" ,
89
90
"object-assign" : " 4.1.0" ,
90
91
"open" : " 0.0.5" ,
91
92
"pretty-hrtime" : " 1.0.2" ,
92
- "raven-js" : " ^3.27.2" ,
93
93
"require-dir" : " 1.2.0" ,
94
94
"sinon" : " 1.17.4" ,
95
95
"sinon-chai" : " 2.8.0" ,
You can’t perform that action at this time.
0 commit comments