h3 1.15.7 → 1.15.8

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/index.cjs CHANGED
@@ -2152,10 +2152,10 @@ function cachedFn(fn) {
2152
2152
  }
2153
2153
  function _decodePath(url) {
2154
2154
  const qIndex = url.indexOf("?");
2155
- if (qIndex === -1) {
2156
- return ufo.decodePath(url);
2157
- }
2158
- return ufo.decodePath(url.slice(0, qIndex)) + url.slice(qIndex);
2155
+ const path = qIndex === -1 ? url : url.slice(0, qIndex);
2156
+ const query = qIndex === -1 ? "" : url.slice(qIndex);
2157
+ const decodedPath = path.includes("%25") ? ufo.decodePath(path.replace(/%25/g, "%2525")) : ufo.decodePath(path);
2158
+ return decodedPath + query;
2159
2159
  }
2160
2160
  function websocketOptions(evResolver, appOptions) {
2161
2161
  return {
package/dist/index.mjs CHANGED
@@ -2145,10 +2145,10 @@ function cachedFn(fn) {
2145
2145
  }
2146
2146
  function _decodePath(url) {
2147
2147
  const qIndex = url.indexOf("?");
2148
- if (qIndex === -1) {
2149
- return decodePath(url);
2150
- }
2151
- return decodePath(url.slice(0, qIndex)) + url.slice(qIndex);
2148
+ const path = qIndex === -1 ? url : url.slice(0, qIndex);
2149
+ const query = qIndex === -1 ? "" : url.slice(qIndex);
2150
+ const decodedPath = path.includes("%25") ? decodePath(path.replace(/%25/g, "%2525")) : decodePath(path);
2151
+ return decodedPath + query;
2152
2152
  }
2153
2153
  function websocketOptions(evResolver, appOptions) {
2154
2154
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "h3",
3
- "version": "1.15.7",
3
+ "version": "1.15.8",
4
4
  "description": "Minimal H(TTP) framework built for high performance and portability.",
5
5
  "license": "MIT",
6
6
  "repository": "h3js/h3",