@graphql-hive/apollo 0.40.1 → 0.40.2-alpha-20251111141820-50a9ab9b26dd603077bccdc05ec125d91d4b6156
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 +2 -1
- package/cjs/version.js +1 -1
- package/esm/index.js +2 -1
- package/esm/version.js +1 -1
- package/package.json +2 -2
- package/typings/version.d.cts +1 -1
- package/typings/version.d.ts +1 -1
package/cjs/index.js
CHANGED
|
@@ -7,6 +7,7 @@ exports.useHive = useHive;
|
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
8
|
const graphql_1 = require("graphql");
|
|
9
9
|
const core_1 = require("@graphql-hive/core");
|
|
10
|
+
const version_1 = require("./version");
|
|
10
11
|
var core_2 = require("@graphql-hive/core");
|
|
11
12
|
Object.defineProperty(exports, "atLeastOnceSampler", { enumerable: true, get: function () { return core_2.atLeastOnceSampler; } });
|
|
12
13
|
Object.defineProperty(exports, "createSchemaFetcher", { enumerable: true, get: function () { return core_2.createSchemaFetcher; } });
|
|
@@ -56,7 +57,7 @@ function addRequestWithHeaders(context, http) {
|
|
|
56
57
|
return context;
|
|
57
58
|
}
|
|
58
59
|
function createHive(clientOrOptions) {
|
|
59
|
-
return (0, core_1.createHive)(Object.assign(Object.assign({}, clientOrOptions), { agent: Object.assign({ name: 'hive-client-yoga' }, clientOrOptions.agent) }));
|
|
60
|
+
return (0, core_1.createHive)(Object.assign(Object.assign({}, clientOrOptions), { agent: Object.assign({ name: 'hive-client-yoga', version: version_1.version }, clientOrOptions.agent) }));
|
|
60
61
|
}
|
|
61
62
|
function useHive(clientOrOptions) {
|
|
62
63
|
const hive = (0, core_1.isHiveClient)(clientOrOptions) ? clientOrOptions : createHive(clientOrOptions);
|
package/cjs/version.js
CHANGED
package/esm/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import { GraphQLError } from 'graphql';
|
|
3
3
|
import { autoDisposeSymbol, createHive as createHiveClient, createSupergraphSDLFetcher, isHiveClient, } from '@graphql-hive/core';
|
|
4
|
+
import { version } from './version';
|
|
4
5
|
export { atLeastOnceSampler, createSchemaFetcher, createServicesFetcher, createSupergraphSDLFetcher, } from '@graphql-hive/core';
|
|
5
6
|
export function createSupergraphManager(_a) {
|
|
6
7
|
var { pollIntervalInMs } = _a, superGraphFetcherOptions = __rest(_a, ["pollIntervalInMs"]);
|
|
@@ -46,7 +47,7 @@ function addRequestWithHeaders(context, http) {
|
|
|
46
47
|
return context;
|
|
47
48
|
}
|
|
48
49
|
export function createHive(clientOrOptions) {
|
|
49
|
-
return createHiveClient(Object.assign(Object.assign({}, clientOrOptions), { agent: Object.assign({ name: 'hive-client-yoga' }, clientOrOptions.agent) }));
|
|
50
|
+
return createHiveClient(Object.assign(Object.assign({}, clientOrOptions), { agent: Object.assign({ name: 'hive-client-yoga', version }, clientOrOptions.agent) }));
|
|
50
51
|
}
|
|
51
52
|
export function useHive(clientOrOptions) {
|
|
52
53
|
const hive = isHiveClient(clientOrOptions) ? clientOrOptions : createHive(clientOrOptions);
|
package/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.40.
|
|
1
|
+
export const version = '0.40.2-alpha-20251111141820-50a9ab9b26dd603077bccdc05ec125d91d4b6156';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-hive/apollo",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.2-alpha-20251111141820-50a9ab9b26dd603077bccdc05ec125d91d4b6156",
|
|
4
4
|
"description": "GraphQL Hive + Apollo Server",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,7 +8,7 @@
|
|
|
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.13.
|
|
11
|
+
"@graphql-hive/core": "0.13.2-alpha-20251111141820-50a9ab9b26dd603077bccdc05ec125d91d4b6156"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
package/typings/version.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.40.
|
|
1
|
+
export declare const version = "0.40.2-alpha-20251111141820-50a9ab9b26dd603077bccdc05ec125d91d4b6156";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/typings/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.40.
|
|
1
|
+
export declare const version = "0.40.2-alpha-20251111141820-50a9ab9b26dd603077bccdc05ec125d91d4b6156";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|