@hono/node-server
Advanced tools
Comparing version 1.11.0 to 1.11.1
@@ -64,3 +64,3 @@ "use strict"; | ||
} | ||
if (options?.body instanceof ReadableStream) { | ||
if (typeof options?.body?.getReader !== "undefined") { | ||
; | ||
@@ -248,3 +248,3 @@ options.duplex ??= "half"; | ||
} | ||
if (typeof body === "string" || body instanceof ReadableStream) { | ||
if (typeof body === "string" || typeof body?.getReader !== "undefined") { | ||
let headers = init?.headers || { "content-type": "text/plain; charset=UTF-8" }; | ||
@@ -251,0 +251,0 @@ if (headers instanceof Headers) { |
@@ -58,3 +58,3 @@ "use strict"; | ||
} | ||
if (options?.body instanceof ReadableStream) { | ||
if (typeof options?.body?.getReader !== "undefined") { | ||
; | ||
@@ -242,3 +242,3 @@ options.duplex ??= "half"; | ||
} | ||
if (typeof body === "string" || body instanceof ReadableStream) { | ||
if (typeof body === "string" || typeof body?.getReader !== "undefined") { | ||
let headers = init?.headers || { "content-type": "text/plain; charset=UTF-8" }; | ||
@@ -245,0 +245,0 @@ if (headers instanceof Headers) { |
@@ -51,3 +51,3 @@ "use strict"; | ||
} | ||
if (options?.body instanceof ReadableStream) { | ||
if (typeof options?.body?.getReader !== "undefined") { | ||
; | ||
@@ -54,0 +54,0 @@ options.duplex ??= "half"; |
@@ -74,3 +74,3 @@ "use strict"; | ||
} | ||
if (typeof body === "string" || body instanceof ReadableStream) { | ||
if (typeof body === "string" || typeof body?.getReader !== "undefined") { | ||
let headers = init?.headers || { "content-type": "text/plain; charset=UTF-8" }; | ||
@@ -77,0 +77,0 @@ if (headers instanceof Headers) { |
@@ -142,4 +142,3 @@ "use strict"; | ||
} | ||
const url = new URL(c.req.url); | ||
const filename = options.path ?? decodeURIComponent(url.pathname); | ||
const filename = options.path ?? decodeURIComponent(c.req.path); | ||
let path = getFilePath({ | ||
@@ -146,0 +145,0 @@ filename: options.rewriteRequestPath ? options.rewriteRequestPath(filename) : filename, |
@@ -60,3 +60,3 @@ "use strict"; | ||
} | ||
if (options?.body instanceof ReadableStream) { | ||
if (typeof options?.body?.getReader !== "undefined") { | ||
; | ||
@@ -244,3 +244,3 @@ options.duplex ??= "half"; | ||
} | ||
if (typeof body === "string" || body instanceof ReadableStream) { | ||
if (typeof body === "string" || typeof body?.getReader !== "undefined") { | ||
let headers = init?.headers || { "content-type": "text/plain; charset=UTF-8" }; | ||
@@ -247,0 +247,0 @@ if (headers instanceof Headers) { |
@@ -58,3 +58,3 @@ "use strict"; | ||
} | ||
if (options?.body instanceof ReadableStream) { | ||
if (typeof options?.body?.getReader !== "undefined") { | ||
; | ||
@@ -242,3 +242,3 @@ options.duplex ??= "half"; | ||
} | ||
if (typeof body === "string" || body instanceof ReadableStream) { | ||
if (typeof body === "string" || typeof body?.getReader !== "undefined") { | ||
let headers = init?.headers || { "content-type": "text/plain; charset=UTF-8" }; | ||
@@ -245,0 +245,0 @@ if (headers instanceof Headers) { |
{ | ||
"name": "@hono/node-server", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"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
159366
4831