@@ -41,7 +41,7 @@ const ALREADY_SEEN_ERROR = "Not capturing exception because it's already been ca
41
41
/**
42
42
* Base implementation for all JavaScript SDK clients.
43
43
*
44
- * TODO: refactor doc w.r.t. Backend
44
+ * TODO(v7) : refactor doc w.r.t. Backend
45
45
*
46
46
* Call the constructor with the corresponding backend constructor and options
47
47
* specific to the client subclass. To access these options later, use
@@ -77,7 +77,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
77
77
* The backend used to physically interact in the environment. Usually, this
78
78
* will correspond to the client. When composing SDKs, however, the Backend
79
79
* from the root SDK will be used.
80
- * TODO: DELETE
80
+ * TODO(v7) : DELETE
81
81
*/
82
82
protected readonly _backend : B ;
83
83
@@ -106,7 +106,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
106
106
* @param options Options for the client.
107
107
*/
108
108
protected constructor ( backendClass : BackendClass < B , O > , options : O ) {
109
- // TODO: Delete
109
+ // TODO(v7) : Delete
110
110
this . _backend = new backendClass ( options ) ;
111
111
this . _options = options ;
112
112
@@ -149,7 +149,6 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
149
149
public captureMessage ( message : string , level ?: Severity , hint ?: EventHint , scope ?: Scope ) : string | undefined {
150
150
let eventId : string | undefined = hint && hint . event_id ;
151
151
152
- // TODO: refactor
153
152
const promisedEvent = isPrimitive ( message )
154
153
? this . eventFromMessage ( String ( message ) , level , hint )
155
154
: this . eventFromException ( message , hint ) ;
@@ -367,6 +366,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
367
366
}
368
367
369
368
/** Deliver captured session to Sentry */
369
+ // TODO(v7): should this be deleted?
370
370
protected _sendSession ( session : Session ) : void {
371
371
this . sendSession ( session ) ;
372
372
}
@@ -402,7 +402,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
402
402
}
403
403
404
404
/** Returns the current backend.
405
- * TODO: DELETE
405
+ * TODO(v7) : DELETE
406
406
*/
407
407
protected _getBackend ( ) : B {
408
408
return this . _backend ;
@@ -576,7 +576,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
576
576
* Tells the backend to send this event
577
577
* @param event The Sentry event to send
578
578
*/
579
- // TODO: refactor: get rid of method?
579
+ // TODO(v7) : refactor: get rid of method?
580
580
protected _sendEvent ( event : Event ) : void {
581
581
this . sendEvent ( event ) ;
582
582
}
0 commit comments