@depup/hono 4.13.10-depup.0 → 4.13.11-depup.0

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/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/hono
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [hono](https://www.npmjs.com/package/hono) @ 4.13.10 |
17
- | Processed | 2026-09-28 |
16
+ | Original | [hono](https://www.npmjs.com/package/hono) @ 4.13.11 |
17
+ | Processed | 2026-09-29 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 0 |
20
20
 
package/changes.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "bumped": {},
3
- "timestamp": "2026-09-28T16:11:25.863Z",
3
+ "timestamp": "2026-09-29T08:14:19.115Z",
4
4
  "totalUpdated": 0
5
5
  }
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_helper_websocket_index = require("../../helper/websocket/index.js");
3
2
  const require_adapter_bun_server = require("./server.js");
3
+ const require_helper_websocket_index = require("../../helper/websocket/index.js");
4
4
  //#region src/adapter/bun/websocket.ts
5
5
  /**
6
6
  * @internal
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_utils_accept = require("../../utils/accept.js");
3
2
  const require_helper_cookie_index = require("../../helper/cookie/index.js");
3
+ const require_utils_accept = require("../../utils/accept.js");
4
4
  //#region src/middleware/language/language.ts
5
5
  const DEFAULT_OPTIONS = {
6
6
  order: [
@@ -23,6 +23,7 @@ const serveStatic = (options) => {
23
23
  let filename;
24
24
  if (options.path) filename = options.path;
25
25
  else try {
26
+ if (!options.allowPercentInPath && c.req.path.includes("%")) throw new Error();
26
27
  filename = require_utils_url.tryDecodeURI(c.req.path);
27
28
  if (/(?:^|[\/\\])\.{1,2}(?:$|[\/\\])|[\/\\]{2,}|\\/.test(filename)) throw new Error();
28
29
  } catch {
@@ -1,5 +1,5 @@
1
- import { getCookie, setCookie } from "../../helper/cookie/index.js";
2
1
  import { parseAccept } from "../../utils/accept.js";
2
+ import { getCookie, setCookie } from "../../helper/cookie/index.js";
3
3
  //#region src/middleware/language/language.ts
4
4
  const DEFAULT_OPTIONS = {
5
5
  order: [
@@ -22,6 +22,7 @@ const serveStatic = (options) => {
22
22
  let filename;
23
23
  if (options.path) filename = options.path;
24
24
  else try {
25
+ if (!options.allowPercentInPath && c.req.path.includes("%")) throw new Error();
25
26
  filename = tryDecodeURI(c.req.path);
26
27
  if (/(?:^|[\/\\])\.{1,2}(?:$|[\/\\])|[\/\\]{2,}|\\/.test(filename)) throw new Error();
27
28
  } catch {
@@ -5,6 +5,8 @@ export type ServeStaticOptions<E extends Env = Env> = {
5
5
  root?: string;
6
6
  path?: string;
7
7
  precompressed?: boolean;
8
+ /** Allow percent signs in the routed request path. Defaults to false. */
9
+ allowPercentInPath?: boolean;
8
10
  mimes?: Record<string, string>;
9
11
  rewriteRequestPath?: (path: string) => string;
10
12
  onFound?: (path: string, c: Context<E>) => void | Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depup/hono",
3
- "version": "4.13.10-depup.0",
3
+ "version": "4.13.11-depup.0",
4
4
  "description": "Web framework built on Web Standards (with updated dependencies)",
5
5
  "main": "dist/cjs/index.js",
6
6
  "type": "module",
@@ -711,8 +711,8 @@
711
711
  "changes": {},
712
712
  "depsUpdated": 0,
713
713
  "originalPackage": "hono",
714
- "originalVersion": "4.13.10",
715
- "processedAt": "2026-09-28T16:11:53.106Z",
714
+ "originalVersion": "4.13.11",
715
+ "processedAt": "2026-09-29T08:14:40.422Z",
716
716
  "smokeTest": "passed"
717
717
  }
718
718
  }