@tinyhttp/proxy-addr
Advanced tools
Comparing version 1.0.0 to 1.0.1
# @tinyhttp/proxy-addr | ||
## 1.0.1 | ||
### Patch Changes | ||
- strip bytes | ||
- Updated dependencies [undefined] | ||
- @tinyhttp/forwarded@1.0.1 | ||
## 1.0.0 | ||
@@ -4,0 +12,0 @@ |
@@ -13,3 +13,3 @@ import { forwarded } from '@tinyhttp/forwarded'; | ||
loopback: ['127.0.0.1/8', '::1/128'], | ||
uniquelocal: ['10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16', 'fc00::/7'], | ||
uniquelocal: ['10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16', 'fc00::/7'] | ||
}; | ||
@@ -16,0 +16,0 @@ /** |
{ | ||
"name": "@tinyhttp/proxy-addr", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"type": "module", | ||
"description": "proxy-addr rewrite with TypeScript and ESM support", | ||
"homepage": "https://github.com/talentlessguy/tinyhttp#readme", | ||
"homepage": "https://tinyhttp.v1rtl.site", | ||
"repository": { | ||
@@ -43,5 +43,5 @@ "type": "git", | ||
"dependencies": { | ||
"@tinyhttp/forwarded": "^1.0.0", | ||
"@tinyhttp/forwarded": "^1.0.1", | ||
"ipaddr.js": "^2.0.0" | ||
} | ||
} |
@@ -14,3 +14,3 @@ import { forwarded } from '@tinyhttp/forwarded' | ||
loopback: ['127.0.0.1/8', '::1/128'], | ||
uniquelocal: ['10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16', 'fc00::/7'], | ||
uniquelocal: ['10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16', 'fc00::/7'] | ||
} | ||
@@ -24,3 +24,6 @@ /** | ||
*/ | ||
function alladdrs(req: Pick<IncomingMessage, 'headers' | 'connection'>, trust: ((...args: any[]) => any) | any[] | string[] | string) { | ||
function alladdrs( | ||
req: Pick<IncomingMessage, 'headers' | 'connection'>, | ||
trust: ((...args: any[]) => any) | any[] | string[] | string | ||
) { | ||
// get addresses | ||
@@ -132,3 +135,6 @@ | ||
*/ | ||
export function proxyaddr(req: Pick<IncomingMessage, 'headers' | 'connection'>, 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) | ||
@@ -135,0 +141,0 @@ |
Sorry, the diff of this file is not supported yet
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
21219
595
Updated@tinyhttp/forwarded@^1.0.1