@hono/node-server
Advanced tools
@@ -133,4 +133,4 @@ "use strict"; | ||
| const parts = range.replace(/bytes=/, "").split("-", 2); | ||
| const start = parts[0] ? parseInt(parts[0], 10) : 0; | ||
| let end = parts[1] ? parseInt(parts[1], 10) : stats.size - 1; | ||
| const start = parseInt(parts[0], 10) || 0; | ||
| let end = parseInt(parts[1], 10) || size - 1; | ||
| if (size < end - start + 1) { | ||
@@ -137,0 +137,0 @@ end = size - 1; |
@@ -109,4 +109,4 @@ // src/serve-static.ts | ||
| const parts = range.replace(/bytes=/, "").split("-", 2); | ||
| const start = parts[0] ? parseInt(parts[0], 10) : 0; | ||
| let end = parts[1] ? parseInt(parts[1], 10) : stats.size - 1; | ||
| const start = parseInt(parts[0], 10) || 0; | ||
| let end = parseInt(parts[1], 10) || size - 1; | ||
| if (size < end - start + 1) { | ||
@@ -113,0 +113,0 @@ end = size - 1; |
+1
-1
| { | ||
| "name": "@hono/node-server", | ||
| "version": "1.19.1", | ||
| "version": "1.19.2", | ||
| "description": "Node.js Adapter for Hono", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
203434
-0.03%