chore: update to read-config-ng

This commit is contained in:
Bill Church 2020-03-14 09:48:02 -04:00
parent 506918dc68
commit 152ac1e898
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@
}, },
"dependencies": { "dependencies": {
"mute": [ "mute": [
"read-config", "read-config-ng",
"socket.io", "socket.io",
"standard", "standard",
"bithound" "bithound"

View file

@ -90,7 +90,7 @@ let config = {
try { try {
if (fs.existsSync(configPath)) { if (fs.existsSync(configPath)) {
console.log('ephemeral_auth service reading config from: ' + configPath) console.log('ephemeral_auth service reading config from: ' + configPath)
config = require('read-config')(configPath) config = require('read-config-ng')(configPath)
} else { } else {
console.error('\n\nERROR: Missing config.json for webssh. Current config: ' + JSON.stringify(config)) console.error('\n\nERROR: Missing config.json for webssh. Current config: ' + JSON.stringify(config))
console.error('\n See config.json.sample for details\n\n') console.error('\n See config.json.sample for details\n\n')