File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- import type { Client , Transport } from '@sentry/types ' ;
2
- import { createEnvelope , dsnFromString , parseEnvelope } from '@sentry/utils ' ;
1
+ import type { Client , Transport } from '. ' ;
2
+ import { createEnvelope , dsnFromString , parseEnvelope } from '. ' ;
3
3
import { getEnvelopeEndpointWithUrlEncodedAuth } from './api' ;
4
4
import { getClient } from './currentScopes' ;
5
5
@@ -27,7 +27,7 @@ export async function handleTunnelEnvelope(
27
27
envelopeBytes : Uint8Array ,
28
28
options : HandleTunnelOptions = { } ,
29
29
) : Promise < void > {
30
- const client = ( options && options . client ) || getClient ( ) ;
30
+ const client = ( options ? .client ) || getClient ( ) ;
31
31
32
32
if ( ! client ) {
33
33
throw new Error ( 'No server client' ) ;
@@ -46,7 +46,7 @@ export async function handleTunnelEnvelope(
46
46
return ;
47
47
}
48
48
49
- if ( ! options . dsnAllowList || ! options . dsnAllowList . includes ( headers . dsn ) ) {
49
+ if ( ! options . dsnAllowList ? .includes ( headers . dsn ) ) {
50
50
throw new Error ( 'DSN does not match server DSN or allow list' ) ;
51
51
}
52
52
You can’t perform that action at this time.
0 commit comments