@graphql-codegen/graphql-modules-preset 2.5.12 → 2.5.13-alpha-20230130231142-decc5d741

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/cjs/builder.js CHANGED
@@ -86,7 +86,7 @@ function buildModule(name, doc, { importNamespace, importPath, encapsulate, requ
86
86
  (0, utils_js_1.indent)(2)(content) +
87
87
  '\n}';
88
88
  }
89
- return [...(!shouldDeclare ? imports : []), content].filter(Boolean).join('\n');
89
+ return [...(shouldDeclare ? [] : imports), content].filter(Boolean).join('\n');
90
90
  /**
91
91
  * A dictionary of fields to pick from an object
92
92
  */
package/esm/builder.js CHANGED
@@ -83,7 +83,7 @@ export function buildModule(name, doc, { importNamespace, importPath, encapsulat
83
83
  indent(2)(content) +
84
84
  '\n}';
85
85
  }
86
- return [...(!shouldDeclare ? imports : []), content].filter(Boolean).join('\n');
86
+ return [...(shouldDeclare ? [] : imports), content].filter(Boolean).join('\n');
87
87
  /**
88
88
  * A dictionary of fields to pick from an object
89
89
  */
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-codegen/graphql-modules-preset",
3
- "version": "2.5.12",
3
+ "version": "2.5.13-alpha-20230130231142-decc5d741",
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
- "@graphql-codegen/plugin-helpers": "^3.1.2",
10
- "@graphql-codegen/visitor-plugin-common": "2.13.8",
9
+ "@graphql-codegen/plugin-helpers": "3.1.3-alpha-20230130231142-decc5d741",
10
+ "@graphql-codegen/visitor-plugin-common": "2.13.9-alpha-20230130231142-decc5d741",
11
11
  "@graphql-tools/utils": "^9.0.0",
12
12
  "parse-filepath": "^1.0.2",
13
13
  "change-case-all": "1.0.15",