@whatwg-node/server
Advanced tools
Comparing version 0.4.10 to 0.4.11
@@ -148,4 +148,4 @@ 'use strict'; | ||
serverResponse.once('close', () => { | ||
body.destroy(); | ||
resolve(); | ||
body.destroy(); | ||
}); | ||
@@ -259,5 +259,5 @@ body.pipe(serverResponse); | ||
if (isRequestInit(initOrCtx)) { | ||
return handleRequestWithWaitUntil(new RequestCtor(input.toString(), initOrCtx), ...restOfCtx); | ||
return handleRequestWithWaitUntil(new RequestCtor(input, initOrCtx), ...restOfCtx); | ||
} | ||
return handleRequestWithWaitUntil(new RequestCtor(input.toString()), ...maybeCtx); | ||
return handleRequestWithWaitUntil(new RequestCtor(input), ...maybeCtx); | ||
} | ||
@@ -276,3 +276,3 @@ return handleRequestWithWaitUntil(input, ...maybeCtx); | ||
if (isServerResponse(initOrCtxOrRes)) { | ||
throw new Error('Got Node response without Node request'); | ||
throw new TypeError('Got Node response without Node request'); | ||
} | ||
@@ -279,0 +279,0 @@ // Is input a container object over Request? |
{ | ||
"name": "@whatwg-node/server", | ||
"version": "0.4.10", | ||
"version": "0.4.11", | ||
"description": "Fetch API compliant HTTP Server adapter", | ||
@@ -10,3 +10,3 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@whatwg-node/fetch": "0.4.6", | ||
"@whatwg-node/fetch": "0.4.7", | ||
"tslib": "^2.3.1" | ||
@@ -13,0 +13,0 @@ }, |
Sorry, the diff of this file is not supported yet
41996
+ Added@whatwg-node/fetch@0.4.7(transitive)
- Removed@whatwg-node/fetch@0.4.6(transitive)
Updated@whatwg-node/fetch@0.4.7