@lerna/otplease
Advanced tools
Comparing version 3.14.0 to 3.16.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.16.0](https://github.com/lerna/lerna/compare/v3.15.0...v3.16.0) (2019-07-18) | ||
### Features | ||
* **otplease:** Expose getOneTimePassword() helper ([44b9f70](https://github.com/lerna/lerna/commit/44b9f70)) | ||
# [3.14.0](https://github.com/lerna/lerna/compare/v3.13.4...v3.14.0) (2019-05-14) | ||
@@ -8,0 +19,0 @@ |
@@ -39,2 +39,3 @@ "use strict"; | ||
module.exports = otplease; | ||
module.exports.getOneTimePassword = getOneTimePassword; | ||
@@ -95,5 +96,5 @@ function otplease(fn, _opts, otpCache) { | ||
function getOneTimePassword() { | ||
function getOneTimePassword(message = "This operation requires a one-time password:") { | ||
// Logic taken from npm internals: https://git.io/fNoMe | ||
return prompt.input("This operation requires a one-time password:", { | ||
return prompt.input(message, { | ||
filter: otp => otp.replace(/\s+/g, ""), | ||
@@ -100,0 +101,0 @@ validate: otp => |
{ | ||
"name": "@lerna/otplease", | ||
"version": "3.14.0", | ||
"version": "3.16.0", | ||
"description": "Prompt for OTP when wrapped Promise fails", | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "39da145c67ea587457694f318f32f967b9d66ea9" | ||
"gitHead": "8ca18bedecf4f141c6242a099086e84b2ced72de" | ||
} |
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
6211
97