Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lerna/otplease

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna/otplease - npm Package Compare versions

Comparing version 3.14.0 to 3.16.0

11

CHANGELOG.md

@@ -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 @@

5

otplease.js

@@ -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 =>

4

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc