@graphql-tools/import 6.6.3 → 6.6.4

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/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export declare type VisitedFilesMap = Map<string, Map<string, Set<DefinitionNode
3
3
  /**
4
4
  * Loads the GraphQL document and recursively resolves all the imports
5
5
  * and copies them into the final document.
6
+ * processImport does not merge the typeDefs as designed ( https://github.com/ardatan/graphql-tools/issues/2980#issuecomment-1003692728 )
6
7
  */
7
8
  export declare function processImport(filePath: string, cwd?: string, predefinedImports?: Record<string, string>, visitedFiles?: VisitedFilesMap): DocumentNode;
8
9
  export declare function extractDependencies(filePath: string, fileContents: string): {
package/index.js CHANGED
@@ -30,6 +30,7 @@ const IMPORT_DEFAULT_REGEX = /^import\s+('|")(.*)('|");?$/;
30
30
  /**
31
31
  * Loads the GraphQL document and recursively resolves all the imports
32
32
  * and copies them into the final document.
33
+ * processImport does not merge the typeDefs as designed ( https://github.com/ardatan/graphql-tools/issues/2980#issuecomment-1003692728 )
33
34
  */
34
35
  function processImport(filePath, cwd = process.cwd(), predefinedImports = {}, visitedFiles = new Map()) {
35
36
  const set = visitFile(filePath, path.join(cwd + '/root.graphql'), visitedFiles, predefinedImports);
package/index.mjs CHANGED
@@ -24,6 +24,7 @@ const IMPORT_DEFAULT_REGEX = /^import\s+('|")(.*)('|");?$/;
24
24
  /**
25
25
  * Loads the GraphQL document and recursively resolves all the imports
26
26
  * and copies them into the final document.
27
+ * processImport does not merge the typeDefs as designed ( https://github.com/ardatan/graphql-tools/issues/2980#issuecomment-1003692728 )
27
28
  */
28
29
  function processImport(filePath, cwd$1 = cwd(), predefinedImports = {}, visitedFiles = new Map()) {
29
30
  const set = visitFile(filePath, join(cwd$1 + '/root.graphql'), visitedFiles, predefinedImports);
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-tools/import",
3
- "version": "6.6.3",
3
+ "version": "6.6.4",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
7
7
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@graphql-tools/utils": "8.5.5",
10
+ "@graphql-tools/utils": "8.6.0",
11
11
  "resolve-from": "5.0.0",
12
12
  "tslib": "~2.3.0"
13
13
  },
@@ -32,6 +32,7 @@
32
32
  "./*": {
33
33
  "require": "./*.js",
34
34
  "import": "./*.mjs"
35
- }
35
+ },
36
+ "./package.json": "./package.json"
36
37
  }
37
38
  }