New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@tinyhttp/app

Package Overview
Dependencies
Maintainers
2
Versions
315
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/app - npm Package Compare versions

Comparing version
3.0.3
to
3.0.4
+1
-1
dist/app.js

@@ -114,3 +114,3 @@ import { createServer } from 'node:http';

if (!view) {
const ViewClass = this.settings.view || View;
const ViewClass = this.settings.view;
try {

@@ -117,0 +117,0 @@ view = new ViewClass(name, {

@@ -14,3 +14,3 @@ import { isIP } from 'node:net';

return proto;
const header = req.headers['X-Forwarded-Proto'] || proto;
const header = req.headers['x-forwarded-proto'] || proto;
const index = header.indexOf(',');

@@ -22,4 +22,2 @@ return index !== -1 ? header.substring(0, index).trim() : header.trim();

const authority = req.get(':authority');
if (Array.isArray(authority))
return undefined;
if (Array.isArray(authority) || !authority)

@@ -44,4 +42,2 @@ return undefined;

return undefined;
if (host.indexOf(',') !== -1)
return undefined;
return normalizeHostString(host);

@@ -48,0 +44,0 @@ };

{
"name": "@tinyhttp/app",
"version": "3.0.3",
"version": "3.0.4",
"description": "0-legacy, tiny & fast web framework as a replacement of Express",

@@ -38,6 +38,6 @@ "type": "module",

"@tinyhttp/cookie": "2.1.1",
"@tinyhttp/proxy-addr": "3.0.0",
"@tinyhttp/router": "2.2.3",
"@tinyhttp/proxy-addr": "3.0.1",
"@tinyhttp/req": "2.2.7",
"@tinyhttp/res": "2.2.8"
"@tinyhttp/res": "2.2.9",
"@tinyhttp/router": "2.2.3"
},

@@ -44,0 +44,0 @@ "scripts": {

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