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.
- package/dist/cjs/hono-base.js +1 -1
- package/dist/hono-base.js +1 -1
- package/package.json +1 -1
package/dist/cjs/hono-base.js
CHANGED
|
@@ -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)([
|
|
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([
|
|
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;
|