@graphql-codegen/near-operation-file-preset 3.1.0 → 4.0.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.
@@ -136,6 +136,7 @@ function buildFragmentResolver(collectorOptions, presetOptions, schemaObject, de
136
136
  identifiers,
137
137
  },
138
138
  emitLegacyCommonJSImports: presetOptions.config.emitLegacyCommonJSImports,
139
+ importExtension: presetOptions.config.importExtension,
139
140
  typesImport,
140
141
  })),
141
142
  };
@@ -31,6 +31,7 @@ function resolveDocumentImports(presetOptions, schemaObject, importResolverOptio
31
31
  const schemaTypesImportStatement = (0, visitor_plugin_common_1.generateImportStatement)({
32
32
  baseDir,
33
33
  emitLegacyCommonJSImports: presetOptions.config.emitLegacyCommonJSImports,
34
+ importExtension: presetOptions.config.importExtension,
34
35
  importSource: (0, visitor_plugin_common_1.resolveImportSource)(schemaTypesSource),
35
36
  baseOutputDir,
36
37
  outputPath: generatedFilePath,
@@ -133,6 +133,7 @@ export default function buildFragmentResolver(collectorOptions, presetOptions, s
133
133
  identifiers,
134
134
  },
135
135
  emitLegacyCommonJSImports: presetOptions.config.emitLegacyCommonJSImports,
136
+ importExtension: presetOptions.config.importExtension,
136
137
  typesImport,
137
138
  })),
138
139
  };
@@ -27,6 +27,7 @@ export function resolveDocumentImports(presetOptions, schemaObject, importResolv
27
27
  const schemaTypesImportStatement = generateImportStatement({
28
28
  baseDir,
29
29
  emitLegacyCommonJSImports: presetOptions.config.emitLegacyCommonJSImports,
30
+ importExtension: presetOptions.config.importExtension,
30
31
  importSource: resolveImportSource(schemaTypesSource),
31
32
  baseOutputDir,
32
33
  outputPath: generatedFilePath,
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@graphql-codegen/near-operation-file-preset",
3
- "version": "3.1.0",
3
+ "version": "4.0.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": "^3.2.1",
10
- "@graphql-codegen/plugin-helpers": "^3.0.0",
11
- "@graphql-codegen/visitor-plugin-common": "2.13.8",
9
+ "@graphql-codegen/add": "^6.0.0",
10
+ "@graphql-codegen/plugin-helpers": "^6.1.0",
11
+ "@graphql-codegen/visitor-plugin-common": "^6.2.1",
12
12
  "@graphql-tools/utils": "^10.0.0",
13
13
  "parse-filepath": "^1.0.2",
14
14
  "tslib": "^2.8.1"