@kiyasov/platform-hono 1.2.9 → 1.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiyasov/platform-hono",
3
- "version": "1.2.9",
3
+ "version": "1.3.0",
4
4
  "description": "Nest adapter for Hono",
5
5
  "author": "Islam Kiiasov",
6
6
  "repository": {
@@ -56,6 +56,7 @@ export class HonoAdapter extends AbstractHttpAdapter<
56
56
 
57
57
  private createRouteHandler(routeHandler: HonoHandler) {
58
58
  return async (ctx: Context, next: Next) => {
59
+ ctx.req["params"] = ctx.req.param();
59
60
  await routeHandler(ctx.req, ctx, next);
60
61
  return this.send(ctx);
61
62
  };
@@ -263,6 +264,7 @@ export class HonoAdapter extends AbstractHttpAdapter<
263
264
  public initHttpServer(options: NestApplicationOptions) {
264
265
  this.instance.use((ctx, next) => {
265
266
  ctx.req["headers"] = Object.fromEntries(ctx.req.raw.headers);
267
+
266
268
  return next();
267
269
  });
268
270
  const isHttpsEnabled = options?.httpsOptions;