@graphql-codegen/typescript-react-apollo 3.2.13 → 3.2.15-alpha-df7bf6266.0

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.
Files changed (3) hide show
  1. package/index.js +2 -4
  2. package/index.mjs +2 -4
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -115,10 +115,8 @@ class ReactApolloVisitor extends visitorPluginCommon.ClientSideBaseVisitor {
115
115
  this.imports.add(this.getApolloReactCommonImport(true));
116
116
  return `${this.getApolloReactCommonIdentifier()}.MutationFunction${typeArgs}`;
117
117
  }
118
- else {
119
- this.imports.add(this.getApolloReactHocImport(true));
120
- return `ApolloReactHoc.DataValue${typeArgs}`;
121
- }
118
+ this.imports.add(this.getApolloReactHocImport(true));
119
+ return `ApolloReactHoc.DataValue${typeArgs}`;
122
120
  }
123
121
  _buildMutationFn(node, operationResultType, operationVariablesTypes) {
124
122
  var _a, _b;
package/index.mjs CHANGED
@@ -109,10 +109,8 @@ class ReactApolloVisitor extends ClientSideBaseVisitor {
109
109
  this.imports.add(this.getApolloReactCommonImport(true));
110
110
  return `${this.getApolloReactCommonIdentifier()}.MutationFunction${typeArgs}`;
111
111
  }
112
- else {
113
- this.imports.add(this.getApolloReactHocImport(true));
114
- return `ApolloReactHoc.DataValue${typeArgs}`;
115
- }
112
+ this.imports.add(this.getApolloReactHocImport(true));
113
+ return `ApolloReactHoc.DataValue${typeArgs}`;
116
114
  }
117
115
  _buildMutationFn(node, operationResultType, operationVariablesTypes) {
118
116
  var _a, _b;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-react-apollo",
3
- "version": "3.2.13",
3
+ "version": "3.2.15-alpha-df7bf6266.0",
4
4
  "description": "GraphQL Code Generator plugin for generating a ready-to-use React Components/HOC/Hooks 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",
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@graphql-codegen/plugin-helpers": "^2.4.0",
11
- "@graphql-codegen/visitor-plugin-common": "2.7.6",
11
+ "@graphql-codegen/visitor-plugin-common": "2.9.0-alpha-df7bf6266.0",
12
12
  "auto-bind": "~4.0.0",
13
13
  "change-case-all": "1.0.14",
14
14
  "tslib": "~2.4.0"