request-ip
Advanced tools
Comparing version 0.0.4 to 1.0.0
12
index.js
@@ -30,3 +30,3 @@ /** | ||
ipAddress = clientIp; | ||
} | ||
} | ||
@@ -53,5 +53,5 @@ // x-forwarded-for | ||
// ensure getting client IP address still works in development environment | ||
ipAddress = req.connection.remoteAddress || | ||
req.socket.remoteAddress || | ||
req.connection.socket.remoteAddress; | ||
ipAddress = req.connection.remoteAddress || | ||
req.socket.remoteAddress || | ||
req.connection.socket.remoteAddress; | ||
} | ||
@@ -63,4 +63,4 @@ | ||
/** | ||
* Expose mode public functions | ||
*/ | ||
* Expose mode public functions | ||
*/ | ||
exports.getClientIp = getClientIp; |
{ | ||
"name": "request-ip", | ||
"version": "0.0.4", | ||
"version": "1.0.0", | ||
"description": "A small node.js module to retrieve the request's IP address", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -50,2 +50,6 @@ request-ip | ||
1.0.0 | ||
* add semver | ||
0.0.4 | ||
@@ -52,0 +56,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4620
0
74