@graphql-mesh/transport-ws 0.4.0-alpha-20241023130420-283b902e5311d8bf300420a18f07391eb1dcff65 → 0.4.0-alpha-20241024124524-223f3cf795a547bb1f7a8bea7c6faaeff4a92d5d

Sign up to get free protection for your applications and to get access to all the features.
package/cjs/index.js CHANGED
@@ -18,7 +18,7 @@ exports.default = {
18
18
  getSubgraphExecutor({ transportEntry, logger }) {
19
19
  const wsExecutorMap = new Map();
20
20
  const wsUrl = switchProtocols(transportEntry.location);
21
- const connectionParamsFactory = transportEntry.options.connectionParams
21
+ const connectionParamsFactory = transportEntry.options?.connectionParams
22
22
  ? (0, string_interpolation_1.getInterpolatedHeadersFactory)(transportEntry.options.connectionParams)
23
23
  : undefined;
24
24
  const headersFactory = transportEntry.headers
package/esm/index.js CHANGED
@@ -16,7 +16,7 @@ export default {
16
16
  getSubgraphExecutor({ transportEntry, logger }) {
17
17
  const wsExecutorMap = new Map();
18
18
  const wsUrl = switchProtocols(transportEntry.location);
19
- const connectionParamsFactory = transportEntry.options.connectionParams
19
+ const connectionParamsFactory = transportEntry.options?.connectionParams
20
20
  ? getInterpolatedHeadersFactory(transportEntry.options.connectionParams)
21
21
  : undefined;
22
22
  const headersFactory = transportEntry.headers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/transport-ws",
3
- "version": "0.4.0-alpha-20241023130420-283b902e5311d8bf300420a18f07391eb1dcff65",
3
+ "version": "0.4.0-alpha-20241024124524-223f3cf795a547bb1f7a8bea7c6faaeff4a92d5d",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*",