@graphql-tools/executor-graphql-ws
Advanced tools
Comparing version 1.1.0 to 1.1.1-rc-20231027100848-22c58f5c
@@ -5,6 +5,6 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const utils_1 = require("@graphql-tools/utils"); | ||
const graphql_1 = require("graphql"); | ||
const graphql_ws_1 = require("graphql-ws"); | ||
const isomorphic_ws_1 = tslib_1.__importDefault(require("isomorphic-ws")); | ||
const utils_1 = require("@graphql-tools/utils"); | ||
function isClient(client) { | ||
@@ -21,2 +21,3 @@ return 'subscribe' in client; | ||
graphqlWSClient = (0, graphql_ws_1.createClient)({ | ||
...clientOptionsOrClient, | ||
webSocketImpl: isomorphic_ws_1.default, | ||
@@ -30,3 +31,2 @@ lazy: true, | ||
}, | ||
...clientOptionsOrClient, | ||
}); | ||
@@ -33,0 +33,0 @@ if (clientOptionsOrClient.onClient) { |
@@ -1,5 +0,5 @@ | ||
import { getOperationASTFromRequest } from '@graphql-tools/utils'; | ||
import { print } from 'graphql'; | ||
import { createClient } from 'graphql-ws'; | ||
import WebSocket from 'isomorphic-ws'; | ||
import { getOperationASTFromRequest, } from '@graphql-tools/utils'; | ||
function isClient(client) { | ||
@@ -16,2 +16,3 @@ return 'subscribe' in client; | ||
graphqlWSClient = createClient({ | ||
...clientOptionsOrClient, | ||
webSocketImpl: WebSocket, | ||
@@ -25,3 +26,2 @@ lazy: true, | ||
}, | ||
...clientOptionsOrClient, | ||
}); | ||
@@ -28,0 +28,0 @@ if (clientOptionsOrClient.onClient) { |
{ | ||
"name": "@graphql-tools/executor-graphql-ws", | ||
"version": "1.1.0", | ||
"version": "1.1.1-rc-20231027100848-22c58f5c", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -10,8 +10,8 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@graphql-tools/utils": "^10.0.2", | ||
"@types/ws": "^8.0.0", | ||
"ws": "^8.13.0", | ||
"graphql-ws": "^5.14.0", | ||
"isomorphic-ws": "^5.0.0", | ||
"@graphql-tools/utils": "^10.0.2", | ||
"graphql-ws": "^5.14.0", | ||
"tslib": "^2.4.0" | ||
"tslib": "^2.4.0", | ||
"ws": "^8.13.0" | ||
}, | ||
@@ -18,0 +18,0 @@ "repository": { |
@@ -0,3 +1,3 @@ | ||
import { Client, ClientOptions } from 'graphql-ws'; | ||
import { Executor } from '@graphql-tools/utils'; | ||
import { Client, ClientOptions } from 'graphql-ws'; | ||
interface GraphQLWSExecutorOptions extends ClientOptions { | ||
@@ -4,0 +4,0 @@ onClient?: (client: Client) => void; |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
7005
2