@tinyhttp/proxy-addr
Advanced tools
Comparing version 0.5.5 to 0.5.7
# @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 @@ |
@@ -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 @@ |
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
20778
Updated@tinyhttp/forwarded@^0.5.4