@graphql-tools/executor-graphql-ws
Advanced tools
Comparing version 1.3.5 to 1.3.6-alpha-8299bc391369a32bcc87fafa8ef50fad0e18c79c
# @graphql-tools/executor-graphql-ws | ||
## 1.3.6-alpha-8299bc391369a32bcc87fafa8ef50fad0e18c79c | ||
### Patch Changes | ||
- [#373](https://github.com/graphql-hive/gateway/pull/373) [`e257b4a`](https://github.com/graphql-hive/gateway/commit/e257b4a50f536ce0c94147453ec05f9aa82e181f) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: | ||
- Updated dependency [`@graphql-tools/utils@^10.7.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.7.0) (from `^10.6.2`, in `dependencies`) | ||
## 1.3.5 | ||
@@ -4,0 +12,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { memoize1, getOperationASTFromRequest } from '@graphql-tools/utils'; | ||
import { memoize1, getOperationASTFromRequest, registerAbortSignalListener } from '@graphql-tools/utils'; | ||
import { DisposableSymbols } from '@whatwg-node/disposablestack'; | ||
@@ -47,3 +47,5 @@ import { print } from 'graphql'; | ||
extensions, | ||
operationType = getOperationASTFromRequest(executionRequest).operation | ||
operationType = getOperationASTFromRequest(executionRequest).operation, | ||
info, | ||
signal = info?.signal | ||
} = executionRequest; | ||
@@ -63,2 +65,7 @@ if (extensions?.["connectionParams"] && typeof extensions?.["connectionParams"] === "object") { | ||
}); | ||
if (iterableIterator.return && signal) { | ||
registerAbortSignalListener(signal, () => { | ||
iterableIterator.return?.(); | ||
}); | ||
} | ||
if (operationType === "subscription") { | ||
@@ -65,0 +72,0 @@ return iterableIterator; |
{ | ||
"name": "@graphql-tools/executor-graphql-ws", | ||
"version": "1.3.5", | ||
"version": "1.3.6-alpha-8299bc391369a32bcc87fafa8ef50fad0e18c79c", | ||
"type": "module", | ||
@@ -42,3 +42,3 @@ "description": "A set of utils for faster development of GraphQL tools", | ||
"dependencies": { | ||
"@graphql-tools/utils": "^10.6.2", | ||
"@graphql-tools/utils": "^10.7.0", | ||
"@whatwg-node/disposablestack": "^0.0.5", | ||
@@ -53,5 +53,5 @@ "graphql-ws": "^5.14.0", | ||
"graphql": "^16.9.0", | ||
"pkgroll": "2.5.1" | ||
"pkgroll": "2.6.0" | ||
}, | ||
"sideEffects": false | ||
} |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
19663
179
2
Updated@graphql-tools/utils@^10.7.0