@graphql-hive/apollo 0.43.0-alpha-20251126135136-138723ce57a927f98364ecea7e70598dfc73f5df → 0.43.0-alpha-20251126142740-d265dc6d6d73bf62ec597dbe41409f466b9d9874
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/index.js +3 -4
- package/cjs/version.js +1 -1
- package/esm/index.js +3 -4
- package/esm/version.js +1 -1
- package/package.json +3 -2
- package/typings/index.d.cts +1 -1
- package/typings/index.d.ts +1 -1
- package/typings/version.d.cts +1 -1
- package/typings/version.d.ts +1 -1
package/cjs/index.js
CHANGED
|
@@ -17,11 +17,10 @@ function createSupergraphManager(args) {
|
|
|
17
17
|
var _a, _b, _c, _d;
|
|
18
18
|
const logger = (_a = args.logger) !== null && _a !== void 0 ? _a : new logger_1.Logger({ level: false });
|
|
19
19
|
const pollIntervalInMs = (_b = args.pollIntervalInMs) !== null && _b !== void 0 ? _b : 30000;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
: (0, core_1.joinUrl)(args.endpoint, 'supergraph');
|
|
20
|
+
let endpoints = Array.isArray(args.endpoint) ? args.endpoint : [args.endpoint];
|
|
21
|
+
const endpoint = endpoints.map(endpoint => endpoint.endsWith('/supergraph') ? endpoint : (0, core_1.joinUrl)(endpoint, 'supergraph'));
|
|
23
22
|
const artifactsFetcher = (0, core_1.createCDNArtifactFetcher)({
|
|
24
|
-
endpoint,
|
|
23
|
+
endpoint: endpoint,
|
|
25
24
|
accessKey: args.key,
|
|
26
25
|
client: {
|
|
27
26
|
name: (_c = args.name) !== null && _c !== void 0 ? _c : '@graphql-hive/apollo',
|
package/cjs/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.version = void 0;
|
|
4
|
-
exports.version = '0.43.0-alpha-
|
|
4
|
+
exports.version = '0.43.0-alpha-20251126142740-d265dc6d6d73bf62ec597dbe41409f466b9d9874';
|
package/esm/index.js
CHANGED
|
@@ -7,11 +7,10 @@ export function createSupergraphManager(args) {
|
|
|
7
7
|
var _a, _b, _c, _d;
|
|
8
8
|
const logger = (_a = args.logger) !== null && _a !== void 0 ? _a : new Logger({ level: false });
|
|
9
9
|
const pollIntervalInMs = (_b = args.pollIntervalInMs) !== null && _b !== void 0 ? _b : 30000;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
: joinUrl(args.endpoint, 'supergraph');
|
|
10
|
+
let endpoints = Array.isArray(args.endpoint) ? args.endpoint : [args.endpoint];
|
|
11
|
+
const endpoint = endpoints.map(endpoint => endpoint.endsWith('/supergraph') ? endpoint : joinUrl(endpoint, 'supergraph'));
|
|
13
12
|
const artifactsFetcher = createCDNArtifactFetcher({
|
|
14
|
-
endpoint,
|
|
13
|
+
endpoint: endpoint,
|
|
15
14
|
accessKey: args.key,
|
|
16
15
|
client: {
|
|
17
16
|
name: (_c = args.name) !== null && _c !== void 0 ? _c : '@graphql-hive/apollo',
|
package/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.43.0-alpha-
|
|
1
|
+
export const version = '0.43.0-alpha-20251126142740-d265dc6d6d73bf62ec597dbe41409f466b9d9874';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-hive/apollo",
|
|
3
|
-
"version": "0.43.0-alpha-
|
|
3
|
+
"version": "0.43.0-alpha-20251126142740-d265dc6d6d73bf62ec597dbe41409f466b9d9874",
|
|
4
4
|
"description": "GraphQL Hive + Apollo Server",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"graphql": "^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@graphql-hive/
|
|
11
|
+
"@graphql-hive/logger": "^1.0.9",
|
|
12
|
+
"@graphql-hive/core": "0.16.0-alpha-20251126142740-d265dc6d6d73bf62ec597dbe41409f466b9d9874"
|
|
12
13
|
},
|
|
13
14
|
"repository": {
|
|
14
15
|
"type": "git",
|
package/typings/index.d.cts
CHANGED
|
@@ -12,7 +12,7 @@ export type CreateSupergraphManagerArgs = {
|
|
|
12
12
|
* The artifact endpoint to poll.
|
|
13
13
|
* E.g. `https://cdn.graphql-hive.com/<uuid>/supergraph`
|
|
14
14
|
*/
|
|
15
|
-
endpoint: string;
|
|
15
|
+
endpoint: string | [string, string];
|
|
16
16
|
/**
|
|
17
17
|
* The CDN access key for fetching artifact.
|
|
18
18
|
*/
|
package/typings/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type CreateSupergraphManagerArgs = {
|
|
|
12
12
|
* The artifact endpoint to poll.
|
|
13
13
|
* E.g. `https://cdn.graphql-hive.com/<uuid>/supergraph`
|
|
14
14
|
*/
|
|
15
|
-
endpoint: string;
|
|
15
|
+
endpoint: string | [string, string];
|
|
16
16
|
/**
|
|
17
17
|
* The CDN access key for fetching artifact.
|
|
18
18
|
*/
|
package/typings/version.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.43.0-alpha-
|
|
1
|
+
export declare const version = "0.43.0-alpha-20251126142740-d265dc6d6d73bf62ec597dbe41409f466b9d9874";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/typings/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.43.0-alpha-
|
|
1
|
+
export declare const version = "0.43.0-alpha-20251126142740-d265dc6d6d73bf62ec597dbe41409f466b9d9874";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|