@graphql-tools/stitching-directives 3.1.26 → 3.1.27-alpha-acbc7e05ec13926f070ae8881defb902bb0dcffa
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +11 -0
- package/dist/index.cjs +14 -14
- package/dist/index.js +14 -14
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# @graphql-tools/stitching-directives
|
2
2
|
|
3
|
+
## 3.1.27-alpha-acbc7e05ec13926f070ae8881defb902bb0dcffa
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#620](https://github.com/graphql-hive/gateway/pull/620) [`acbc7e0`](https://github.com/graphql-hive/gateway/commit/acbc7e05ec13926f070ae8881defb902bb0dcffa) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
|
8
|
+
|
9
|
+
- Updated dependency [`@graphql-tools/utils@^10.8.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.8.1) (from `^10.7.0`, in `dependencies`)
|
10
|
+
|
11
|
+
- Updated dependencies [[`acbc7e0`](https://github.com/graphql-hive/gateway/commit/acbc7e05ec13926f070ae8881defb902bb0dcffa)]:
|
12
|
+
- @graphql-tools/delegate@10.2.12-alpha-acbc7e05ec13926f070ae8881defb902bb0dcffa
|
13
|
+
|
3
14
|
## 3.1.26
|
4
15
|
|
5
16
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
@@ -83,7 +83,7 @@ function pathsFromSelection(selection, path) {
|
|
83
83
|
} else if (selection.kind === graphql.Kind.INLINE_FRAGMENT) {
|
84
84
|
return pathsFromSelectionSet(selection.selectionSet, path);
|
85
85
|
}
|
86
|
-
return
|
86
|
+
return void 0;
|
87
87
|
}
|
88
88
|
|
89
89
|
function getSourcePaths(mappingInstructions, selectionSet) {
|
@@ -335,7 +335,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
335
335
|
if (canonicalDirective != null) {
|
336
336
|
setCanonicalDefinition(type.name);
|
337
337
|
}
|
338
|
-
return
|
338
|
+
return void 0;
|
339
339
|
},
|
340
340
|
[utils.MapperKind.OBJECT_FIELD]: (fieldConfig, fieldName, typeName) => {
|
341
341
|
const computedDirective = utils.getDirective(
|
@@ -396,7 +396,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
396
396
|
if (canonicalDirective != null) {
|
397
397
|
setCanonicalDefinition(typeName, fieldName);
|
398
398
|
}
|
399
|
-
return
|
399
|
+
return void 0;
|
400
400
|
},
|
401
401
|
[utils.MapperKind.INTERFACE_TYPE]: (type) => {
|
402
402
|
const canonicalDirective = utils.getDirective(
|
@@ -408,7 +408,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
408
408
|
if (canonicalDirective) {
|
409
409
|
setCanonicalDefinition(type.name);
|
410
410
|
}
|
411
|
-
return
|
411
|
+
return void 0;
|
412
412
|
},
|
413
413
|
[utils.MapperKind.INTERFACE_FIELD]: (fieldConfig, fieldName, typeName) => {
|
414
414
|
const canonicalDirective = utils.getDirective(
|
@@ -420,7 +420,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
420
420
|
if (canonicalDirective) {
|
421
421
|
setCanonicalDefinition(typeName, fieldName);
|
422
422
|
}
|
423
|
-
return
|
423
|
+
return void 0;
|
424
424
|
},
|
425
425
|
[utils.MapperKind.INPUT_OBJECT_TYPE]: (type) => {
|
426
426
|
const canonicalDirective = utils.getDirective(
|
@@ -432,7 +432,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
432
432
|
if (canonicalDirective) {
|
433
433
|
setCanonicalDefinition(type.name);
|
434
434
|
}
|
435
|
-
return
|
435
|
+
return void 0;
|
436
436
|
},
|
437
437
|
[utils.MapperKind.INPUT_OBJECT_FIELD]: (inputFieldConfig, fieldName, typeName) => {
|
438
438
|
const canonicalDirective = utils.getDirective(
|
@@ -444,7 +444,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
444
444
|
if (canonicalDirective != null) {
|
445
445
|
setCanonicalDefinition(typeName, fieldName);
|
446
446
|
}
|
447
|
-
return
|
447
|
+
return void 0;
|
448
448
|
},
|
449
449
|
[utils.MapperKind.UNION_TYPE]: (type) => {
|
450
450
|
const canonicalDirective = utils.getDirective(
|
@@ -456,7 +456,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
456
456
|
if (canonicalDirective != null) {
|
457
457
|
setCanonicalDefinition(type.name);
|
458
458
|
}
|
459
|
-
return
|
459
|
+
return void 0;
|
460
460
|
},
|
461
461
|
[utils.MapperKind.ENUM_TYPE]: (type) => {
|
462
462
|
const canonicalDirective = utils.getDirective(
|
@@ -468,7 +468,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
468
468
|
if (canonicalDirective != null) {
|
469
469
|
setCanonicalDefinition(type.name);
|
470
470
|
}
|
471
|
-
return
|
471
|
+
return void 0;
|
472
472
|
},
|
473
473
|
[utils.MapperKind.SCALAR_TYPE]: (type) => {
|
474
474
|
const canonicalDirective = utils.getDirective(
|
@@ -480,7 +480,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
480
480
|
if (canonicalDirective != null) {
|
481
481
|
setCanonicalDefinition(type.name);
|
482
482
|
}
|
483
|
-
return
|
483
|
+
return void 0;
|
484
484
|
}
|
485
485
|
});
|
486
486
|
if (subschemaConfig.merge) {
|
@@ -584,7 +584,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
584
584
|
}
|
585
585
|
const parsedMergeArgsExpr = parseMergeArgsExpr(
|
586
586
|
mergeArgsExpr,
|
587
|
-
allSelectionSetsByType[typeName] == null ?
|
587
|
+
allSelectionSetsByType[typeName] == null ? void 0 : mergeSelectionSets(...mergedSelectionSets)
|
588
588
|
);
|
589
589
|
const additionalArgs = mergeDirective["additionalArgs"];
|
590
590
|
if (additionalArgs != null) {
|
@@ -612,7 +612,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
612
612
|
}
|
613
613
|
);
|
614
614
|
}
|
615
|
-
return
|
615
|
+
return void 0;
|
616
616
|
}
|
617
617
|
});
|
618
618
|
for (const typeName in selectionSetsByType) {
|
@@ -881,7 +881,7 @@ function stitchingDirectivesValidator(options = {}) {
|
|
881
881
|
if (keyDirective != null) {
|
882
882
|
utils.parseSelectionSet(keyDirective["selectionSet"]);
|
883
883
|
}
|
884
|
-
return
|
884
|
+
return void 0;
|
885
885
|
},
|
886
886
|
[utils.MapperKind.OBJECT_FIELD]: (fieldConfig, _fieldName, typeName) => {
|
887
887
|
const computedDirective = utils.getDirective(
|
@@ -998,7 +998,7 @@ function stitchingDirectivesValidator(options = {}) {
|
|
998
998
|
}
|
999
999
|
}
|
1000
1000
|
}
|
1001
|
-
return
|
1001
|
+
return void 0;
|
1002
1002
|
}
|
1003
1003
|
});
|
1004
1004
|
return schema;
|
package/dist/index.js
CHANGED
@@ -81,7 +81,7 @@ function pathsFromSelection(selection, path) {
|
|
81
81
|
} else if (selection.kind === Kind.INLINE_FRAGMENT) {
|
82
82
|
return pathsFromSelectionSet(selection.selectionSet, path);
|
83
83
|
}
|
84
|
-
return
|
84
|
+
return void 0;
|
85
85
|
}
|
86
86
|
|
87
87
|
function getSourcePaths(mappingInstructions, selectionSet) {
|
@@ -333,7 +333,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
333
333
|
if (canonicalDirective != null) {
|
334
334
|
setCanonicalDefinition(type.name);
|
335
335
|
}
|
336
|
-
return
|
336
|
+
return void 0;
|
337
337
|
},
|
338
338
|
[MapperKind.OBJECT_FIELD]: (fieldConfig, fieldName, typeName) => {
|
339
339
|
const computedDirective = getDirective(
|
@@ -394,7 +394,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
394
394
|
if (canonicalDirective != null) {
|
395
395
|
setCanonicalDefinition(typeName, fieldName);
|
396
396
|
}
|
397
|
-
return
|
397
|
+
return void 0;
|
398
398
|
},
|
399
399
|
[MapperKind.INTERFACE_TYPE]: (type) => {
|
400
400
|
const canonicalDirective = getDirective(
|
@@ -406,7 +406,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
406
406
|
if (canonicalDirective) {
|
407
407
|
setCanonicalDefinition(type.name);
|
408
408
|
}
|
409
|
-
return
|
409
|
+
return void 0;
|
410
410
|
},
|
411
411
|
[MapperKind.INTERFACE_FIELD]: (fieldConfig, fieldName, typeName) => {
|
412
412
|
const canonicalDirective = getDirective(
|
@@ -418,7 +418,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
418
418
|
if (canonicalDirective) {
|
419
419
|
setCanonicalDefinition(typeName, fieldName);
|
420
420
|
}
|
421
|
-
return
|
421
|
+
return void 0;
|
422
422
|
},
|
423
423
|
[MapperKind.INPUT_OBJECT_TYPE]: (type) => {
|
424
424
|
const canonicalDirective = getDirective(
|
@@ -430,7 +430,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
430
430
|
if (canonicalDirective) {
|
431
431
|
setCanonicalDefinition(type.name);
|
432
432
|
}
|
433
|
-
return
|
433
|
+
return void 0;
|
434
434
|
},
|
435
435
|
[MapperKind.INPUT_OBJECT_FIELD]: (inputFieldConfig, fieldName, typeName) => {
|
436
436
|
const canonicalDirective = getDirective(
|
@@ -442,7 +442,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
442
442
|
if (canonicalDirective != null) {
|
443
443
|
setCanonicalDefinition(typeName, fieldName);
|
444
444
|
}
|
445
|
-
return
|
445
|
+
return void 0;
|
446
446
|
},
|
447
447
|
[MapperKind.UNION_TYPE]: (type) => {
|
448
448
|
const canonicalDirective = getDirective(
|
@@ -454,7 +454,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
454
454
|
if (canonicalDirective != null) {
|
455
455
|
setCanonicalDefinition(type.name);
|
456
456
|
}
|
457
|
-
return
|
457
|
+
return void 0;
|
458
458
|
},
|
459
459
|
[MapperKind.ENUM_TYPE]: (type) => {
|
460
460
|
const canonicalDirective = getDirective(
|
@@ -466,7 +466,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
466
466
|
if (canonicalDirective != null) {
|
467
467
|
setCanonicalDefinition(type.name);
|
468
468
|
}
|
469
|
-
return
|
469
|
+
return void 0;
|
470
470
|
},
|
471
471
|
[MapperKind.SCALAR_TYPE]: (type) => {
|
472
472
|
const canonicalDirective = getDirective(
|
@@ -478,7 +478,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
478
478
|
if (canonicalDirective != null) {
|
479
479
|
setCanonicalDefinition(type.name);
|
480
480
|
}
|
481
|
-
return
|
481
|
+
return void 0;
|
482
482
|
}
|
483
483
|
});
|
484
484
|
if (subschemaConfig.merge) {
|
@@ -582,7 +582,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
582
582
|
}
|
583
583
|
const parsedMergeArgsExpr = parseMergeArgsExpr(
|
584
584
|
mergeArgsExpr,
|
585
|
-
allSelectionSetsByType[typeName] == null ?
|
585
|
+
allSelectionSetsByType[typeName] == null ? void 0 : mergeSelectionSets(...mergedSelectionSets)
|
586
586
|
);
|
587
587
|
const additionalArgs = mergeDirective["additionalArgs"];
|
588
588
|
if (additionalArgs != null) {
|
@@ -610,7 +610,7 @@ function stitchingDirectivesTransformer(options = {}) {
|
|
610
610
|
}
|
611
611
|
);
|
612
612
|
}
|
613
|
-
return
|
613
|
+
return void 0;
|
614
614
|
}
|
615
615
|
});
|
616
616
|
for (const typeName in selectionSetsByType) {
|
@@ -879,7 +879,7 @@ function stitchingDirectivesValidator(options = {}) {
|
|
879
879
|
if (keyDirective != null) {
|
880
880
|
parseSelectionSet(keyDirective["selectionSet"]);
|
881
881
|
}
|
882
|
-
return
|
882
|
+
return void 0;
|
883
883
|
},
|
884
884
|
[MapperKind.OBJECT_FIELD]: (fieldConfig, _fieldName, typeName) => {
|
885
885
|
const computedDirective = getDirective(
|
@@ -996,7 +996,7 @@ function stitchingDirectivesValidator(options = {}) {
|
|
996
996
|
}
|
997
997
|
}
|
998
998
|
}
|
999
|
-
return
|
999
|
+
return void 0;
|
1000
1000
|
}
|
1001
1001
|
});
|
1002
1002
|
return schema;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@graphql-tools/stitching-directives",
|
3
|
-
"version": "3.1.
|
3
|
+
"version": "3.1.27-alpha-acbc7e05ec13926f070ae8881defb902bb0dcffa",
|
4
4
|
"type": "module",
|
5
5
|
"description": "A set of utils for faster development of GraphQL tools",
|
6
6
|
"repository": {
|
@@ -38,14 +38,14 @@
|
|
38
38
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@graphql-tools/delegate": "
|
42
|
-
"@graphql-tools/utils": "^10.
|
41
|
+
"@graphql-tools/delegate": "10.2.12-alpha-acbc7e05ec13926f070ae8881defb902bb0dcffa",
|
42
|
+
"@graphql-tools/utils": "^10.8.1",
|
43
43
|
"tslib": "^2.8.1"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
46
46
|
"@graphql-tools/schema": "^10.0.11",
|
47
47
|
"graphql": "^16.9.0",
|
48
|
-
"pkgroll": "2.
|
48
|
+
"pkgroll": "2.8.2"
|
49
49
|
},
|
50
50
|
"sideEffects": false
|
51
51
|
}
|