@hono/node-server
Advanced tools
@@ -46,3 +46,3 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
| filename = tryDecodeURI(c.req.path); | ||
| if (/(?:^|[\/\\])\.{1,2}(?:$|[\/\\])|[\/\\]{2,}/.test(filename)) throw new Error(); | ||
| if (/(?:^|[\/\\])\.{1,2}(?:$|[\/\\])|[\/\\]{2,}|\\/.test(filename)) throw new Error(); | ||
| } catch { | ||
@@ -49,0 +49,0 @@ await options.onNotFound?.(c.req.path, c); |
@@ -45,3 +45,3 @@ import { createStreamBody } from "./utils/stream.mjs"; | ||
| filename = tryDecodeURI(c.req.path); | ||
| if (/(?:^|[\/\\])\.{1,2}(?:$|[\/\\])|[\/\\]{2,}/.test(filename)) throw new Error(); | ||
| if (/(?:^|[\/\\])\.{1,2}(?:$|[\/\\])|[\/\\]{2,}|\\/.test(filename)) throw new Error(); | ||
| } catch { | ||
@@ -48,0 +48,0 @@ await options.onNotFound?.(c.req.path, c); |
+1
-1
| { | ||
| "name": "@hono/node-server", | ||
| "version": "2.0.4", | ||
| "version": "2.0.5", | ||
| "description": "Node.js Adapter for Hono", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.mjs", |
108214
0.01%