@graphql-codegen/typescript-urql 3.6.3-alpha-7e47fba48.0 → 3.6.3
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 +1 -1
- package/esm/visitor.js +1 -1
- package/package.json +3 -3
package/cjs/visitor.js
CHANGED
|
@@ -81,7 +81,7 @@ export function use${operationName}<TData = ${operationResultType}>(options: Omi
|
|
|
81
81
|
const isVariablesRequired = node.variableDefinitions.some(variableDef => variableDef.type.kind === graphql_1.Kind.NON_NULL_TYPE && variableDef.defaultValue == null);
|
|
82
82
|
return `
|
|
83
83
|
export function use${operationName}(options${isVariablesRequired ? '' : '?'}: Omit<Urql.Use${operationType}Args<${operationVariablesTypes}>, 'query'>) {
|
|
84
|
-
return Urql.use${operationType}<${operationResultType}>({ query: ${documentVariableName}, ...options });
|
|
84
|
+
return Urql.use${operationType}<${operationResultType}, ${operationVariablesTypes}>({ query: ${documentVariableName}, ...options });
|
|
85
85
|
};`;
|
|
86
86
|
}
|
|
87
87
|
buildOperation(node, documentVariableName, operationType, operationResultType, operationVariablesTypes) {
|
package/esm/visitor.js
CHANGED
|
@@ -77,7 +77,7 @@ export function use${operationName}<TData = ${operationResultType}>(options: Omi
|
|
|
77
77
|
const isVariablesRequired = node.variableDefinitions.some(variableDef => variableDef.type.kind === Kind.NON_NULL_TYPE && variableDef.defaultValue == null);
|
|
78
78
|
return `
|
|
79
79
|
export function use${operationName}(options${isVariablesRequired ? '' : '?'}: Omit<Urql.Use${operationType}Args<${operationVariablesTypes}>, 'query'>) {
|
|
80
|
-
return Urql.use${operationType}<${operationResultType}>({ query: ${documentVariableName}, ...options });
|
|
80
|
+
return Urql.use${operationType}<${operationResultType}, ${operationVariablesTypes}>({ query: ${documentVariableName}, ...options });
|
|
81
81
|
};`;
|
|
82
82
|
}
|
|
83
83
|
buildOperation(node, documentVariableName, operationType, operationResultType, operationVariablesTypes) {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript-urql",
|
|
3
|
-
"version": "3.6.3
|
|
3
|
+
"version": "3.6.3",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating an introspection file for Urql's Schema Awareness",
|
|
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.6.
|
|
11
|
-
"@graphql-codegen/visitor-plugin-common": "2.12.
|
|
10
|
+
"@graphql-codegen/plugin-helpers": "^2.6.0",
|
|
11
|
+
"@graphql-codegen/visitor-plugin-common": "2.12.0",
|
|
12
12
|
"auto-bind": "~4.0.0",
|
|
13
13
|
"tslib": "~2.4.0"
|
|
14
14
|
},
|