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

@tinyhttp/proxy-addr

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/proxy-addr - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

8

CHANGELOG.md
# @tinyhttp/proxy-addr
## 1.0.1
### Patch Changes
- strip bytes
- Updated dependencies [undefined]
- @tinyhttp/forwarded@1.0.1
## 1.0.0

@@ -4,0 +12,0 @@

2

dist/index.js

@@ -13,3 +13,3 @@ import { forwarded } from '@tinyhttp/forwarded';

loopback: ['127.0.0.1/8', '::1/128'],
uniquelocal: ['10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16', 'fc00::/7'],
uniquelocal: ['10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16', 'fc00::/7']
};

@@ -16,0 +16,0 @@ /**

{
"name": "@tinyhttp/proxy-addr",
"version": "1.0.0",
"version": "1.0.1",
"type": "module",
"description": "proxy-addr rewrite with TypeScript and ESM support",
"homepage": "https://github.com/talentlessguy/tinyhttp#readme",
"homepage": "https://tinyhttp.v1rtl.site",
"repository": {

@@ -43,5 +43,5 @@ "type": "git",

"dependencies": {
"@tinyhttp/forwarded": "^1.0.0",
"@tinyhttp/forwarded": "^1.0.1",
"ipaddr.js": "^2.0.0"
}
}

@@ -14,3 +14,3 @@ import { forwarded } from '@tinyhttp/forwarded'

loopback: ['127.0.0.1/8', '::1/128'],
uniquelocal: ['10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16', 'fc00::/7'],
uniquelocal: ['10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16', 'fc00::/7']
}

@@ -24,3 +24,6 @@ /**

*/
function alladdrs(req: Pick<IncomingMessage, 'headers' | 'connection'>, trust: ((...args: any[]) => any) | any[] | string[] | string) {
function alladdrs(
req: Pick<IncomingMessage, 'headers' | 'connection'>,
trust: ((...args: any[]) => any) | any[] | string[] | string
) {
// get addresses

@@ -132,3 +135,6 @@

*/
export function proxyaddr(req: Pick<IncomingMessage, 'headers' | 'connection'>, trust: ((...args: any[]) => any) | any[] | string[] | string) {
export function proxyaddr(
req: Pick<IncomingMessage, 'headers' | 'connection'>,
trust: ((...args: any[]) => any) | any[] | string[] | string
) {
const addrs = alladdrs(req, trust)

@@ -135,0 +141,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