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.0.6 to 1.1.0

lib/load-cafile.js

2

config-defs.js

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

, ca: null
, cafile: null

@@ -230,2 +231,3 @@ , cache : cache

, ca: [null, String, Array]
, cafile : path
, cache : path

@@ -232,0 +234,0 @@ , "cache-lock-stale": Number

35

npmconf.js

@@ -142,12 +142,30 @@

conf.once('load', function () {
conf.loadExtras(function(er) {
if (er)
return cb(er)
// warn about invalid bits.
validate(conf)
exports.loaded = conf
cb(er, conf)
})
conf.loadExtras(afterExtras)
})
}
function afterExtras(er) {
if (er)
return cb(er)
// warn about invalid bits.
validate(conf)
var cafile = conf.get('cafile')
if(cafile) {
return conf.loadCAFile(cafile, finalize)
}
finalize()
}
function finalize(er, cadata) {
if (er) {
return cb(er)
}
exports.loaded = conf
cb(er, conf)
}
}

@@ -177,2 +195,3 @@

Conf.prototype.loadPrefix = require('./lib/load-prefix.js')
Conf.prototype.loadCAFile = require('./lib/load-cafile.js')
Conf.prototype.loadUid = require('./lib/load-uid.js')

@@ -179,0 +198,0 @@ Conf.prototype.setUser = require('./lib/set-user.js')

{
"name": "npmconf",
"version": "1.0.6",
"version": "1.1.0",
"description": "The config thing npm uses",

@@ -5,0 +5,0 @@ "main": "npmconf.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