@nitra/vite-boot 3.1.6 → 3.1.7

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.1.6",
3
+ "version": "3.1.7",
4
4
  "description": "Vite boot",
5
5
  "type": "module",
6
6
  "exports": {
@@ -42,7 +42,6 @@
42
42
  ],
43
43
  "dependencies": {
44
44
  "@apollo/client": "^3.5.10",
45
- "@nitra/consola": "^2.1.1",
46
45
  "@nitra/jwt-decode": "^1.1.3",
47
46
  "@sentry/tracing": "^6.16.1",
48
47
  "@sentry/vue": "^6.16.1",
package/src/apollo.js CHANGED
@@ -1,14 +1,11 @@
1
1
  import { ApolloClient, InMemoryCache, from } from '@apollo/client/core'
2
2
  import { onError } from '@apollo/client/link/error'
3
3
  import { createClient } from 'graphql-ws'
4
- import { createLogger } from '@nitra/consola'
5
4
  import { GraphQLWsLink } from '@apollo/client/link/subscriptions'
6
5
  import { checkToken, refreshToken, getToken } from './token.js'
7
6
  import { user } from './user.js'
8
7
  import { router } from './router.js'
9
8
 
10
- const consola = createLogger(import.meta.url)
11
-
12
9
  function createRestartableClient(options) {
13
10
  let restartRequested = false
14
11
  let restart = () => {
@@ -77,7 +74,7 @@ const wsLink = new GraphQLWsLink(wsClient)
77
74
  const errorLink = onError(({ graphQLErrors, networkError }) => {
78
75
  if (graphQLErrors) {
79
76
  for (const err of graphQLErrors) {
80
- consola.debug('graphQLErrors: ', err)
77
+ console.error('graphQLErrors: ', err)
81
78
  }
82
79
  }
83
80
 
@@ -104,5 +101,3 @@ export const apolloClient = new ApolloClient({
104
101
  }
105
102
  }
106
103
  })
107
-
108
- consola.debug('End Apollo boot')
package/src/pinia.js CHANGED
@@ -1,10 +1,5 @@
1
1
  import { createPinia } from 'pinia'
2
2
  import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
3
- import { createLogger } from '@nitra/consola'
4
-
5
- const consola = createLogger(import.meta.url)
6
3
 
7
4
  export const pinia = createPinia()
8
5
  pinia.use(piniaPluginPersistedstate)
9
-
10
- consola.debug('End Pinia boot')
package/src/router.js CHANGED
@@ -1,15 +1,10 @@
1
1
  import { getToken, checkToken } from './token.js'
2
2
  import { user, setUser } from './user.js'
3
- import { createLogger } from '@nitra/consola'
4
3
 
5
4
  export let router
6
5
 
7
- const consola = createLogger(import.meta.url)
8
-
9
6
  export function setRouter(r) {
10
7
  router = r
11
-
12
- consola.debug('End Router boot')
13
8
  }
14
9
 
15
10
  export function canUserAccess(to) {
@@ -71,7 +66,7 @@ export function canUserAccessMetaRoles(to) {
71
66
  }
72
67
  }
73
68
 
74
- // Якщо токена немає, та є обмеження на сторінкі
69
+ // Якщо токена немає, та є обмеження на сторінці
75
70
  // то забороняємо доступ
76
71
  // if (to.meta?.roles.length > 0) {
77
72
  // return false