@graphql-codegen/near-operation-file-preset 5.1.0 → 5.2.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.
@@ -17,7 +17,9 @@ dedupeFragments = false) {
17
17
  const resolveFragments = (0, fragment_resolver_js_1.default)(importResolverOptions, presetOptions, schemaObject, dedupeFragments);
18
18
  const { baseOutputDir, documents } = presetOptions;
19
19
  const { generateFilePath, schemaTypesSource, baseDir, typesImport } = importResolverOptions;
20
- return documents.map(documentFile => {
20
+ return documents
21
+ .filter(documentFile => documentFile.type !== 'external')
22
+ .map(documentFile => {
21
23
  try {
22
24
  const meta = {
23
25
  operations: [],
@@ -13,7 +13,9 @@ dedupeFragments = false) {
13
13
  const resolveFragments = buildFragmentResolver(importResolverOptions, presetOptions, schemaObject, dedupeFragments);
14
14
  const { baseOutputDir, documents } = presetOptions;
15
15
  const { generateFilePath, schemaTypesSource, baseDir, typesImport } = importResolverOptions;
16
- return documents.map(documentFile => {
16
+ return documents
17
+ .filter(documentFile => documentFile.type !== 'external')
18
+ .map(documentFile => {
17
19
  try {
18
20
  const meta = {
19
21
  operations: [],
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@graphql-codegen/near-operation-file-preset",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "GraphQL Code Generator preset for generating operation code near the operation file",
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/add": "^6.0.0",
10
- "@graphql-codegen/plugin-helpers": "^6.3.0",
11
- "@graphql-codegen/visitor-plugin-common": "^6.3.0",
9
+ "@graphql-codegen/add": "^7.0.0",
10
+ "@graphql-codegen/plugin-helpers": "^7.0.0",
11
+ "@graphql-codegen/visitor-plugin-common": "^7.0.0",
12
12
  "@graphql-tools/utils": "^11.0.0",
13
13
  "parse-filepath": "^1.0.2",
14
14
  "tslib": "^2.8.1"