heroku-cli-util
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -84,3 +84,9 @@ 'use strict' | ||
let isTTY = process.env.TERM !== 'dumb' && process.stdin.isTTY | ||
if (isTTY && (options.mask || options.hide)) return promptMasked(options) | ||
if (options.mask || options.hide) { | ||
if (!isTTY) { | ||
return Promise.reject(`CLI needs to prompt for ${options.name || options.prompt} but stdin is not a tty.`) | ||
} | ||
return promptMasked(options) | ||
} | ||
return new Promise(function (resolve) { | ||
@@ -87,0 +93,0 @@ process.stdin.setEncoding('utf8') |
{ | ||
"name": "heroku-cli-util", | ||
"description": "Set of helpful CLI utilities", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"author": "Jeff Dickey (@dickeyxxx)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
286342
2745