File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export abstract class BaseClient<O extends Options> implements ClientLike<O> {
7979
8080 protected _lastEventId ?: string ;
8181
82- protected _scope = new Scope ( ) ;
82+ protected _scope : ScopeLike = new Scope ( ) ;
8383
8484 protected _eventProcessors : EventProcessor [ ] = [ ] ;
8585
@@ -107,6 +107,10 @@ export abstract class BaseClient<O extends Options> implements ClientLike<O> {
107107 return this . _scope ;
108108 }
109109
110+ public setScope ( scope : ScopeLike ) : void {
111+ this . _scope = scope ;
112+ }
113+
110114 // TODO: Run these during event processing
111115 public addEventProcessor ( callback : EventProcessor ) : void {
112116 this . _eventProcessors . push ( callback ) ;
Original file line number Diff line number Diff line change @@ -17,11 +17,12 @@ import { Session } from './session';
1717export interface ClientLike < O extends Options = Options > {
1818 options : O ;
1919
20- lastEventId ( ) : string | undefined ;
2120 getScope ( ) : ScopeLike ;
21+ setScope ( scope : ScopeLike ) : void ;
2222 addEventProcessor ( callback : EventProcessor ) : void ;
2323 // TODO: To be removed? Can be obtained from options
2424 getDsn ( ) : Dsn | undefined ;
25+ lastEventId ( ) : string | undefined ;
2526
2627 captureException ( exception : unknown , captureContext ?: CaptureContext ) : string | undefined ;
2728 captureMessage ( message : string , captureContext ?: CaptureContext ) : string | undefined ;
You can’t perform that action at this time.
0 commit comments