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

@tinypudding/puddy-lib

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinypudding/puddy-lib - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

9

http/userIP.js

@@ -23,3 +23,3 @@

// Forwarded
else if (req.headers['x-forwarded-for']) {
if (typeof ip.value !== "string" && req.headers['x-forwarded-for']) {
ip.value = req.headers['x-forwarded-for'];

@@ -32,3 +32,3 @@ ip.type = 'x-forwarded-for';

// Connection
if (!ip.value && req.connection && req.connection.remoteAddress) {
if (typeof ip.value !== "string" && req.connection && req.connection.remoteAddress) {
ip.value = req.connection.remoteAddress;

@@ -38,2 +38,7 @@ ip.type = 'connection.remoteAddress';

// Convert IP Value
if(typeof ip.value === "string") {
ip.value = ip.value.split(',');
}
// Return Value

@@ -40,0 +45,0 @@ return ip;

{
"name": "@tinypudding/puddy-lib",
"version": "1.1.6",
"version": "1.1.7",
"description": "Essential codes to run the other repositories from the Tiny Pudding Account.",

@@ -5,0 +5,0 @@ "main": "index.js",

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