@whatwg-node/server 0.4.1 → 0.4.2

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 +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -209,7 +209,7 @@ RequestCtor = fetch.Request) {
209
209
  const response$ = handleRequest(event.request, event);
210
210
  event.respondWith(response$);
211
211
  }
212
- function genericRequestHandler(input, ctx, ...rest) {
212
+ function genericRequestHandler(input, ctx = {}, ...rest) {
213
213
  var _a;
214
214
  if ('process' in globalThis && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a['bun']) != null) {
215
215
  // This is required for bun
package/index.mjs CHANGED
@@ -205,7 +205,7 @@ RequestCtor = Request) {
205
205
  const response$ = handleRequest(event.request, event);
206
206
  event.respondWith(response$);
207
207
  }
208
- function genericRequestHandler(input, ctx, ...rest) {
208
+ function genericRequestHandler(input, ctx = {}, ...rest) {
209
209
  var _a;
210
210
  if ('process' in globalThis && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a['bun']) != null) {
211
211
  // This is required for bun
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whatwg-node/server",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Fetch API compliant HTTP Server adapter",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {