@acrool/graphql-codegen-rtk-query
Advanced tools
Comparing version 0.0.3-test.2 to 0.0.3-test.3
@@ -94,2 +94,3 @@ "use strict"; | ||
const operationName = (_a = node.name) === null || _a === void 0 ? void 0 : _a.value; | ||
const query = []; | ||
if (!operationName) | ||
@@ -105,3 +106,4 @@ return ''; | ||
if (operationType === 'Subscription') { | ||
this._hooks.push(this.generateSubscriptionHook(node, documentVariableName, operationName, operationResultType, operationVariablesTypes, hasRequiredVariables)); | ||
query.push(this.generateSubscriptionHook(node, documentVariableName, operationName, operationResultType, operationVariablesTypes, hasRequiredVariables)); | ||
return query.join('\n'); | ||
} | ||
@@ -108,0 +110,0 @@ const Generics = `${operationResultType}, IUseFetcherArgs<${operationVariablesTypes}>${hasRequiredVariables ? '' : ' | void'}`; |
{ | ||
"name": "@acrool/graphql-codegen-rtk-query", | ||
"version": "0.0.3-test.2", | ||
"version": "0.0.3-test.3", | ||
"description": "trk-query for graphql-code-generator", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20870
337