@graphql-tools/executor-http
Advanced tools
Comparing version 1.1.10-alpha-63d80f9d08b5d8448f4bfb8b04aeff28b977dec8 to 1.1.10-alpha-6bf80c3816666dd2031fd93cfc3ac9173e3387a2
# @graphql-tools/executor-http | ||
## 1.1.10-alpha-63d80f9d08b5d8448f4bfb8b04aeff28b977dec8 | ||
## 1.1.10-alpha-6bf80c3816666dd2031fd93cfc3ac9173e3387a2 | ||
@@ -11,2 +11,4 @@ ### Patch Changes | ||
- [#98](https://github.com/graphql-hive/gateway/pull/98) [`697308d`](https://github.com/graphql-hive/gateway/commit/697308df3b2dd96f28dc65a5f5361a911077e022) Thanks [@ardatan](https://github.com/ardatan)! - Bun support by using native Bun API whenever possible | ||
## 1.1.9 | ||
@@ -13,0 +15,0 @@ |
@@ -126,5 +126,10 @@ import { isAsyncIterable, isPromise, fakePromise, inspect, mapAsyncIterator, mergeIncrementalResult, memoize1, getOperationASTFromRequest, createGraphQLError } from '@graphql-tools/utils'; | ||
reader.closed.then(stop).catch(stop); | ||
stop.finally(() => reader.cancel()); | ||
stop.then(() => reader.releaseLock()).catch((err) => { | ||
reader.cancel(err); | ||
}); | ||
let currChunk = ""; | ||
async function pump() { | ||
if (!body?.locked) { | ||
return stop(); | ||
} | ||
const { done, value: chunk } = await reader.read(); | ||
@@ -131,0 +136,0 @@ if (done) { |
{ | ||
"name": "@graphql-tools/executor-http", | ||
"version": "1.1.10-alpha-63d80f9d08b5d8448f4bfb8b04aeff28b977dec8", | ||
"version": "1.1.10-alpha-6bf80c3816666dd2031fd93cfc3ac9173e3387a2", | ||
"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
62596
1175