Avoid use of transitive deps
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
01039137b5
commit
458b4a45e5
2 changed files with 4 additions and 5 deletions
|
@ -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<void> {
|
||||
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(),
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue