@whatwg-node/server 0.4.10-alpha-20220927134607-bd5c990 → 0.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -2
- package/index.mjs +1 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -153,8 +153,7 @@ async function sendNodeResponse({ headers, status, statusText, body }, serverRes
|
|
|
153
153
|
else if (isAsyncIterable(body)) {
|
|
154
154
|
for await (const chunk of body) {
|
|
155
155
|
if (!serverResponse.write(chunk)) {
|
|
156
|
-
|
|
157
|
-
return;
|
|
156
|
+
break;
|
|
158
157
|
}
|
|
159
158
|
}
|
|
160
159
|
serverResponse.end(resolve);
|
package/index.mjs
CHANGED
|
@@ -149,8 +149,7 @@ async function sendNodeResponse({ headers, status, statusText, body }, serverRes
|
|
|
149
149
|
else if (isAsyncIterable(body)) {
|
|
150
150
|
for await (const chunk of body) {
|
|
151
151
|
if (!serverResponse.write(chunk)) {
|
|
152
|
-
|
|
153
|
-
return;
|
|
152
|
+
break;
|
|
154
153
|
}
|
|
155
154
|
}
|
|
156
155
|
serverResponse.end(resolve);
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whatwg-node/server",
|
|
3
|
-
"version": "0.4.10
|
|
3
|
+
"version": "0.4.10",
|
|
4
4
|
"description": "Fetch API compliant HTTP Server adapter",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@types/node": "^18.0.6"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@whatwg-node/fetch": "0.4.6
|
|
10
|
+
"@whatwg-node/fetch": "0.4.6",
|
|
11
11
|
"tslib": "^2.3.1"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|