@whatwg-node/server 0.4.11 → 0.4.13

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.
Files changed (3) hide show
  1. package/index.js +0 -5
  2. package/index.mjs +0 -5
  3. package/package.json +2 -2
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, {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@whatwg-node/server",
3
- "version": "0.4.11",
3
+ "version": "0.4.13",
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.7",
10
+ "@whatwg-node/fetch": "0.5.0",
11
11
  "tslib": "^2.3.1"
12
12
  },
13
13
  "repository": {