Skip to content

Commit d7e4174

Browse files
committed
Fix build
1 parent 39edea6 commit d7e4174

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/core/src/tunnel.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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 '.';
33
import { getEnvelopeEndpointWithUrlEncodedAuth } from './api';
44
import { 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

0 commit comments

Comments
 (0)