You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@ladjs/shared-config

Package Overview
Dependencies
Maintainers
3
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ladjs/shared-config - npm Package Compare versions

Comparing version
4.0.0
to
5.0.0
+9
-1
index.js

@@ -25,7 +25,15 @@ const fs = require('fs');

const port = process.env[`${prefix}_PORT`] || null;
const port = process.env[`${prefix}_PORT`] || 0;
const serverHost = process.env[`${prefix}_SERVER_HOST`] || '0.0.0.0';
const protocol = process.env[`${prefix}_PROTOCOL`] || 'http';
const config = {
// this is used as defaults for `app.listen(port, serverHost)`
port,
// by listening on '0.0.0.0' by default we avoid IPv6 issues
// <https://stackoverflow.com/questions/29411551/express-js-req-ip-is-returning-ffff127-0-0-1>
// <https://nodejs.org/api/net.html#net_server_listen_port_host_backlog_callback
// <https://github.com/koajs/koa/issues/599>
// <https://stackoverflow.com/a/33957043>
serverHost,
cabin: { capture: false },

@@ -32,0 +40,0 @@ protocol,

+2
-2
{
"name": "@ladjs/shared-config",
"description": "Shared configuration for Lad's API and Web servers",
"version": "4.0.0",
"version": "5.0.0",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",

@@ -32,3 +32,3 @@ "ava": {

"cross-env": "^7.0.3",
"eslint": "^7.19.0",
"eslint": "^7.20.0",
"eslint-config-xo-lass": "^1.0.5",

@@ -35,0 +35,0 @@ "fixpack": "^4.0.0",