diff --git a/package.json b/package.json index ff5be9c..3934603 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "@dnd-kit/sortable": "^3.1.0", "@mitchemmc/dexie-export-import": "^1.0.1", "@msgpack/msgpack": "^2.4.1", - "@sentry/react": "^6.2.2", + "@sentry/integrations": "^6.3.0", + "@sentry/react": "^6.3.0", "@stripe/stripe-js": "^1.13.1", "@tensorflow/tfjs": "^3.3.0", "@testing-library/jest-dom": "^5.11.9", diff --git a/src/index.js b/src/index.js index 7bf9ecf..b15aacd 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,7 @@ import React from "react"; import ReactDOM from "react-dom"; import * as Sentry from "@sentry/react"; +import Dedupe from "@sentry/integrations"; import App from "./App"; import Modal from "react-modal"; @@ -25,6 +26,7 @@ if (process.env.REACT_APP_LOGGING === "true") { Sentry.init({ dsn: process.env.REACT_APP_SENTRY_DSN, release: "owlbear-rodeo@" + process.env.REACT_APP_VERSION, + integrations: [new Dedupe()], // Ignore resize error as it is triggered by going fullscreen on slower computers // Ignore quota error // Ignore XDR encoding failure bug in Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1678243 diff --git a/yarn.lock b/yarn.lock index 2a1b881..9907962 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2312,68 +2312,78 @@ estree-walker "^1.0.1" picomatch "^2.2.2" -"@sentry/browser@6.2.2": - version "6.2.2" - resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-6.2.2.tgz#4df4ad7026b269d85b63b79a75387ce5370bc705" - integrity sha512-K5UGyEePtVPZIFMoiRafhd4Ov0M1kdozVsVKIPZrOpJyjQdPNX+fYDNL/h0nVmgOlE2S/uu4fl4mEfe/6aLShw== +"@sentry/browser@6.3.0": + version "6.3.0" + resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-6.3.0.tgz#523430667bff290220909fb96f35706ff808fed6" + integrity sha512-Rse9j5XwN9n7GnfW1mNscTS4YQ0oiBNJcaSk3Mw/vQT872Wh60yKyx5wxAw5GujFZI0NgdyPlZwZ/tGQwirRxA== dependencies: - "@sentry/core" "6.2.2" - "@sentry/types" "6.2.2" - "@sentry/utils" "6.2.2" + "@sentry/core" "6.3.0" + "@sentry/types" "6.3.0" + "@sentry/utils" "6.3.0" tslib "^1.9.3" -"@sentry/core@6.2.2": - version "6.2.2" - resolved "https://registry.yarnpkg.com/@sentry/core/-/core-6.2.2.tgz#ec86b5769f8855f43cb58e839f81f87074ec9a3f" - integrity sha512-qqWbvvXtymfXh7N5eEvk97MCnMURuyFIgqWdVD4MQM6yIfDCy36CyGfuQ3ViHTLZGdIfEOhLL9/f4kzf1RzqBA== +"@sentry/core@6.3.0": + version "6.3.0" + resolved "https://registry.yarnpkg.com/@sentry/core/-/core-6.3.0.tgz#3b8db24918a00c0b77f1663fc6d9be925f66bb3e" + integrity sha512-voot/lJ9gRXB6bx6tVqbEbD6jOd4Sx6Rfmm6pzfpom9C0q+fjIZTatTLq8GdXj8DzxaH1MBDSwtaq/eC3NqYpA== dependencies: - "@sentry/hub" "6.2.2" - "@sentry/minimal" "6.2.2" - "@sentry/types" "6.2.2" - "@sentry/utils" "6.2.2" + "@sentry/hub" "6.3.0" + "@sentry/minimal" "6.3.0" + "@sentry/types" "6.3.0" + "@sentry/utils" "6.3.0" tslib "^1.9.3" -"@sentry/hub@6.2.2": - version "6.2.2" - resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-6.2.2.tgz#f451d8d3ad207e81556b4846d810226693e0444e" - integrity sha512-VR6uQGRYt6RP633FHShlSLj0LUKGVrlTeSlwCoooWM5FR9lmi6akAaweuxpG78/kZvXrAWpjX6/nuYwHKGwzGA== +"@sentry/hub@6.3.0": + version "6.3.0" + resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-6.3.0.tgz#4225b3b0f31fe47f24d80753b257a4b57de5d651" + integrity sha512-lAnW3Om66t9IR+t1wya1NpOF9lGbvYG6Ca8wxJJGJ1t2PxKwyxpZKzRx0q8M1QFhlZ5cETCzxmM7lBEZ4QVCBg== dependencies: - "@sentry/types" "6.2.2" - "@sentry/utils" "6.2.2" + "@sentry/types" "6.3.0" + "@sentry/utils" "6.3.0" tslib "^1.9.3" -"@sentry/minimal@6.2.2": - version "6.2.2" - resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-6.2.2.tgz#01f41e0a6a6a2becfc99f6bb6f9c4bddf54f8dae" - integrity sha512-l0IgoGQgg1lTd4qDU8bQn25sbZBg8PwIHfuTLbGMlRr1flDXHOM1UXajWK/UKbAPelnU7M2JBSVzgl7PwjprzA== +"@sentry/integrations@^6.3.0": + version "6.3.0" + resolved "https://registry.yarnpkg.com/@sentry/integrations/-/integrations-6.3.0.tgz#2091889d1d4a319d48e84ebce43405c6a7fee5b7" + integrity sha512-/bl0wykJr+7zJHmnAulI+/J1kT5AI/019jWSXX7nmfIhp2sRXNUw0jeNVh+xfwrbR6Ik6IleAyzwHNYKzedGVQ== dependencies: - "@sentry/hub" "6.2.2" - "@sentry/types" "6.2.2" + "@sentry/types" "6.3.0" + "@sentry/utils" "6.3.0" + localforage "^1.8.1" tslib "^1.9.3" -"@sentry/react@^6.2.2": - version "6.2.2" - resolved "https://registry.yarnpkg.com/@sentry/react/-/react-6.2.2.tgz#6a93fa1013b2b9e37a8c0bc16cf0cbf4353de4c6" - integrity sha512-yDuxPOD4j2WE5nX1p48GIqXwrrmwkjryFjtYvLgzGJkiGWLmGTrxrSqtUKrbqahJpKt3mi24Nkg0cMlsFB178g== +"@sentry/minimal@6.3.0": + version "6.3.0" + resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-6.3.0.tgz#e64d87c92a4676a11168672a96589f46985f2b22" + integrity sha512-ZdPUwdPQkaKroy67NkwQRqmnfKyd/C1OyouM9IqYKyBjAInjOijwwc/Rd91PMHalvCOGfp1scNZYbZ+YFs/qQQ== dependencies: - "@sentry/browser" "6.2.2" - "@sentry/minimal" "6.2.2" - "@sentry/types" "6.2.2" - "@sentry/utils" "6.2.2" + "@sentry/hub" "6.3.0" + "@sentry/types" "6.3.0" + tslib "^1.9.3" + +"@sentry/react@^6.3.0": + version "6.3.0" + resolved "https://registry.yarnpkg.com/@sentry/react/-/react-6.3.0.tgz#97763bf006991460126fa7235ebc662cd340f804" + integrity sha512-5+Q2p65WMxslaW96209wUp0kfqT0HTyVV+4TTCIOA6Aj3rnKesQaR44mXHXlQVTQh2/8fk1PTkMEsvWJdSPkjA== + dependencies: + "@sentry/browser" "6.3.0" + "@sentry/minimal" "6.3.0" + "@sentry/types" "6.3.0" + "@sentry/utils" "6.3.0" hoist-non-react-statics "^3.3.2" tslib "^1.9.3" -"@sentry/types@6.2.2": - version "6.2.2" - resolved "https://registry.yarnpkg.com/@sentry/types/-/types-6.2.2.tgz#9fc7795156680d3da5fc6ecc66702d8f7917f2b1" - integrity sha512-Y/1sRtw3a5JU4YdNBig8lLSVJ1UdYtuge+QP1CVLcLSAbq07Ok1bvF+Z+BlNcnHqle2Fl8aKuryG5Yu86enOyQ== +"@sentry/types@6.3.0": + version "6.3.0" + resolved "https://registry.yarnpkg.com/@sentry/types/-/types-6.3.0.tgz#919cc1870f34b7126546c77e3c695052795d3add" + integrity sha512-xWyCYDmFPjS5ex60kxOOHbHEs4vs00qHbm0iShQfjl4OSg9S2azkcWofDmX8Xbn0FSOUXgdPCjNJW1B0bPVhCA== -"@sentry/utils@6.2.2": - version "6.2.2" - resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-6.2.2.tgz#69f7151db74e65a010cec062cc9ab3e30bf2c80a" - integrity sha512-qaee6X6VDNZ8HeO83/veaKw0KuhDE7j1R+Yryme3PywFzsoTzutDrEQjb7gvcHAhBaAYX8IHUBHgxcFI9BxI+w== +"@sentry/utils@6.3.0": + version "6.3.0" + resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-6.3.0.tgz#e28645b6d4acd03a478e58bfe112ea02f81e94a0" + integrity sha512-NZzw4oLelgvCsVBG2e+ZtFtaBvgA7rZYtcGFbZTphhAlYoJ6JMCQUzYk0iwJK79yR1quh510x4UE0jynvvToWg== dependencies: - "@sentry/types" "6.2.2" + "@sentry/types" "6.3.0" tslib "^1.9.3" "@sinonjs/commons@^1.7.0": @@ -7192,6 +7202,11 @@ image-outline@^0.1.0: marching-squares "^0.2.0" minimist "^1.2.0" ndarray "^1.0.18" + +immediate@~3.0.5: + version "3.0.6" + resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b" + integrity sha1-nbHb0Pr43m++D13V5Wu2BigN5ps= immer@8.0.1: version "8.0.1" @@ -8470,6 +8485,13 @@ levn@~0.3.0: prelude-ls "~1.1.2" type-check "~0.3.2" +lie@3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/lie/-/lie-3.1.1.tgz#9a436b2cc7746ca59de7a41fa469b3efb76bd87e" + integrity sha1-mkNrLMd0bKWd56QfpGmz77dr2H4= + dependencies: + immediate "~3.0.5" + line-column@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/line-column/-/line-column-1.0.2.tgz#d25af2936b6f4849172b312e4792d1d987bc34a2" @@ -8532,6 +8554,13 @@ loader-utils@^1.1.0, loader-utils@^1.2.3, loader-utils@^1.4.0: emojis-list "^3.0.0" json5 "^1.0.1" +localforage@^1.8.1: + version "1.9.0" + resolved "https://registry.yarnpkg.com/localforage/-/localforage-1.9.0.tgz#f3e4d32a8300b362b4634cc4e066d9d00d2f09d1" + integrity sha512-rR1oyNrKulpe+VM9cYmcFn6tsHuokyVHFaCM3+osEmxaHTbEk8oQu6eGDfS6DQLWi/N67XRmB8ECG37OES368g== + dependencies: + lie "3.1.1" + locate-path@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e"