@tinyhttp/forwarded
Advanced tools
Comparing version 0.5.5 to 0.5.6
# @tinyhttp/forwarded | ||
## 0.5.6 | ||
### Patch Changes | ||
- strip some bytes | ||
## 0.5.5 | ||
@@ -4,0 +10,0 @@ |
@@ -8,5 +8,4 @@ /** | ||
const socketAddr = req.connection.remoteAddress; | ||
const addrs = [socketAddr].concat(proxyAddrs); | ||
// return all addresses | ||
return addrs; | ||
return [socketAddr].concat(proxyAddrs); | ||
} | ||
@@ -13,0 +12,0 @@ /** |
{ | ||
"name": "@tinyhttp/forwarded", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "forwarded rewrite with TypeScript and ESM support", |
@@ -10,6 +10,5 @@ import { IncomingMessage } from 'http' | ||
const socketAddr = req.connection.remoteAddress | ||
const addrs = [socketAddr].concat(proxyAddrs) | ||
// return all addresses | ||
return addrs | ||
return [socketAddr].concat(proxyAddrs) | ||
} | ||
@@ -16,0 +15,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
6719
138