diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 6be29b4..d7b976e 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -23,6 +23,7 @@ "@noble/ciphers": "^0.1.4", "@peculiar/webcrypto": "^1.4.3", "@scure/bip39": "^1.2.1", + "@sentry/browser": "^7.63.0", "binconv": "^0.2.0", "classnames": "^2.3.2", "ed25519-keygen": "^0.4.1", @@ -3839,6 +3840,82 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/@sentry-internal/tracing": { + "version": "7.63.0", + "resolved": "https://registry.npmjs.org/@sentry-internal/tracing/-/tracing-7.63.0.tgz", + "integrity": "sha512-Fxpc53p6NGvLSURg3iRvZA0k10K9yfeVhtczvJnpX30POBuV41wxpkLHkb68fjksirjEma1K3Ut1iLOEEDpPQg==", + "dependencies": { + "@sentry/core": "7.63.0", + "@sentry/types": "7.63.0", + "@sentry/utils": "7.63.0", + "tslib": "^2.4.1 || ^1.9.3" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@sentry/browser": { + "version": "7.63.0", + "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-7.63.0.tgz", + "integrity": "sha512-P1Iw/2281C/7CUCRsN4jgXvjMNKnrwKqxRg7JqN8eVeCDPMpOeEPHNJ6YatEXdVLTKVn0JB7L63Q1prhFr8+SQ==", + "dependencies": { + "@sentry-internal/tracing": "7.63.0", + "@sentry/core": "7.63.0", + "@sentry/replay": "7.63.0", + "@sentry/types": "7.63.0", + "@sentry/utils": "7.63.0", + "tslib": "^2.4.1 || ^1.9.3" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@sentry/core": { + "version": "7.63.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.63.0.tgz", + "integrity": "sha512-13Ljiq8hv6ieCkO+Am99/PljYJO5ynKT/hRQrWgGy9IIEgUr8sV3fW+1W6K4/3MCeOJou0HsiGBjOD1mASItVg==", + "dependencies": { + "@sentry/types": "7.63.0", + "@sentry/utils": "7.63.0", + "tslib": "^2.4.1 || ^1.9.3" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@sentry/replay": { + "version": "7.63.0", + "resolved": "https://registry.npmjs.org/@sentry/replay/-/replay-7.63.0.tgz", + "integrity": "sha512-ikeFVojuP9oDF103blZcj0Vvb4S50dV54BESMrMW2lYBoMMjvOd7AdL+iDHjn1OL05/mv1C6Oc8MovmvdjILVA==", + "dependencies": { + "@sentry/core": "7.63.0", + "@sentry/types": "7.63.0", + "@sentry/utils": "7.63.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@sentry/types": { + "version": "7.63.0", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.63.0.tgz", + "integrity": "sha512-pZNwJVW7RqNLGuTUAhoygt0c9zmc0js10eANAz0MstygJRhQI1tqPDuiELVdujPrbeL+IFKF+7NvRDAydR2Niw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@sentry/utils": { + "version": "7.63.0", + "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.63.0.tgz", + "integrity": "sha512-7FQv1RYAwnuTuarruP+1+Jd6YQuN7i/Y7KltwPMVEwU7j5mzYQaexLr/Jz1XIdR2KYVdkbXQyP8jj8BmA6u9Jw==", + "dependencies": { + "@sentry/types": "7.63.0", + "tslib": "^2.4.1 || ^1.9.3" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/@sigstore/protobuf-specs": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/@sigstore/protobuf-specs/-/protobuf-specs-0.1.0.tgz", diff --git a/package.json b/package.json index 7c91044..70dc374 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "@noble/ciphers": "^0.1.4", "@peculiar/webcrypto": "^1.4.3", "@scure/bip39": "^1.2.1", + "@sentry/browser": "^7.63.0", "binconv": "^0.2.0", "classnames": "^2.3.2", "ed25519-keygen": "^0.4.1", diff --git a/shared/constants.ts b/shared/constants.ts new file mode 100644 index 0000000..8435ba0 --- /dev/null +++ b/shared/constants.ts @@ -0,0 +1,2 @@ +export const SENTRY_DSN = + "https://366406d802a646a7a82363a4486a5103@errortracker.lumeweb.com/1"; diff --git a/ui/account.js b/ui/account.js index c0be441..e8fafa0 100644 --- a/ui/account.js +++ b/ui/account.js @@ -1,7 +1,10 @@ import { createRoot } from "react-dom"; import React from "react"; - +import * as Sentry from "@sentry/browser"; import App from "./apps/account/App.tsx"; +import { SENTRY_DSN } from "../shared/constants.ts"; + +Sentry.init({ dsn: SENTRY_DSN }); const root = createRoot(document.getElementById("app")); diff --git a/ui/dashboard.js b/ui/dashboard.js index 9ab8b63..1470bf6 100644 --- a/ui/dashboard.js +++ b/ui/dashboard.js @@ -1,7 +1,9 @@ import { createRoot } from "react-dom"; import React from "react"; - import App from "./apps/dashboard/App.jsx"; +import { SENTRY_DSN } from "../shared/constants.ts"; + +Sentry.init({ dsn: SENTRY_DSN }); const root = createRoot(document.getElementById("app")); diff --git a/ui/onboarding.js b/ui/onboarding.js index fef617a..1412ebe 100644 --- a/ui/onboarding.js +++ b/ui/onboarding.js @@ -1,7 +1,9 @@ import { createRoot } from "react-dom"; import React from "react"; - import App from "./apps/onboarding/App.tsx"; +import { SENTRY_DSN } from "../shared/constants.ts"; + +Sentry.init({ dsn: SENTRY_DSN }); const root = createRoot(document.getElementById("app"));