Socket
Socket
Sign inDemoInstall

npmconf

Package Overview
Dependencies
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npmconf - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

24

config-defs.js

@@ -269,12 +269,3 @@ // defaults, types, and shorthands.

// must be IPv4 due to node bug
, "local-address" : Object.keys(os.networkInterfaces()).map(function (nic) {
return os.networkInterfaces()[nic].filter(function (addr) {
return addr.family === "IPv4"
})
.map(function (addr) {
return addr.address
})
}).reduce(function (curr, next) {
return curr.concat(next)
}, [])
, "local-address" : getLocalAddresses()
, loglevel : ["silent","win","error","warn","http","info","verbose","silly"]

@@ -331,2 +322,15 @@ , logstream : Stream

function getLocalAddresses() {
Object.keys(os.networkInterfaces()).map(function (nic) {
return os.networkInterfaces()[nic].filter(function (addr) {
return addr.family === "IPv4"
})
.map(function (addr) {
return addr.address
})
}).reduce(function (curr, next) {
return curr.concat(next)
}, []).concat(undefined)
}
exports.shorthands =

@@ -333,0 +337,0 @@ { s : ["--loglevel", "silent"]

@@ -6,2 +6,5 @@ module.exports = loadCAFile

function loadCAFile(cafilePath, cb) {
if (!cafilePath)
return process.nextTick(cb)
fs.readFile(cafilePath, 'utf8', afterCARead.bind(this))

@@ -8,0 +11,0 @@

@@ -432,2 +432,4 @@

})
nopt.clean(cl.root, configDefs.types)
}
{
"name": "npmconf",
"version": "1.1.3",
"version": "1.1.4",
"description": "The config thing npm uses",

@@ -14,3 +14,3 @@ "main": "npmconf.js",

"mkdirp": "~0.3.3",
"nopt": "2 || 3",
"nopt": "~3.0.1",
"once": "~1.3.0",

@@ -17,0 +17,0 @@ "osenv": "^0.1.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