@graphql-codegen/c-sharp 4.2.6 → 4.2.9

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 +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -311,7 +311,7 @@ class JsonAttributesSourceConfiguration {
311
311
  }
312
312
  const newtonsoftConfiguration = new JsonAttributesSourceConfiguration('Newtonsoft.Json', 'JsonProperty', 'JsonRequired');
313
313
  // System.Text.Json does not have support of `JsonRequired` alternative (as for .NET 5)
314
- const systemTextJsonConfiguration = new JsonAttributesSourceConfiguration('System.Text.Json', 'JsonPropertyName', null);
314
+ const systemTextJsonConfiguration = new JsonAttributesSourceConfiguration('System.Text.Json.Serialization', 'JsonPropertyName', null);
315
315
  function getJsonAttributeSourceConfiguration(attributesSource) {
316
316
  switch (attributesSource) {
317
317
  case 'Newtonsoft.Json':
package/index.mjs CHANGED
@@ -307,7 +307,7 @@ class JsonAttributesSourceConfiguration {
307
307
  }
308
308
  const newtonsoftConfiguration = new JsonAttributesSourceConfiguration('Newtonsoft.Json', 'JsonProperty', 'JsonRequired');
309
309
  // System.Text.Json does not have support of `JsonRequired` alternative (as for .NET 5)
310
- const systemTextJsonConfiguration = new JsonAttributesSourceConfiguration('System.Text.Json', 'JsonPropertyName', null);
310
+ const systemTextJsonConfiguration = new JsonAttributesSourceConfiguration('System.Text.Json.Serialization', 'JsonPropertyName', null);
311
311
  function getJsonAttributeSourceConfiguration(attributesSource) {
312
312
  switch (attributesSource) {
313
313
  case 'Newtonsoft.Json':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/c-sharp",
3
- "version": "4.2.6",
3
+ "version": "4.2.9",
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.7.2",
11
+ "@graphql-codegen/visitor-plugin-common": "2.7.4",
12
12
  "change-case-all": "1.0.14",
13
13
  "tslib": "~2.3.0",
14
14
  "unixify": "^1.0.0"