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

@newstudios/http-utils

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@newstudios/http-utils - npm Package Compare versions

Comparing version 1.0.6 to 1.0.8

8

dist/index.js

@@ -134,3 +134,9 @@ "use strict";

if (!ip) {
ip = req[IP] = getIps(req)[0] || (req.socket && req.socket.remoteAddress) || '';
// nextjs not mocked remote address
try {
ip = req[IP] = getIps(req)[0] || (req.socket && req.socket.remoteAddress) || '';
}
catch {
ip = '';
}
}

@@ -137,0 +143,0 @@ return ip;

4

package.json
{
"name": "@newstudios/http-utils",
"version": "1.0.6",
"version": "1.0.8",
"description": "http common lib",

@@ -10,3 +10,3 @@ "main": "dist/index.js",

"build": "npm run clean && tsc",
"prepublishOnly": "npm build"
"prepublishOnly": "npm run build"
},

@@ -13,0 +13,0 @@ "dependencies": {

@@ -147,3 +147,8 @@ import { CookieSerializeOptions, serialize, parse } from 'cookie'

if (!ip) {
ip = req[IP] = getIps(req)[0] || (req.socket && req.socket.remoteAddress) || ''
// nextjs not mocked remote address
try {
ip = req[IP] = getIps(req)[0] || (req.socket && req.socket.remoteAddress) || ''
} catch {
ip = ''
}
}

@@ -150,0 +155,0 @@ return ip

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