🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

@hono/node-server

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hono/node-server - npm Package Compare versions

Comparing version
2.0.4
to
2.0.5
+1
-1
dist/serve-static.cjs

@@ -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);

{
"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",