@graphql-codegen/c-sharp 4.2.13 → 4.2.15

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.
Files changed (3) hide show
  1. package/index.js +4 -6
  2. package/index.mjs +4 -6
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -390,12 +390,10 @@ class CSharpResolversVisitor extends visitorPluginCommon.BaseVisitor {
390
390
  const deprecationReason = this.getDeprecationReason(deprecationDirective);
391
391
  attributes.push(`[Obsolete("${deprecationReason}")]`);
392
392
  }
393
- if (this._parsedConfig.emitJsonAttributes) {
394
- if (node.kind === graphql.Kind.FIELD_DEFINITION) {
395
- const jsonPropertyAttribute = this.jsonAttributesConfiguration.propertyAttribute;
396
- if (jsonPropertyAttribute != null) {
397
- attributes.push(`[${jsonPropertyAttribute}("${node.name.value}")]`);
398
- }
393
+ if (this._parsedConfig.emitJsonAttributes && node.kind === graphql.Kind.FIELD_DEFINITION) {
394
+ const jsonPropertyAttribute = this.jsonAttributesConfiguration.propertyAttribute;
395
+ if (jsonPropertyAttribute != null) {
396
+ attributes.push(`[${jsonPropertyAttribute}("${node.name.value}")]`);
399
397
  }
400
398
  }
401
399
  if (node.kind === graphql.Kind.INPUT_VALUE_DEFINITION && fieldType.isOuterTypeRequired) {
package/index.mjs CHANGED
@@ -386,12 +386,10 @@ class CSharpResolversVisitor extends BaseVisitor {
386
386
  const deprecationReason = this.getDeprecationReason(deprecationDirective);
387
387
  attributes.push(`[Obsolete("${deprecationReason}")]`);
388
388
  }
389
- if (this._parsedConfig.emitJsonAttributes) {
390
- if (node.kind === Kind.FIELD_DEFINITION) {
391
- const jsonPropertyAttribute = this.jsonAttributesConfiguration.propertyAttribute;
392
- if (jsonPropertyAttribute != null) {
393
- attributes.push(`[${jsonPropertyAttribute}("${node.name.value}")]`);
394
- }
389
+ if (this._parsedConfig.emitJsonAttributes && node.kind === Kind.FIELD_DEFINITION) {
390
+ const jsonPropertyAttribute = this.jsonAttributesConfiguration.propertyAttribute;
391
+ if (jsonPropertyAttribute != null) {
392
+ attributes.push(`[${jsonPropertyAttribute}("${node.name.value}")]`);
395
393
  }
396
394
  }
397
395
  if (node.kind === Kind.INPUT_VALUE_DEFINITION && fieldType.isOuterTypeRequired) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/c-sharp",
3
- "version": "4.2.13",
3
+ "version": "4.2.15",
4
4
  "description": "GraphQL Code Generator plugin for generating CSharp code based on a GraphQL schema",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@graphql-codegen/plugin-helpers": "^2.4.0",
11
- "@graphql-codegen/visitor-plugin-common": "2.9.0",
11
+ "@graphql-codegen/visitor-plugin-common": "2.10.0",
12
12
  "change-case-all": "1.0.14",
13
13
  "tslib": "~2.4.0",
14
14
  "unixify": "^1.0.0"