edge-runtime
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -10,4 +10,4 @@ "use strict"; | ||
const pretty_ms_1 = __importDefault(require("pretty-ms")); | ||
const http_status_1 = __importDefault(require("http-status")); | ||
const time_span_1 = __importDefault(require("time-span")); | ||
const http_1 = require("http"); | ||
/** | ||
@@ -52,3 +52,3 @@ * Creates an HHTP handler that can be used to create a Node.js HTTP server. | ||
.match(/[a-zA-Z]+|[0-9]+/g)) === null || _a === void 0 ? void 0 : _a.join(' ')}`; | ||
const code = `${res.statusCode} ${http_status_1.default[res.statusCode]}`; | ||
const code = `${res.statusCode} ${http_1.STATUS_CODES[res.statusCode]}`; | ||
(_b = options.logger) === null || _b === void 0 ? void 0 : _b.debug(`${subject} → ${code} in ${time}`); | ||
@@ -58,3 +58,3 @@ res.end(); | ||
finally { | ||
if (!res.finished) { | ||
if (!res.writableEnded) { | ||
res.end(); | ||
@@ -61,0 +61,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://edge-runtime.vercel.app/packages/runtime", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"main": "dist/index.js", | ||
@@ -31,3 +31,2 @@ "bin": { | ||
"exit-hook": "2.2.1", | ||
"http-status": "1.5.3", | ||
"mri": "1.2.0", | ||
@@ -34,0 +33,0 @@ "picocolors": "1.0.0", |
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
AI detected anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
8
4
87229
- Removedhttp-status@1.5.3
- Removedhttp-status@1.5.3(transitive)