@graphql-codegen/typescript-apollo-angular 3.2.1-alpha-143b4bc91.0 → 3.3.1-alpha-ee6fcf862.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 -1
- package/index.mjs +2 -1
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
6
|
|
|
7
|
+
const pluginHelpers = require('@graphql-codegen/plugin-helpers');
|
|
7
8
|
const graphql = require('graphql');
|
|
8
9
|
const visitorPluginCommon = require('@graphql-codegen/visitor-plugin-common');
|
|
9
10
|
const autoBind = _interopDefault(require('auto-bind'));
|
|
@@ -303,7 +304,7 @@ const plugin = (schema, documents, config) => {
|
|
|
303
304
|
...(config.externalFragments || []),
|
|
304
305
|
];
|
|
305
306
|
const visitor = new ApolloAngularVisitor(schema, allFragments, operations, config, documents);
|
|
306
|
-
const visitorResult =
|
|
307
|
+
const visitorResult = pluginHelpers.oldVisit(allAst, { leave: visitor });
|
|
307
308
|
return {
|
|
308
309
|
prepend: visitor.getImports(),
|
|
309
310
|
content: [
|
package/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { oldVisit } from '@graphql-codegen/plugin-helpers';
|
|
1
2
|
import { print, visit, Kind, concatAST } from 'graphql';
|
|
2
3
|
import { ClientSideBaseVisitor, getConfigValue, DocumentMode, indentMultiline } from '@graphql-codegen/visitor-plugin-common';
|
|
3
4
|
import autoBind from 'auto-bind';
|
|
@@ -297,7 +298,7 @@ const plugin = (schema, documents, config) => {
|
|
|
297
298
|
...(config.externalFragments || []),
|
|
298
299
|
];
|
|
299
300
|
const visitor = new ApolloAngularVisitor(schema, allFragments, operations, config, documents);
|
|
300
|
-
const visitorResult =
|
|
301
|
+
const visitorResult = oldVisit(allAst, { leave: visitor });
|
|
301
302
|
return {
|
|
302
303
|
prepend: visitor.getImports(),
|
|
303
304
|
content: [
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript-apollo-angular",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1-alpha-ee6fcf862.0",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating ready-to-use Angular Components based on GraphQL operations",
|
|
5
5
|
"peerDependencies": {
|
|
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",
|
|
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.
|
|
11
|
-
"@graphql-codegen/visitor-plugin-common": "2.
|
|
10
|
+
"@graphql-codegen/plugin-helpers": "^2.3.0",
|
|
11
|
+
"@graphql-codegen/visitor-plugin-common": "2.5.1-alpha-ee6fcf862.0",
|
|
12
12
|
"auto-bind": "~4.0.0",
|
|
13
13
|
"change-case-all": "1.0.14",
|
|
14
14
|
"tslib": "~2.3.0"
|