🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@hono/node-server

Package Overview
Dependencies
Maintainers
1
Versions
99
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.11
to
2.0.12
+3
-4
dist/index.cjs

@@ -497,3 +497,3 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

this.#body = body;
if (init instanceof Response$1) {
if (init instanceof GlobalResponse) {
const cachedGlobalResponse = init[responseCache];

@@ -504,6 +504,5 @@ if (cachedGlobalResponse) {

return;
} else {
this.#init = init.#init;
headers = new Headers(init.headers);
}
this.#init = init instanceof Response$1 ? init.#init : init;
headers = new Headers(init.headers);
} else this.#init = init;

@@ -510,0 +509,0 @@ if (body == null || typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array) this[cacheKey] = [

@@ -496,3 +496,3 @@ import { t as X_ALREADY_SENT } from "./constants-BLSFu_RU.mjs";

this.#body = body;
if (init instanceof Response$1) {
if (init instanceof GlobalResponse) {
const cachedGlobalResponse = init[responseCache];

@@ -503,6 +503,5 @@ if (cachedGlobalResponse) {

return;
} else {
this.#init = init.#init;
headers = new Headers(init.headers);
}
this.#init = init instanceof Response$1 ? init.#init : init;
headers = new Headers(init.headers);
} else this.#init = init;

@@ -509,0 +508,0 @@ if (body == null || typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array) this[cacheKey] = [

{
"name": "@hono/node-server",
"version": "2.0.11",
"version": "2.0.12",
"description": "Node.js Adapter for Hono",

@@ -87,3 +87,2 @@ "main": "dist/index.mjs",

"@types/node": "^20.10.0",
"@types/supertest": "^2.0.12",
"@types/ws": "^8.18.1",

@@ -96,3 +95,2 @@ "@whatwg-node/fetch": "^0.9.14",

"publint": "^0.3.18",
"supertest": "^7.2.2",
"tsdown": "^0.20.3",

@@ -99,0 +97,0 @@ "typescript": "^5.3.2",