hono 3.2.0 → 3.2.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 +2 -1
- package/dist/hono-base.js +2 -1
- package/package.json +1 -1
package/dist/cjs/hono-base.js
CHANGED
|
@@ -156,7 +156,8 @@ class Hono extends defineDynamicClass() {
|
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
mount(path, applicationHandler, optionHandler) {
|
|
159
|
-
const
|
|
159
|
+
const mergedPath = (0, import_url.mergePath)(this._basePath, path);
|
|
160
|
+
const pathPrefixLength = mergedPath === "/" ? 0 : mergedPath.length;
|
|
160
161
|
const handler = async (c, next) => {
|
|
161
162
|
let executionContext = void 0;
|
|
162
163
|
try {
|
package/dist/hono-base.js
CHANGED
|
@@ -134,7 +134,8 @@ var Hono = class extends defineDynamicClass() {
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
mount(path, applicationHandler, optionHandler) {
|
|
137
|
-
const
|
|
137
|
+
const mergedPath = mergePath(this._basePath, path);
|
|
138
|
+
const pathPrefixLength = mergedPath === "/" ? 0 : mergedPath.length;
|
|
138
139
|
const handler = async (c, next) => {
|
|
139
140
|
let executionContext = void 0;
|
|
140
141
|
try {
|