@nitra/vite-boot 4.0.3 → 4.0.5

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 +2 -9
  2. package/src/sentry.js +0 -52
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@nitra/vite-boot",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "description": "Vite boot",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  "./apollo": "./src/apollo.js",
8
8
  "./pinia": "./src/pinia.js",
9
- "./sentry": "./src/sentry.js",
10
9
  "./token": "./src/token.js",
11
10
  "./login": "./src/login.js",
12
11
  "./user": "./src/user.js",
@@ -27,17 +26,11 @@
27
26
  "src"
28
27
  ],
29
28
  "dependencies": {
30
- "@apollo/client": "3.*",
29
+ "@apollo/client": "3.8.*",
31
30
  "@nitra/jwt-decode": "^1.2.0",
32
31
  "@nitra/log": "^0.0.3",
33
- "@sentry/tracing": "^7.120.4",
34
- "@sentry/vue": "^10.10.0",
35
32
  "graphql-ws": "^6.0.6",
36
33
  "pinia": "^3.0.3",
37
34
  "pinia-plugin-persistedstate": "^4.5.0"
38
- },
39
- "devDependencies": {
40
- "react": "^19.1.1",
41
- "react-dom": "^19.1.1"
42
35
  }
43
36
  }
package/src/sentry.js DELETED
@@ -1,52 +0,0 @@
1
- import * as Sentry from '@sentry/vue'
2
- import { Integrations } from '@sentry/tracing'
3
- import { router } from './router.js'
4
-
5
- /**
6
- * Ініціалізація Sentry
7
- * @param app
8
- * @param tracing
9
- */
10
- export const bootSentry = (app, tracing = 0) => {
11
- if (!import.meta.env.VITE_SENTRY) {
12
- return
13
- }
14
-
15
- const options = {
16
- app,
17
- dsn: import.meta.env.VITE_SENTRY,
18
- ignoreErrors: [
19
- 'connection_error',
20
- 'Socket closed',
21
- 'ResizeObserver loop limit exceeded',
22
- 'Apollo client with id default not found',
23
- 'ResizeObserver loop completed with undelivered notifications'
24
- ],
25
- integrations: []
26
- }
27
- // Якщо задано ідентифікатор коміту
28
- if (typeof __GITHUB_SHA__ !== 'undefined') {
29
- options.release = __GITHUB_SHA__
30
- }
31
-
32
- if (tracing) {
33
- options.integrations.push(
34
- new Integrations.BrowserTracing({
35
- routingInstrumentation: Sentry.vueRouterInstrumentation(router)
36
- })
37
- )
38
-
39
- // Set tracesSampleRate to 1.0 to capture 100%
40
- // of transactions for performance monitoring.
41
- // We recommend adjusting this value in production
42
- options.tracesSampleRate = tracing
43
- }
44
-
45
- // Якщо публікація з різних гілок
46
- // записуємо в різні енв для фільтрації в сентрі
47
- if (typeof __BRANCH__ !== 'undefined') {
48
- options.environment = __BRANCH__
49
- }
50
-
51
- Sentry.init(options)
52
- }