@graphql-tools/import 6.6.1 → 6.6.5-alpha-40340ed2.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.
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
@@ -11,7 +11,6 @@ const resolveFrom = _interopDefault(require('resolve-from'));
11
11
  const process = require('process');
12
12
  const utils = require('@graphql-tools/utils');
13
13
 
14
- /* eslint-disable no-unused-expressions */
15
14
  const builtinTypes = ['String', 'Float', 'Int', 'Boolean', 'ID', 'Upload'];
16
15
  const builtinDirectives = [
17
16
  'deprecated',
@@ -31,6 +30,7 @@ const IMPORT_DEFAULT_REGEX = /^import\s+('|")(.*)('|");?$/;
31
30
  /**
32
31
  * Loads the GraphQL document and recursively resolves all the imports
33
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 )
34
34
  */
35
35
  function processImport(filePath, cwd = process.cwd(), predefinedImports = {}, visitedFiles = new Map()) {
36
36
  const set = visitFile(filePath, path.join(cwd + '/root.graphql'), visitedFiles, predefinedImports);
package/index.mjs CHANGED
@@ -5,7 +5,6 @@ import resolveFrom from 'resolve-from';
5
5
  import { cwd } from 'process';
6
6
  import { parseGraphQLSDL } from '@graphql-tools/utils';
7
7
 
8
- /* eslint-disable no-unused-expressions */
9
8
  const builtinTypes = ['String', 'Float', 'Int', 'Boolean', 'ID', 'Upload'];
10
9
  const builtinDirectives = [
11
10
  'deprecated',
@@ -25,6 +24,7 @@ const IMPORT_DEFAULT_REGEX = /^import\s+('|")(.*)('|");?$/;
25
24
  /**
26
25
  * Loads the GraphQL document and recursively resolves all the imports
27
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 )
28
28
  */
29
29
  function processImport(filePath, cwd$1 = cwd(), predefinedImports = {}, visitedFiles = new Map()) {
30
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.1",
3
+ "version": "6.6.5-alpha-40340ed2.0",
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.3",
10
+ "@graphql-tools/utils": "8.6.1-alpha-40340ed2.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
  }