@hono/node-server
Advanced tools
Comparing version 1.9.0 to 1.9.1
@@ -141,3 +141,3 @@ "use strict"; | ||
req[urlKey] = new URL( | ||
`http://${incoming instanceof import_node_http2.Http2ServerRequest ? incoming.authority : incoming.headers.host}${incoming.url}` | ||
`${incoming instanceof import_node_http2.Http2ServerRequest || incoming.socket && incoming.socket.encrypted ? "https" : "http"}://${incoming instanceof import_node_http2.Http2ServerRequest ? incoming.authority : incoming.headers.host}${incoming.url}` | ||
).href; | ||
@@ -144,0 +144,0 @@ return req; |
@@ -136,3 +136,3 @@ "use strict"; | ||
req[urlKey] = new URL( | ||
`http://${incoming instanceof import_node_http2.Http2ServerRequest ? incoming.authority : incoming.headers.host}${incoming.url}` | ||
`${incoming instanceof import_node_http2.Http2ServerRequest || incoming.socket && incoming.socket.encrypted ? "https" : "http"}://${incoming instanceof import_node_http2.Http2ServerRequest ? incoming.authority : incoming.headers.host}${incoming.url}` | ||
).href; | ||
@@ -139,0 +139,0 @@ return req; |
@@ -127,3 +127,3 @@ "use strict"; | ||
req[urlKey] = new URL( | ||
`http://${incoming instanceof import_node_http2.Http2ServerRequest ? incoming.authority : incoming.headers.host}${incoming.url}` | ||
`${incoming instanceof import_node_http2.Http2ServerRequest || incoming.socket && incoming.socket.encrypted ? "https" : "http"}://${incoming instanceof import_node_http2.Http2ServerRequest ? incoming.authority : incoming.headers.host}${incoming.url}` | ||
).href; | ||
@@ -130,0 +130,0 @@ return req; |
@@ -138,3 +138,3 @@ "use strict"; | ||
req[urlKey] = new URL( | ||
`http://${incoming instanceof import_node_http2.Http2ServerRequest ? incoming.authority : incoming.headers.host}${incoming.url}` | ||
`${incoming instanceof import_node_http2.Http2ServerRequest || incoming.socket && incoming.socket.encrypted ? "https" : "http"}://${incoming instanceof import_node_http2.Http2ServerRequest ? incoming.authority : incoming.headers.host}${incoming.url}` | ||
).href; | ||
@@ -141,0 +141,0 @@ return req; |
@@ -136,3 +136,3 @@ "use strict"; | ||
req[urlKey] = new URL( | ||
`http://${incoming instanceof import_node_http2.Http2ServerRequest ? incoming.authority : incoming.headers.host}${incoming.url}` | ||
`${incoming instanceof import_node_http2.Http2ServerRequest || incoming.socket && incoming.socket.encrypted ? "https" : "http"}://${incoming instanceof import_node_http2.Http2ServerRequest ? incoming.authority : incoming.headers.host}${incoming.url}` | ||
).href; | ||
@@ -139,0 +139,0 @@ return req; |
{ | ||
"name": "@hono/node-server", | ||
"version": "1.9.0", | ||
"version": "1.9.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
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
149696