File tree Expand file tree Collapse file tree 7 files changed +10
-11
lines changed Expand file tree Collapse file tree 7 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 3
3
"dependencies" : {},
4
4
"main" : [" dist/rollbar.umd.js" ],
5
5
"ignore" : [
6
- " dist/*.nojson*" ,
7
6
" dist/*.named-amd*" ,
8
7
" docs" ,
9
8
" src" ,
Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.1" ,
4
4
"homepage" : " https://github.com/rollbar/rollbar.js" ,
5
5
"dependencies" : {
6
- "rollbar" : " ~1.7.0 "
6
+ "rollbar" : " ^2.26.4 "
7
7
}
8
8
}
Original file line number Diff line number Diff line change 18
18
// as an example, let's include the current value of window.myvariable
19
19
// as custom data in the payload.
20
20
21
- // ensure payload.data. custom is set
22
- payload . data . custom = payload . data . custom || { } ;
21
+ // ensure payload.custom is set
22
+ payload . custom = payload . custom || { } ;
23
23
24
24
// add our data
25
- payload . data . custom . myvariable = window . myvariable ;
25
+ payload . custom . myvariable = window . myvariable ;
26
26
27
27
// no need to return anything (return value is unused)
28
28
} ;
Original file line number Diff line number Diff line change 4
4
5
5
``` js
6
6
//
7
- // Download the latest rollbar.umd.nojson. min.js and place in current directory.
7
+ // Download the latest rollbar.min.js and place in current directory.
8
8
var rollbarConfig = {
9
9
accessToken: ' ...' ,
10
10
captureUncaught: true ,
@@ -14,7 +14,7 @@ var rollbarConfig = {
14
14
};
15
15
16
16
// Require the Rollbar library
17
- require ([' rollbar.umd.nojson. min.js ' ], function (Rollbar ) {
17
+ require ([' rollbar.umd.min' ], function (Rollbar ) {
18
18
var rollbar = Rollbar .init (rollbarConfig);
19
19
rollbar .info (' Hello world' );
20
20
});
Original file line number Diff line number Diff line change 5
5
< script >
6
6
var _rollbarConfig = {
7
7
accessToken : 'POST_CLIENT_ITEM_ACCESS_TOKEN' ,
8
- rollbarJsUrl : '../../dist/rollbar.umd.js ' ,
8
+ rollbarJsUrl : '../../dist/rollbar.umd.min ' ,
9
9
captureUncaught : true ,
10
10
payload : {
11
11
environment : 'development' ,
18
18
// NOTE: you must use the name "rollbar" here.
19
19
require . config ( {
20
20
paths : {
21
- rollbar : '../../dist/rollbar.umd' ,
21
+ rollbar : '../../dist/rollbar.umd.min ' ,
22
22
} ,
23
23
} ) ;
24
24
Original file line number Diff line number Diff line change 8
8
payload : {
9
9
environment : 'test' ,
10
10
} ,
11
- rollbarJsUrl : 'http://localhost:8080 /dist/rollbar.js' ,
11
+ rollbarJsUrl : '/dist/rollbar.js' ,
12
12
} ;
13
13
</ script >
14
14
< script >
Original file line number Diff line number Diff line change 23
23
24
24
var _rollbarConfig = {
25
25
accessToken : '12c99de67a444c229fca100e0967486f' ,
26
- rollbarJsUrl : '/dist/rollbar.umd.nojson. js' ,
26
+ rollbarJsUrl : '/dist/rollbar.umd.js' ,
27
27
captureUncaught : true ,
28
28
//checkIgnore: ignoreFilesUncaught,
29
29
payload : {
You can’t perform that action at this time.
0 commit comments