File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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 '. ' ;
33import { getEnvelopeEndpointWithUrlEncodedAuth } from './api' ;
44import { getClient } from './currentScopes' ;
55
@@ -27,7 +27,7 @@ export async function handleTunnelEnvelope(
2727 envelopeBytes : Uint8Array ,
2828 options : HandleTunnelOptions = { } ,
2929) : Promise < void > {
30- const client = ( options && options . client ) || getClient ( ) ;
30+ const client = ( options ? .client ) || getClient ( ) ;
3131
3232 if ( ! client ) {
3333 throw new Error ( 'No server client' ) ;
@@ -46,7 +46,7 @@ export async function handleTunnelEnvelope(
4646 return ;
4747 }
4848
49- if ( ! options . dsnAllowList || ! options . dsnAllowList . includes ( headers . dsn ) ) {
49+ if ( ! options . dsnAllowList ? .includes ( headers . dsn ) ) {
5050 throw new Error ( 'DSN does not match server DSN or allow list' ) ;
5151 }
5252
You can’t perform that action at this time.
0 commit comments