Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hono/node-server

Package Overview
Dependencies
Maintainers
0
Versions
53
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 1.13.4 to 1.13.5

6

dist/index.js

@@ -216,5 +216,7 @@ "use strict";

const res = {};
if (!(headers instanceof Headers)) {
headers = new Headers(headers ?? void 0);
}
const cookies = [];
const entries = headers instanceof Headers ? headers.entries() : Object.entries(headers).filter(([, value]) => value);
for (const [k, v] of entries) {
for (const [k, v] of headers) {
if (k === "set-cookie") {

@@ -221,0 +223,0 @@ cookies.push(v);

@@ -210,5 +210,7 @@ "use strict";

const res = {};
if (!(headers instanceof Headers)) {
headers = new Headers(headers ?? void 0);
}
const cookies = [];
const entries = headers instanceof Headers ? headers.entries() : Object.entries(headers).filter(([, value]) => value);
for (const [k, v] of entries) {
for (const [k, v] of headers) {
if (k === "set-cookie") {

@@ -215,0 +217,0 @@ cookies.push(v);

@@ -33,5 +33,7 @@ "use strict";

const res = {};
if (!(headers instanceof Headers)) {
headers = new Headers(headers ?? void 0);
}
const cookies = [];
const entries = headers instanceof Headers ? headers.entries() : Object.entries(headers).filter(([, value]) => value);
for (const [k, v] of entries) {
for (const [k, v] of headers) {
if (k === "set-cookie") {

@@ -38,0 +40,0 @@ cookies.push(v);

@@ -212,5 +212,7 @@ "use strict";

const res = {};
if (!(headers instanceof Headers)) {
headers = new Headers(headers ?? void 0);
}
const cookies = [];
const entries = headers instanceof Headers ? headers.entries() : Object.entries(headers).filter(([, value]) => value);
for (const [k, v] of entries) {
for (const [k, v] of headers) {
if (k === "set-cookie") {

@@ -217,0 +219,0 @@ cookies.push(v);

@@ -5,4 +5,4 @@ import { OutgoingHttpHeaders } from 'node:http';

declare function writeFromReadableStream(stream: ReadableStream<Uint8Array>, writable: Writable): Promise<undefined> | undefined;
declare const buildOutgoingHttpHeaders: (headers: Headers | Record<string, string>) => OutgoingHttpHeaders;
declare const buildOutgoingHttpHeaders: (headers: Headers | HeadersInit | null | undefined) => OutgoingHttpHeaders;
export { buildOutgoingHttpHeaders, writeFromReadableStream };

@@ -68,5 +68,7 @@ "use strict";

const res = {};
if (!(headers instanceof Headers)) {
headers = new Headers(headers ?? void 0);
}
const cookies = [];
const entries = headers instanceof Headers ? headers.entries() : Object.entries(headers).filter(([, value]) => value);
for (const [k, v] of entries) {
for (const [k, v] of headers) {
if (k === "set-cookie") {

@@ -73,0 +75,0 @@ cookies.push(v);

@@ -210,5 +210,7 @@ "use strict";

const res = {};
if (!(headers instanceof Headers)) {
headers = new Headers(headers ?? void 0);
}
const cookies = [];
const entries = headers instanceof Headers ? headers.entries() : Object.entries(headers).filter(([, value]) => value);
for (const [k, v] of entries) {
for (const [k, v] of headers) {
if (k === "set-cookie") {

@@ -215,0 +217,0 @@ cookies.push(v);

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

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc