@graphql-mesh/transport-ws 1.0.0-alpha-7e26045e711907070b7236c41b9ed6a3906eb150 → 1.0.0-alpha-4c51bd8bb08df38e00c9d97ddb5d04633c181bce
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 +2 -2
- package/dist/index.cjs +7 -3
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# @graphql-mesh/transport-ws
|
2
2
|
|
3
|
-
## 1.0.0-alpha-
|
3
|
+
## 1.0.0-alpha-4c51bd8bb08df38e00c9d97ddb5d04633c181bce
|
4
4
|
|
5
5
|
### Major Changes
|
6
6
|
|
@@ -24,7 +24,7 @@
|
|
24
24
|
- Added dependency [`isomorphic-ws@^5.0.0` ↗︎](https://www.npmjs.com/package/isomorphic-ws/v/5.0.0) (to `dependencies`)
|
25
25
|
|
26
26
|
- Updated dependencies [[`9a763a5`](https://github.com/graphql-hive/gateway/commit/9a763a5de54ad4b033f410d6623da4cde79bd2b6), [`ddc90f3`](https://github.com/graphql-hive/gateway/commit/ddc90f330beb5551df50abf26b0a07d5c4d4f0b4), [`ddc90f3`](https://github.com/graphql-hive/gateway/commit/ddc90f330beb5551df50abf26b0a07d5c4d4f0b4), [`a4cb5cc`](https://github.com/graphql-hive/gateway/commit/a4cb5cc9b2807ccae5ce3631eb3705d929ee4599)]:
|
27
|
-
- @graphql-tools/executor-graphql-ws@2.0.0-alpha-
|
27
|
+
- @graphql-tools/executor-graphql-ws@2.0.0-alpha-4c51bd8bb08df38e00c9d97ddb5d04633c181bce
|
28
28
|
|
29
29
|
## 0.4.16
|
30
30
|
|
package/dist/index.cjs
CHANGED
@@ -5,7 +5,11 @@ var stringInterpolation = require('@graphql-mesh/string-interpolation');
|
|
5
5
|
var utils = require('@graphql-mesh/utils');
|
6
6
|
var executorGraphqlWs = require('@graphql-tools/executor-graphql-ws');
|
7
7
|
var graphqlWs = require('graphql-ws');
|
8
|
-
var
|
8
|
+
var WebSocket = require('isomorphic-ws');
|
9
|
+
|
10
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
11
|
+
|
12
|
+
var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
|
9
13
|
|
10
14
|
function switchProtocols(url) {
|
11
15
|
if (url.startsWith("https://")) {
|
@@ -48,11 +52,11 @@ var index = {
|
|
48
52
|
const executorLogger = logger?.child("GraphQL WS").child(hash);
|
49
53
|
wsExecutor = buildExecutor(
|
50
54
|
graphqlWs.createClient({
|
51
|
-
webSocketImpl: headers ? class WebSocketWithHeaders extends
|
55
|
+
webSocketImpl: headers ? class WebSocketWithHeaders extends WebSocket__default.default {
|
52
56
|
constructor(url, protocol) {
|
53
57
|
super(url, protocol, { headers });
|
54
58
|
}
|
55
|
-
} :
|
59
|
+
} : WebSocket__default.default,
|
56
60
|
url: wsUrl,
|
57
61
|
lazy: true,
|
58
62
|
lazyCloseTimeout: 3e3,
|
package/dist/index.js
CHANGED
@@ -3,7 +3,7 @@ import { getInterpolatedHeadersFactory } from '@graphql-mesh/string-interpolatio
|
|
3
3
|
import { makeAsyncDisposable, isDisposable, dispose } from '@graphql-mesh/utils';
|
4
4
|
import { buildGraphQLWSExecutor } from '@graphql-tools/executor-graphql-ws';
|
5
5
|
import { createClient } from 'graphql-ws';
|
6
|
-
import
|
6
|
+
import WebSocket from 'isomorphic-ws';
|
7
7
|
|
8
8
|
function switchProtocols(url) {
|
9
9
|
if (url.startsWith("https://")) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@graphql-mesh/transport-ws",
|
3
|
-
"version": "1.0.0-alpha-
|
3
|
+
"version": "1.0.0-alpha-4c51bd8bb08df38e00c9d97ddb5d04633c181bce",
|
4
4
|
"type": "module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -47,7 +47,7 @@
|
|
47
47
|
"@graphql-mesh/transport-common": "^0.7.27",
|
48
48
|
"@graphql-mesh/types": "^0.103.6",
|
49
49
|
"@graphql-mesh/utils": "^0.103.6",
|
50
|
-
"@graphql-tools/executor-graphql-ws": "2.0.0-alpha-
|
50
|
+
"@graphql-tools/executor-graphql-ws": "2.0.0-alpha-4c51bd8bb08df38e00c9d97ddb5d04633c181bce",
|
51
51
|
"@graphql-tools/utils": "^10.7.0",
|
52
52
|
"graphql-ws": "^6.0.2",
|
53
53
|
"isomorphic-ws": "^5.0.0",
|