@nitra/vite-boot 3.5.4 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/src/sentry.js +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nitra/vite-boot",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "Vite boot",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"src"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@apollo/client": "^3.
|
|
30
|
+
"@apollo/client": "^3.9.10",
|
|
31
31
|
"@nitra/jwt-decode": "^1.2.0",
|
|
32
|
-
"@sentry/tracing": "^7.
|
|
33
|
-
"@sentry/vue": "^7.
|
|
34
|
-
"graphql-ws": "^5.
|
|
32
|
+
"@sentry/tracing": "^7.109.0",
|
|
33
|
+
"@sentry/vue": "^7.109.0",
|
|
34
|
+
"graphql-ws": "^5.16.0",
|
|
35
35
|
"pinia": "^2.1.7",
|
|
36
|
-
"pinia-plugin-persistedstate": "^3.2.
|
|
36
|
+
"pinia-plugin-persistedstate": "^3.2.1"
|
|
37
37
|
}
|
|
38
38
|
}
|
package/src/sentry.js
CHANGED
|
@@ -6,11 +6,15 @@ import { router } from './router.js'
|
|
|
6
6
|
* Ініціалізація Sentry
|
|
7
7
|
*/
|
|
8
8
|
export const bootSentry = (app, tracing = 0) => {
|
|
9
|
+
if (!import.meta.env.VITE_SENTRY) {
|
|
10
|
+
return
|
|
11
|
+
}
|
|
12
|
+
|
|
9
13
|
const options = {
|
|
10
14
|
app,
|
|
11
15
|
dsn: import.meta.env.VITE_SENTRY,
|
|
12
|
-
release: __GITHUB_SHA__,
|
|
13
16
|
ignoreErrors: [
|
|
17
|
+
'connection_error',
|
|
14
18
|
'Socket closed',
|
|
15
19
|
'ResizeObserver loop limit exceeded',
|
|
16
20
|
'Apollo client with id default not found',
|
|
@@ -18,6 +22,10 @@ export const bootSentry = (app, tracing = 0) => {
|
|
|
18
22
|
],
|
|
19
23
|
integrations: []
|
|
20
24
|
}
|
|
25
|
+
// Якщо задано ідентифікатор коміту
|
|
26
|
+
if (typeof __GITHUB_SHA__ !== 'undefined') {
|
|
27
|
+
options.release = __GITHUB_SHA__
|
|
28
|
+
}
|
|
21
29
|
|
|
22
30
|
if (tracing) {
|
|
23
31
|
options.integrations.push(
|