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

@inquirer/confirm

Package Overview
Dependencies
Maintainers
3
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inquirer/confirm - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

4

./dist/cjs/index.js

@@ -15,5 +15,5 @@ "use strict";

let answer = config.default !== false;
if (/^(y|yes)?/i.test(value))
if (/^(y|yes)/i.test(value))
answer = true;
else if (/^(n|no)?/i.test(value))
else if (/^(n|no)/i.test(value))
answer = false;

@@ -20,0 +20,0 @@ if (typeof config.transformer === 'function') {

@@ -15,5 +15,5 @@ "use strict";

let answer = config.default !== false;
if (/^(y|yes)?/i.test(value))
if (/^(y|yes)/i.test(value))
answer = true;
else if (/^(n|no)?/i.test(value))
else if (/^(n|no)/i.test(value))
answer = false;

@@ -20,0 +20,0 @@ if (typeof config.transformer === 'function') {

{
"name": "@inquirer/confirm",
"version": "2.0.1",
"version": "2.0.2",
"description": "Inquirer confirm prompt",

@@ -86,3 +86,3 @@ "main": "./dist/cjs/index.js",

},
"gitHead": "d48ecde923e5875de631f7b50f67cfaf00384947"
"gitHead": "a23c4cedbcb8f990a443d6b4c38d75a3aa8c9a99"
}

@@ -20,3 +20,3 @@ # `@inquirer/confirm`

const answer = await confirm({ message: 'Enter your name' });
const answer = await confirm({ message: 'Continue?' });
```

@@ -23,0 +23,0 @@

Sorry, the diff of this file is not supported yet

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