File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -458,9 +458,9 @@ class Rollbar {
458458 }
459459 const code_version = options . client ?. javascript ?. code_version || options . codeVersion || options . code_version ;
460460 this . setSessionAttributes ( {
461- code_version,
462- 'notifier.name' : 'rollbar-browser-js' ,
463- 'notifier.version' : options . version ,
461+ 'rollbar.codeVersion' : code_version ,
462+ 'rollbar. notifier.name' : 'rollbar-browser-js' ,
463+ 'rollbar. notifier.version' : options . version ,
464464 } ) ;
465465 }
466466
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ describe('options', function () {
3535 expect ( session . attributes [ 'user.id' ] ) . to . equal ( '12345' ) ;
3636 expect ( session . attributes [ 'user.name' ] ) . to . equal ( 'Test User' ) ;
3737 expect ( session . attributes [ 'user.email' ] ) . to . equal ( 'user@test.com' ) ;
38- expect ( session . attributes [ 'code_version ' ] ) . to . equal ( 'abc123' ) ;
38+ expect ( session . attributes [ 'rollbar.codeVersion ' ] ) . to . equal ( 'abc123' ) ;
3939 } ) ;
4040
4141 it ( 'should set session attributes from configure' , function ( ) {
@@ -57,7 +57,7 @@ describe('options', function () {
5757 expect ( session . attributes [ 'user.id' ] ) . to . equal ( '12345' ) ;
5858 expect ( session . attributes [ 'user.name' ] ) . to . equal ( 'Test User' ) ;
5959 expect ( session . attributes [ 'user.email' ] ) . to . equal ( 'user@test.com' ) ;
60- expect ( session . attributes [ 'code_version ' ] ) . to . equal ( 'abc123' ) ;
60+ expect ( session . attributes [ 'rollbar.codeVersion ' ] ) . to . equal ( 'abc123' ) ;
6161 } ) ;
6262} ) ;
6363
You can’t perform that action at this time.
0 commit comments