Comparing version 0.1.13 to 0.1.14
@@ -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", |
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
92083
2273