@tinyhttp/app
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -53,3 +53,5 @@ import { STATUS_CODES, createServer } from 'http'; | ||
const onErrorHandler = (err, _req, res) => { | ||
console.error(err); | ||
console.log(err instanceof Error); | ||
if (!process.env.TESTING && err.message) | ||
console.error(err); | ||
const code = err.code in STATUS_CODES ? err.code : err.status; | ||
@@ -56,0 +58,0 @@ if (typeof err === 'string' || Buffer.isBuffer(err)) |
{ | ||
"name": "@tinyhttp/app", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "0-legacy, tiny & fast web framework as a replacement of Express", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
39317
959
4