@hono/node-server
Advanced tools
Comparing version 1.13.4 to 1.13.5
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5023
167471