File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,6 @@ export function init(options: BrowserOptions = {}): void {
110
110
const clientOptions : BrowserClientOptions = {
111
111
...options ,
112
112
...defaultCoreOptions ,
113
- dsn : options . dsn === undefined ? undefined : makeDsn ( options . dsn ) ,
114
113
stackParser : stackParserFromOptions ( options ) ,
115
114
integrations : getIntegrationsToSetup ( options ) ,
116
115
transport,
Original file line number Diff line number Diff line change @@ -138,7 +138,6 @@ export function init(options: NodeOptions = {}): void {
138
138
const clientOptions : NodeClientOptions = {
139
139
...options ,
140
140
...defaultCoreOptions ,
141
- dsn : options . dsn === undefined ? undefined : makeDsn ( process . env . SENTRY_DSN ? process . env . SENTRY_DSN : options . dsn ) ,
142
141
stackParser : stackParserFromOptions ( options ) ,
143
142
integrations : getIntegrationsToSetup ( options ) ,
144
143
transport,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export interface ClientOptions {
39
39
* The Dsn used to connect to Sentry and identify the project. If omitted, the
40
40
* SDK will not send any data to Sentry.
41
41
*/
42
- dsn ?: DsnComponents ;
42
+ dsn ?: string ;
43
43
44
44
/**
45
45
* The release identifier used when uploading respective source maps. Specify
@@ -203,13 +203,7 @@ export interface ClientOptions {
203
203
}
204
204
205
205
/** Base configuration options for every SDK. */
206
- export interface Options extends Omit < Partial < ClientOptions > , 'dsn' | 'integrations' | 'transport' | 'stackParser' > {
207
- /**
208
- * The Dsn used to connect to Sentry and identify the project. If omitted, the
209
- * SDK will not send any data to Sentry.
210
- */
211
- dsn ?: string ;
212
-
206
+ export interface Options extends Omit < Partial < ClientOptions > , 'integrations' | 'transport' | 'stackParser' > {
213
207
/**
214
208
* If this is set to false, default integrations will not be added, otherwise this will internally be set to the
215
209
* recommended default integrations.
You can’t perform that action at this time.
0 commit comments