@tinyhttp/forwarded
Advanced tools
Comparing version 0.5.2 to 0.5.4
# @tinyhttp/forwarded | ||
## 0.5.4 | ||
### Patch Changes | ||
- make types more flexible | ||
## 0.5.3 | ||
### Patch Changes | ||
- Make types more flexible | ||
## 0.5.2 | ||
@@ -4,0 +16,0 @@ |
@@ -6,3 +6,3 @@ /// <reference types="node" /> | ||
*/ | ||
export declare function forwarded(req: IncomingMessage): string[]; | ||
export declare function forwarded(req: Pick<IncomingMessage, 'headers' | 'connection'>): string[]; | ||
/** | ||
@@ -9,0 +9,0 @@ * Parse the X-Forwarded-For header. |
{ | ||
"name": "@tinyhttp/forwarded", | ||
"version": "0.5.2", | ||
"version": "0.5.4", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "forwarded rewrite with TypeScript and ESM support", |
@@ -6,3 +6,3 @@ import { IncomingMessage } from 'http' | ||
*/ | ||
export function forwarded(req: IncomingMessage) { | ||
export function forwarded(req: Pick<IncomingMessage, 'headers' | 'connection'>) { | ||
// simple header parsing | ||
@@ -9,0 +9,0 @@ const proxyAddrs = parse((req.headers['x-forwarded-for'] as string) || '') |
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
6707