h3 0.7.0 → 0.7.1

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/dist/index.cjs CHANGED
@@ -503,8 +503,9 @@ function createRouter() {
503
503
  statusMessage: `Method ${method} is not allowed on this route.`
504
504
  });
505
505
  }
506
- event.event.context.params = matched.params || {};
507
- event.req.context.params = event.event.params;
506
+ const params = matched.params || {};
507
+ event.event.context.params = params;
508
+ event.req.context.params = params;
508
509
  return handler(event);
509
510
  });
510
511
  return router;
package/dist/index.mjs CHANGED
@@ -495,8 +495,9 @@ function createRouter() {
495
495
  statusMessage: `Method ${method} is not allowed on this route.`
496
496
  });
497
497
  }
498
- event.event.context.params = matched.params || {};
499
- event.req.context.params = event.event.params;
498
+ const params = matched.params || {};
499
+ event.event.context.params = params;
500
+ event.req.context.params = params;
500
501
  return handler(event);
501
502
  });
502
503
  return router;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "h3",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Tiny JavaScript Server",
5
5
  "repository": "unjs/h3",
6
6
  "license": "MIT",