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 +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
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
|
-
|
|
507
|
-
event.
|
|
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
|
-
|
|
499
|
-
event.
|
|
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;
|