Skip to content

Commit e8a62dc

Browse files
committed
add client options to baseclient
1 parent 622e1e7 commit e8a62dc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/core/src/baseclient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
import { Scope, Session } from '@sentry/hub';
33
import {
44
Client,
5+
ClientOptions,
56
DsnComponents,
67
Event,
78
EventHint,
89
Integration,
910
IntegrationClass,
10-
Options,
1111
Severity,
1212
SeverityLevel,
1313
Transport,
@@ -68,7 +68,7 @@ const ALREADY_SEEN_ERROR = "Not capturing exception because it's already been ca
6868
* // ...
6969
* }
7070
*/
71-
export abstract class BaseClient<O extends Options> implements Client<O> {
71+
export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
7272
/** Options passed to the SDK. */
7373
protected readonly _options: O;
7474

packages/core/src/integration.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { addGlobalEventProcessor, getCurrentHub } from '@sentry/hub';
2-
import { Integration, Options } from '@sentry/types';
2+
import { ClientOptions, Integration, Options } from '@sentry/types';
33
import { addNonEnumerableProperty, logger } from '@sentry/utils';
44

55
import { IS_DEBUG_BUILD } from './flags';
@@ -70,9 +70,9 @@ export function setupIntegration(integration: Integration): void {
7070
* @param integrations array of integration instances
7171
* @param withDefault should enable default integrations
7272
*/
73-
export function setupIntegrations<O extends Options>(options: O): IntegrationIndex {
73+
export function setupIntegrations<O extends ClientOptions>(options: O): IntegrationIndex {
7474
const integrations: IntegrationIndex = {};
75-
getIntegrationsToSetup(options).forEach(integration => {
75+
options.integrations.forEach(integration => {
7676
integrations[integration.name] = integration;
7777
setupIntegration(integration);
7878
});

0 commit comments

Comments
 (0)