Skip to content

Commit 8adfc74

Browse files
committed
fix import
1 parent 8e8455f commit 8adfc74

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/browser/src/transports/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export abstract class BaseTransport implements Transport {
117117

118118
const url = getEnvelopeEndpointWithUrlEncodedAuth(this._api.dsn, this._api.tunnel);
119119
// Envelope header is required to be at least an empty object
120-
const envelopeHeader = JSON.stringify({ ...(this._api.tunnel && { dsn: dsntoString(this._api.dsn) }) });
120+
const envelopeHeader = JSON.stringify({ ...(this._api.tunnel && { dsn: dsnToString(this._api.dsn) }) });
121121
const itemHeaders = JSON.stringify({
122122
type: 'client_report',
123123
});

packages/core/src/baseclient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { Scope, Session } from '@sentry/hub';
33
import {
44
Client,
5-
Dsn,
5+
DsnComponents,
66
Event,
77
EventHint,
88
Integration,
@@ -77,7 +77,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
7777
protected readonly _options: O;
7878

7979
/** The client Dsn, if specified in options. Without this Dsn, the SDK will be disabled. */
80-
protected readonly _dsn?: Dsn;
80+
protected readonly _dsn?: DsnComponents;
8181

8282
/** Array of used integrations. */
8383
protected _integrations: IntegrationIndex = {};
@@ -188,7 +188,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
188188
/**
189189
* @inheritDoc
190190
*/
191-
public getDsn(): Dsn | undefined {
191+
public getDsn(): DsnComponents | undefined {
192192
return this._dsn;
193193
}
194194

0 commit comments

Comments
 (0)