Socket
Socket
Sign inDemoInstall

@hono/node-server

Package Overview
Dependencies
Maintainers
1
Versions
48
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.11.0 to 1.11.1

4

dist/index.js

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

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