UNPKG

heroku

Version:

CLI to interact with Heroku

25 lines (24 loc) 724 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const packageParser_1 = require("../../lib/utils/packageParser"); const allowlist = [ 'HEROKU_API_KEY', 'HEROKU_APP', 'HTTPS_PROXY', 'HTTP_PROXY', 'SSL_CERT_FILE', 'SSL_CERT_DIR', 'SSL_CA_FILE', 'SSL_KEY_FILE', ]; const version = async function () { if ((0, packageParser_1.getAllVersionFlags)().includes(process.argv[2])) { for (const env of allowlist) { if (process.env[env]) { const value = env === 'HEROKU_API_KEY' ? 'to [REDACTED]' : `to ${process.env[env]}`; this.warn(`${env} set ${value}`); } } } }; exports.default = version;