From 851ad70ee2731605da1aad4d36aedf2e2ec47cef Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Sun, 10 Sep 2023 10:55:31 -0400 Subject: [PATCH] Make this workaround less terrible --- src/worker.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/worker.ts b/src/worker.ts index e928db2..bec0ae7 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -662,9 +662,12 @@ const sentryWrapper = async (event: FetchEvent, test = false): Promise => allowedHeaders: /(.*)/, allowedSearchParams: /(.*)/, }, - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore TODO: Figure out why this throws type errors after @sentry/integrations update - integrations: [new RewriteFrames({ root: '/' })], + + /* TODO: Figure out what changed between @sentry/integration 7.65.0 and 7.66.0 + https://github.com/getsentry/sentry-javascript/compare/7.65.0...7.66.0 + which caused types to go apeshit */ + // eslint-disable-next-line @typescript-eslint/no-explicit-any + integrations: [new RewriteFrames({ root: '/' }) as any], /* event includes 'waitUntil', which is essential for Sentry logs to be delivered. Also includes 'request' -- no need to set it separately. */ release: RELEASE_NAME