@graphql-codegen/graphql-modules-preset 2.3.8 → 2.3.11

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/config.d.ts CHANGED
@@ -6,7 +6,7 @@ export declare type ModulesConfig = {
6
6
  * The key of the output is used a base path for this file.
7
7
  *
8
8
  * @example
9
- * ```yml
9
+ * ```yaml
10
10
  * generates:
11
11
  * src/:
12
12
  * preset: modules
@@ -32,7 +32,7 @@ export declare type ModulesConfig = {
32
32
  * @default process.cwd()
33
33
  *
34
34
  * @example
35
- * ```yml
35
+ * ```yaml
36
36
  * generates:
37
37
  * src/:
38
38
  * preset: modules
@@ -51,7 +51,7 @@ export declare type ModulesConfig = {
51
51
  * @default Types
52
52
  *
53
53
  * @example
54
- * ```yml
54
+ * ```yaml
55
55
  * generates:
56
56
  * src/:
57
57
  * preset: modules
package/index.js CHANGED
@@ -566,7 +566,7 @@ const preset = {
566
566
  },
567
567
  },
568
568
  config: {
569
- ...(options.config || {}),
569
+ ...options.config,
570
570
  enumsAsTypes: true,
571
571
  },
572
572
  schemaAst: options.schemaAst,
package/index.mjs CHANGED
@@ -560,7 +560,7 @@ const preset = {
560
560
  },
561
561
  },
562
562
  config: {
563
- ...(options.config || {}),
563
+ ...options.config,
564
564
  enumsAsTypes: true,
565
565
  },
566
566
  schemaAst: options.schemaAst,
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@graphql-codegen/graphql-modules-preset",
3
- "version": "2.3.8",
3
+ "version": "2.3.11",
4
4
  "description": "GraphQL Code Generator preset for modularized schema",
5
5
  "peerDependencies": {
6
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
9
  "@graphql-codegen/plugin-helpers": "^2.4.0",
10
- "@graphql-codegen/visitor-plugin-common": "2.7.4",
11
- "@graphql-tools/utils": "8.6.3",
10
+ "@graphql-codegen/visitor-plugin-common": "2.8.0",
11
+ "@graphql-tools/utils": "8.6.9",
12
12
  "change-case-all": "1.0.14",
13
13
  "parse-filepath": "^1.0.2",
14
- "tslib": "~2.3.0"
14
+ "tslib": "~2.4.0"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",