@whatwg-node/server 0.4.11 → 0.4.12
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 +0 -5
- package/index.mjs +0 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -230,12 +230,7 @@ RequestCtor = fetch.Request) {
|
|
|
230
230
|
event.respondWith(response$);
|
|
231
231
|
}
|
|
232
232
|
function handleRequestWithWaitUntil(request, ...ctx) {
|
|
233
|
-
var _a;
|
|
234
233
|
const serverContext = ctx.length > 1 ? Object.assign({}, ...ctx) : ctx[0] || {};
|
|
235
|
-
if ('process' in globalThis && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a['bun']) != null) {
|
|
236
|
-
// This is required for bun
|
|
237
|
-
request.text();
|
|
238
|
-
}
|
|
239
234
|
if (!('waitUntil' in serverContext)) {
|
|
240
235
|
const waitUntilPromises = [];
|
|
241
236
|
const response$ = handleRequest(request, {
|
package/index.mjs
CHANGED
|
@@ -226,12 +226,7 @@ RequestCtor = Request) {
|
|
|
226
226
|
event.respondWith(response$);
|
|
227
227
|
}
|
|
228
228
|
function handleRequestWithWaitUntil(request, ...ctx) {
|
|
229
|
-
var _a;
|
|
230
229
|
const serverContext = ctx.length > 1 ? Object.assign({}, ...ctx) : ctx[0] || {};
|
|
231
|
-
if ('process' in globalThis && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a['bun']) != null) {
|
|
232
|
-
// This is required for bun
|
|
233
|
-
request.text();
|
|
234
|
-
}
|
|
235
230
|
if (!('waitUntil' in serverContext)) {
|
|
236
231
|
const waitUntilPromises = [];
|
|
237
232
|
const response$ = handleRequest(request, {
|