@graphql-codegen/typescript-react-query 3.2.2 → 3.2.3-alpha-23d229715.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 +1 -1
- package/index.mjs +1 -1
- package/package.json +4 -3
package/index.js
CHANGED
|
@@ -32,7 +32,7 @@ function generateMutationKey(node) {
|
|
|
32
32
|
return `'${node.name.value}'`;
|
|
33
33
|
}
|
|
34
34
|
function generateMutationKeyMaker(node, operationName) {
|
|
35
|
-
return `\nuse${operationName}.getKey = () => ${generateMutationKey(node)}
|
|
35
|
+
return `\nuse${operationName}.getKey = () => ${generateMutationKey(node)};\n`;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
class CustomMapperFetcher {
|
package/index.mjs
CHANGED
|
@@ -26,7 +26,7 @@ function generateMutationKey(node) {
|
|
|
26
26
|
return `'${node.name.value}'`;
|
|
27
27
|
}
|
|
28
28
|
function generateMutationKeyMaker(node, operationName) {
|
|
29
|
-
return `\nuse${operationName}.getKey = () => ${generateMutationKey(node)}
|
|
29
|
+
return `\nuse${operationName}.getKey = () => ${generateMutationKey(node)};\n`;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
class CustomMapperFetcher {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript-react-query",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.3-alpha-23d229715.0",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating a ready-to-use React-Query 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",
|
|
7
7
|
"graphql-tag": "^2.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-codegen/plugin-helpers": "
|
|
11
|
-
"@graphql-codegen/visitor-plugin-common": "2.5.
|
|
10
|
+
"@graphql-codegen/plugin-helpers": "2.4.0-alpha-23d229715.0",
|
|
11
|
+
"@graphql-codegen/visitor-plugin-common": "2.5.2-alpha-23d229715.0",
|
|
12
12
|
"auto-bind": "~4.0.0",
|
|
13
13
|
"change-case-all": "1.0.14",
|
|
14
14
|
"tslib": "~2.3.0"
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"definition": "index.d.ts"
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
|
+
"./package.json": "./package.json",
|
|
29
30
|
".": {
|
|
30
31
|
"require": "./index.js",
|
|
31
32
|
"import": "./index.mjs"
|