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 0.5.4 to 0.5.5

6

CHANGELOG.md
# @tinyhttp/proxy-addr
## 0.5.5
### Patch Changes
- add proxy-addr tests
## 0.5.4

@@ -4,0 +10,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[];
declare function alladdrs(req: IncomingMessage, 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;
export declare function proxyaddr(req: IncomingMessage, trust: ((...args: any[]) => any) | any[] | string[] | string): string;
export { alladdrs as all };
export { compile };
{
"name": "@tinyhttp/proxy-addr",
"version": "0.5.4",
"version": "0.5.5",
"type": "module",

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

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

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

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

*/
export function proxyaddr(req: IncomingMessage, trust: ((...args: any[]) => any) | any[] | string[]) {
export function proxyaddr(req: IncomingMessage, 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