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 2
2
import { Scope , Session } from '@sentry/hub' ;
3
3
import {
4
4
Client ,
5
+ ClientOptions ,
5
6
DsnComponents ,
6
7
Event ,
7
8
EventHint ,
8
9
Integration ,
9
10
IntegrationClass ,
10
- Options ,
11
11
Severity ,
12
12
SeverityLevel ,
13
13
Transport ,
@@ -68,7 +68,7 @@ const ALREADY_SEEN_ERROR = "Not capturing exception because it's already been ca
68
68
* // ...
69
69
* }
70
70
*/
71
- export abstract class BaseClient < O extends Options > implements Client < O > {
71
+ export abstract class BaseClient < O extends ClientOptions > implements Client < O > {
72
72
/** Options passed to the SDK. */
73
73
protected readonly _options : O ;
74
74
Original file line number Diff line number Diff line change 1
1
import { addGlobalEventProcessor , getCurrentHub } from '@sentry/hub' ;
2
- import { Integration , Options } from '@sentry/types' ;
2
+ import { ClientOptions , Integration , Options } from '@sentry/types' ;
3
3
import { addNonEnumerableProperty , logger } from '@sentry/utils' ;
4
4
5
5
import { IS_DEBUG_BUILD } from './flags' ;
@@ -70,9 +70,9 @@ export function setupIntegration(integration: Integration): void {
70
70
* @param integrations array of integration instances
71
71
* @param withDefault should enable default integrations
72
72
*/
73
- export function setupIntegrations < O extends Options > ( options : O ) : IntegrationIndex {
73
+ export function setupIntegrations < O extends ClientOptions > ( options : O ) : IntegrationIndex {
74
74
const integrations : IntegrationIndex = { } ;
75
- getIntegrationsToSetup ( options ) . forEach ( integration => {
75
+ options . integrations . forEach ( integration => {
76
76
integrations [ integration . name ] = integration ;
77
77
setupIntegration ( integration ) ;
78
78
} ) ;
You can’t perform that action at this time.
0 commit comments