@graphql-codegen/graphql-modules-preset 2.3.9 → 2.3.12-alpha-b9cc98b7a.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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +3 -3
package/index.js CHANGED
@@ -345,7 +345,7 @@ function buildModule(name, doc, { importNamespace, importPath, encapsulate, shou
345
345
  if (k === 'enums') {
346
346
  return;
347
347
  }
348
- else if (k === 'scalars') {
348
+ if (k === 'scalars') {
349
349
  lines.push(`${typeName}?: ${encapsulateTypeName(importNamespace)}.Resolvers['${typeName}'];`);
350
350
  }
351
351
  else {
package/index.mjs CHANGED
@@ -339,7 +339,7 @@ function buildModule(name, doc, { importNamespace, importPath, encapsulate, shou
339
339
  if (k === 'enums') {
340
340
  return;
341
341
  }
342
- else if (k === 'scalars') {
342
+ if (k === 'scalars') {
343
343
  lines.push(`${typeName}?: ${encapsulateTypeName(importNamespace)}.Resolvers['${typeName}'];`);
344
344
  }
345
345
  else {
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@graphql-codegen/graphql-modules-preset",
3
- "version": "2.3.9",
3
+ "version": "2.3.12-alpha-b9cc98b7a.0",
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.5",
11
- "@graphql-tools/utils": "8.6.9",
10
+ "@graphql-codegen/visitor-plugin-common": "2.9.0-alpha-b9cc98b7a.0",
11
+ "@graphql-tools/utils": "8.6.12",
12
12
  "change-case-all": "1.0.14",
13
13
  "parse-filepath": "^1.0.2",
14
14
  "tslib": "~2.4.0"