@nitra/vite-boot 3.5.3 → 3.6.0

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.
Files changed (2) hide show
  1. package/package.json +6 -6
  2. package/src/sentry.js +14 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/vite-boot",
3
- "version": "3.5.3",
3
+ "version": "3.6.0",
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.8.7",
30
+ "@apollo/client": "^3.9.10",
31
31
  "@nitra/jwt-decode": "^1.2.0",
32
- "@sentry/tracing": "^7.81.1",
33
- "@sentry/vue": "^7.81.1",
34
- "graphql-ws": "^5.14.2",
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.0"
36
+ "pinia-plugin-persistedstate": "^3.2.1"
37
37
  }
38
38
  }
package/src/sentry.js CHANGED
@@ -6,13 +6,25 @@ 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
- ignoreErrors: ['ResizeObserver loop limit exceeded', 'Apollo client with id default not found'],
16
+ ignoreErrors: [
17
+ 'Socket closed',
18
+ 'ResizeObserver loop limit exceeded',
19
+ 'Apollo client with id default not found',
20
+ 'ResizeObserver loop completed with undelivered notifications'
21
+ ],
14
22
  integrations: []
15
23
  }
24
+ // Якщо задано ідентифікатор коміту
25
+ if (typeof __GITHUB_SHA__ !== 'undefined') {
26
+ options.release = __GITHUB_SHA__
27
+ }
16
28
 
17
29
  if (tracing) {
18
30
  options.integrations.push(