hono 4.9.5 → 4.9.6

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.
@@ -100,10 +100,7 @@ const tryDecode = (str, decoder) => {
100
100
  const tryDecodeURI = (str) => tryDecode(str, decodeURI);
101
101
  const getPath = (request) => {
102
102
  const url = request.url;
103
- const start = url.indexOf(
104
- "/",
105
- url.charCodeAt(9) === 58 ? 13 : 8
106
- );
103
+ const start = url.indexOf("/", url.indexOf(":") + 4);
107
104
  let i = start;
108
105
  for (; i < url.length; i++) {
109
106
  const charCode = url.charCodeAt(i);
package/dist/utils/url.js CHANGED
@@ -67,10 +67,7 @@ var tryDecode = (str, decoder) => {
67
67
  var tryDecodeURI = (str) => tryDecode(str, decodeURI);
68
68
  var getPath = (request) => {
69
69
  const url = request.url;
70
- const start = url.indexOf(
71
- "/",
72
- url.charCodeAt(9) === 58 ? 13 : 8
73
- );
70
+ const start = url.indexOf("/", url.indexOf(":") + 4);
74
71
  let i = start;
75
72
  for (; i < url.length; i++) {
76
73
  const charCode = url.charCodeAt(i);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono",
3
- "version": "4.9.5",
3
+ "version": "4.9.6",
4
4
  "description": "Web framework built on Web Standards",
5
5
  "main": "dist/cjs/index.js",
6
6
  "type": "module",