hono 3.8.0 → 3.8.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.
@@ -134,7 +134,7 @@ class Hono extends defineDynamicClass() {
134
134
  return subApp;
135
135
  }
136
136
  app.routes.map((r) => {
137
- const handler = app.errorHandler === errorHandler ? r.handler : async (c, next) => (await (0, import_compose.compose)([[r.handler, {}]], app.errorHandler)(c, next)).res;
137
+ const handler = app.errorHandler === errorHandler ? r.handler : async (c, next) => (await (0, import_compose.compose)([], app.errorHandler)(c, () => r.handler(c, next))).res;
138
138
  subApp.addRoute(r.method, r.path, handler);
139
139
  });
140
140
  return this;
package/dist/hono-base.js CHANGED
@@ -112,7 +112,7 @@ var Hono = class extends defineDynamicClass() {
112
112
  return subApp;
113
113
  }
114
114
  app.routes.map((r) => {
115
- const handler = app.errorHandler === errorHandler ? r.handler : async (c, next) => (await compose([[r.handler, {}]], app.errorHandler)(c, next)).res;
115
+ const handler = app.errorHandler === errorHandler ? r.handler : async (c, next) => (await compose([], app.errorHandler)(c, () => r.handler(c, next))).res;
116
116
  subApp.addRoute(r.method, r.path, handler);
117
117
  });
118
118
  return this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono",
3
- "version": "3.8.0",
3
+ "version": "3.8.1",
4
4
  "description": "Ultrafast web framework for the Edges",
5
5
  "main": "dist/cjs/index.js",
6
6
  "type": "module",