proxy-addr
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -0,1 +1,7 @@ | ||
1.1.5 / 2017-07-25 | ||
================== | ||
* Fix array argument being altered | ||
* deps: ipaddr.js@1.4.0 | ||
1.1.4 / 2017-03-24 | ||
@@ -2,0 +8,0 @@ ================== |
10
index.js
@@ -89,7 +89,9 @@ /*! | ||
var trust = typeof val === 'string' | ||
? [val] | ||
: val; | ||
var trust; | ||
if (!Array.isArray(trust)) { | ||
if (typeof val === 'string') { | ||
trust = [val]; | ||
} else if (Array.isArray(val)) { | ||
trust = val.slice(); | ||
} else { | ||
throw new TypeError('unsupported trust argument'); | ||
@@ -96,0 +98,0 @@ } |
{ | ||
"name": "proxy-addr", | ||
"description": "Determine address of proxied request", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
@@ -15,6 +15,6 @@ "license": "MIT", | ||
"forwarded": "~0.1.0", | ||
"ipaddr.js": "1.3.0" | ||
"ipaddr.js": "1.4.0" | ||
}, | ||
"devDependencies": { | ||
"benchmark": "2.1.3", | ||
"benchmark": "2.1.4", | ||
"beautify-benchmark": "0.2.4", | ||
@@ -21,0 +21,0 @@ "istanbul": "0.4.5", |
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
14496
261
+ Addedipaddr.js@1.4.0(transitive)
- Removedipaddr.js@1.3.0(transitive)
Updatedipaddr.js@1.4.0