@graphql-codegen/java-resolvers 2.1.5 → 2.2.1-alpha-66fd7ef2f.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 +1 -2
- package/index.mjs +2 -3
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const graphql = require('graphql');
|
|
6
5
|
const pluginHelpers = require('@graphql-codegen/plugin-helpers');
|
|
7
6
|
const visitorPluginCommon = require('@graphql-codegen/visitor-plugin-common');
|
|
8
7
|
const javaCommon = require('@graphql-codegen/java-common');
|
|
@@ -101,7 +100,7 @@ const plugin = async (schema, documents, config, { outputFile }) => {
|
|
|
101
100
|
const defaultPackageName = javaCommon.buildPackageNameFromPath(relevantPath);
|
|
102
101
|
const visitor = new JavaResolversVisitor(config, schema, defaultPackageName);
|
|
103
102
|
const astNode = pluginHelpers.getCachedDocumentNodeFromSchema(schema);
|
|
104
|
-
const visitorResult =
|
|
103
|
+
const visitorResult = pluginHelpers.oldVisit(astNode, { leave: visitor });
|
|
105
104
|
const mappersImports = visitor.getImports();
|
|
106
105
|
const packageName = visitor.getPackageName();
|
|
107
106
|
const blockContent = visitorResult.definitions.filter(d => typeof d === 'string').join('\n');
|
package/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getCachedDocumentNodeFromSchema } from '@graphql-codegen/plugin-helpers';
|
|
1
|
+
import { getCachedDocumentNodeFromSchema, oldVisit } from '@graphql-codegen/plugin-helpers';
|
|
3
2
|
import { BaseVisitor, transformMappers, parseMapper, buildScalarsFromConfig, indentMultiline, indent, getBaseTypeNode } from '@graphql-codegen/visitor-plugin-common';
|
|
4
3
|
import { JAVA_SCALARS, JavaDeclarationBlock, wrapTypeWithModifiers, buildPackageNameFromPath } from '@graphql-codegen/java-common';
|
|
5
4
|
import { dirname, normalize } from 'path';
|
|
@@ -97,7 +96,7 @@ const plugin = async (schema, documents, config, { outputFile }) => {
|
|
|
97
96
|
const defaultPackageName = buildPackageNameFromPath(relevantPath);
|
|
98
97
|
const visitor = new JavaResolversVisitor(config, schema, defaultPackageName);
|
|
99
98
|
const astNode = getCachedDocumentNodeFromSchema(schema);
|
|
100
|
-
const visitorResult =
|
|
99
|
+
const visitorResult = oldVisit(astNode, { leave: visitor });
|
|
101
100
|
const mappersImports = visitor.getImports();
|
|
102
101
|
const packageName = visitor.getPackageName();
|
|
103
102
|
const blockContent = visitorResult.definitions.filter(d => typeof d === 'string').join('\n');
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/java-resolvers",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.2.1-alpha-66fd7ef2f.0",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating resolvers signature for Java backends",
|
|
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
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-codegen/java-common": "
|
|
10
|
-
"@graphql-codegen/plugin-helpers": "^2.
|
|
11
|
-
"@graphql-codegen/visitor-plugin-common": "2.
|
|
9
|
+
"@graphql-codegen/java-common": "2.1.8-alpha-66fd7ef2f.0",
|
|
10
|
+
"@graphql-codegen/plugin-helpers": "^2.3.0",
|
|
11
|
+
"@graphql-codegen/visitor-plugin-common": "2.5.1-alpha-66fd7ef2f.0",
|
|
12
12
|
"tslib": "~2.3.0"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|