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

prompts-ncu

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prompts-ncu - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

4

dist/elements/confirm.js

@@ -87,3 +87,5 @@ "use strict";

super.render();
this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(this.done), this.done ? this.value ? this.yesMsg : this.noMsg : color.gray(this.initialValue ? this.yesOption : this.noOption)].join(' ');
const abortedOrNo = this.aborted || this.done && !this.value;
this.outputText = [// override ✓ with ✗ when answer is no
style.symbol(this.done, abortedOrNo), color.bold(this.msg), style.delimiter(this.done), this.done ? this.value && !this.aborted ? this.yesMsg : this.noMsg : color.gray(this.initialValue ? this.yesOption : this.noOption)].join(' ');
this.out.write(erase.line + cursor.to(0) + this.outputText);

@@ -90,0 +92,0 @@ }

@@ -77,7 +77,9 @@ const color = require('kleur');

const abortedOrNo = this.aborted || (this.done && !this.value)
this.outputText = [
style.symbol(this.done, this.aborted),
// override ✓ with ✗ when answer is no
style.symbol(this.done, abortedOrNo),
color.bold(this.msg),
style.delimiter(this.done),
this.done ? (this.value ? this.yesMsg : this.noMsg)
this.done ? (this.value && !this.aborted ? this.yesMsg : this.noMsg)
: color.gray(this.initialValue ? this.yesOption : this.noOption)

@@ -84,0 +86,0 @@ ].join(' ');

{
"name": "prompts-ncu",
"version": "2.5.0",
"version": "2.5.1",
"description": "Lightweight, beautiful and user-friendly prompts",

@@ -5,0 +5,0 @@ "license": "MIT",

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