Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

request-ip

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

request-ip - npm Package Compare versions

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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc