From 7247434f0bbbe43585923eb6afd048b05c4b81a7 Mon Sep 17 00:00:00 2001 From: GitHub Date: Thu, 19 Jan 2023 14:14:58 +0000 Subject: [PATCH 1/6] chore: update scripts/update-javascript.sh to 7.31.1 --- CHANGELOG.md | 3 + package.json | 20 +-- yarn.lock | 428 ++++++++++++++++++++++++++++++++++++++------------- 3 files changed, 338 insertions(+), 113 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d3b487835..aff4af8f1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ - Bump Android SDK from v6.11.0 to v6.12.1 ([#2755](https://github.com/getsentry/sentry-react-native/pull/2755)) - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#6121) - [diff](https://github.com/getsentry/sentry-java/compare/6.11.0...6.12.1) +- Bump JavaScript SDK from v7.29.0 to v7.31.1 ([#2738](https://github.com/getsentry/sentry-react-native/pull/2738)) + - [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7311) + - [diff](https://github.com/getsentry/sentry-javascript/compare/7.29.0...7.31.1) ## 4.13.0 diff --git a/package.json b/package.json index 9ba2d96751..cd58c81d5b 100644 --- a/package.json +++ b/package.json @@ -42,20 +42,20 @@ "react-native": ">=0.56.0" }, "dependencies": { - "@sentry/browser": "7.29.0", + "@sentry/browser": "7.31.1", "@sentry/cli": "1.74.4", - "@sentry/core": "7.29.0", - "@sentry/hub": "7.29.0", - "@sentry/integrations": "7.29.0", - "@sentry/react": "7.29.0", - "@sentry/tracing": "7.29.0", - "@sentry/types": "7.29.0", - "@sentry/utils": "7.29.0", + "@sentry/core": "7.31.1", + "@sentry/hub": "7.31.1", + "@sentry/integrations": "7.31.1", + "@sentry/react": "7.31.1", + "@sentry/tracing": "7.31.1", + "@sentry/types": "7.31.1", + "@sentry/utils": "7.31.1", "@sentry/wizard": "1.4.0" }, "devDependencies": { - "@sentry-internal/eslint-config-sdk": "7.29.0", - "@sentry-internal/eslint-plugin-sdk": "7.29.0", + "@sentry-internal/eslint-config-sdk": "7.31.1", + "@sentry-internal/eslint-plugin-sdk": "7.31.1", "@sentry/typescript": "^5.20.1", "@types/jest": "^26.0.15", "@types/react": "^18.0.25", diff --git a/yarn.lock b/yarn.lock index 79a2556d70..5f7c79decf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1080,6 +1080,27 @@ "@jridgewell/resolve-uri" "3.1.0" "@jridgewell/sourcemap-codec" "1.4.14" +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + +"@nodelib/fs.walk@^1.2.3": + version "1.2.8" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + "@react-native-community/cli-clean@^9.2.1": version "9.2.1" resolved "https://registry.yarnpkg.com/@react-native-community/cli-clean/-/cli-clean-9.2.1.tgz#198c5dd39c432efb5374582073065ff75d67d018" @@ -1256,42 +1277,42 @@ resolved "https://registry.yarnpkg.com/@react-native/polyfills/-/polyfills-2.0.0.tgz#4c40b74655c83982c8cf47530ee7dc13d957b6aa" integrity sha512-K0aGNn1TjalKj+65D7ycc1//H9roAQ51GJVk5ZJQFb2teECGmzd86bYDC0aYdbRf7gtovescq4Zt6FR0tgXiHQ== -"@sentry-internal/eslint-config-sdk@7.29.0": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@sentry-internal/eslint-config-sdk/-/eslint-config-sdk-7.29.0.tgz#ea0e24e0edcc4daf00c76876b809697ce36ded06" - integrity sha512-2173bQkiuSjCY8a3JubgEo+JPMXPObIjcMK9kQhPFmNv4kn8AcnLOUO5fzN/4Bm9PNzuLSqJeJgJrgh0K/rBsw== +"@sentry-internal/eslint-config-sdk@7.31.1": + version "7.31.1" + resolved "https://registry.yarnpkg.com/@sentry-internal/eslint-config-sdk/-/eslint-config-sdk-7.31.1.tgz#4473f01a7ef9c0facc5326893ca350d85da21041" + integrity sha512-RGgBa+sF4W7z8emW+4+r8xgVQtpSqfYSJMmU9wVe/UfIERNLnpj00pK4Vg4Bxbxiwf9TnXG/MyN3qyfJqqUpQw== dependencies: - "@sentry-internal/eslint-plugin-sdk" "7.29.0" - "@sentry-internal/typescript" "7.29.0" - "@typescript-eslint/eslint-plugin" "^3.9.0" - "@typescript-eslint/parser" "^3.9.0" + "@sentry-internal/eslint-plugin-sdk" "7.31.1" + "@sentry-internal/typescript" "7.31.1" + "@typescript-eslint/eslint-plugin" "^5.48.0" + "@typescript-eslint/parser" "^5.48.0" eslint-config-prettier "^6.11.0" eslint-plugin-deprecation "^1.1.0" eslint-plugin-import "^2.22.0" eslint-plugin-jsdoc "^30.0.3" eslint-plugin-simple-import-sort "^5.0.3" -"@sentry-internal/eslint-plugin-sdk@7.29.0": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@sentry-internal/eslint-plugin-sdk/-/eslint-plugin-sdk-7.29.0.tgz#f8d10edd65ec272cfb01b56ca148874baf2ff9aa" - integrity sha512-bhJNEKMR0rPaL+++HiPYXtsRXBV7fyX69IcbluLGXTNk8IvSbwxVl/jKZDO5pterE312oqBlkCHnQidYmqd3Zg== +"@sentry-internal/eslint-plugin-sdk@7.31.1": + version "7.31.1" + resolved "https://registry.yarnpkg.com/@sentry-internal/eslint-plugin-sdk/-/eslint-plugin-sdk-7.31.1.tgz#d08b96a7d892d83c6644aa136d33f63e523ead51" + integrity sha512-nXoDrgpJiRvKr2DIm556XE0MwLUM5LNatfBVzmJgOd57b2kCh2MamYCZBlqjmLvJ3cB/nYlG9xK4CKBPynXxcQ== dependencies: requireindex "~1.1.0" -"@sentry-internal/typescript@7.29.0": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@sentry-internal/typescript/-/typescript-7.29.0.tgz#4ea3133d4d0056a5c7f89f58ad26f1c1062d11ad" - integrity sha512-WB1ncGZ8IjM2N/hGD01mYoWIoVUcuCMXZIaejXxYnhnIdBv+jTsO7UiRa66IsCyl1QGQMNPyMGsgCoqqwctQPQ== +"@sentry-internal/typescript@7.31.1": + version "7.31.1" + resolved "https://registry.yarnpkg.com/@sentry-internal/typescript/-/typescript-7.31.1.tgz#efba3403d7539d4b106cac867f02cae330910af1" + integrity sha512-nYuLczcPd4PtKjfgdDMEGAczREBTtUTr1hjMZSafCMY4FUwdns9VKu4Eb13nrrytmF2zyqcCg4pPAXRuaeUAbA== -"@sentry/browser@7.29.0": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-7.29.0.tgz#eb162b50adec33ac49ecd3dc930bdffbfda8098e" - integrity sha512-Af+dIcntaw405Wt7myDOMGDxiszfy4aBdshrEKYbGgcfHjgXBIdF3iKlNatvl6nrOm+IOVuKgSpCLOr2hiCwzw== +"@sentry/browser@7.31.1": + version "7.31.1" + resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-7.31.1.tgz#ac42ef5994d0e983e4c44c35b17013a0080c6527" + integrity sha512-Rg9F61S1tz1Dv3iUyyGP26bxoi7WJAG2+f2fBbSmFuJ+JTH4Jvu2/F1bBig8Dz01ejzVhbNSUUCfoDhSvksIsQ== dependencies: - "@sentry/core" "7.29.0" - "@sentry/replay" "7.29.0" - "@sentry/types" "7.29.0" - "@sentry/utils" "7.29.0" + "@sentry/core" "7.31.1" + "@sentry/replay" "7.31.1" + "@sentry/types" "7.31.1" + "@sentry/utils" "7.31.1" tslib "^1.9.3" "@sentry/cli@1.74.4": @@ -1320,69 +1341,69 @@ proxy-from-env "^1.1.0" which "^2.0.2" -"@sentry/core@7.29.0": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.29.0.tgz#bc4b54d56cf7652598d4430cf43ea97cc069f6fe" - integrity sha512-+e9aIp2ljtT4EJq3901z6TfEVEeqZd5cWzbKEuQzPn2UO6If9+Utd7kY2Y31eQYb4QnJgZfiIEz1HonuYY6zqQ== +"@sentry/core@7.31.1": + version "7.31.1" + resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.31.1.tgz#8c48e9c6a24b612eb7f757fdf246ed6b22c26b3b" + integrity sha512-quaNU6z8jabmatBTDi28Wpff2yzfWIp/IU4bbi2QOtEiCNT+TQJXqlRTRMu9xLrX7YzyKCL5X2gbit/85lyWUg== dependencies: - "@sentry/types" "7.29.0" - "@sentry/utils" "7.29.0" + "@sentry/types" "7.31.1" + "@sentry/utils" "7.31.1" tslib "^1.9.3" -"@sentry/hub@7.29.0": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-7.29.0.tgz#916f818617b3c3993853737db3e752c21f8f8445" - integrity sha512-nIV2NtTn16VukTtWFhROHJ35NyUIXgEGtesG8a1i7D4iRSvkfLkLrQ9i6D0BAE2huqKqQemO3zGEPR00szqsiA== +"@sentry/hub@7.31.1": + version "7.31.1" + resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-7.31.1.tgz#a1b7031551c6e0a1e2f2eddf7a5ced2f4627264e" + integrity sha512-Hg0kjQSISecNL6ZqlyZLUY+QB/lwN12xTvOX/sf4007ApEi7UutQI954AkcmXXw97Kt8Of12ElgUO/9+Jj86VQ== dependencies: - "@sentry/core" "7.29.0" - "@sentry/types" "7.29.0" - "@sentry/utils" "7.29.0" + "@sentry/core" "7.31.1" + "@sentry/types" "7.31.1" + "@sentry/utils" "7.31.1" tslib "^1.9.3" -"@sentry/integrations@7.29.0": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@sentry/integrations/-/integrations-7.29.0.tgz#12595ac8d964b8006148618b8d5fad294e623c7f" - integrity sha512-BkZe3ALij320VtC5bNkeSz3OUhT9oxZsj2lf5rCuRFqcqw4tvVNADF/Y98mf0L4VCy582M9MlNXmwfewJjxGOA== +"@sentry/integrations@7.31.1": + version "7.31.1" + resolved "https://registry.yarnpkg.com/@sentry/integrations/-/integrations-7.31.1.tgz#abca1e87687049f305dc4514d0d287b643fe43af" + integrity sha512-El+qzwbiXHPDWg8ZmX+W/kCheoaYoaAJuaG2+l3D5Y4ny8JNYfSMCum9qXVEb8oB98fFHfSEoFzB+z54pH+p3w== dependencies: - "@sentry/types" "7.29.0" - "@sentry/utils" "7.29.0" + "@sentry/types" "7.31.1" + "@sentry/utils" "7.31.1" localforage "^1.8.1" tslib "^1.9.3" -"@sentry/react@7.29.0": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@sentry/react/-/react-7.29.0.tgz#a1c2ef522a4ccf1e948d77584e59e1254e09c92b" - integrity sha512-pJ138QTChfAiYzFrCgycBgXrAVARV6TdVvLB8z/HsqbHzPq17RhyF9M1xPE4ffeLDQAEuSudwED9CLOpJqKnAw== +"@sentry/react@7.31.1": + version "7.31.1" + resolved "https://registry.yarnpkg.com/@sentry/react/-/react-7.31.1.tgz#ffebf7ebfe1c1514b56dc91f53e523a425dc4630" + integrity sha512-h65vrF7xVFV+JAvgUJQSqfY4EPU+E4Y39nwjQdnMvdrhb3gjlhOUQTBVGibuM0/bvwm7vBgjfVSBOezavfp6eA== dependencies: - "@sentry/browser" "7.29.0" - "@sentry/types" "7.29.0" - "@sentry/utils" "7.29.0" + "@sentry/browser" "7.31.1" + "@sentry/types" "7.31.1" + "@sentry/utils" "7.31.1" hoist-non-react-statics "^3.3.2" tslib "^1.9.3" -"@sentry/replay@7.29.0": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@sentry/replay/-/replay-7.29.0.tgz#75d5bb9df39e0a31994be245032c9998af62a304" - integrity sha512-Gw7HgviJQu6pX5RFQGVY38Av4qFn9otrZdwSSl/QK5hIyg6yhlh5h7U0ydZkrYYGiW6Z6SYYRpEWCJc/Wbh+ZQ== +"@sentry/replay@7.31.1": + version "7.31.1" + resolved "https://registry.yarnpkg.com/@sentry/replay/-/replay-7.31.1.tgz#453ad85fc2f14e4d203d3a7e0bf790877f697964" + integrity sha512-sLArvwZn6IwA/bASctyhxN7LhdCXJvMmyTynRfmk7pzuNzBMc5CNlHeIsDpHrfQuH53IKicvl6cHnHyclu5DSA== dependencies: - "@sentry/core" "7.29.0" - "@sentry/types" "7.29.0" - "@sentry/utils" "7.29.0" + "@sentry/core" "7.31.1" + "@sentry/types" "7.31.1" + "@sentry/utils" "7.31.1" -"@sentry/tracing@7.29.0": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-7.29.0.tgz#767f309cbff46ab12bec6ab3c266f7f03fec91fd" - integrity sha512-MAN/G6XROtRhzo/KDjddb6VJn/Q1TaPLwdyj9vvfkUkBNtlt5k16oXp+u7eHWX0uujER9wnZtj2ivXaPeqq0VA== +"@sentry/tracing@7.31.1": + version "7.31.1" + resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-7.31.1.tgz#f3bf8ca3aa9ddc15c282425df8043be978baadb4" + integrity sha512-kW6vNwddp2Ycq2JfTzveUEIRF9YQwvl7L6BBoOZt9oVnYlsPipEeyU2Q277LatHldr8hDo2tbz/vz2BQjO5GSw== dependencies: - "@sentry/core" "7.29.0" - "@sentry/types" "7.29.0" - "@sentry/utils" "7.29.0" + "@sentry/core" "7.31.1" + "@sentry/types" "7.31.1" + "@sentry/utils" "7.31.1" tslib "^1.9.3" -"@sentry/types@7.29.0": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.29.0.tgz#ed829b6014ee19049035fec6af2b4fea44ff28b8" - integrity sha512-DmoEpoqHPty3VxqubS/5gxarwebHRlcBd/yuno+PS3xy++/i9YPjOWLZhU2jYs1cW68M9R6CcCOiC9f2ckJjdw== +"@sentry/types@7.31.1": + version "7.31.1" + resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.31.1.tgz#920fc10b289ac1f99f277033b4d26625028a1f9f" + integrity sha512-1uzr2l0AxEnxUX/S0EdmXUQ15/kDsam8Nbdw4Gai8SU764XwQgA/TTjoewVP597CDI/AHKan67Y630/Ylmkx9w== "@sentry/typescript@^5.20.1": version "5.20.1" @@ -1392,12 +1413,12 @@ tslint-config-prettier "^1.18.0" tslint-consistent-codestyle "^1.15.1" -"@sentry/utils@7.29.0": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.29.0.tgz#cbf8f87dd851b0fdc7870db9c68014c321c3bab8" - integrity sha512-ICcBwTiBGK8NQA8H2BJo0JcMN6yCeKLqNKNMVampRgS6wSfSk1edvcTdhRkW3bSktIGrIPZrKskBHyMwDGF2XQ== +"@sentry/utils@7.31.1": + version "7.31.1" + resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.31.1.tgz#bdc988de603318a30ff247d5702c2f9ac81255cb" + integrity sha512-ZsIPq29aNdP9q3R7qIzJhZ9WW+4DzE9g5SfGwx3UjTIxoRRBfdUJUbf7S+LKEdvCkKbyoDt6FLt5MiSJV43xBA== dependencies: - "@sentry/types" "7.29.0" + "@sentry/types" "7.31.1" tslib "^1.9.3" "@sentry/wizard@1.4.0": @@ -1472,11 +1493,6 @@ resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== -"@types/eslint-visitor-keys@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d" - integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag== - "@types/graceful-fs@^4.1.2": version "4.1.3" resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.3.tgz#039af35fe26bec35003e8d86d2ee9c586354348f" @@ -1524,6 +1540,11 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0" integrity sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw== +"@types/json-schema@^7.0.9": + version "7.0.11" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" + integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== + "@types/json5@^0.0.29": version "0.0.29" resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" @@ -1560,6 +1581,11 @@ resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39" integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew== +"@types/semver@^7.3.12": + version "7.3.13" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.13.tgz#da4bfd73f49bd541d28920ab0e2bf0ee80f71c91" + integrity sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw== + "@types/stack-utils@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e" @@ -1591,19 +1617,22 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@^3.9.0": - version "3.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.10.1.tgz#7e061338a1383f59edc204c605899f93dc2e2c8f" - integrity sha512-PQg0emRtzZFWq6PxBcdxRH3QIQiyFO3WCVpRL3fgj5oQS3CDs3AeAKfv4DxNhzn8ITdNJGJ4D3Qw8eAJf3lXeQ== - dependencies: - "@typescript-eslint/experimental-utils" "3.10.1" - debug "^4.1.1" - functional-red-black-tree "^1.0.1" - regexpp "^3.0.0" - semver "^7.3.2" - tsutils "^3.17.1" - -"@typescript-eslint/experimental-utils@3.10.1", "@typescript-eslint/experimental-utils@^2.19.2 || ^3.0.0": +"@typescript-eslint/eslint-plugin@^5.48.0": + version "5.48.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.48.2.tgz#112e6ae1e23a1dc8333ce82bb9c65c2608b4d8a3" + integrity sha512-sR0Gja9Ky1teIq4qJOl0nC+Tk64/uYdX+mi+5iB//MH8gwyx8e3SOyhEzeLZEFEEfCaLf8KJq+Bd/6je1t+CAg== + dependencies: + "@typescript-eslint/scope-manager" "5.48.2" + "@typescript-eslint/type-utils" "5.48.2" + "@typescript-eslint/utils" "5.48.2" + debug "^4.3.4" + ignore "^5.2.0" + natural-compare-lite "^1.4.0" + regexpp "^3.2.0" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/experimental-utils@^2.19.2 || ^3.0.0": version "3.10.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.10.1.tgz#e179ffc81a80ebcae2ea04e0332f8b251345a686" integrity sha512-DewqIgscDzmAfd5nOGe4zm6Bl7PKtMG2Ad0KG8CUZAHlXfAKTF9Ol5PXhiMh39yRL2ChRH1cuuUGOcVyyrhQIw== @@ -1614,22 +1643,44 @@ eslint-scope "^5.0.0" eslint-utils "^2.0.0" -"@typescript-eslint/parser@^3.9.0": - version "3.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.10.1.tgz#1883858e83e8b442627e1ac6f408925211155467" - integrity sha512-Ug1RcWcrJP02hmtaXVS3axPPTTPnZjupqhgj+NnZ6BCkwSImWk/283347+x9wN+lqOdK9Eo3vsyiyDHgsmiEJw== +"@typescript-eslint/parser@^5.48.0": + version "5.48.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.48.2.tgz#c9edef2a0922d26a37dba03be20c5fff378313b3" + integrity sha512-38zMsKsG2sIuM5Oi/olurGwYJXzmtdsHhn5mI/pQogP+BjYVkK5iRazCQ8RGS0V+YLk282uWElN70zAAUmaYHw== dependencies: - "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "3.10.1" - "@typescript-eslint/types" "3.10.1" - "@typescript-eslint/typescript-estree" "3.10.1" - eslint-visitor-keys "^1.1.0" + "@typescript-eslint/scope-manager" "5.48.2" + "@typescript-eslint/types" "5.48.2" + "@typescript-eslint/typescript-estree" "5.48.2" + debug "^4.3.4" + +"@typescript-eslint/scope-manager@5.48.2": + version "5.48.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.48.2.tgz#bb7676cb78f1e94921eaab637a4b5d596f838abc" + integrity sha512-zEUFfonQid5KRDKoI3O+uP1GnrFd4tIHlvs+sTJXiWuypUWMuDaottkJuR612wQfOkjYbsaskSIURV9xo4f+Fw== + dependencies: + "@typescript-eslint/types" "5.48.2" + "@typescript-eslint/visitor-keys" "5.48.2" + +"@typescript-eslint/type-utils@5.48.2": + version "5.48.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.48.2.tgz#7d3aeca9fa37a7ab7e3d9056a99b42f342c48ad7" + integrity sha512-QVWx7J5sPMRiOMJp5dYshPxABRoZV1xbRirqSk8yuIIsu0nvMTZesKErEA3Oix1k+uvsk8Cs8TGJ6kQ0ndAcew== + dependencies: + "@typescript-eslint/typescript-estree" "5.48.2" + "@typescript-eslint/utils" "5.48.2" + debug "^4.3.4" + tsutils "^3.21.0" "@typescript-eslint/types@3.10.1": version "3.10.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.10.1.tgz#1d7463fa7c32d8a23ab508a803ca2fe26e758727" integrity sha512-+3+FCUJIahE9q0lDi1WleYzjCwJs5hIsbugIgnbB+dSCYUxl8L6PwmsyOPFZde2hc1DlTo/xnkOgiTLSyAbHiQ== +"@typescript-eslint/types@5.48.2": + version "5.48.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.48.2.tgz#635706abb1ec164137f92148f06f794438c97b8e" + integrity sha512-hE7dA77xxu7ByBc6KCzikgfRyBCTst6dZQpwaTy25iMYOnbNljDT4hjhrGEJJ0QoMjrfqrx+j1l1B9/LtKeuqA== + "@typescript-eslint/typescript-estree@3.10.1": version "3.10.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.10.1.tgz#fd0061cc38add4fad45136d654408569f365b853" @@ -1644,6 +1695,33 @@ semver "^7.3.2" tsutils "^3.17.1" +"@typescript-eslint/typescript-estree@5.48.2": + version "5.48.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.48.2.tgz#6e206b462942b32383582a6c9251c05021cc21b0" + integrity sha512-bibvD3z6ilnoVxUBFEgkO0k0aFvUc4Cttt0dAreEr+nrAHhWzkO83PEVVuieK3DqcgL6VAK5dkzK8XUVja5Zcg== + dependencies: + "@typescript-eslint/types" "5.48.2" + "@typescript-eslint/visitor-keys" "5.48.2" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/utils@5.48.2": + version "5.48.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.48.2.tgz#3777a91dcb22b8499a25519e06eef2e9569295a3" + integrity sha512-2h18c0d7jgkw6tdKTlNaM7wyopbLRBiit8oAxoP89YnuBOzCZ8g8aBCaCqq7h208qUTroL7Whgzam7UY3HVLow== + dependencies: + "@types/json-schema" "^7.0.9" + "@types/semver" "^7.3.12" + "@typescript-eslint/scope-manager" "5.48.2" + "@typescript-eslint/types" "5.48.2" + "@typescript-eslint/typescript-estree" "5.48.2" + eslint-scope "^5.1.1" + eslint-utils "^3.0.0" + semver "^7.3.7" + "@typescript-eslint/visitor-keys@3.10.1": version "3.10.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.10.1.tgz#cd4274773e3eb63b2e870ac602274487ecd1e931" @@ -1651,6 +1729,14 @@ dependencies: eslint-visitor-keys "^1.1.0" +"@typescript-eslint/visitor-keys@5.48.2": + version "5.48.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.48.2.tgz#c247582a0bcce467461d7b696513bf9455000060" + integrity sha512-z9njZLSkwmjFWUelGEwEbdf4NwKvfHxvGC0OcGN1Hp/XNDIcJ7D5DpPNPv6x6/mFvc1tQHsaWmpD/a4gOvvCJQ== + dependencies: + "@typescript-eslint/types" "5.48.2" + eslint-visitor-keys "^3.3.0" + abab@^2.0.0: version "2.0.5" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a" @@ -1857,6 +1943,11 @@ array-includes@^3.1.1, array-includes@^3.1.5: get-intrinsic "^1.1.1" is-string "^1.0.7" +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" + integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== + array-unique@^0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" @@ -2654,6 +2745,13 @@ debug@4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: dependencies: ms "^2.1.1" +debug@^4.3.4: + version "4.3.4" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== + dependencies: + ms "2.1.2" + decamelize@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" @@ -2751,6 +2849,13 @@ diff-sequences@^26.5.0: resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-26.5.0.tgz#ef766cf09d43ed40406611f11c6d8d9dd8b2fefd" integrity sha512-ZXx86srb/iYy6jG71k++wBN9P9J05UNQ5hQHQd9MtMPvcqXPx/vKU69jfHV637D00Q2gSgPk2D+jSx3l1lDW/Q== +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== + dependencies: + path-type "^4.0.0" + doctrine@1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" @@ -3029,7 +3134,7 @@ eslint-plugin-simple-import-sort@^5.0.3: resolved "https://registry.yarnpkg.com/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-5.0.3.tgz#9ae258ddada6efffc55e47a134afbd279eb31fc6" integrity sha512-1rf3AWiHeWNCQdAq0iXNnlccnH1UDnelGgrPbjBBHE8d2hXVtOudcmy0vTF4hri3iJ0MKz8jBhmH6lJ0ZWZLHQ== -eslint-scope@^5.0.0, eslint-scope@^5.1.0: +eslint-scope@^5.0.0, eslint-scope@^5.1.0, eslint-scope@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== @@ -3044,11 +3149,28 @@ eslint-utils@^2.0.0, eslint-utils@^2.1.0: dependencies: eslint-visitor-keys "^1.1.0" +eslint-utils@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" + integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== + dependencies: + eslint-visitor-keys "^2.0.0" + eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== +eslint-visitor-keys@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" + integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== + +eslint-visitor-keys@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" + integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== + eslint@^7.6.0: version "7.9.0" resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.9.0.tgz#522aeccc5c3a19017cf0cb46ebfd660a79acf337" @@ -3251,6 +3373,17 @@ fast-deep-equal@^3.1.1: resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== +fast-glob@^3.2.9: + version "3.2.12" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80" + integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" @@ -3261,6 +3394,13 @@ fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= +fastq@^1.6.0: + version "1.15.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.15.0.tgz#d04d07c6a2a68fe4599fea8d2e103a937fae6b3a" + integrity sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw== + dependencies: + reusify "^1.0.4" + fb-watchman@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.1.tgz#fc84fb39d2709cf3ff6d743706157bb5708a8a85" @@ -3549,6 +3689,13 @@ glob-parent@^5.0.0: dependencies: is-glob "^4.0.1" +glob-parent@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: version "7.1.6" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" @@ -3573,6 +3720,18 @@ globals@^12.1.0: dependencies: type-fest "^0.8.1" +globby@^11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" + integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== + dependencies: + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.2.9" + ignore "^5.2.0" + merge2 "^1.4.1" + slash "^3.0.0" + graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.3, graceful-fs@^4.1.6, graceful-fs@^4.1.9, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.9: version "4.2.10" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" @@ -3761,6 +3920,11 @@ ignore@^4.0.6: resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== +ignore@^5.2.0: + version "5.2.4" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324" + integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== + image-size@^0.6.0: version "0.6.3" resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.6.3.tgz#e7e5c65bb534bd7cdcedd6cb5166272a85f75fb2" @@ -4004,6 +4168,13 @@ is-glob@^4.0.0, is-glob@^4.0.1: dependencies: is-extglob "^2.1.1" +is-glob@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + is-interactive@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" @@ -5052,6 +5223,11 @@ merge-stream@^2.0.0: resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== +merge2@^1.3.0, merge2@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + metro-babel-transformer@0.72.3: version "0.72.3" resolved "https://registry.yarnpkg.com/metro-babel-transformer/-/metro-babel-transformer-0.72.3.tgz#2c60493a4eb7a8d20cc059f05e0e505dc1684d01" @@ -5418,7 +5594,7 @@ ms@2.1.1: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== -ms@^2.1.1: +ms@2.1.2, ms@^2.1.1: version "2.1.2" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== @@ -5450,6 +5626,11 @@ nanomatch@^1.2.9: snapdragon "^0.8.1" to-regex "^3.0.1" +natural-compare-lite@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" + integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== + natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" @@ -5918,6 +6099,11 @@ path-type@^3.0.0: dependencies: pify "^3.0.0" +path-type@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" + integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== + performance-now@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" @@ -6082,6 +6268,11 @@ qs@~6.5.2: resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad" integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA== +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + r2@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/r2/-/r2-2.0.1.tgz#94cd802ecfce9a622549c8182032d8e4a2b2e612" @@ -6316,11 +6507,16 @@ regexp.prototype.flags@^1.4.1, regexp.prototype.flags@^1.4.3: define-properties "^1.1.3" functions-have-names "^1.2.2" -regexpp@^3.0.0, regexpp@^3.1.0: +regexpp@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.1.0.tgz#206d0ad0a5648cffbdb8ae46438f3dc51c9f78e2" integrity sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q== +regexpp@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" + integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== + regexpu-core@^5.1.0: version "5.2.1" resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.2.1.tgz#a69c26f324c1e962e9ffd0b88b055caba8089139" @@ -6500,6 +6696,11 @@ ret@~0.1.10: resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + rimraf@2.6.3, rimraf@~2.6.2: version "2.6.3" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" @@ -6536,6 +6737,13 @@ run-async@^2.2.0: resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== + dependencies: + queue-microtask "^1.2.2" + rxjs@^6.4.0: version "6.6.3" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.3.tgz#8ca84635c4daa900c0d3967a6ee7ac60271ee552" @@ -6618,6 +6826,13 @@ semver@^7.2.1, semver@^7.3.2, semver@^7.3.5: dependencies: lru-cache "^6.0.0" +semver@^7.3.7: + version "7.3.8" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" + integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== + dependencies: + lru-cache "^6.0.0" + send@0.17.1: version "0.17.1" resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8" @@ -7307,6 +7522,13 @@ tsutils@^3.0.0, tsutils@^3.17.1, tsutils@^3.5.0: dependencies: tslib "^1.8.1" +tsutils@^3.21.0: + version "3.21.0" + resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" + integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== + dependencies: + tslib "^1.8.1" + tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" From 62305099660e465eb5e00d6c89656740baf64293 Mon Sep 17 00:00:00 2001 From: Krystof Woldrich Date: Thu, 19 Jan 2023 17:21:05 +0100 Subject: [PATCH 2/6] Fix lint --- .eslintrc.js | 3 +++ src/js/client.ts | 6 +++--- src/js/definitions.ts | 4 ++-- src/js/integrations/debugsymbolicator.ts | 2 +- src/js/integrations/devicecontext.ts | 2 +- src/js/integrations/eventorigin.ts | 2 +- src/js/integrations/modulesloader.ts | 2 +- .../integrations/reactnativeerrorhandlers.ts | 7 ++----- src/js/integrations/release.ts | 2 +- src/js/integrations/screenshot.ts | 2 +- src/js/integrations/sdkinfo.ts | 2 +- src/js/measurements.ts | 7 ++++--- src/js/misc.ts | 2 +- src/js/options.ts | 10 +++++----- src/js/scope.ts | 2 +- src/js/sdk.tsx | 7 ++++--- src/js/touchevents.tsx | 2 +- src/js/tracing/nativeframes.ts | 6 +++--- src/js/tracing/reactnativenavigation.ts | 13 +++++++------ src/js/tracing/reactnativetracing.ts | 19 ++++++++++--------- src/js/tracing/reactnavigation.ts | 11 ++++++----- src/js/tracing/reactnavigationv4.ts | 11 ++++++----- src/js/tracing/routingInstrumentation.ts | 6 +++--- src/js/tracing/stalltracking.ts | 4 ++-- src/js/tracing/types.ts | 2 +- src/js/tracing/utils.ts | 4 ++-- src/js/transports/TextEncoder.ts | 2 +- src/js/transports/native.ts | 5 +++-- src/js/user.ts | 2 +- src/js/utils/envelope.ts | 2 +- src/js/utils/outcome.ts | 2 +- src/js/utils/safe.ts | 2 +- src/js/utils/worldwide.ts | 3 ++- src/js/wrapper.ts | 8 ++++---- test/client.rn.before.0.63.test.ts | 2 +- test/client.test.ts | 4 ++-- test/integrations/eventorigin.test.ts | 2 +- test/integrations/modulesloader.test.ts | 2 +- .../reactnativeerrorhandlers.test.ts | 2 +- test/integrations/release.test.ts | 2 +- test/integrations/sdkinfo.test.ts | 2 +- test/measurements.test.ts | 10 ++++++---- test/sdk.test.ts | 4 ++-- test/testutils.ts | 2 +- test/touchevents.test.tsx | 2 +- test/tracing/nativeframes.test.ts | 2 +- test/tracing/reactnativenavigation.test.ts | 9 +++++---- test/tracing/reactnativetracing.test.ts | 9 +++++---- test/tracing/reactnavigation.test.ts | 5 +++-- test/tracing/reactnavigationv4.test.ts | 9 +++++---- test/tracing/stalltracking.test.ts | 2 +- test/transports/native.test.ts | 2 +- test/wrapper.test.ts | 6 +++--- 53 files changed, 129 insertions(+), 115 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index c1aaf99880..711dccffa7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -14,6 +14,7 @@ module.exports = { }, ignorePatterns: [ 'test/react-native/versions/*', + 'coverage/**/*', ], overrides: [ { @@ -58,5 +59,7 @@ module.exports = { rules: { // Bundle size isn't too much of an issue for React Native. '@sentry-internal/sdk/no-async-await': 'off', + '@sentry-internal/sdk/no-optional-chaining': 'off', + '@sentry-internal/sdk/no-nullish-coalescing': 'off', }, }; diff --git a/src/js/client.ts b/src/js/client.ts index ebf79ed0ed..5bb5352462 100644 --- a/src/js/client.ts +++ b/src/js/client.ts @@ -1,7 +1,7 @@ import { BrowserClient, defaultStackParser, makeFetchTransport } from '@sentry/browser'; -import { FetchImpl } from '@sentry/browser/types/transports/utils'; +import type { FetchImpl } from '@sentry/browser/types/transports/utils'; import { BaseClient } from '@sentry/core'; -import { +import type { ClientReportEnvelope, ClientReportItem, Envelope, @@ -18,7 +18,7 @@ import { Alert, LogBox, YellowBox } from 'react-native'; import { Screenshot } from './integrations/screenshot'; import { defaultSdkInfo } from './integrations/sdkinfo'; -import { ReactNativeClientOptions, ReactNativeTransportOptions } from './options'; +import type { ReactNativeClientOptions, ReactNativeTransportOptions } from './options'; import { makeReactNativeTransport } from './transports/native'; import { createUserFeedbackEnvelope, items } from './utils/envelope'; import { mergeOutcomes } from './utils/outcome'; diff --git a/src/js/definitions.ts b/src/js/definitions.ts index 4058148b71..67fdf7aca6 100644 --- a/src/js/definitions.ts +++ b/src/js/definitions.ts @@ -1,6 +1,6 @@ -import { Breadcrumb, Package } from '@sentry/types'; +import type { Breadcrumb, Package } from '@sentry/types'; -import { ReactNativeOptions } from './options'; +import type { ReactNativeOptions } from './options'; export type NativeAppStartResponse = { isColdStart: boolean; diff --git a/src/js/integrations/debugsymbolicator.ts b/src/js/integrations/debugsymbolicator.ts index 038ae6311b..8bef8d7f0d 100644 --- a/src/js/integrations/debugsymbolicator.ts +++ b/src/js/integrations/debugsymbolicator.ts @@ -1,5 +1,5 @@ import { addGlobalEventProcessor, getCurrentHub } from '@sentry/core'; -import { Event, EventHint, Integration, StackFrame } from '@sentry/types'; +import type { Event, EventHint, Integration, StackFrame } from '@sentry/types'; import { addContextToFrame, logger } from '@sentry/utils'; const INTERNAL_CALLSITES_REGEX = new RegExp( diff --git a/src/js/integrations/devicecontext.ts b/src/js/integrations/devicecontext.ts index 00fc67864f..45e41eb3dc 100644 --- a/src/js/integrations/devicecontext.ts +++ b/src/js/integrations/devicecontext.ts @@ -1,5 +1,5 @@ import { addGlobalEventProcessor, getCurrentHub } from '@sentry/core'; -import { Contexts, Event, Integration } from '@sentry/types'; +import type { Contexts, Event, Integration } from '@sentry/types'; import { logger } from '@sentry/utils'; import { NATIVE } from '../wrapper'; diff --git a/src/js/integrations/eventorigin.ts b/src/js/integrations/eventorigin.ts index 28b75d4e83..6b9a0df813 100644 --- a/src/js/integrations/eventorigin.ts +++ b/src/js/integrations/eventorigin.ts @@ -1,4 +1,4 @@ -import { EventProcessor, Integration } from '@sentry/types'; +import type { EventProcessor, Integration } from '@sentry/types'; /** Default EventOrigin instrumentation */ export class EventOrigin implements Integration { diff --git a/src/js/integrations/modulesloader.ts b/src/js/integrations/modulesloader.ts index 4418532275..dded0c7bf7 100644 --- a/src/js/integrations/modulesloader.ts +++ b/src/js/integrations/modulesloader.ts @@ -1,4 +1,4 @@ -import { Event,EventProcessor, Integration } from '@sentry/types'; +import type { Event,EventProcessor, Integration } from '@sentry/types'; import { logger } from '@sentry/utils'; import { NATIVE } from '../wrapper'; diff --git a/src/js/integrations/reactnativeerrorhandlers.ts b/src/js/integrations/reactnativeerrorhandlers.ts index 6961d9bd6f..bd9fb231ca 100644 --- a/src/js/integrations/reactnativeerrorhandlers.ts +++ b/src/js/integrations/reactnativeerrorhandlers.ts @@ -1,8 +1,8 @@ import { getCurrentHub } from '@sentry/core'; -import { EventHint, Integration, SeverityLevel } from '@sentry/types'; +import type { EventHint, Integration, SeverityLevel } from '@sentry/types'; import { addExceptionMechanism, logger } from '@sentry/utils'; -import { ReactNativeClient } from '../client'; +import type { ReactNativeClient } from '../client'; import { RN_GLOBAL_OBJ } from '../utils/worldwide'; /** ReactNativeErrorHandlers Options */ @@ -17,9 +17,6 @@ interface PromiseRejectionTrackingOptions { onHandled: (id: string) => void; } -// eslint-disable-next-line @typescript-eslint/no-explicit-any -declare const global: any; - /** ReactNativeErrorHandlers Integration */ export class ReactNativeErrorHandlers implements Integration { /** diff --git a/src/js/integrations/release.ts b/src/js/integrations/release.ts index 338b271100..0ca52c12e2 100644 --- a/src/js/integrations/release.ts +++ b/src/js/integrations/release.ts @@ -1,5 +1,5 @@ import { addGlobalEventProcessor, getCurrentHub } from '@sentry/core'; -import { Event, Integration } from '@sentry/types'; +import type { Event, Integration } from '@sentry/types'; import { NATIVE } from '../wrapper'; diff --git a/src/js/integrations/screenshot.ts b/src/js/integrations/screenshot.ts index f7db742abe..640082502f 100644 --- a/src/js/integrations/screenshot.ts +++ b/src/js/integrations/screenshot.ts @@ -1,4 +1,4 @@ -import { EventHint, Integration } from '@sentry/types'; +import type { EventHint, Integration } from '@sentry/types'; import { resolvedSyncPromise } from '@sentry/utils'; import { NATIVE } from '../wrapper'; diff --git a/src/js/integrations/sdkinfo.ts b/src/js/integrations/sdkinfo.ts index ad3943d7c0..21df83c193 100644 --- a/src/js/integrations/sdkinfo.ts +++ b/src/js/integrations/sdkinfo.ts @@ -1,4 +1,4 @@ -import { EventProcessor, Integration, Package, SdkInfo as SdkInfoType } from '@sentry/types'; +import type { EventProcessor, Integration, Package, SdkInfo as SdkInfoType } from '@sentry/types'; import { logger } from '@sentry/utils'; import { SDK_NAME, SDK_PACKAGE_NAME,SDK_VERSION } from '../version'; diff --git a/src/js/measurements.ts b/src/js/measurements.ts index 709a9122a0..449b1ed27c 100644 --- a/src/js/measurements.ts +++ b/src/js/measurements.ts @@ -1,6 +1,7 @@ -import { getCurrentHub, getMainCarrier, Hub } from '@sentry/core'; -import { Transaction } from '@sentry/tracing'; -import { CustomSamplingContext, Span, SpanContext, TransactionContext } from '@sentry/types'; +import type { Hub } from '@sentry/core'; +import { getCurrentHub, getMainCarrier } from '@sentry/core'; +import type { Transaction } from '@sentry/tracing'; +import type { CustomSamplingContext, Span, SpanContext, TransactionContext } from '@sentry/types'; import { ReactNativeTracing } from './tracing'; diff --git a/src/js/misc.ts b/src/js/misc.ts index 1aea83aeef..a7db0c7a17 100644 --- a/src/js/misc.ts +++ b/src/js/misc.ts @@ -1,4 +1,4 @@ -import { +import type { EnvelopeItem, Exception, } from '@sentry/types'; diff --git a/src/js/options.ts b/src/js/options.ts index cca1bbdaf0..56e8ff849e 100644 --- a/src/js/options.ts +++ b/src/js/options.ts @@ -1,9 +1,9 @@ -import { BrowserTransportOptions } from '@sentry/browser/types/transports/types'; -import { ProfilerProps } from '@sentry/react/types/profiler'; -import { ClientOptions, Options } from '@sentry/types'; -import { CaptureContext } from '@sentry/types/types/scope'; +import type { BrowserTransportOptions } from '@sentry/browser/types/transports/types'; +import type { ProfilerProps } from '@sentry/react/types/profiler'; +import type { ClientOptions, Options } from '@sentry/types'; +import type { CaptureContext } from '@sentry/types/types/scope'; -import { TouchEventBoundaryProps } from './touchevents'; +import type { TouchEventBoundaryProps } from './touchevents'; export interface BaseReactNativeOptions { /** diff --git a/src/js/scope.ts b/src/js/scope.ts index 75ca713396..25569d4ad6 100644 --- a/src/js/scope.ts +++ b/src/js/scope.ts @@ -1,5 +1,5 @@ import { Scope } from '@sentry/core'; -import { Attachment, Breadcrumb, User } from '@sentry/types'; +import type { Attachment, Breadcrumb, User } from '@sentry/types'; import { NATIVE } from './wrapper'; diff --git a/src/js/sdk.tsx b/src/js/sdk.tsx index 45ffba150e..abf2193328 100644 --- a/src/js/sdk.tsx +++ b/src/js/sdk.tsx @@ -1,11 +1,12 @@ -import { getIntegrationsToSetup, Hub, initAndBind, makeMain, Scope, setExtra } from '@sentry/core'; +import type { Scope} from '@sentry/core'; +import { getIntegrationsToSetup, Hub, initAndBind, makeMain, setExtra } from '@sentry/core'; import { RewriteFrames } from '@sentry/integrations'; import { defaultIntegrations as reactDefaultIntegrations, defaultStackParser, getCurrentHub, } from '@sentry/react'; -import { Integration, StackFrame, UserFeedback } from '@sentry/types'; +import type { Integration, StackFrame, UserFeedback } from '@sentry/types'; import { logger, stackParserFromStackParserOptions } from '@sentry/utils'; import * as React from 'react'; @@ -20,7 +21,7 @@ import { SdkInfo, } from './integrations'; import { Screenshot } from './integrations/screenshot'; -import { ReactNativeClientOptions, ReactNativeOptions, ReactNativeWrapperOptions } from './options'; +import type { ReactNativeClientOptions, ReactNativeOptions, ReactNativeWrapperOptions } from './options'; import { ReactNativeScope } from './scope'; import { TouchEventBoundary } from './touchevents'; import { ReactNativeProfiler, ReactNativeTracing } from './tracing'; diff --git a/src/js/touchevents.tsx b/src/js/touchevents.tsx index 08e63f9972..3549bd63f0 100644 --- a/src/js/touchevents.tsx +++ b/src/js/touchevents.tsx @@ -1,5 +1,5 @@ import { addBreadcrumb } from '@sentry/core'; -import { SeverityLevel } from '@sentry/types'; +import type { SeverityLevel } from '@sentry/types'; import { logger } from '@sentry/utils'; import * as React from 'react'; import { StyleSheet, View } from 'react-native'; diff --git a/src/js/tracing/nativeframes.ts b/src/js/tracing/nativeframes.ts index 5e192ef4e7..df866094ff 100644 --- a/src/js/tracing/nativeframes.ts +++ b/src/js/tracing/nativeframes.ts @@ -1,8 +1,8 @@ -import { Span, Transaction } from '@sentry/tracing'; -import { Event, EventProcessor, Measurements, MeasurementUnit } from '@sentry/types'; +import type { Span, Transaction } from '@sentry/tracing'; +import type { Event, EventProcessor, Measurements, MeasurementUnit } from '@sentry/types'; import { logger, timestampInSeconds } from '@sentry/utils'; -import { NativeFramesResponse } from '../definitions'; +import type { NativeFramesResponse } from '../definitions'; import { NATIVE } from '../wrapper'; import { instrumentChildSpanFinish } from './utils'; diff --git a/src/js/tracing/reactnativenavigation.ts b/src/js/tracing/reactnativenavigation.ts index 519db135b8..dfbfe27d87 100644 --- a/src/js/tracing/reactnativenavigation.ts +++ b/src/js/tracing/reactnativenavigation.ts @@ -1,13 +1,14 @@ -import { Transaction as TransactionType, TransactionContext } from '@sentry/types'; +import type { Transaction as TransactionType, TransactionContext } from '@sentry/types'; import { logger } from '@sentry/utils'; -import { EmitterSubscription } from 'react-native'; +import type { EmitterSubscription } from 'react-native'; -import { - InternalRoutingInstrumentation, +import type { OnConfirmRoute, - TransactionCreator, + TransactionCreator} from './routingInstrumentation'; +import { + InternalRoutingInstrumentation } from './routingInstrumentation'; -import { BeforeNavigate, RouteChangeContextData } from './types'; +import type { BeforeNavigate, RouteChangeContextData } from './types'; import { customTransactionSource, defaultTransactionSource, getBlankTransactionContext } from './utils'; interface ReactNativeNavigationOptions { diff --git a/src/js/tracing/reactnativetracing.ts b/src/js/tracing/reactnativetracing.ts index 143679fc3e..d51a91b4e4 100644 --- a/src/js/tracing/reactnativetracing.ts +++ b/src/js/tracing/reactnativetracing.ts @@ -1,14 +1,15 @@ /* eslint-disable max-lines */ -import { Hub } from '@sentry/core'; +import type { Hub } from '@sentry/core'; +import type { + IdleTransaction, + RequestInstrumentationOptions, + Transaction} from '@sentry/tracing'; import { defaultRequestInstrumentationOptions, - IdleTransaction, instrumentOutgoingRequests, - RequestInstrumentationOptions, - startIdleTransaction, - Transaction, + startIdleTransaction } from '@sentry/tracing'; -import { +import type { EventProcessor, Integration, Transaction as TransactionType, @@ -16,12 +17,12 @@ import { } from '@sentry/types'; import { logger } from '@sentry/utils'; -import { NativeAppStartResponse } from '../definitions'; -import { RoutingInstrumentationInstance } from '../tracing/routingInstrumentation'; +import type { NativeAppStartResponse } from '../definitions'; +import type { RoutingInstrumentationInstance } from '../tracing/routingInstrumentation'; import { NATIVE } from '../wrapper'; import { NativeFramesInstrumentation } from './nativeframes'; import { StallTrackingInstrumentation } from './stalltracking'; -import { BeforeNavigate, RouteChangeContextData } from './types'; +import type { BeforeNavigate, RouteChangeContextData } from './types'; import { adjustTransactionDuration, getTimeOriginMilliseconds, diff --git a/src/js/tracing/reactnavigation.ts b/src/js/tracing/reactnavigation.ts index 40c5608437..d1e8afdfeb 100644 --- a/src/js/tracing/reactnavigation.ts +++ b/src/js/tracing/reactnavigation.ts @@ -1,14 +1,15 @@ /* eslint-disable max-lines */ -import { Transaction as TransactionType, TransactionContext } from '@sentry/types'; +import type { Transaction as TransactionType, TransactionContext } from '@sentry/types'; import { logger } from '@sentry/utils'; import { RN_GLOBAL_OBJ } from '../utils/worldwide'; -import { - InternalRoutingInstrumentation, +import type { OnConfirmRoute, - TransactionCreator, -} from './routingInstrumentation'; + TransactionCreator} from './routingInstrumentation'; import { + InternalRoutingInstrumentation +} from './routingInstrumentation'; +import type { BeforeNavigate, ReactNavigationTransactionContext, RouteChangeContextData, diff --git a/src/js/tracing/reactnavigationv4.ts b/src/js/tracing/reactnavigationv4.ts index ec52f01f0f..2040c43240 100644 --- a/src/js/tracing/reactnavigationv4.ts +++ b/src/js/tracing/reactnavigationv4.ts @@ -1,14 +1,15 @@ /* eslint-disable max-lines */ -import { Transaction, TransactionContext } from '@sentry/types'; +import type { Transaction, TransactionContext } from '@sentry/types'; import { logger } from '@sentry/utils'; import { RN_GLOBAL_OBJ } from '../utils/worldwide'; -import { - InternalRoutingInstrumentation, +import type { OnConfirmRoute, - TransactionCreator, -} from './routingInstrumentation'; + TransactionCreator} from './routingInstrumentation'; import { + InternalRoutingInstrumentation +} from './routingInstrumentation'; +import type { BeforeNavigate, ReactNavigationTransactionContext, RouteChangeContextData, diff --git a/src/js/tracing/routingInstrumentation.ts b/src/js/tracing/routingInstrumentation.ts index 32a596d050..15e3dcf554 100644 --- a/src/js/tracing/routingInstrumentation.ts +++ b/src/js/tracing/routingInstrumentation.ts @@ -1,7 +1,7 @@ -import { Hub } from '@sentry/core'; -import { Transaction, TransactionContext } from '@sentry/types'; +import type { Hub } from '@sentry/core'; +import type { Transaction, TransactionContext } from '@sentry/types'; -import { BeforeNavigate } from './types'; +import type { BeforeNavigate } from './types'; export type TransactionCreator = ( context: TransactionContext diff --git a/src/js/tracing/stalltracking.ts b/src/js/tracing/stalltracking.ts index b9f3a6f6c1..3442d72e18 100644 --- a/src/js/tracing/stalltracking.ts +++ b/src/js/tracing/stalltracking.ts @@ -1,6 +1,6 @@ /* eslint-disable max-lines */ -import { IdleTransaction, Span, Transaction } from '@sentry/tracing'; -import { Measurements, MeasurementUnit } from '@sentry/types'; +import type { IdleTransaction, Span, Transaction } from '@sentry/tracing'; +import type { Measurements, MeasurementUnit } from '@sentry/types'; import { logger, timestampInSeconds } from '@sentry/utils'; export interface StallMeasurements extends Measurements { diff --git a/src/js/tracing/types.ts b/src/js/tracing/types.ts index d6305ee726..4c4d2b1ddb 100644 --- a/src/js/tracing/types.ts +++ b/src/js/tracing/types.ts @@ -1,4 +1,4 @@ -import { TransactionContext } from '@sentry/types'; +import type { TransactionContext } from '@sentry/types'; export interface ReactNavigationRoute { name: string; diff --git a/src/js/tracing/utils.ts b/src/js/tracing/utils.ts index 78bac70663..22f85fa94c 100644 --- a/src/js/tracing/utils.ts +++ b/src/js/tracing/utils.ts @@ -1,5 +1,5 @@ -import { IdleTransaction, Span, Transaction } from '@sentry/tracing'; -import { TransactionContext, TransactionSource } from '@sentry/types'; +import type { IdleTransaction, Span, Transaction } from '@sentry/tracing'; +import type { TransactionContext, TransactionSource } from '@sentry/types'; import { timestampInSeconds } from '@sentry/utils'; export const defaultTransactionSource: TransactionSource = 'component'; diff --git a/src/js/transports/TextEncoder.ts b/src/js/transports/TextEncoder.ts index 245c0e8c26..a1c77d7f80 100644 --- a/src/js/transports/TextEncoder.ts +++ b/src/js/transports/TextEncoder.ts @@ -1,4 +1,4 @@ -import { TextEncoderInternal } from '@sentry/types'; +import type { TextEncoderInternal } from '@sentry/types'; import { utf8ToBytes } from '../vendor'; diff --git a/src/js/transports/native.ts b/src/js/transports/native.ts index 9eee06764f..19c81579d1 100644 --- a/src/js/transports/native.ts +++ b/src/js/transports/native.ts @@ -1,5 +1,6 @@ -import { BaseTransportOptions, Envelope, Transport } from '@sentry/types'; -import { makePromiseBuffer, PromiseBuffer } from '@sentry/utils'; +import type { BaseTransportOptions, Envelope, Transport } from '@sentry/types'; +import type { PromiseBuffer } from '@sentry/utils'; +import { makePromiseBuffer } from '@sentry/utils'; import { NATIVE } from '../wrapper'; diff --git a/src/js/user.ts b/src/js/user.ts index 1a1406163d..38dedd18a3 100644 --- a/src/js/user.ts +++ b/src/js/user.ts @@ -1,4 +1,4 @@ -import { User } from '@sentry/types'; +import type { User } from '@sentry/types'; /** Requires all the keys defined on User interface to be present on an object */ export type RequiredKeysUser = { [P in keyof Required]: User[P] | undefined; }; diff --git a/src/js/utils/envelope.ts b/src/js/utils/envelope.ts index d1477441dc..ebacb23f05 100644 --- a/src/js/utils/envelope.ts +++ b/src/js/utils/envelope.ts @@ -1,4 +1,4 @@ -import { +import type { DsnComponents, EventEnvelope, SdkMetadata, diff --git a/src/js/utils/outcome.ts b/src/js/utils/outcome.ts index 4f07debae1..338beaeaa5 100644 --- a/src/js/utils/outcome.ts +++ b/src/js/utils/outcome.ts @@ -1,4 +1,4 @@ -import { Outcome } from '@sentry/types'; +import type { Outcome } from '@sentry/types'; /** * Merges buffer with new outcomes. diff --git a/src/js/utils/safe.ts b/src/js/utils/safe.ts index c13fe9ac81..bff53941c8 100644 --- a/src/js/utils/safe.ts +++ b/src/js/utils/safe.ts @@ -1,6 +1,6 @@ import { logger } from '@sentry/utils'; -import { ReactNativeOptions } from '../options'; +import type { ReactNativeOptions } from '../options'; type DangerTypesWithoutCallSignature = // eslint-disable-next-line @typescript-eslint/ban-types diff --git a/src/js/utils/worldwide.ts b/src/js/utils/worldwide.ts index 39acf1f96a..76ddeaf9bb 100644 --- a/src/js/utils/worldwide.ts +++ b/src/js/utils/worldwide.ts @@ -1,4 +1,5 @@ -import { GLOBAL_OBJ, InternalGlobal } from '@sentry/utils'; +import type { InternalGlobal } from '@sentry/utils'; +import { GLOBAL_OBJ } from '@sentry/utils'; /** Internal Global object interface with common and Sentry specific properties */ export interface ReactNativeInternalGlobal extends InternalGlobal { diff --git a/src/js/wrapper.ts b/src/js/wrapper.ts index 33be9c0996..f8797b2577 100644 --- a/src/js/wrapper.ts +++ b/src/js/wrapper.ts @@ -1,5 +1,5 @@ /* eslint-disable max-lines */ -import { +import type { BaseEnvelopeItemHeaders, Breadcrumb, Envelope, @@ -12,7 +12,7 @@ import { import { logger, normalize, SentryError } from '@sentry/utils'; import { NativeModules, Platform } from 'react-native'; -import { +import type { NativeAppStartResponse, NativeDeviceContextsResponse, NativeFramesResponse, @@ -21,8 +21,8 @@ import { SentryNativeBridgeModule, } from './definitions'; import { isHardCrash } from './misc'; -import { ReactNativeOptions } from './options'; -import { RequiredKeysUser } from './user'; +import type { ReactNativeOptions } from './options'; +import type { RequiredKeysUser } from './user'; import { utf8ToBytes } from './vendor'; const RNSentry = NativeModules.RNSentry as SentryNativeBridgeModule | undefined; diff --git a/test/client.rn.before.0.63.test.ts b/test/client.rn.before.0.63.test.ts index 6795d7881e..212238dbc5 100644 --- a/test/client.rn.before.0.63.test.ts +++ b/test/client.rn.before.0.63.test.ts @@ -1,7 +1,7 @@ import * as RN from 'react-native'; import { ReactNativeClient } from '../src/js/client'; -import { ReactNativeClientOptions, ReactNativeOptions } from '../src/js/options'; +import type { ReactNativeClientOptions, ReactNativeOptions } from '../src/js/options'; import { NativeTransport } from '../src/js/transports/native'; import { NATIVE } from '../src/js/wrapper'; diff --git a/test/client.test.ts b/test/client.test.ts index a423bf121e..50cdfe70f1 100644 --- a/test/client.test.ts +++ b/test/client.test.ts @@ -1,9 +1,9 @@ -import { Envelope, Event,Outcome, Transport } from '@sentry/types'; +import type { Envelope, Event,Outcome, Transport } from '@sentry/types'; import { rejectedSyncPromise, SentryError } from '@sentry/utils'; import * as RN from 'react-native'; import { ReactNativeClient } from '../src/js/client'; -import { ReactNativeClientOptions } from '../src/js/options'; +import type { ReactNativeClientOptions } from '../src/js/options'; import { NativeTransport } from '../src/js/transports/native'; import { SDK_NAME, SDK_PACKAGE_NAME, SDK_VERSION } from '../src/js/version'; import { NATIVE } from '../src/js/wrapper'; diff --git a/test/integrations/eventorigin.test.ts b/test/integrations/eventorigin.test.ts index 827cc9fef4..3b67754ee8 100644 --- a/test/integrations/eventorigin.test.ts +++ b/test/integrations/eventorigin.test.ts @@ -1,4 +1,4 @@ -import { Event } from '@sentry/types'; +import type { Event } from '@sentry/types'; import { EventOrigin } from '../../src/js/integrations'; diff --git a/test/integrations/modulesloader.test.ts b/test/integrations/modulesloader.test.ts index 6dc9d26422..53873596cb 100644 --- a/test/integrations/modulesloader.test.ts +++ b/test/integrations/modulesloader.test.ts @@ -1,4 +1,4 @@ -import { Event, EventHint } from '@sentry/types'; +import type { Event, EventHint } from '@sentry/types'; import { ModulesLoader } from '../../src/js/integrations'; import { NATIVE } from '../../src/js/wrapper'; diff --git a/test/integrations/reactnativeerrorhandlers.test.ts b/test/integrations/reactnativeerrorhandlers.test.ts index 4b55170638..c81fe6912b 100644 --- a/test/integrations/reactnativeerrorhandlers.test.ts +++ b/test/integrations/reactnativeerrorhandlers.test.ts @@ -45,7 +45,7 @@ jest.mock('@sentry/utils', () => { }); import { getCurrentHub } from '@sentry/core'; -import { Event, EventHint, SeverityLevel } from '@sentry/types'; +import type { Event, EventHint, SeverityLevel } from '@sentry/types'; import { ReactNativeErrorHandlers } from '../../src/js/integrations/reactnativeerrorhandlers'; diff --git a/test/integrations/release.test.ts b/test/integrations/release.test.ts index 449f841d6d..6d14eeada6 100644 --- a/test/integrations/release.test.ts +++ b/test/integrations/release.test.ts @@ -1,5 +1,5 @@ import { addGlobalEventProcessor, getCurrentHub } from '@sentry/core'; -import { EventProcessor } from '@sentry/types'; +import type { EventProcessor } from '@sentry/types'; import { Release } from '../../src/js/integrations/release'; diff --git a/test/integrations/sdkinfo.test.ts b/test/integrations/sdkinfo.test.ts index 4735335f77..a89256ccc0 100644 --- a/test/integrations/sdkinfo.test.ts +++ b/test/integrations/sdkinfo.test.ts @@ -1,4 +1,4 @@ -import { Event, EventHint, Package } from '@sentry/types'; +import type { Event, EventHint, Package } from '@sentry/types'; import { SdkInfo } from '../../src/js/integrations'; import { NATIVE } from '../../src/js/wrapper'; diff --git a/test/measurements.test.ts b/test/measurements.test.ts index cbe6ac8d5a..3c472fc584 100644 --- a/test/measurements.test.ts +++ b/test/measurements.test.ts @@ -1,8 +1,10 @@ -import { Carrier, getCurrentHub, getMainCarrier } from '@sentry/core'; -import { Transaction } from '@sentry/tracing'; -import { Hub } from '@sentry/types'; +import type { Carrier} from '@sentry/core'; +import { getCurrentHub, getMainCarrier } from '@sentry/core'; +import type { Transaction } from '@sentry/tracing'; +import type { Hub } from '@sentry/types'; -import { _addTracingExtensions, StartTransactionFunction } from '../src/js/measurements'; +import type { StartTransactionFunction } from '../src/js/measurements'; +import { _addTracingExtensions } from '../src/js/measurements'; describe('Tracing extensions', () => { let hub: Hub; diff --git a/test/sdk.test.ts b/test/sdk.test.ts index c154aff4e7..28018e6ed0 100644 --- a/test/sdk.test.ts +++ b/test/sdk.test.ts @@ -62,9 +62,9 @@ jest.spyOn(logger, 'error'); import { initAndBind } from '@sentry/core'; import { getCurrentHub } from '@sentry/react'; -import { BaseTransportOptions,ClientOptions, Integration, Scope } from '@sentry/types'; +import type { BaseTransportOptions,ClientOptions, Integration, Scope } from '@sentry/types'; -import { ReactNativeClientOptions } from '../src/js/options'; +import type { ReactNativeClientOptions } from '../src/js/options'; import { configureScope,flush, init, withScope } from '../src/js/sdk'; import { ReactNativeTracing, ReactNavigationInstrumentation } from '../src/js/tracing'; import { firstArg, secondArg } from './testutils'; diff --git a/test/testutils.ts b/test/testutils.ts index 51962daa05..05393c2fbd 100644 --- a/test/testutils.ts +++ b/test/testutils.ts @@ -1,5 +1,5 @@ import { Transaction } from '@sentry/tracing'; -import { Session, UserFeedback } from '@sentry/types'; +import type { Session, UserFeedback } from '@sentry/types'; import { rejectedSyncPromise } from '@sentry/utils'; import { getBlankTransactionContext } from '../src/js/tracing/utils'; diff --git a/test/touchevents.test.tsx b/test/touchevents.test.tsx index 2d0da10f57..05d40d7700 100644 --- a/test/touchevents.test.tsx +++ b/test/touchevents.test.tsx @@ -1,5 +1,5 @@ import * as core from '@sentry/core'; -import { SeverityLevel } from '@sentry/types'; +import type { SeverityLevel } from '@sentry/types'; import { TouchEventBoundary } from '../src/js/touchevents'; diff --git a/test/tracing/nativeframes.test.ts b/test/tracing/nativeframes.test.ts index b60d1aa274..689cdf7552 100644 --- a/test/tracing/nativeframes.test.ts +++ b/test/tracing/nativeframes.test.ts @@ -9,7 +9,7 @@ jest.mock('../../src/js/wrapper', () => { }); import { Transaction } from '@sentry/tracing'; -import { EventProcessor } from '@sentry/types'; +import type { EventProcessor } from '@sentry/types'; import { NativeFramesInstrumentation } from '../../src/js/tracing/nativeframes'; import { NATIVE } from '../../src/js/wrapper'; diff --git a/test/tracing/reactnativenavigation.test.ts b/test/tracing/reactnativenavigation.test.ts index 93c79e02e4..8d73a00ab3 100644 --- a/test/tracing/reactnativenavigation.test.ts +++ b/test/tracing/reactnativenavigation.test.ts @@ -1,11 +1,12 @@ /* eslint-disable @typescript-eslint/no-empty-function */ -import { TransactionContext } from '@sentry/types'; -import { EmitterSubscription } from 'react-native'; +import type { TransactionContext } from '@sentry/types'; +import type { EmitterSubscription } from 'react-native'; -import { +import type { ComponentWillAppearEvent, EventsRegistry, - NavigationDelegate, + NavigationDelegate} from '../../src/js/tracing/reactnativenavigation'; +import { ReactNativeNavigationInstrumentation, } from '../../src/js/tracing/reactnativenavigation'; import { getBlankTransactionContext } from '../../src/js/tracing/utils'; diff --git a/test/tracing/reactnativetracing.test.ts b/test/tracing/reactnativetracing.test.ts index d3c6691e4a..5b6723021d 100644 --- a/test/tracing/reactnativetracing.test.ts +++ b/test/tracing/reactnativetracing.test.ts @@ -1,9 +1,10 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ -import { BrowserClient, User } from '@sentry/browser'; +import type { User } from '@sentry/browser'; +import { BrowserClient } from '@sentry/browser'; import { addGlobalEventProcessor, Hub } from '@sentry/core'; -import { IdleTransaction, Transaction } from '@sentry/tracing'; +import type { IdleTransaction, Transaction } from '@sentry/tracing'; -import { NativeAppStartResponse } from '../../src/js/definitions'; +import type { NativeAppStartResponse } from '../../src/js/definitions'; import { RoutingInstrumentation } from '../../src/js/tracing/routingInstrumentation'; jest.mock('../../src/js/wrapper', () => { @@ -54,7 +55,7 @@ const getMockHub = () => { return mockHub; }; -import { BrowserClientOptions } from '@sentry/browser/types/client'; +import type { BrowserClientOptions } from '@sentry/browser/types/client'; import { ReactNativeTracing } from '../../src/js/tracing/reactnativetracing'; import { getTimeOriginMilliseconds } from '../../src/js/tracing/utils'; diff --git a/test/tracing/reactnavigation.test.ts b/test/tracing/reactnavigation.test.ts index e0c0906326..8f81ae9a41 100644 --- a/test/tracing/reactnavigation.test.ts +++ b/test/tracing/reactnavigation.test.ts @@ -1,10 +1,11 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import { Transaction } from '@sentry/tracing'; -import { TransactionContext } from '@sentry/types'; +import type { TransactionContext } from '@sentry/types'; +import type { + NavigationRoute} from '../../src/js/tracing/reactnavigation'; import { BLANK_TRANSACTION_CONTEXT, - NavigationRoute, ReactNavigationInstrumentation, } from '../../src/js/tracing/reactnavigation'; import { RN_GLOBAL_OBJ } from '../../src/js/utils/worldwide'; diff --git a/test/tracing/reactnavigationv4.test.ts b/test/tracing/reactnavigationv4.test.ts index 873bcb7c4b..249decac3d 100644 --- a/test/tracing/reactnavigationv4.test.ts +++ b/test/tracing/reactnavigationv4.test.ts @@ -1,12 +1,13 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import { Transaction } from '@sentry/tracing'; -import { TransactionContext } from '@sentry/types'; +import type { TransactionContext } from '@sentry/types'; -import { +import type { AppContainerInstance, - INITIAL_TRANSACTION_CONTEXT_V4, NavigationRouteV4, - NavigationStateV4, + NavigationStateV4} from '../../src/js/tracing/reactnavigationv4'; +import { + INITIAL_TRANSACTION_CONTEXT_V4, ReactNavigationV4Instrumentation, } from '../../src/js/tracing/reactnavigationv4'; import { RN_GLOBAL_OBJ } from '../../src/js/utils/worldwide'; diff --git a/test/tracing/stalltracking.test.ts b/test/tracing/stalltracking.test.ts index c331bdfd4b..9343863e2a 100644 --- a/test/tracing/stalltracking.test.ts +++ b/test/tracing/stalltracking.test.ts @@ -1,5 +1,5 @@ import { IdleTransaction, Transaction } from '@sentry/tracing'; -import { Event } from '@sentry/types'; +import type { Event } from '@sentry/types'; import { StallTrackingInstrumentation } from '../../src/js/tracing/stalltracking'; diff --git a/test/transports/native.test.ts b/test/transports/native.test.ts index 1706b9092d..148dc13792 100644 --- a/test/transports/native.test.ts +++ b/test/transports/native.test.ts @@ -1,4 +1,4 @@ -import { Envelope } from '@sentry/types'; +import type { Envelope } from '@sentry/types'; import { NativeTransport } from '../../src/js/transports/native'; diff --git a/test/wrapper.test.ts b/test/wrapper.test.ts index 9a7bac4ae4..4ecb92aef6 100644 --- a/test/wrapper.test.ts +++ b/test/wrapper.test.ts @@ -1,9 +1,9 @@ /* eslint-disable @typescript-eslint/unbound-method */ -import { Event, EventEnvelope, EventItem, SeverityLevel } from '@sentry/types'; +import type { Event, EventEnvelope, EventItem, SeverityLevel } from '@sentry/types'; import { createEnvelope, logger } from '@sentry/utils'; -import { SentryNativeBridgeModule } from '../src/js/definitions'; -import { ReactNativeOptions } from '../src/js/options'; +import type { SentryNativeBridgeModule } from '../src/js/definitions'; +import type { ReactNativeOptions } from '../src/js/options'; import { utf8ToBytes } from '../src/js/vendor'; import { NATIVE } from '../src/js/wrapper'; From 37282470547397cd1ad85d9c0aca02efab27ad82 Mon Sep 17 00:00:00 2001 From: Krystof Woldrich Date: Thu, 19 Jan 2023 17:38:14 +0100 Subject: [PATCH 3/6] Add Http Client Errors example to the sample --- sample/src/App.tsx | 10 ++++++++++ sample/src/screens/HomeScreen.tsx | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/sample/src/App.tsx b/sample/src/App.tsx index b156e8b0fd..47f36a538b 100644 --- a/sample/src/App.tsx +++ b/sample/src/App.tsx @@ -8,6 +8,7 @@ import {createStackNavigator} from '@react-navigation/stack'; // Import the Sentry React Native SDK import * as Sentry from '@sentry/react-native'; +import * as Integrations from '@sentry/integrations'; import HomeScreen from './screens/HomeScreen'; import TrackerScreen from './screens/TrackerScreen'; @@ -51,6 +52,15 @@ Sentry.init({ return context; }, }), + new Integrations.HttpClient({ + // This array can contain tuples of `[begin, end]` (both inclusive), + // Single status codes, or a combinations of both. + // default: [[500, 599]] + failedRequestStatusCodes: [[400, 405], [500, 505], 507], + // This array can contain Regexes or strings, or combinations of both. + // default: [/.*/] + failedRequestTargets: ['http://localhost'], + }), ], enableAutoSessionTracking: true, // For testing, session close when 5 seconds (instead of the default 30) in the background. diff --git a/sample/src/screens/HomeScreen.tsx b/sample/src/screens/HomeScreen.tsx index 309f333608..99de9d5ff9 100644 --- a/sample/src/screens/HomeScreen.tsx +++ b/sample/src/screens/HomeScreen.tsx @@ -119,6 +119,14 @@ const HomeScreen = (props: Props) => { .then((asset: number[]) => setData(new Uint8Array(asset))); }, []); + useEffect(() => { + try { + fetch('http://localhost:8081/not-found'); + } catch (error) { + //ignore the error, it will be send to Sentry + } + }); + return ( <> From 6d15bfcda5b408f3830d22e1b189c1551b695b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kry=C5=A1tof=20Wold=C5=99ich?= <31292499+krystofwoldrich@users.noreply.github.com> Date: Mon, 23 Jan 2023 13:17:01 +0100 Subject: [PATCH 4/6] Update sample/src/App.tsx Co-authored-by: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com> --- sample/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/src/App.tsx b/sample/src/App.tsx index 47f36a538b..ce4f8081c3 100644 --- a/sample/src/App.tsx +++ b/sample/src/App.tsx @@ -56,7 +56,7 @@ Sentry.init({ // This array can contain tuples of `[begin, end]` (both inclusive), // Single status codes, or a combinations of both. // default: [[500, 599]] - failedRequestStatusCodes: [[400, 405], [500, 505], 507], + failedRequestStatusCodes: [[400, 599]], // This array can contain Regexes or strings, or combinations of both. // default: [/.*/] failedRequestTargets: ['http://localhost'], From 21d5caefc9a670b746542708937a67b3fb247f2b Mon Sep 17 00:00:00 2001 From: Krystof Woldrich Date: Mon, 23 Jan 2023 13:19:57 +0100 Subject: [PATCH 5/6] Use default request targets --- sample/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/src/App.tsx b/sample/src/App.tsx index ce4f8081c3..05660e592c 100644 --- a/sample/src/App.tsx +++ b/sample/src/App.tsx @@ -59,7 +59,7 @@ Sentry.init({ failedRequestStatusCodes: [[400, 599]], // This array can contain Regexes or strings, or combinations of both. // default: [/.*/] - failedRequestTargets: ['http://localhost'], + failedRequestTargets: [/.*/], }), ], enableAutoSessionTracking: true, From 87e533ab88ccb20ad62dc9c8c297c93684cf812e Mon Sep 17 00:00:00 2001 From: Krystof Woldrich Date: Mon, 23 Jan 2023 13:39:18 +0100 Subject: [PATCH 6/6] Add button for http client error --- sample/src/screens/HomeScreen.tsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/sample/src/screens/HomeScreen.tsx b/sample/src/screens/HomeScreen.tsx index 99de9d5ff9..2d328ad25d 100644 --- a/sample/src/screens/HomeScreen.tsx +++ b/sample/src/screens/HomeScreen.tsx @@ -119,14 +119,6 @@ const HomeScreen = (props: Props) => { .then((asset: number[]) => setData(new Uint8Array(asset))); }, []); - useEffect(() => { - try { - fetch('http://localhost:8081/not-found'); - } catch (error) { - //ignore the error, it will be send to Sentry - } - }); - return ( <> @@ -268,7 +260,18 @@ const HomeScreen = (props: Props) => { Get attachment - + + + { + try { + fetch('http://localhost:8081/not-found'); + } catch (error) { + //ignore the error, it will be send to Sentry + } + }}> + Capture HTTP Client Error +