Socket
Socket
Sign inDemoInstall

@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 0.5.5 to 0.5.7

16

CHANGELOG.md
# @tinyhttp/proxy-addr
## 0.5.7
### Patch Changes
- make types more flexible
- Updated dependencies [undefined]
- @tinyhttp/forwarded@0.5.4
## 0.5.6
### Patch Changes
- Make types more flexible
- Updated dependencies [undefined]
- @tinyhttp/forwarded@0.5.3
## 0.5.5

@@ -4,0 +20,0 @@

4

dist/index.d.ts

@@ -11,3 +11,3 @@ /// <reference types="node" />

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

@@ -33,4 +33,4 @@ * Compile argument into trust function.

*/
export declare function proxyaddr(req: IncomingMessage, trust: ((...args: any[]) => any) | any[] | string[] | string): string;
export declare function proxyaddr(req: Pick<IncomingMessage, 'headers' | 'connection'>, trust: ((...args: any[]) => any) | any[] | string[] | string): string;
export { alladdrs as all };
export { compile };
{
"name": "@tinyhttp/proxy-addr",
"version": "0.5.5",
"version": "0.5.7",
"type": "module",

@@ -43,5 +43,5 @@ "description": "proxy-addr rewrite with TypeScript and ESM support",

"dependencies": {
"@tinyhttp/forwarded": "^0.5.2",
"@tinyhttp/forwarded": "^0.5.4",
"ipaddr.js": "^2.0.0"
}
}

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

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

@@ -131,3 +131,3 @@

*/
export function proxyaddr(req: IncomingMessage, 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)

@@ -134,0 +134,0 @@

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