@tinyhttp/proxy-addr
Advanced tools
Comparing version 0.5.4 to 0.5.5
# @tinyhttp/proxy-addr | ||
## 0.5.5 | ||
### Patch Changes | ||
- add proxy-addr tests | ||
## 0.5.4 | ||
@@ -4,0 +10,0 @@ |
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20406