@graphql-mesh/transport-ws 0.4.0-alpha-20240925213800-a670cc64ae334029cf574c9b8068a6dfbde4e4a3 → 0.4.0-alpha-20240926192138-324615c9ddfa15a9d779f0826ebe608f64b98391

Sign up to get free protection for your applications and to get access to all the features.
package/cjs/index.js CHANGED
@@ -37,10 +37,7 @@ exports.default = {
37
37
  context: execReq.context,
38
38
  info: execReq.info,
39
39
  });
40
- let hash = wsUrl + (connectionParams?.token ? '?token=' + connectionParams.token : '');
41
- if (headers) {
42
- hash += `&headers=${JSON.stringify(headers)}`;
43
- }
40
+ const hash = `${wsUrl}?connectionParams=${JSON.stringify(connectionParams)}&headers=${JSON.stringify(headers)}`;
44
41
  let wsExecutor = wsExecutorMap.get(hash);
45
42
  if (!wsExecutor) {
46
43
  const executorLogger = logger.child('GraphQL WS').child(hash);
package/esm/index.js CHANGED
@@ -35,10 +35,7 @@ export default {
35
35
  context: execReq.context,
36
36
  info: execReq.info,
37
37
  });
38
- let hash = wsUrl + (connectionParams?.token ? '?token=' + connectionParams.token : '');
39
- if (headers) {
40
- hash += `&headers=${JSON.stringify(headers)}`;
41
- }
38
+ const hash = `${wsUrl}?connectionParams=${JSON.stringify(connectionParams)}&headers=${JSON.stringify(headers)}`;
42
39
  let wsExecutor = wsExecutorMap.get(hash);
43
40
  if (!wsExecutor) {
44
41
  const executorLogger = logger.child('GraphQL WS').child(hash);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/transport-ws",
3
- "version": "0.4.0-alpha-20240925213800-a670cc64ae334029cf574c9b8068a6dfbde4e4a3",
3
+ "version": "0.4.0-alpha-20240926192138-324615c9ddfa15a9d779f0826ebe608f64b98391",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*",
@@ -11,7 +11,7 @@
11
11
  "@graphql-mesh/string-interpolation": "^0.5.6",
12
12
  "@graphql-mesh/transport-common": "^0.7.6",
13
13
  "@graphql-mesh/utils": "^0.102.5",
14
- "@graphql-tools/executor-graphql-ws": "1.3.0-alpha-20240925200710-d61ee3efd7a824d2ae97ac731770da8ae3a913d0",
14
+ "@graphql-tools/executor-graphql-ws": "^1.3.0",
15
15
  "@graphql-tools/utils": "^10.5.3",
16
16
  "graphql-ws": "^5.16.0",
17
17
  "ws": "^8.18.0"