diff --git a/index.js b/index.js index b94893c..b7b3266 100644 --- a/index.js +++ b/index.js @@ -88,8 +88,8 @@ module.exports = { showEnvi() { let envi = JSON.parse(JSON.stringify(global.EnviConfig)) for (let key in envi) { - if (my.secretKeys.hasOwnProperty(key)) { - envi[key] = '******' + if (my.secretKeys.includes(key)) { + envi[key] = '***confidential***' } } console.log(envi)