@graphql-tools/executor-graphql-ws
Advanced tools
Comparing version 1.3.3-alpha-d56733b7450c611a8c50cfb65e083c7becf078f5 to 1.3.3-alpha-d8992dcb7353674bfea73226e85cb026371c45fb
# @graphql-tools/executor-graphql-ws | ||
## 1.3.3-alpha-d56733b7450c611a8c50cfb65e083c7becf078f5 | ||
## 1.3.3-alpha-d8992dcb7353674bfea73226e85cb026371c45fb | ||
@@ -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-d56733b7450c611a8c50cfb65e083c7becf078f5", | ||
"version": "1.3.3-alpha-d8992dcb7353674bfea73226e85cb026371c45fb", | ||
"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
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
165
17990