@graphql-tools/load 7.5.0 → 7.5.1-alpha-b9b6301d.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/documents.d.ts +1 -1
- package/index.js +8 -2
- package/index.mjs +8 -2
- package/load-typedefs.d.ts +1 -0
- package/package.json +3 -2
package/documents.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const OPERATION_KINDS: KindList;
|
|
|
9
9
|
/**
|
|
10
10
|
* Kinds of AST nodes that are included in type system definition documents
|
|
11
11
|
*/
|
|
12
|
-
export declare const NON_OPERATION_KINDS:
|
|
12
|
+
export declare const NON_OPERATION_KINDS: KindList;
|
|
13
13
|
/**
|
|
14
14
|
* Asynchronously loads executable documents (i.e. operations and fragments) from
|
|
15
15
|
* the provided pointers. The pointers may be individual files or a glob pattern.
|
package/index.js
CHANGED
|
@@ -47,8 +47,13 @@ function normalizePointers(unnormalizedPointerOrPointers) {
|
|
|
47
47
|
handlePointer(rawPointer);
|
|
48
48
|
}
|
|
49
49
|
else if (typeof rawPointer === 'object') {
|
|
50
|
-
|
|
51
|
-
handlePointer(
|
|
50
|
+
if ('require' in rawPointer && 'config' in rawPointer) {
|
|
51
|
+
handlePointer(rawPointer['require'], rawPointer['config']);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
for (const [path, options] of Object.entries(rawPointer)) {
|
|
55
|
+
handlePointer(path, options);
|
|
56
|
+
}
|
|
52
57
|
}
|
|
53
58
|
}
|
|
54
59
|
else {
|
|
@@ -500,6 +505,7 @@ const CONCURRENCY_LIMIT$1 = 100;
|
|
|
500
505
|
* Asynchronously loads any GraphQL documents (i.e. executable documents like
|
|
501
506
|
* operations and fragments as well as type system definitions) from the
|
|
502
507
|
* provided pointers.
|
|
508
|
+
* loadTypedefs does not merge the typeDefs when `#import` is used ( https://github.com/ardatan/graphql-tools/issues/2980#issuecomment-1003692728 )
|
|
503
509
|
* @param pointerOrPointers Pointers to the sources to load the documents from
|
|
504
510
|
* @param options Additional options
|
|
505
511
|
*/
|
package/index.mjs
CHANGED
|
@@ -22,8 +22,13 @@ function normalizePointers(unnormalizedPointerOrPointers) {
|
|
|
22
22
|
handlePointer(rawPointer);
|
|
23
23
|
}
|
|
24
24
|
else if (typeof rawPointer === 'object') {
|
|
25
|
-
|
|
26
|
-
handlePointer(
|
|
25
|
+
if ('require' in rawPointer && 'config' in rawPointer) {
|
|
26
|
+
handlePointer(rawPointer['require'], rawPointer['config']);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
for (const [path, options] of Object.entries(rawPointer)) {
|
|
30
|
+
handlePointer(path, options);
|
|
31
|
+
}
|
|
27
32
|
}
|
|
28
33
|
}
|
|
29
34
|
else {
|
|
@@ -475,6 +480,7 @@ const CONCURRENCY_LIMIT$1 = 100;
|
|
|
475
480
|
* Asynchronously loads any GraphQL documents (i.e. executable documents like
|
|
476
481
|
* operations and fragments as well as type system definitions) from the
|
|
477
482
|
* provided pointers.
|
|
483
|
+
* loadTypedefs does not merge the typeDefs when `#import` is used ( https://github.com/ardatan/graphql-tools/issues/2980#issuecomment-1003692728 )
|
|
478
484
|
* @param pointerOrPointers Pointers to the sources to load the documents from
|
|
479
485
|
* @param options Additional options
|
|
480
486
|
*/
|
package/load-typedefs.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare type UnnormalizedTypeDefPointer = {
|
|
|
16
16
|
* Asynchronously loads any GraphQL documents (i.e. executable documents like
|
|
17
17
|
* operations and fragments as well as type system definitions) from the
|
|
18
18
|
* provided pointers.
|
|
19
|
+
* loadTypedefs does not merge the typeDefs when `#import` is used ( https://github.com/ardatan/graphql-tools/issues/2980#issuecomment-1003692728 )
|
|
19
20
|
* @param pointerOrPointers Pointers to the sources to load the documents from
|
|
20
21
|
* @param options Additional options
|
|
21
22
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/load",
|
|
3
|
-
"version": "7.5.0",
|
|
3
|
+
"version": "7.5.1-alpha-b9b6301d.0",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"./*": {
|
|
34
34
|
"require": "./*.js",
|
|
35
35
|
"import": "./*.mjs"
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
|
+
"./package.json": "./package.json"
|
|
37
38
|
}
|
|
38
39
|
}
|