@graphql-codegen/typescript-react-apollo 3.2.12 → 3.2.15-alpha-b9cc98b7a.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.
- package/index.js +2 -4
- package/index.mjs +2 -4
- 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
|
-
|
|
119
|
-
|
|
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
|
-
|
|
113
|
-
|
|
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.
|
|
3
|
+
"version": "3.2.15-alpha-b9cc98b7a.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.
|
|
11
|
+
"@graphql-codegen/visitor-plugin-common": "2.9.0-alpha-b9cc98b7a.0",
|
|
12
12
|
"auto-bind": "~4.0.0",
|
|
13
13
|
"change-case-all": "1.0.14",
|
|
14
14
|
"tslib": "~2.4.0"
|