@nitra/vite-boot 4.1.1 → 4.1.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": "4.1.1",
3
+ "version": "4.1.3",
4
4
  "description": "Vite boot",
5
5
  "type": "module",
6
6
  "exports": {
@@ -31,6 +31,7 @@
31
31
  "@vue/apollo-composable": "^4.2.2",
32
32
  "graphql-ws": "^6.0.6",
33
33
  "pinia": "^3.0.3",
34
- "pinia-plugin-persistedstate": "^4.5.0"
34
+ "pinia-plugin-persistedstate": "^4.5.0",
35
+ "rxjs": "^7.8.2"
35
36
  }
36
37
  }
@@ -0,0 +1,20 @@
1
+ // Apollo Client v4 compatibility shim for @vue/apollo-composable
2
+ export class ApolloError extends Error {
3
+ constructor(opts = {}) {
4
+ super(opts.errorMessage || 'Apollo Client Error')
5
+ this.name = 'ApolloError'
6
+ this.graphQLErrors = opts.graphQLErrors ?? []
7
+ this.clientErrors = opts.clientErrors ?? []
8
+ this.networkError = opts.networkError
9
+ this.extraInfo = opts.extraInfo
10
+ }
11
+ }
12
+
13
+ /**
14
+ *
15
+ * @param err
16
+ */
17
+ export function isApolloError(err) {
18
+ return err instanceof ApolloError
19
+ }
20
+ // export * from '@apollo/client/core' // реекспорт всього