@graphql-codegen/typescript-apollo-angular 3.4.6 → 3.4.7
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 -1
- package/index.mjs +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -203,6 +203,7 @@ class ApolloAngularVisitor extends visitorPluginCommon.ClientSideBaseVisitor {
|
|
|
203
203
|
operationVariablesTypes,
|
|
204
204
|
serviceName,
|
|
205
205
|
});
|
|
206
|
+
const namedClient = this._namedClient(node);
|
|
206
207
|
operationResultType = this._externalImportPrefix + operationResultType;
|
|
207
208
|
operationVariablesTypes = this._externalImportPrefix + operationVariablesTypes;
|
|
208
209
|
const content = `
|
|
@@ -211,7 +212,7 @@ class ApolloAngularVisitor extends visitorPluginCommon.ClientSideBaseVisitor {
|
|
|
211
212
|
})
|
|
212
213
|
export class ${serviceName} extends Apollo.${operationType}<${operationResultType}, ${operationVariablesTypes}> {
|
|
213
214
|
${this.config.addExplicitOverride ? 'override ' : ''}document = ${this._getDocumentNodeVariable(node, documentVariableName)};
|
|
214
|
-
${this.
|
|
215
|
+
${namedClient !== '' ? (this.config.addExplicitOverride ? 'override ' : '') + namedClient : ''}
|
|
215
216
|
constructor(${this.dependencyInjections}) {
|
|
216
217
|
super(${this.dependencyInjectionArgs});
|
|
217
218
|
}
|
package/index.mjs
CHANGED
|
@@ -197,6 +197,7 @@ class ApolloAngularVisitor extends ClientSideBaseVisitor {
|
|
|
197
197
|
operationVariablesTypes,
|
|
198
198
|
serviceName,
|
|
199
199
|
});
|
|
200
|
+
const namedClient = this._namedClient(node);
|
|
200
201
|
operationResultType = this._externalImportPrefix + operationResultType;
|
|
201
202
|
operationVariablesTypes = this._externalImportPrefix + operationVariablesTypes;
|
|
202
203
|
const content = `
|
|
@@ -205,7 +206,7 @@ class ApolloAngularVisitor extends ClientSideBaseVisitor {
|
|
|
205
206
|
})
|
|
206
207
|
export class ${serviceName} extends Apollo.${operationType}<${operationResultType}, ${operationVariablesTypes}> {
|
|
207
208
|
${this.config.addExplicitOverride ? 'override ' : ''}document = ${this._getDocumentNodeVariable(node, documentVariableName)};
|
|
208
|
-
${this.
|
|
209
|
+
${namedClient !== '' ? (this.config.addExplicitOverride ? 'override ' : '') + namedClient : ''}
|
|
209
210
|
constructor(${this.dependencyInjections}) {
|
|
210
211
|
super(${this.dependencyInjectionArgs});
|
|
211
212
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript-apollo-angular",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.7",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating ready-to-use Angular Components 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"
|