Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tinyhttp/forwarded

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/forwarded - npm Package Compare versions

Comparing version 0.5.5 to 0.5.6

6

CHANGELOG.md
# @tinyhttp/forwarded
## 0.5.6
### Patch Changes
- strip some bytes
## 0.5.5

@@ -4,0 +10,0 @@

3

dist/index.js

@@ -8,5 +8,4 @@ /**

const socketAddr = req.connection.remoteAddress;
const addrs = [socketAddr].concat(proxyAddrs);
// return all addresses
return addrs;
return [socketAddr].concat(proxyAddrs);
}

@@ -13,0 +12,0 @@ /**

{
"name": "@tinyhttp/forwarded",
"version": "0.5.5",
"version": "0.5.6",
"type": "module",

@@ -5,0 +5,0 @@ "description": "forwarded rewrite with TypeScript and ESM support",

@@ -10,6 +10,5 @@ import { IncomingMessage } from 'http'

const socketAddr = req.connection.remoteAddress
const addrs = [socketAddr].concat(proxyAddrs)
// return all addresses
return addrs
return [socketAddr].concat(proxyAddrs)
}

@@ -16,0 +15,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc