@graphql-codegen/typescript-oclif 2.1.5-alpha-143b4bc91.0 → 2.2.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 +3 -2
- 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'));
|
|
@@ -154,7 +155,7 @@ const plugin = (schema, documents, config, info) => {
|
|
|
154
155
|
...(config.externalFragments || []),
|
|
155
156
|
];
|
|
156
157
|
const visitor = new GraphQLRequestVisitor(schema, allFragments, config, info);
|
|
157
|
-
|
|
158
|
+
pluginHelpers.oldVisit(allAst, { leave: visitor });
|
|
158
159
|
return {
|
|
159
160
|
prepend: visitor.getImports(),
|
|
160
161
|
content: visitor.cliContent,
|
package/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { oldVisit } from '@graphql-codegen/plugin-helpers';
|
|
2
|
+
import { print, concatAST, Kind } from 'graphql';
|
|
2
3
|
import { ClientSideBaseVisitor, indentMultiline } from '@graphql-codegen/visitor-plugin-common';
|
|
3
4
|
import autoBind from 'auto-bind';
|
|
4
5
|
import { extname } from 'path';
|
|
@@ -148,7 +149,7 @@ const plugin = (schema, documents, config, info) => {
|
|
|
148
149
|
...(config.externalFragments || []),
|
|
149
150
|
];
|
|
150
151
|
const visitor = new GraphQLRequestVisitor(schema, allFragments, config, info);
|
|
151
|
-
|
|
152
|
+
oldVisit(allAst, { leave: visitor });
|
|
152
153
|
return {
|
|
153
154
|
prepend: visitor.getImports(),
|
|
154
155
|
content: visitor.cliContent,
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript-oclif",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1-alpha-ee6fcf862.0",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating a CLI tool with oclif",
|
|
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
|
"tslib": "~2.3.0"
|
|
14
14
|
},
|