From 3709fffe8483571772d66b886cbe61437e318dbd Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Wed, 29 Jan 2025 13:28:45 +0100 Subject: [PATCH] ref: Small type adjustment We used to have `shutdownTimeout` in the core client options, but this option only applies in node, so we can move it there. Also fixing a small unnecessary check I noticed along the way. --- packages/browser/src/sdk.ts | 4 +--- packages/core/src/types-hoist/options.ts | 9 --------- packages/node/src/types.ts | 8 ++++++++ 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/packages/browser/src/sdk.ts b/packages/browser/src/sdk.ts index d6fedeba769b..36dcade62859 100644 --- a/packages/browser/src/sdk.ts +++ b/packages/browser/src/sdk.ts @@ -53,9 +53,7 @@ export function applyDefaultOptions(optionsArg: BrowserOptions = {}): BrowserOpt release: typeof __SENTRY_RELEASE__ === 'string' // This allows build tooling to find-and-replace __SENTRY_RELEASE__ to inject a release value ? __SENTRY_RELEASE__ - : WINDOW.SENTRY_RELEASE?.id // This supports the variable that sentry-webpack-plugin injects - ? WINDOW.SENTRY_RELEASE.id - : undefined, + : WINDOW.SENTRY_RELEASE?.id, // This supports the variable that sentry-webpack-plugin injects sendClientReports: true, }; diff --git a/packages/core/src/types-hoist/options.ts b/packages/core/src/types-hoist/options.ts index 49f3daa93b8e..58634930c993 100644 --- a/packages/core/src/types-hoist/options.ts +++ b/packages/core/src/types-hoist/options.ts @@ -138,15 +138,6 @@ export interface ClientOptions