From 458b4a45e574a99713585c5a9e5a3a47f8ce9aba Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 5 Nov 2024 18:35:53 +0000 Subject: [PATCH] Avoid use of transitive deps Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/sentry.ts | 3 +-- test/test-utils/poll.ts | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/sentry.ts b/src/sentry.ts index c454fed7ed..c70201679c 100644 --- a/src/sentry.ts +++ b/src/sentry.ts @@ -8,7 +8,6 @@ Please see LICENSE files in the repository root for full details. import * as Sentry from "@sentry/browser"; import { MatrixClient } from "matrix-js-sdk/src/matrix"; -import { type Integration } from "@sentry/types/build/types/integration"; import SdkConfig from "./SdkConfig"; import { MatrixClientPeg } from "./MatrixClientPeg"; @@ -196,7 +195,7 @@ export function setSentryUser(mxid: string): void { export async function initSentry(sentryConfig: IConfigOptions["sentry"]): Promise { if (!sentryConfig) return; // Only enable Integrations.GlobalHandlers, which hooks uncaught exceptions, if automaticErrorReporting is true - const integrations: Integration[] = [ + const integrations = [ Sentry.inboundFiltersIntegration(), Sentry.functionToStringIntegration(), Sentry.breadcrumbsIntegration(), diff --git a/test/test-utils/poll.ts b/test/test-utils/poll.ts index 4f20403fb2..276730c2ff 100644 --- a/test/test-utils/poll.ts +++ b/test/test-utils/poll.ts @@ -18,7 +18,7 @@ import { M_POLL_RESPONSE, M_TEXT, } from "matrix-js-sdk/src/matrix"; -import { uuid4 } from "@sentry/utils"; +import { randomString } from "matrix-js-sdk/src/randomstring"; import { flushPromises } from "./utilities"; @@ -67,7 +67,7 @@ export const makePollEndEvent = ( id?: string, ): MatrixEvent => { return new MatrixEvent({ - event_id: id || uuid4(), + event_id: id || randomString(16), room_id: roomId, origin_server_ts: ts, type: M_POLL_END.name, @@ -91,7 +91,7 @@ export const makePollResponseEvent = ( ts = 0, ): MatrixEvent => new MatrixEvent({ - event_id: uuid4(), + event_id: randomString(16), room_id: roomId, origin_server_ts: ts, type: M_POLL_RESPONSE.name,