@ardatan/graphql-helix
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -37,10 +37,3 @@ "use strict"; | ||
controller.enqueue(`---`); | ||
const iterator = asyncExecutionResult[Symbol.asyncIterator](); | ||
while (true) { | ||
const { done, value } = await iterator.next(); | ||
if (done) { | ||
controller.enqueue("\r\n-----\r\n"); | ||
controller.close(); | ||
break; | ||
} | ||
for await (const value of asyncExecutionResult) { | ||
const transformedResult = transformResult(value); | ||
@@ -61,2 +54,4 @@ const chunk = JSON.stringify(transformedResult); | ||
} | ||
controller.enqueue("\r\n-----\r\n"); | ||
controller.close(); | ||
} | ||
@@ -84,9 +79,3 @@ catch (e) { | ||
try { | ||
const iterator = asyncExecutionResult[Symbol.asyncIterator](); | ||
while (true) { | ||
const { done, value } = await iterator.next(); | ||
if (done) { | ||
controller.close(); | ||
break; | ||
} | ||
for await (const value of asyncExecutionResult) { | ||
const transformedResult = transformResult(value); | ||
@@ -96,2 +85,3 @@ const chunk = JSON.stringify(transformedResult); | ||
} | ||
controller.close(); | ||
} | ||
@@ -98,0 +88,0 @@ catch (e) { |
{ | ||
"name": "@ardatan/graphql-helix", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "A highly evolved GraphQL HTTP Server 🧬", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
2317158
10076