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

prompts

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prompts - npm Package Compare versions

Comparing version 0.1.13 to 0.1.14

2

dist/elements/autocomplete.js

@@ -37,3 +37,3 @@ 'use strict';

this.cursor = opts.initial || opts.cursor || 0;
this.fallback = opts.fallback || opts.initial !== void 0 ? `› ${getVal(this.choices, this.initial)}` : `› no matches found`;
this.fallback = opts.fallback || opts.initial !== void 0 ? `${util.figures.pointerSmall} ${getVal(this.choices, this.initial)}` : `${util.figures.pointerSmall} no matches found`;
this.suggestions = [];

@@ -40,0 +40,0 @@ this.input = '';

@@ -9,3 +9,4 @@ 'use strict';

const style = _require.style,
clear = _require.clear;
clear = _require.clear,
figures = _require.figures;

@@ -108,3 +109,3 @@ var _require2 = require('sisteransi');

let title = this.cursor === i ? color.cyan.underline(v.title) : v.title;
let prefix = this.cursor === i ? color.cyan('❯ ') : ' ';
let prefix = this.cursor === i ? color.cyan(figures.pointer) + ' ' : ' ';
return `${prefix} ${title}`;

@@ -111,0 +112,0 @@ }).join('\n'));

@@ -31,3 +31,3 @@ 'use strict';

this.cursor = opts.initial || opts.cursor || 0;
this.fallback = opts.fallback || opts.initial !== void 0 ? `› ${getVal(this.choices, this.initial)}` : `› no matches found`;
this.fallback = opts.fallback || opts.initial !== void 0 ? `${util.figures.pointerSmall} ${getVal(this.choices, this.initial)}` : `${util.figures.pointerSmall} no matches found`;
this.suggestions = [];

@@ -34,0 +34,0 @@ this.input = '';

@@ -5,3 +5,3 @@ 'use strict';

const Prompt = require('./prompt');
const { style, clear } = require('../util');
const { style, clear, figures } = require('../util');
const { erase, cursor } = require('sisteransi');

@@ -110,3 +110,3 @@

let title = this.cursor === i ? color.cyan.underline(v.title) : v.title;
let prefix = this.cursor === i ? color.cyan('❯ ') : ' ';
let prefix = this.cursor === i ? color.cyan(figures.pointer) + ' ' : ' ';
return `${prefix} ${title}`;

@@ -113,0 +113,0 @@ })

{
"name": "prompts",
"version": "0.1.13",
"version": "0.1.14",
"description": "Lightweight, beautiful and user-friendly prompts",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/terkelg/prompts",

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