@nitra/vite-boot 3.5.1 → 3.5.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/vite-boot",
3
- "version": "3.5.1",
3
+ "version": "3.5.3",
4
4
  "description": "Vite boot",
5
5
  "type": "module",
6
6
  "exports": {
package/src/sentry.js CHANGED
@@ -10,7 +10,7 @@ export const bootSentry = (app, tracing = 0) => {
10
10
  app,
11
11
  dsn: import.meta.env.VITE_SENTRY,
12
12
  release: __GITHUB_SHA__,
13
- ignoreErrors: ['ResizeObserver loop limit exceeded'],
13
+ ignoreErrors: ['ResizeObserver loop limit exceeded', 'Apollo client with id default not found'],
14
14
  integrations: []
15
15
  }
16
16
 
package/src/token.js CHANGED
@@ -100,7 +100,7 @@ export async function refreshToken() {
100
100
 
101
101
  // Якщо запущений аполо
102
102
  // допускаємо що ми всередині прикладення
103
- if (apolloClient) {
103
+ if (window.location.pathname !== '/login' && apolloClient) {
104
104
  setUser(check.decoded)
105
105
 
106
106
  // перезавантажуємо щоб він вступив в дію