@graphql-tools/stitching-directives 3.1.24 → 3.1.25-alpha-e8878e64f4cd1ea558f9ae1848b2e315883294cd
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/CHANGELOG.md +7 -0
- package/dist/index.cjs +14 -14
- package/dist/index.js +14 -14
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# @graphql-tools/stitching-directives
|
2
2
|
|
3
|
+
## 3.1.25-alpha-e8878e64f4cd1ea558f9ae1848b2e315883294cd
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`e8878e6`](https://github.com/graphql-hive/gateway/commit/e8878e64f4cd1ea558f9ae1848b2e315883294cd)]:
|
8
|
+
- @graphql-tools/delegate@10.2.10-alpha-e8878e64f4cd1ea558f9ae1848b2e315883294cd
|
9
|
+
|
3
10
|
## 3.1.24
|
4
11
|
|
5
12
|
### 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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 ? undefined : 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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 undefined;
|
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 ? undefined : 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 undefined;
|
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 undefined;
|
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 undefined;
|
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.25-alpha-e8878e64f4cd1ea558f9ae1848b2e315883294cd",
|
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": "
|
41
|
+
"@graphql-tools/delegate": "10.2.10-alpha-e8878e64f4cd1ea558f9ae1848b2e315883294cd",
|
42
42
|
"@graphql-tools/utils": "^10.7.0",
|
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.6.
|
48
|
+
"pkgroll": "2.6.1"
|
49
49
|
},
|
50
50
|
"sideEffects": false
|
51
51
|
}
|