@graphql-tools/executor-legacy-ws
Advanced tools
Comparing version 1.0.0-rc-20230519104353-b09f3180 to 1.0.0-rc-20230519104627-f6fea064
@@ -25,3 +25,3 @@ "use strict"; | ||
followRedirects: true, | ||
headers: options === null || options === void 0 ? void 0 : options.headers, | ||
headers: options?.headers, | ||
rejectUnauthorized: false, | ||
@@ -32,8 +32,8 @@ skipUTF8Validation: true, | ||
let payload = {}; | ||
switch (typeof (options === null || options === void 0 ? void 0 : options.connectionParams)) { | ||
switch (typeof options?.connectionParams) { | ||
case 'function': | ||
payload = options === null || options === void 0 ? void 0 : options.connectionParams(); | ||
payload = options?.connectionParams(); | ||
break; | ||
case 'object': | ||
payload = options === null || options === void 0 ? void 0 : options.connectionParams; | ||
payload = options?.connectionParams; | ||
break; | ||
@@ -108,3 +108,3 @@ } | ||
unsubscribe: () => { | ||
websocket === null || websocket === void 0 ? void 0 : websocket.send(JSON.stringify({ | ||
websocket?.send(JSON.stringify({ | ||
type: LEGACY_WS.STOP, | ||
@@ -111,0 +111,0 @@ id, |
@@ -22,3 +22,3 @@ import { observableToAsyncIterable } from '@graphql-tools/utils'; | ||
followRedirects: true, | ||
headers: options === null || options === void 0 ? void 0 : options.headers, | ||
headers: options?.headers, | ||
rejectUnauthorized: false, | ||
@@ -29,8 +29,8 @@ skipUTF8Validation: true, | ||
let payload = {}; | ||
switch (typeof (options === null || options === void 0 ? void 0 : options.connectionParams)) { | ||
switch (typeof options?.connectionParams) { | ||
case 'function': | ||
payload = options === null || options === void 0 ? void 0 : options.connectionParams(); | ||
payload = options?.connectionParams(); | ||
break; | ||
case 'object': | ||
payload = options === null || options === void 0 ? void 0 : options.connectionParams; | ||
payload = options?.connectionParams; | ||
break; | ||
@@ -105,3 +105,3 @@ } | ||
unsubscribe: () => { | ||
websocket === null || websocket === void 0 ? void 0 : websocket.send(JSON.stringify({ | ||
websocket?.send(JSON.stringify({ | ||
type: LEGACY_WS.STOP, | ||
@@ -108,0 +108,0 @@ id, |
{ | ||
"name": "@graphql-tools/executor-legacy-ws", | ||
"version": "1.0.0-rc-20230519104353-b09f3180", | ||
"version": "1.0.0-rc-20230519104627-f6fea064", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -11,3 +11,3 @@ "sideEffects": false, | ||
"@types/ws": "^8.0.0", | ||
"@graphql-tools/utils": "10.0.0-rc-20230519104353-b09f3180", | ||
"@graphql-tools/utils": "10.0.0-rc-20230519104627-f6fea064", | ||
"isomorphic-ws": "5.0.0", | ||
@@ -14,0 +14,0 @@ "ws": "8.13.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12369
+ Added@graphql-tools/utils@10.0.0-rc-20230519104627-f6fea064(transitive)
+ Added@graphql-typed-document-node/core@3.2.0(transitive)
Updated@graphql-tools/utils@10.0.0-rc-20230519104627-f6fea064