@graphql-codegen/typescript-vue-apollo 3.3.6 → 3.3.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/cjs/visitor.js CHANGED
@@ -174,7 +174,7 @@ class VueApolloVisitor extends visitor_plugin_common_1.ClientSideBaseVisitor {
174
174
  }`;
175
175
  }
176
176
  case 'Mutation': {
177
- return `export function use${operationName}(options: VueApolloComposable.UseMutationOptions<${operationResultType}, ${operationVariablesTypes}> | ReactiveFunction<VueApolloComposable.UseMutationOptions<${operationResultType}, ${operationVariablesTypes}>>${operationHasNonNullableVariable ? '' : ' = {}'}) {
177
+ return `export function use${operationName}(options: VueApolloComposable.UseMutationOptions<${operationResultType}, ${operationVariablesTypes}> | ReactiveFunction<VueApolloComposable.UseMutationOptions<${operationResultType}, ${operationVariablesTypes}>> = {}) {
178
178
  return VueApolloComposable.useMutation<${operationResultType}, ${operationVariablesTypes}>(${documentNodeVariable}, options);
179
179
  }`;
180
180
  }
package/esm/visitor.js CHANGED
@@ -170,7 +170,7 @@ export class VueApolloVisitor extends ClientSideBaseVisitor {
170
170
  }`;
171
171
  }
172
172
  case 'Mutation': {
173
- return `export function use${operationName}(options: VueApolloComposable.UseMutationOptions<${operationResultType}, ${operationVariablesTypes}> | ReactiveFunction<VueApolloComposable.UseMutationOptions<${operationResultType}, ${operationVariablesTypes}>>${operationHasNonNullableVariable ? '' : ' = {}'}) {
173
+ return `export function use${operationName}(options: VueApolloComposable.UseMutationOptions<${operationResultType}, ${operationVariablesTypes}> | ReactiveFunction<VueApolloComposable.UseMutationOptions<${operationResultType}, ${operationVariablesTypes}>> = {}) {
174
174
  return VueApolloComposable.useMutation<${operationResultType}, ${operationVariablesTypes}>(${documentNodeVariable}, options);
175
175
  }`;
176
176
  }
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-vue-apollo",
3
- "version": "3.3.6",
3
+ "version": "3.3.7",
4
4
  "description": "GraphQL Code Generator plugin for generating ready-to-use Vue-Apollo composition functions based on GraphQL operations",
5
5
  "peerDependencies": {
6
6
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
7
7
  "graphql-tag": "^2.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@graphql-codegen/plugin-helpers": "^2.7.2",
10
+ "@graphql-codegen/plugin-helpers": "^3.0.0",
11
11
  "@graphql-codegen/visitor-plugin-common": "2.13.1",
12
12
  "auto-bind": "~4.0.0",
13
- "change-case-all": "1.0.14",
13
+ "change-case-all": "1.0.15",
14
14
  "tslib": "~2.4.0"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
18
- "url": "https://github.com/dotansimha/graphql-code-generator.git",
18
+ "url": "https://github.com/dotansimha/graphql-code-generator-community.git",
19
19
  "directory": "packages/plugins/typescript/vue-apollo"
20
20
  },
21
21
  "license": "MIT",