@graphql-hive/apollo 0.43.0-alpha-20251126132949-eec790184dc9dd3eeb69833329b62e03c53b02ef → 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 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
- const endpoint = args.endpoint.endsWith('/supergraph')
21
- ? args.endpoint
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-20251126132949-eec790184dc9dd3eeb69833329b62e03c53b02ef';
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
- const endpoint = args.endpoint.endsWith('/supergraph')
11
- ? args.endpoint
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-20251126132949-eec790184dc9dd3eeb69833329b62e03c53b02ef';
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-20251126132949-eec790184dc9dd3eeb69833329b62e03c53b02ef",
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/core": "0.16.0-alpha-20251126132949-eec790184dc9dd3eeb69833329b62e03c53b02ef"
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",
@@ -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
  */
@@ -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
  */
@@ -1,2 +1,2 @@
1
- export declare const version = "0.43.0-alpha-20251126132949-eec790184dc9dd3eeb69833329b62e03c53b02ef";
1
+ export declare const version = "0.43.0-alpha-20251126142740-d265dc6d6d73bf62ec597dbe41409f466b9d9874";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const version = "0.43.0-alpha-20251126132949-eec790184dc9dd3eeb69833329b62e03c53b02ef";
1
+ export declare const version = "0.43.0-alpha-20251126142740-d265dc6d6d73bf62ec597dbe41409f466b9d9874";
2
2
  //# sourceMappingURL=version.d.ts.map