@gambalabs/apollo 6.0.0-alpha.34 → 6.0.0-alpha.38

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/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gambalabs/apollo",
3
- "version": "6.0.0-alpha.34",
3
+ "version": "6.0.0-alpha.38",
4
4
  "configKey": "apollo",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.0.0-rc.9"
package/dist/module.mjs CHANGED
@@ -5,7 +5,7 @@ import { useLogger, defineNuxtModule, createResolver, addTemplate, addPlugin, ad
5
5
  import GraphQLPlugin from '@rollup/plugin-graphql';
6
6
 
7
7
  const name = "@gambalabs/apollo";
8
- const version = "6.0.0-alpha.34";
8
+ const version = "6.0.0-alpha.38";
9
9
 
10
10
  const serializeConfig = (obj) => {
11
11
  if (typeof obj === "function") {
@@ -56,7 +56,7 @@ const module = defineNuxtModule({
56
56
  },
57
57
  attempts: {
58
58
  max: 5,
59
- retryIf: (error, operation) => {
59
+ retryIf(error, operation) {
60
60
  return !!error;
61
61
  }
62
62
  }
@@ -180,9 +180,10 @@ export default defineNuxtPlugin((nuxtApp) => {
180
180
  pusherLink,
181
181
  ...clientConfig.persistedQueries ? [
182
182
  split(
183
- ({ query }) => {
183
+ ({ query, getContext }) => {
184
184
  const definition = getMainDefinition(query);
185
- return definition.kind === "OperationDefinition" && definition.operation === "query";
185
+ const context = getContext();
186
+ return definition.kind === "OperationDefinition" && definition.operation === "query" && !context.unpersisted;
186
187
  },
187
188
  ApolloLink.from([persistedLink, retryLink, httpEndLink]),
188
189
  ApolloLink.from([retryLink, httpEndLink])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gambalabs/apollo",
3
- "version": "6.0.0-alpha.34",
3
+ "version": "6.0.0-alpha.38",
4
4
  "license": "MIT",
5
5
  "repository": "https://github.com/GambaLabs/apollo",
6
6
  "homepage": "https://apollo.nuxtjs.org",