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.
@@ -156,7 +156,8 @@ class Hono extends defineDynamicClass() {
156
156
  });
157
157
  }
158
158
  mount(path, applicationHandler, optionHandler) {
159
- const pathPrefixLength = (0, import_url.mergePath)(this._basePath, path).length;
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 pathPrefixLength = mergePath(this._basePath, path).length;
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Ultrafast web framework for the Edges",
5
5
  "main": "dist/cjs/index.js",
6
6
  "type": "module",