@graphql-mesh/fusion-composition 0.8.4-alpha-20250328202152-9b2dbbeb703b51b274a0e6fb00bd30e1b3d6019e → 0.8.4-alpha-20250329002221-9e798049c2844cc3aab0c5dcb9dcf821c93e4a44
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/cjs/compose.js +1 -0
- package/esm/compose.js +1 -0
- package/package.json +1 -1
- package/typings/compose.d.cts +4 -4
- package/typings/compose.d.ts +4 -4
package/cjs/compose.js
CHANGED
|
@@ -473,6 +473,7 @@ function composeAnnotatedSubgraphs(annotatedSubgraphs) {
|
|
|
473
473
|
const composedSupergraphSdl = (0, federation_composition_1.composeServices)(annotatedSubgraphs);
|
|
474
474
|
return {
|
|
475
475
|
...composedSupergraphSdl,
|
|
476
|
+
supergraphSdl: composedSupergraphSdl.supergraphSdl?.trim(),
|
|
476
477
|
annotatedSubgraphs,
|
|
477
478
|
};
|
|
478
479
|
}
|
package/esm/compose.js
CHANGED
|
@@ -466,6 +466,7 @@ export function composeAnnotatedSubgraphs(annotatedSubgraphs) {
|
|
|
466
466
|
const composedSupergraphSdl = composeServices(annotatedSubgraphs);
|
|
467
467
|
return {
|
|
468
468
|
...composedSupergraphSdl,
|
|
469
|
+
supergraphSdl: composedSupergraphSdl.supergraphSdl?.trim(),
|
|
469
470
|
annotatedSubgraphs,
|
|
470
471
|
};
|
|
471
472
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/fusion-composition",
|
|
3
|
-
"version": "0.8.4-alpha-
|
|
3
|
+
"version": "0.8.4-alpha-20250329002221-9e798049c2844cc3aab0c5dcb9dcf821c93e4a44",
|
|
4
4
|
"description": "Basic composition utility for Fusion spec",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
package/typings/compose.d.cts
CHANGED
|
@@ -26,23 +26,23 @@ export interface GetAnnotatedSubgraphsOptions {
|
|
|
26
26
|
export type ComposeSubgraphsOptions = GetAnnotatedSubgraphsOptions;
|
|
27
27
|
export declare function composeSubgraphs(subgraphs: SubgraphConfig[], options?: ComposeSubgraphsOptions): {
|
|
28
28
|
subgraphs: SubgraphConfig[];
|
|
29
|
+
supergraphSdl: string;
|
|
29
30
|
annotatedSubgraphs: ServiceDefinition[];
|
|
30
|
-
supergraphSdl?: undefined;
|
|
31
31
|
errors: import("graphql").GraphQLError[];
|
|
32
32
|
} | {
|
|
33
33
|
subgraphs: SubgraphConfig[];
|
|
34
|
-
annotatedSubgraphs: ServiceDefinition[];
|
|
35
34
|
supergraphSdl: string;
|
|
35
|
+
annotatedSubgraphs: ServiceDefinition[];
|
|
36
36
|
publicSdl: string;
|
|
37
37
|
errors?: undefined;
|
|
38
38
|
};
|
|
39
39
|
export declare function composeAnnotatedSubgraphs(annotatedSubgraphs: ServiceDefinition[]): {
|
|
40
|
+
supergraphSdl: string;
|
|
40
41
|
annotatedSubgraphs: ServiceDefinition[];
|
|
41
|
-
supergraphSdl?: undefined;
|
|
42
42
|
errors: import("graphql").GraphQLError[];
|
|
43
43
|
} | {
|
|
44
|
-
annotatedSubgraphs: ServiceDefinition[];
|
|
45
44
|
supergraphSdl: string;
|
|
45
|
+
annotatedSubgraphs: ServiceDefinition[];
|
|
46
46
|
publicSdl: string;
|
|
47
47
|
errors?: undefined;
|
|
48
48
|
};
|
package/typings/compose.d.ts
CHANGED
|
@@ -26,23 +26,23 @@ export interface GetAnnotatedSubgraphsOptions {
|
|
|
26
26
|
export type ComposeSubgraphsOptions = GetAnnotatedSubgraphsOptions;
|
|
27
27
|
export declare function composeSubgraphs(subgraphs: SubgraphConfig[], options?: ComposeSubgraphsOptions): {
|
|
28
28
|
subgraphs: SubgraphConfig[];
|
|
29
|
+
supergraphSdl: string;
|
|
29
30
|
annotatedSubgraphs: ServiceDefinition[];
|
|
30
|
-
supergraphSdl?: undefined;
|
|
31
31
|
errors: import("graphql").GraphQLError[];
|
|
32
32
|
} | {
|
|
33
33
|
subgraphs: SubgraphConfig[];
|
|
34
|
-
annotatedSubgraphs: ServiceDefinition[];
|
|
35
34
|
supergraphSdl: string;
|
|
35
|
+
annotatedSubgraphs: ServiceDefinition[];
|
|
36
36
|
publicSdl: string;
|
|
37
37
|
errors?: undefined;
|
|
38
38
|
};
|
|
39
39
|
export declare function composeAnnotatedSubgraphs(annotatedSubgraphs: ServiceDefinition[]): {
|
|
40
|
+
supergraphSdl: string;
|
|
40
41
|
annotatedSubgraphs: ServiceDefinition[];
|
|
41
|
-
supergraphSdl?: undefined;
|
|
42
42
|
errors: import("graphql").GraphQLError[];
|
|
43
43
|
} | {
|
|
44
|
-
annotatedSubgraphs: ServiceDefinition[];
|
|
45
44
|
supergraphSdl: string;
|
|
45
|
+
annotatedSubgraphs: ServiceDefinition[];
|
|
46
46
|
publicSdl: string;
|
|
47
47
|
errors?: undefined;
|
|
48
48
|
};
|