Socket
Socket
Sign inDemoInstall

npmconf

Package Overview
Dependencies
Maintainers
1
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 0.1.5 to 0.1.6

16

config-defs.js

@@ -10,2 +10,3 @@ // defaults, types, and shorthands.

, nopt = require("nopt")
, os = require('os')
, osenv = require("osenv")

@@ -239,2 +240,3 @@

: process.env.SUDO_GID || (process.getgid && process.getgid())
, heading: "npm"
, ignore: ""

@@ -248,2 +250,3 @@ , "init-module": path.resolve(home, '.npm-init.js')

, link: false
, "local-address" : undefined
, loglevel : "http"

@@ -336,2 +339,3 @@ , logstream : process.stderr

, "user-agent" : String
, "heading": String
, ignore : String

@@ -345,2 +349,14 @@ , "init-module": path

, link: Boolean
// local-address must be listed as an IP for a local network interface
// 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)
}, [])
, loglevel : ["silent","win","error","warn","http","info","verbose","silly"]

@@ -347,0 +363,0 @@ , logstream : Stream

2

package.json
{
"name": "npmconf",
"version": "0.1.5",
"version": "0.1.6",
"description": "The config thing npm uses",

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

@@ -71,4 +71,5 @@ var test = require('tap').test

t.equal(conf.get('umask'), 022)
t.equal(conf.get('heading'), 'npm')
t.end()
})
})

@@ -37,3 +37,3 @@ var test = require('tap').test

var cli = { foo: 'bar' }
var cli = { foo: 'bar', heading: 'foo' }

@@ -71,4 +71,5 @@ var expectList =

t.equal(conf.root, npmconf.defs.defaults)
t.equal(conf.get('heading'), 'foo')
t.end()
})
})
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