@nitra/vite-boot 3.5.4 → 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 +8 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/vite-boot",
3
- "version": "3.5.4",
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,10 +6,13 @@ 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: [
14
17
  'Socket closed',
15
18
  'ResizeObserver loop limit exceeded',
@@ -18,6 +21,10 @@ export const bootSentry = (app, tracing = 0) => {
18
21
  ],
19
22
  integrations: []
20
23
  }
24
+ // Якщо задано ідентифікатор коміту
25
+ if (typeof __GITHUB_SHA__ !== 'undefined') {
26
+ options.release = __GITHUB_SHA__
27
+ }
21
28
 
22
29
  if (tracing) {
23
30
  options.integrations.push(