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 33 "dependencies" : {},
44 "main" : [" dist/rollbar.umd.js" ],
55 "ignore" : [
6- " dist/*.nojson*" ,
76 " dist/*.named-amd*" ,
87 " docs" ,
98 " src" ,
Original file line number Diff line number Diff line change 33 "version" : " 0.0.1" ,
44 "homepage" : " https://github.com/rollbar/rollbar.js" ,
55 "dependencies" : {
6- "rollbar" : " ~1.7.0 "
6+ "rollbar" : " ^2.26.4 "
77 }
88}
Original file line number Diff line number Diff line change 1818 // as an example, let's include the current value of window.myvariable
1919 // as custom data in the payload.
2020
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 || { } ;
2323
2424 // add our data
25- payload . data . custom . myvariable = window . myvariable ;
25+ payload . custom . myvariable = window . myvariable ;
2626
2727 // no need to return anything (return value is unused)
2828 } ;
Original file line number Diff line number Diff line change 44
55``` js
66//
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.
88var rollbarConfig = {
99 accessToken: ' ...' ,
1010 captureUncaught: true ,
@@ -14,7 +14,7 @@ var rollbarConfig = {
1414};
1515
1616// Require the Rollbar library
17- require ([' rollbar.umd.nojson. min.js ' ], function (Rollbar ) {
17+ require ([' rollbar.umd.min' ], function (Rollbar ) {
1818 var rollbar = Rollbar .init (rollbarConfig);
1919 rollbar .info (' Hello world' );
2020});
Original file line number Diff line number Diff line change 55 < script >
66 var _rollbarConfig = {
77 accessToken : 'POST_CLIENT_ITEM_ACCESS_TOKEN' ,
8- rollbarJsUrl : '../../dist/rollbar.umd.js ' ,
8+ rollbarJsUrl : '../../dist/rollbar.umd.min ' ,
99 captureUncaught : true ,
1010 payload : {
1111 environment : 'development' ,
1818 // NOTE: you must use the name "rollbar" here.
1919 require . config ( {
2020 paths : {
21- rollbar : '../../dist/rollbar.umd' ,
21+ rollbar : '../../dist/rollbar.umd.min ' ,
2222 } ,
2323 } ) ;
2424
Original file line number Diff line number Diff line change 88 payload : {
99 environment : 'test' ,
1010 } ,
11- rollbarJsUrl : 'http://localhost:8080 /dist/rollbar.js' ,
11+ rollbarJsUrl : '/dist/rollbar.js' ,
1212 } ;
1313 </ script >
1414 < script >
Original file line number Diff line number Diff line change 2323
2424 var _rollbarConfig = {
2525 accessToken : '12c99de67a444c229fca100e0967486f' ,
26- rollbarJsUrl : '/dist/rollbar.umd.nojson. js' ,
26+ rollbarJsUrl : '/dist/rollbar.umd.js' ,
2727 captureUncaught : true ,
2828 //checkIgnore: ignoreFilesUncaught,
2929 payload : {
You can’t perform that action at this time.
0 commit comments