File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
dev-packages/node-integration-tests/src Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export function startExpressServerAndSendPortToRunner(
3434 const address = server . address ( ) as AddressInfo ;
3535
3636 // @ts -expect-error If we write the port to the app we can read it within route handlers in tests
37- const actualPort = app . port = port || address . port ;
37+ const actualPort = ( app . port = port || address . port ) ;
3838
3939 // eslint-disable-next-line no-console
4040 console . log ( `{"port":${ actualPort } }` ) ;
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