mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature: server: env -> env.parse
This commit is contained in:
parent
f0dcbe946f
commit
6856207d0d
4 changed files with 18 additions and 18 deletions
|
|
@ -58,7 +58,7 @@ const emitAuth = wraptile((importUrl, config, socket) => {
|
|||
|
||||
const updateConfig = currify((config, data) => {
|
||||
for (const [key, value] of entries(data)) {
|
||||
if (typeof env(key) !== 'undefined')
|
||||
if (typeof env.parse(key) !== 'undefined')
|
||||
continue;
|
||||
|
||||
config(key, value);
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ const snake = require('just-snake-case');
|
|||
|
||||
const up = (a) => a.toUpperCase();
|
||||
|
||||
module.exports = parse;
|
||||
module.exports.parse = parse;
|
||||
module.exports.bool = (name) => {
|
||||
const value = parse(name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue