@graphql-codegen/typescript-jit-sdk 1.0.1 → 1.1.1-alpha-3b5c0246d.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 +5 -5
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 path = require('path');
|
|
9
10
|
const visitorPluginCommon = require('@graphql-codegen/visitor-plugin-common');
|
|
@@ -111,7 +112,7 @@ const plugin = (schema, documents, config) => {
|
|
|
111
112
|
...(config.externalFragments || []),
|
|
112
113
|
];
|
|
113
114
|
const visitor = new JitSdkVisitor(schema, allFragments, config);
|
|
114
|
-
const visitorResult =
|
|
115
|
+
const visitorResult = pluginHelpers.oldVisit(allAst, { leave: visitor });
|
|
115
116
|
return {
|
|
116
117
|
prepend: visitor.getImports(),
|
|
117
118
|
content: [
|
package/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { oldVisit } from '@graphql-codegen/plugin-helpers';
|
|
2
|
+
import { print, Kind, concatAST } from 'graphql';
|
|
2
3
|
import { extname } from 'path';
|
|
3
4
|
import { ClientSideBaseVisitor, DocumentMode, indentMultiline } from '@graphql-codegen/visitor-plugin-common';
|
|
4
5
|
import autoBind from 'auto-bind';
|
|
@@ -105,7 +106,7 @@ const plugin = (schema, documents, config) => {
|
|
|
105
106
|
...(config.externalFragments || []),
|
|
106
107
|
];
|
|
107
108
|
const visitor = new JitSdkVisitor(schema, allFragments, config);
|
|
108
|
-
const visitorResult =
|
|
109
|
+
const visitorResult = oldVisit(allAst, { leave: visitor });
|
|
109
110
|
return {
|
|
110
111
|
prepend: visitor.getImports(),
|
|
111
112
|
content: [
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript-jit-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1-alpha-3b5c0246d.0",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating a ready-to-use SDK that uses GraphQL JIT",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@graphql-tools/utils": "^8.2.4",
|
|
7
|
-
"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",
|
|
8
|
-
"graphql-jit": "^0.6.0",
|
|
7
|
+
"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",
|
|
8
|
+
"graphql-jit": "^0.6.0 || ^0.7.0",
|
|
9
9
|
"graphql-tag": "^2.0.0"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@graphql-codegen/plugin-helpers": "^2.
|
|
13
|
-
"@graphql-codegen/visitor-plugin-common": "2.
|
|
12
|
+
"@graphql-codegen/plugin-helpers": "^2.3.0",
|
|
13
|
+
"@graphql-codegen/visitor-plugin-common": "2.5.1-alpha-3b5c0246d.0",
|
|
14
14
|
"auto-bind": "~4.0.0",
|
|
15
15
|
"tslib": "~2.3.0"
|
|
16
16
|
},
|