@graphql-mesh/transport-ws 0.4.0-alpha-20241024081932-3ee73bb98c2cf864970c6ddb7b244c724f2c9637 → 0.4.0-alpha-20241024125639-cab931d9f00d29494c85411d124588f7118e1f90

Sign up to get free protection for your applications and to get access to all the features.
package/cjs/index.js CHANGED
@@ -16,7 +16,6 @@ function switchProtocols(url) {
16
16
  }
17
17
  exports.default = {
18
18
  getSubgraphExecutor({ transportEntry, logger }) {
19
- const buildExecutor = transportEntry.options?.buildGraphQLWSExecutor ?? executor_graphql_ws_1.buildGraphQLWSExecutor;
20
19
  const wsExecutorMap = new Map();
21
20
  const wsUrl = switchProtocols(transportEntry.location);
22
21
  const connectionParamsFactory = transportEntry.options?.connectionParams
@@ -42,7 +41,7 @@ exports.default = {
42
41
  let wsExecutor = wsExecutorMap.get(hash);
43
42
  if (!wsExecutor) {
44
43
  const executorLogger = logger.child('GraphQL WS').child(hash);
45
- wsExecutor = buildExecutor({
44
+ wsExecutor = (0, executor_graphql_ws_1.buildGraphQLWSExecutor)({
46
45
  url: wsUrl,
47
46
  lazy: true,
48
47
  lazyCloseTimeout: 3_000,
package/esm/index.js CHANGED
@@ -14,7 +14,6 @@ function switchProtocols(url) {
14
14
  }
15
15
  export default {
16
16
  getSubgraphExecutor({ transportEntry, logger }) {
17
- const buildExecutor = transportEntry.options?.buildGraphQLWSExecutor ?? buildGraphQLWSExecutor;
18
17
  const wsExecutorMap = new Map();
19
18
  const wsUrl = switchProtocols(transportEntry.location);
20
19
  const connectionParamsFactory = transportEntry.options?.connectionParams
@@ -40,7 +39,7 @@ export default {
40
39
  let wsExecutor = wsExecutorMap.get(hash);
41
40
  if (!wsExecutor) {
42
41
  const executorLogger = logger.child('GraphQL WS').child(hash);
43
- wsExecutor = buildExecutor({
42
+ wsExecutor = buildGraphQLWSExecutor({
44
43
  url: wsUrl,
45
44
  lazy: true,
46
45
  lazyCloseTimeout: 3_000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/transport-ws",
3
- "version": "0.4.0-alpha-20241024081932-3ee73bb98c2cf864970c6ddb7b244c724f2c9637",
3
+ "version": "0.4.0-alpha-20241024125639-cab931d9f00d29494c85411d124588f7118e1f90",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*",
@@ -1,9 +1,7 @@
1
1
  import type { ClientOptions } from 'graphql-ws';
2
2
  import { type DisposableExecutor } from '@graphql-mesh/transport-common';
3
- import { buildGraphQLWSExecutor } from '@graphql-tools/executor-graphql-ws';
4
3
  export type WSTransportOptions = Omit<ClientOptions, 'url' | 'on' | 'connectionParams'> & {
5
4
  connectionParams?: Record<string, string>;
6
- buildGraphQLWSExecutor?: typeof buildGraphQLWSExecutor;
7
5
  };
8
6
  declare const _default: {
9
7
  getSubgraphExecutor({ transportEntry, logger }: import("@graphql-mesh/transport-common").TransportGetSubgraphExecutorOptions<WSTransportOptions>): DisposableExecutor & AsyncDisposable;
@@ -1,9 +1,7 @@
1
1
  import type { ClientOptions } from 'graphql-ws';
2
2
  import { type DisposableExecutor } from '@graphql-mesh/transport-common';
3
- import { buildGraphQLWSExecutor } from '@graphql-tools/executor-graphql-ws';
4
3
  export type WSTransportOptions = Omit<ClientOptions, 'url' | 'on' | 'connectionParams'> & {
5
4
  connectionParams?: Record<string, string>;
6
- buildGraphQLWSExecutor?: typeof buildGraphQLWSExecutor;
7
5
  };
8
6
  declare const _default: {
9
7
  getSubgraphExecutor({ transportEntry, logger }: import("@graphql-mesh/transport-common").TransportGetSubgraphExecutorOptions<WSTransportOptions>): DisposableExecutor & AsyncDisposable;