@graphql-codegen/c-sharp 4.1.5-alpha-476627f73.0 → 4.2.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 -2
- package/index.mjs +3 -3
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
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');
|
|
7
|
+
const graphql = require('graphql');
|
|
8
8
|
const changeCaseAll = require('change-case-all');
|
|
9
9
|
|
|
10
10
|
const C_SHARP_SCALARS = {
|
|
@@ -642,7 +642,7 @@ ${this._parsedConfig.emitJsonAttributes && this.jsonAttributesConfiguration.requ
|
|
|
642
642
|
const plugin = async (schema, documents, config) => {
|
|
643
643
|
const visitor = new CSharpResolversVisitor(config, schema);
|
|
644
644
|
const astNode = pluginHelpers.getCachedDocumentNodeFromSchema(schema);
|
|
645
|
-
const visitorResult =
|
|
645
|
+
const visitorResult = pluginHelpers.oldVisit(astNode, { leave: visitor });
|
|
646
646
|
const imports = visitor.getImports();
|
|
647
647
|
const blockContent = visitorResult.definitions.filter(d => typeof d === 'string').join('\n');
|
|
648
648
|
const wrappedBlockContent = visitor.wrapWithClass(blockContent);
|
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getCachedDocumentNodeFromSchema } from '@graphql-codegen/plugin-helpers';
|
|
1
|
+
import { getCachedDocumentNodeFromSchema, oldVisit } from '@graphql-codegen/plugin-helpers';
|
|
3
2
|
import { indent, indentMultiline, BaseVisitor, buildScalarsFromConfig, getBaseTypeNode } from '@graphql-codegen/visitor-plugin-common';
|
|
3
|
+
import { Kind, isScalarType, isInputObjectType, isEnumType } from 'graphql';
|
|
4
4
|
import { pascalCase } from 'change-case-all';
|
|
5
5
|
|
|
6
6
|
const C_SHARP_SCALARS = {
|
|
@@ -638,7 +638,7 @@ ${this._parsedConfig.emitJsonAttributes && this.jsonAttributesConfiguration.requ
|
|
|
638
638
|
const plugin = async (schema, documents, config) => {
|
|
639
639
|
const visitor = new CSharpResolversVisitor(config, schema);
|
|
640
640
|
const astNode = getCachedDocumentNodeFromSchema(schema);
|
|
641
|
-
const visitorResult =
|
|
641
|
+
const visitorResult = oldVisit(astNode, { leave: visitor });
|
|
642
642
|
const imports = visitor.getImports();
|
|
643
643
|
const blockContent = visitorResult.definitions.filter(d => typeof d === 'string').join('\n');
|
|
644
644
|
const wrappedBlockContent = visitor.wrapWithClass(blockContent);
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/c-sharp",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating CSharp code based on a GraphQL schema",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
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
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.0",
|
|
12
12
|
"change-case-all": "1.0.14",
|
|
13
13
|
"tslib": "~2.3.0",
|
|
14
14
|
"unixify": "^1.0.0"
|