@graphql-hive/gateway 2.0.0-next-599fa70cae41e9a42a343ea73b7dee5d36bf3517 → 2.0.0-next-e2698677f10276e29194b5559409235a15f2f324
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 +62 -35
- package/dist/bin.cjs +1 -1
- package/dist/bin.js +1 -1
- package/dist/{cli-BG8XaVLT.js → cli-CP9iY6tm.js} +27 -6
- package/dist/{cli-DqXsx5Cd.cjs → cli-CPxULGJb.cjs} +26 -5
- package/dist/execAsync-CZu27rRM.cjs +44 -0
- package/dist/execAsync-DmTy47v9.js +21 -0
- package/dist/getMachineId-bsd-B4KI42yf.js +40 -0
- package/dist/getMachineId-bsd-Bm_iwnsS.cjs +42 -0
- package/dist/getMachineId-darwin-BDexu45J.cjs +43 -0
- package/dist/getMachineId-darwin-c7bqIReD.js +41 -0
- package/dist/getMachineId-linux-D2g1lfzo.js +33 -0
- package/dist/getMachineId-linux-sJzq0whF.cjs +35 -0
- package/dist/getMachineId-unsupported-C6mI58qQ.js +23 -0
- package/dist/getMachineId-unsupported-Cmowwltd.cjs +25 -0
- package/dist/getMachineId-win-5mPgREt3.cjs +63 -0
- package/dist/getMachineId-win-CvE0ShWu.js +41 -0
- package/dist/index-61dm03o3.js +279698 -0
- package/dist/index-B44NjpxU.cjs +843 -0
- package/dist/index-DWaHa380.cjs +279743 -0
- package/dist/index-Dw4Doxg2.js +821 -0
- package/dist/index.cjs +5 -14
- package/dist/index.d.cts +14 -16
- package/dist/index.d.ts +14 -16
- package/dist/index.js +2 -3
- package/dist/opentelemetry/api.cjs +12 -0
- package/dist/opentelemetry/api.d.cts +1 -0
- package/dist/opentelemetry/api.d.ts +1 -0
- package/dist/opentelemetry/api.js +1 -0
- package/dist/opentelemetry/index.cjs +12 -0
- package/dist/opentelemetry/index.d.cts +3 -0
- package/dist/opentelemetry/index.d.ts +3 -0
- package/dist/opentelemetry/index.js +1 -0
- package/dist/opentelemetry/setup.cjs +12 -0
- package/dist/opentelemetry/setup.d.cts +1 -0
- package/dist/opentelemetry/setup.d.ts +1 -0
- package/dist/opentelemetry/setup.js +1 -0
- package/package.json +46 -16
package/dist/index.cjs
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
var cli = require('./cli-
|
3
|
+
var cli = require('./cli-CPxULGJb.cjs');
|
4
4
|
var logger = require('@graphql-hive/logger');
|
5
5
|
var gatewayRuntime = require('@graphql-hive/gateway-runtime');
|
6
6
|
var pubsub = require('@graphql-hive/pubsub');
|
7
7
|
var pluginJwtAuth = require('@graphql-mesh/plugin-jwt-auth');
|
8
|
-
var pluginOpentelemetry = require('@graphql-mesh/plugin-opentelemetry');
|
9
8
|
var pluginPrometheus = require('@graphql-mesh/plugin-prometheus');
|
10
9
|
var pluginRateLimit = require('@graphql-mesh/plugin-rate-limit');
|
11
10
|
var pluginHttpCache = require('@graphql-mesh/plugin-http-cache');
|
@@ -59,6 +58,10 @@ exports.getBuiltinPluginsFromConfig = cli.getBuiltinPluginsFromConfig;
|
|
59
58
|
exports.getCacheInstanceFromConfig = cli.getCacheInstanceFromConfig;
|
60
59
|
exports.handleNodeWarnings = cli.handleNodeWarnings;
|
61
60
|
exports.run = cli.run;
|
61
|
+
Object.defineProperty(exports, "PubSub", {
|
62
|
+
enumerable: true,
|
63
|
+
get: function () { return pubsub.PubSub; }
|
64
|
+
});
|
62
65
|
Object.defineProperty(exports, "usePrometheus", {
|
63
66
|
enumerable: true,
|
64
67
|
get: function () { return pluginPrometheus__default.default; }
|
@@ -119,24 +122,12 @@ Object.keys(gatewayRuntime).forEach(function (k) {
|
|
119
122
|
get: function () { return gatewayRuntime[k]; }
|
120
123
|
});
|
121
124
|
});
|
122
|
-
Object.keys(pubsub).forEach(function (k) {
|
123
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
124
|
-
enumerable: true,
|
125
|
-
get: function () { return pubsub[k]; }
|
126
|
-
});
|
127
|
-
});
|
128
125
|
Object.keys(pluginJwtAuth).forEach(function (k) {
|
129
126
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
130
127
|
enumerable: true,
|
131
128
|
get: function () { return pluginJwtAuth[k]; }
|
132
129
|
});
|
133
130
|
});
|
134
|
-
Object.keys(pluginOpentelemetry).forEach(function (k) {
|
135
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
136
|
-
enumerable: true,
|
137
|
-
get: function () { return pluginOpentelemetry[k]; }
|
138
|
-
});
|
139
|
-
});
|
140
131
|
Object.keys(pluginPrometheus).forEach(function (k) {
|
141
132
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
142
133
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
@@ -5,14 +5,13 @@ export * from '@graphql-hive/gateway-runtime';
|
|
5
5
|
import { Logger } from '@graphql-hive/logger';
|
6
6
|
export * from '@graphql-hive/logger';
|
7
7
|
import { AWSSignv4PluginOptions } from '@graphql-hive/plugin-aws-sigv4';
|
8
|
-
import {
|
9
|
-
export
|
8
|
+
import { HivePubSub } from '@graphql-hive/pubsub';
|
9
|
+
export { PubSub } from '@graphql-hive/pubsub';
|
10
10
|
import UpstashRedisCache from '@graphql-mesh/cache-upstash-redis';
|
11
11
|
export { default as UpstashRedisCache } from '@graphql-mesh/cache-upstash-redis';
|
12
12
|
import { JWTAuthPluginOptions } from '@graphql-mesh/plugin-jwt-auth';
|
13
13
|
export * from '@graphql-mesh/plugin-jwt-auth';
|
14
14
|
import { OpenTelemetryGatewayPluginOptions } from '@graphql-mesh/plugin-opentelemetry';
|
15
|
-
export * from '@graphql-mesh/plugin-opentelemetry';
|
16
15
|
import { PrometheusPluginOptions } from '@graphql-mesh/plugin-prometheus';
|
17
16
|
export * from '@graphql-mesh/plugin-prometheus';
|
18
17
|
export { default as usePrometheus } from '@graphql-mesh/plugin-prometheus';
|
@@ -76,10 +75,9 @@ interface ServerConfigSSLCredentials {
|
|
76
75
|
ssl_prefer_low_memory_usage?: boolean;
|
77
76
|
}
|
78
77
|
|
79
|
-
type GatewayCLIConfig = (GatewayCLISupergraphConfig | GatewayCLISubgraphConfig | GatewayCLIProxyConfig) & ServerConfig & {
|
78
|
+
type GatewayCLIConfig<TContext extends Record<string, any> = Record<string, any>> = (GatewayCLISupergraphConfig<TContext> | GatewayCLISubgraphConfig<TContext> | GatewayCLIProxyConfig<TContext>) & ServerConfig & {
|
80
79
|
/**
|
81
|
-
* Count of workers to spawn.
|
82
|
-
* is "production", otherwise only one (the main) worker.
|
80
|
+
* Count of workers to spawn.
|
83
81
|
*/
|
84
82
|
fork?: number;
|
85
83
|
/**
|
@@ -91,7 +89,7 @@ type GatewayCLIConfig = (GatewayCLISupergraphConfig | GatewayCLISubgraphConfig |
|
|
91
89
|
*/
|
92
90
|
pollingInterval?: number;
|
93
91
|
} & GatewayCLIBuiltinPluginConfig;
|
94
|
-
interface GatewayCLISupergraphConfig extends Omit<GatewayConfigSupergraph
|
92
|
+
interface GatewayCLISupergraphConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigSupergraph<TContext>, 'supergraph' | 'cache' | 'reporting'> {
|
95
93
|
/**
|
96
94
|
* SDL, path or an URL to the Federation Supergraph.
|
97
95
|
*
|
@@ -99,7 +97,7 @@ interface GatewayCLISupergraphConfig extends Omit<GatewayConfigSupergraph, 'supe
|
|
99
97
|
*
|
100
98
|
* @default 'supergraph.graphql'
|
101
99
|
*/
|
102
|
-
supergraph?: GatewayConfigSupergraph['supergraph'];
|
100
|
+
supergraph?: GatewayConfigSupergraph<TContext>['supergraph'];
|
103
101
|
/** Usage reporting options. */
|
104
102
|
reporting?: GatewayCLIHiveReportingOptions | GatewayGraphOSReportingOptions;
|
105
103
|
}
|
@@ -117,7 +115,7 @@ interface GatewayCLIHiveReportingOptions extends Omit<GatewayHiveReportingOption
|
|
117
115
|
*/
|
118
116
|
token?: GatewayHiveReportingOptions['token'];
|
119
117
|
}
|
120
|
-
interface GatewayCLISubgraphConfig extends Omit<GatewayConfigSubgraph
|
118
|
+
interface GatewayCLISubgraphConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigSubgraph<TContext>, 'subgraph' | 'cache'> {
|
121
119
|
/**
|
122
120
|
* SDL, path or an URL to the Federation Supergraph.
|
123
121
|
*
|
@@ -125,17 +123,17 @@ interface GatewayCLISubgraphConfig extends Omit<GatewayConfigSubgraph, 'subgraph
|
|
125
123
|
*
|
126
124
|
* @default 'subgraph.graphql'
|
127
125
|
*/
|
128
|
-
subgraph?: GatewayConfigSubgraph['subgraph'];
|
126
|
+
subgraph?: GatewayConfigSubgraph<TContext>['subgraph'];
|
129
127
|
}
|
130
|
-
interface GatewayCLIProxyConfig extends Omit<GatewayConfigProxy
|
128
|
+
interface GatewayCLIProxyConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigProxy<TContext>, 'proxy' | 'cache'> {
|
131
129
|
/**
|
132
130
|
* HTTP executor to proxy all incoming requests to another HTTP endpoint.
|
133
131
|
*/
|
134
|
-
proxy?: GatewayConfigProxy['proxy'];
|
132
|
+
proxy?: GatewayConfigProxy<TContext>['proxy'];
|
135
133
|
}
|
136
134
|
type KeyValueCacheFactoryFn = (ctx: {
|
137
135
|
log: Logger;
|
138
|
-
pubsub:
|
136
|
+
pubsub: HivePubSub;
|
139
137
|
cwd: string;
|
140
138
|
}) => KeyValueCache;
|
141
139
|
interface GatewayCLIBuiltinPluginConfig {
|
@@ -221,7 +219,7 @@ type GatewayCLIUpstashRedisCacheConfig = {
|
|
221
219
|
/**
|
222
220
|
* Type helper for defining the config.
|
223
221
|
*/
|
224
|
-
declare function defineConfig(config: GatewayCLIConfig): GatewayCLIConfig
|
222
|
+
declare function defineConfig<TContext extends Record<string, any> = Record<string, any>>(config: GatewayCLIConfig<TContext>): GatewayCLIConfig<TContext>;
|
225
223
|
/** The context of the running program. */
|
226
224
|
interface CLIContext {
|
227
225
|
/** @default new DefaultLogger() */
|
@@ -321,7 +319,7 @@ declare function enableModuleCachingIfPossible(): void;
|
|
321
319
|
declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
|
322
320
|
cache: KeyValueCache;
|
323
321
|
log: Logger;
|
324
|
-
pubsub:
|
322
|
+
pubsub: HivePubSub;
|
325
323
|
cwd: string;
|
326
324
|
}): Promise<GatewayPlugin[]>;
|
327
325
|
/**
|
@@ -330,7 +328,7 @@ declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConf
|
|
330
328
|
*/
|
331
329
|
declare function getCacheInstanceFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
|
332
330
|
log: Logger;
|
333
|
-
pubsub:
|
331
|
+
pubsub: HivePubSub;
|
334
332
|
cwd: string;
|
335
333
|
}): Promise<KeyValueCache>;
|
336
334
|
|
package/dist/index.d.ts
CHANGED
@@ -5,14 +5,13 @@ export * from '@graphql-hive/gateway-runtime';
|
|
5
5
|
import { Logger } from '@graphql-hive/logger';
|
6
6
|
export * from '@graphql-hive/logger';
|
7
7
|
import { AWSSignv4PluginOptions } from '@graphql-hive/plugin-aws-sigv4';
|
8
|
-
import {
|
9
|
-
export
|
8
|
+
import { HivePubSub } from '@graphql-hive/pubsub';
|
9
|
+
export { PubSub } from '@graphql-hive/pubsub';
|
10
10
|
import UpstashRedisCache from '@graphql-mesh/cache-upstash-redis';
|
11
11
|
export { default as UpstashRedisCache } from '@graphql-mesh/cache-upstash-redis';
|
12
12
|
import { JWTAuthPluginOptions } from '@graphql-mesh/plugin-jwt-auth';
|
13
13
|
export * from '@graphql-mesh/plugin-jwt-auth';
|
14
14
|
import { OpenTelemetryGatewayPluginOptions } from '@graphql-mesh/plugin-opentelemetry';
|
15
|
-
export * from '@graphql-mesh/plugin-opentelemetry';
|
16
15
|
import { PrometheusPluginOptions } from '@graphql-mesh/plugin-prometheus';
|
17
16
|
export * from '@graphql-mesh/plugin-prometheus';
|
18
17
|
export { default as usePrometheus } from '@graphql-mesh/plugin-prometheus';
|
@@ -76,10 +75,9 @@ interface ServerConfigSSLCredentials {
|
|
76
75
|
ssl_prefer_low_memory_usage?: boolean;
|
77
76
|
}
|
78
77
|
|
79
|
-
type GatewayCLIConfig = (GatewayCLISupergraphConfig | GatewayCLISubgraphConfig | GatewayCLIProxyConfig) & ServerConfig & {
|
78
|
+
type GatewayCLIConfig<TContext extends Record<string, any> = Record<string, any>> = (GatewayCLISupergraphConfig<TContext> | GatewayCLISubgraphConfig<TContext> | GatewayCLIProxyConfig<TContext>) & ServerConfig & {
|
80
79
|
/**
|
81
|
-
* Count of workers to spawn.
|
82
|
-
* is "production", otherwise only one (the main) worker.
|
80
|
+
* Count of workers to spawn.
|
83
81
|
*/
|
84
82
|
fork?: number;
|
85
83
|
/**
|
@@ -91,7 +89,7 @@ type GatewayCLIConfig = (GatewayCLISupergraphConfig | GatewayCLISubgraphConfig |
|
|
91
89
|
*/
|
92
90
|
pollingInterval?: number;
|
93
91
|
} & GatewayCLIBuiltinPluginConfig;
|
94
|
-
interface GatewayCLISupergraphConfig extends Omit<GatewayConfigSupergraph
|
92
|
+
interface GatewayCLISupergraphConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigSupergraph<TContext>, 'supergraph' | 'cache' | 'reporting'> {
|
95
93
|
/**
|
96
94
|
* SDL, path or an URL to the Federation Supergraph.
|
97
95
|
*
|
@@ -99,7 +97,7 @@ interface GatewayCLISupergraphConfig extends Omit<GatewayConfigSupergraph, 'supe
|
|
99
97
|
*
|
100
98
|
* @default 'supergraph.graphql'
|
101
99
|
*/
|
102
|
-
supergraph?: GatewayConfigSupergraph['supergraph'];
|
100
|
+
supergraph?: GatewayConfigSupergraph<TContext>['supergraph'];
|
103
101
|
/** Usage reporting options. */
|
104
102
|
reporting?: GatewayCLIHiveReportingOptions | GatewayGraphOSReportingOptions;
|
105
103
|
}
|
@@ -117,7 +115,7 @@ interface GatewayCLIHiveReportingOptions extends Omit<GatewayHiveReportingOption
|
|
117
115
|
*/
|
118
116
|
token?: GatewayHiveReportingOptions['token'];
|
119
117
|
}
|
120
|
-
interface GatewayCLISubgraphConfig extends Omit<GatewayConfigSubgraph
|
118
|
+
interface GatewayCLISubgraphConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigSubgraph<TContext>, 'subgraph' | 'cache'> {
|
121
119
|
/**
|
122
120
|
* SDL, path or an URL to the Federation Supergraph.
|
123
121
|
*
|
@@ -125,17 +123,17 @@ interface GatewayCLISubgraphConfig extends Omit<GatewayConfigSubgraph, 'subgraph
|
|
125
123
|
*
|
126
124
|
* @default 'subgraph.graphql'
|
127
125
|
*/
|
128
|
-
subgraph?: GatewayConfigSubgraph['subgraph'];
|
126
|
+
subgraph?: GatewayConfigSubgraph<TContext>['subgraph'];
|
129
127
|
}
|
130
|
-
interface GatewayCLIProxyConfig extends Omit<GatewayConfigProxy
|
128
|
+
interface GatewayCLIProxyConfig<TContext extends Record<string, any> = Record<string, any>> extends Omit<GatewayConfigProxy<TContext>, 'proxy' | 'cache'> {
|
131
129
|
/**
|
132
130
|
* HTTP executor to proxy all incoming requests to another HTTP endpoint.
|
133
131
|
*/
|
134
|
-
proxy?: GatewayConfigProxy['proxy'];
|
132
|
+
proxy?: GatewayConfigProxy<TContext>['proxy'];
|
135
133
|
}
|
136
134
|
type KeyValueCacheFactoryFn = (ctx: {
|
137
135
|
log: Logger;
|
138
|
-
pubsub:
|
136
|
+
pubsub: HivePubSub;
|
139
137
|
cwd: string;
|
140
138
|
}) => KeyValueCache;
|
141
139
|
interface GatewayCLIBuiltinPluginConfig {
|
@@ -221,7 +219,7 @@ type GatewayCLIUpstashRedisCacheConfig = {
|
|
221
219
|
/**
|
222
220
|
* Type helper for defining the config.
|
223
221
|
*/
|
224
|
-
declare function defineConfig(config: GatewayCLIConfig): GatewayCLIConfig
|
222
|
+
declare function defineConfig<TContext extends Record<string, any> = Record<string, any>>(config: GatewayCLIConfig<TContext>): GatewayCLIConfig<TContext>;
|
225
223
|
/** The context of the running program. */
|
226
224
|
interface CLIContext {
|
227
225
|
/** @default new DefaultLogger() */
|
@@ -321,7 +319,7 @@ declare function enableModuleCachingIfPossible(): void;
|
|
321
319
|
declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
|
322
320
|
cache: KeyValueCache;
|
323
321
|
log: Logger;
|
324
|
-
pubsub:
|
322
|
+
pubsub: HivePubSub;
|
325
323
|
cwd: string;
|
326
324
|
}): Promise<GatewayPlugin[]>;
|
327
325
|
/**
|
@@ -330,7 +328,7 @@ declare function getBuiltinPluginsFromConfig(config: GatewayCLIBuiltinPluginConf
|
|
330
328
|
*/
|
331
329
|
declare function getCacheInstanceFromConfig(config: GatewayCLIBuiltinPluginConfig, ctx: {
|
332
330
|
log: Logger;
|
333
|
-
pubsub:
|
331
|
+
pubsub: HivePubSub;
|
334
332
|
cwd: string;
|
335
333
|
}): Promise<KeyValueCache>;
|
336
334
|
|
package/dist/index.js
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
export { b as defaultOptions, d as defineConfig, e as enableModuleCachingIfPossible, a as getBuiltinPluginsFromConfig, g as getCacheInstanceFromConfig, h as handleNodeWarnings, r as run } from './cli-
|
1
|
+
export { b as defaultOptions, d as defineConfig, e as enableModuleCachingIfPossible, a as getBuiltinPluginsFromConfig, g as getCacheInstanceFromConfig, h as handleNodeWarnings, r as run } from './cli-CP9iY6tm.js';
|
2
2
|
export * from '@graphql-hive/logger';
|
3
3
|
export * from '@graphql-hive/gateway-runtime';
|
4
|
-
export
|
4
|
+
export { PubSub } from '@graphql-hive/pubsub';
|
5
5
|
export * from '@graphql-mesh/plugin-jwt-auth';
|
6
|
-
export * from '@graphql-mesh/plugin-opentelemetry';
|
7
6
|
export * from '@graphql-mesh/plugin-prometheus';
|
8
7
|
export { default as usePrometheus } from '@graphql-mesh/plugin-prometheus';
|
9
8
|
export { default as useRateLimit } from '@graphql-mesh/plugin-rate-limit';
|
@@ -0,0 +1,12 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var api = require('@graphql-mesh/plugin-opentelemetry/api');
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
Object.keys(api).forEach(function (k) {
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
9
|
+
enumerable: true,
|
10
|
+
get: function () { return api[k]; }
|
11
|
+
});
|
12
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from '@graphql-mesh/plugin-opentelemetry/api';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from '@graphql-mesh/plugin-opentelemetry/api';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from '@graphql-mesh/plugin-opentelemetry/api';
|
@@ -0,0 +1,12 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var pluginOpentelemetry = require('@graphql-mesh/plugin-opentelemetry');
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
Object.keys(pluginOpentelemetry).forEach(function (k) {
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
9
|
+
enumerable: true,
|
10
|
+
get: function () { return pluginOpentelemetry[k]; }
|
11
|
+
});
|
12
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from '@graphql-mesh/plugin-opentelemetry';
|
@@ -0,0 +1,12 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var setup = require('@graphql-mesh/plugin-opentelemetry/setup');
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
Object.keys(setup).forEach(function (k) {
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
9
|
+
enumerable: true,
|
10
|
+
get: function () { return setup[k]; }
|
11
|
+
});
|
12
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from '@graphql-mesh/plugin-opentelemetry/setup';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from '@graphql-mesh/plugin-opentelemetry/setup';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from '@graphql-mesh/plugin-opentelemetry/setup';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@graphql-hive/gateway",
|
3
|
-
"version": "2.0.0-next-
|
3
|
+
"version": "2.0.0-next-e2698677f10276e29194b5559409235a15f2f324",
|
4
4
|
"type": "module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -33,6 +33,36 @@
|
|
33
33
|
"default": "./dist/index.js"
|
34
34
|
}
|
35
35
|
},
|
36
|
+
"./opentelemetry": {
|
37
|
+
"require": {
|
38
|
+
"types": "./dist/opentelemetry/index.d.cts",
|
39
|
+
"default": "./dist/opentelemetry/index.cjs"
|
40
|
+
},
|
41
|
+
"import": {
|
42
|
+
"types": "./dist/opentelemetry/index.d.ts",
|
43
|
+
"default": "./dist/opentelemetry/index.js"
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"./opentelemetry/api": {
|
47
|
+
"require": {
|
48
|
+
"types": "./dist/opentelemetry/api.d.cts",
|
49
|
+
"default": "./dist/opentelemetry/api.cjs"
|
50
|
+
},
|
51
|
+
"import": {
|
52
|
+
"types": "./dist/opentelemetry/api.d.ts",
|
53
|
+
"default": "./dist/opentelemetry/api.js"
|
54
|
+
}
|
55
|
+
},
|
56
|
+
"./opentelemetry/setup": {
|
57
|
+
"require": {
|
58
|
+
"types": "./dist/opentelemetry/setup.d.cts",
|
59
|
+
"default": "./dist/opentelemetry/setup.cjs"
|
60
|
+
},
|
61
|
+
"import": {
|
62
|
+
"types": "./dist/opentelemetry/setup.d.ts",
|
63
|
+
"default": "./dist/opentelemetry/setup.js"
|
64
|
+
}
|
65
|
+
},
|
36
66
|
"./package.json": "./package.json"
|
37
67
|
},
|
38
68
|
"files": [
|
@@ -53,30 +83,30 @@
|
|
53
83
|
"@escape.tech/graphql-armor-block-field-suggestions": "^3.0.0",
|
54
84
|
"@escape.tech/graphql-armor-max-depth": "^2.4.0",
|
55
85
|
"@escape.tech/graphql-armor-max-tokens": "^2.5.0",
|
56
|
-
"@graphql-hive/gateway-runtime": "2.0.0-next-
|
57
|
-
"@graphql-hive/importer": "2.0.0-next-
|
58
|
-
"@graphql-hive/logger": "1.0.1-next-
|
59
|
-
"@graphql-hive/plugin-aws-sigv4": "2.0.0-next-
|
60
|
-
"@graphql-hive/plugin-deduplicate-request": "2.0.0-next-
|
61
|
-
"@graphql-hive/pubsub": "2.0.0-next-
|
86
|
+
"@graphql-hive/gateway-runtime": "2.0.0-next-e2698677f10276e29194b5559409235a15f2f324",
|
87
|
+
"@graphql-hive/importer": "2.0.0-next-e2698677f10276e29194b5559409235a15f2f324",
|
88
|
+
"@graphql-hive/logger": "1.0.1-next-e2698677f10276e29194b5559409235a15f2f324",
|
89
|
+
"@graphql-hive/plugin-aws-sigv4": "2.0.0-next-e2698677f10276e29194b5559409235a15f2f324",
|
90
|
+
"@graphql-hive/plugin-deduplicate-request": "2.0.0-next-e2698677f10276e29194b5559409235a15f2f324",
|
91
|
+
"@graphql-hive/pubsub": "2.0.0-next-e2698677f10276e29194b5559409235a15f2f324",
|
62
92
|
"@graphql-mesh/cache-cfw-kv": "^0.105.8",
|
63
93
|
"@graphql-mesh/cache-localforage": "^0.105.9",
|
64
94
|
"@graphql-mesh/cache-redis": "^0.104.8",
|
65
95
|
"@graphql-mesh/cache-upstash-redis": "^0.1.8",
|
66
96
|
"@graphql-mesh/cross-helpers": "^0.4.10",
|
67
|
-
"@graphql-mesh/hmac-upstream-signature": "2.0.0-next-
|
97
|
+
"@graphql-mesh/hmac-upstream-signature": "2.0.0-next-e2698677f10276e29194b5559409235a15f2f324",
|
68
98
|
"@graphql-mesh/plugin-http-cache": "^0.105.8",
|
69
99
|
"@graphql-mesh/plugin-jit": "^0.2.7",
|
70
|
-
"@graphql-mesh/plugin-jwt-auth": "2.0.0-next-
|
71
|
-
"@graphql-mesh/plugin-opentelemetry": "2.0.0-next-
|
72
|
-
"@graphql-mesh/plugin-prometheus": "2.0.0-next-
|
100
|
+
"@graphql-mesh/plugin-jwt-auth": "2.0.0-next-e2698677f10276e29194b5559409235a15f2f324",
|
101
|
+
"@graphql-mesh/plugin-opentelemetry": "2.0.0-next-e2698677f10276e29194b5559409235a15f2f324",
|
102
|
+
"@graphql-mesh/plugin-prometheus": "2.0.0-next-e2698677f10276e29194b5559409235a15f2f324",
|
73
103
|
"@graphql-mesh/plugin-rate-limit": "^0.104.7",
|
74
104
|
"@graphql-mesh/plugin-snapshot": "^0.104.7",
|
75
|
-
"@graphql-mesh/transport-http": "1.0.0-next-
|
76
|
-
"@graphql-mesh/transport-http-callback": "1.0.0-next-
|
77
|
-
"@graphql-mesh/transport-ws": "2.0.0-next-
|
105
|
+
"@graphql-mesh/transport-http": "1.0.0-next-e2698677f10276e29194b5559409235a15f2f324",
|
106
|
+
"@graphql-mesh/transport-http-callback": "1.0.0-next-e2698677f10276e29194b5559409235a15f2f324",
|
107
|
+
"@graphql-mesh/transport-ws": "2.0.0-next-e2698677f10276e29194b5559409235a15f2f324",
|
78
108
|
"@graphql-mesh/types": "^0.104.8",
|
79
|
-
"@graphql-mesh/utils": "^0.104.
|
109
|
+
"@graphql-mesh/utils": "^0.104.11",
|
80
110
|
"@graphql-tools/code-file-loader": "^8.1.22",
|
81
111
|
"@graphql-tools/graphql-file-loader": "^8.0.22",
|
82
112
|
"@graphql-tools/load": "^8.1.2",
|
@@ -103,7 +133,7 @@
|
|
103
133
|
"ws": "^8.18.3"
|
104
134
|
},
|
105
135
|
"devDependencies": {
|
106
|
-
"@graphql-mesh/transport-common": "1.0.0-next-
|
136
|
+
"@graphql-mesh/transport-common": "1.0.0-next-e2698677f10276e29194b5559409235a15f2f324",
|
107
137
|
"@graphql-mesh/transport-soap": "^0.10.8",
|
108
138
|
"@graphql-tools/executor": "^1.4.9",
|
109
139
|
"@rollup/plugin-commonjs": "^28.0.0",
|