@graphql-tools/executor-graphql-ws
Advanced tools
Comparing version 1.3.3-alpha-63d80f9d08b5d8448f4bfb8b04aeff28b977dec8 to 1.3.3-alpha-67a479c42b89dfb48cde398cccbd8eaa73613fb9
# @graphql-tools/executor-graphql-ws | ||
## 1.3.3-alpha-63d80f9d08b5d8448f4bfb8b04aeff28b977dec8 | ||
## 1.3.3-alpha-67a479c42b89dfb48cde398cccbd8eaa73613fb9 | ||
@@ -5,0 +5,0 @@ ### Patch Changes |
@@ -1,2 +0,2 @@ | ||
import { DisposableExecutor } from '@graphql-tools/utils'; | ||
import { DisposableAsyncExecutor } from '@graphql-tools/utils'; | ||
import { print } from 'graphql'; | ||
@@ -16,4 +16,4 @@ import { Client, ClientOptions } from 'graphql-ws'; | ||
} | ||
declare function buildGraphQLWSExecutor(clientOptionsOrClient: GraphQLWSExecutorOptions | Client): DisposableExecutor; | ||
declare function buildGraphQLWSExecutor(clientOptionsOrClient: GraphQLWSExecutorOptions | Client): DisposableAsyncExecutor; | ||
export { buildGraphQLWSExecutor }; |
@@ -67,9 +67,10 @@ import { memoize1, getOperationASTFromRequest } from '@graphql-tools/utils'; | ||
}; | ||
const disposableExecutor = executor; | ||
disposableExecutor[DisposableSymbols.asyncDispose] = function disposeWS() { | ||
return graphqlWSClient.dispose(); | ||
}; | ||
return disposableExecutor; | ||
Object.defineProperty(executor, DisposableSymbols.asyncDispose, { | ||
value: function disposeWS() { | ||
return graphqlWSClient.dispose(); | ||
} | ||
}); | ||
return executor; | ||
} | ||
export { buildGraphQLWSExecutor }; |
{ | ||
"name": "@graphql-tools/executor-graphql-ws", | ||
"version": "1.3.3-alpha-63d80f9d08b5d8448f4bfb8b04aeff28b977dec8", | ||
"version": "1.3.3-alpha-67a479c42b89dfb48cde398cccbd8eaa73613fb9", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "A set of utils for faster development of GraphQL tools", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
165
0
17990