@inquirer/expand 2.1.9 → 2.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +3 -3
- package/dist/esm/index.mjs +3 -3
- package/package.json +5 -5
package/dist/cjs/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const core_1 = require("@inquirer/core");
|
|
7
|
-
const
|
|
7
|
+
const picocolors_1 = __importDefault(require("picocolors"));
|
|
8
8
|
const helpChoice = {
|
|
9
9
|
key: 'h',
|
|
10
10
|
name: 'Help, list all options',
|
|
@@ -46,7 +46,7 @@ exports.default = (0, core_1.createPrompt)((config, done) => {
|
|
|
46
46
|
setError('Please input a value');
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
49
|
-
setError(`"${
|
|
49
|
+
setError(`"${picocolors_1.default.red(value)}" isn't an available option`);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -88,7 +88,7 @@ exports.default = (0, core_1.createPrompt)((config, done) => {
|
|
|
88
88
|
let helpTip = '';
|
|
89
89
|
const currentOption = allChoices.find(({ key }) => key === value.toLowerCase());
|
|
90
90
|
if (currentOption) {
|
|
91
|
-
helpTip = `${
|
|
91
|
+
helpTip = `${picocolors_1.default.cyan('>>')} ${getChoiceKey(currentOption, 'name')}`;
|
|
92
92
|
}
|
|
93
93
|
let error = '';
|
|
94
94
|
if (errorMsg) {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createPrompt, useState, useKeypress, usePrefix, isEnterKey, makeTheme, } from '@inquirer/core';
|
|
2
|
-
import
|
|
2
|
+
import pc from 'picocolors';
|
|
3
3
|
const helpChoice = {
|
|
4
4
|
key: 'h',
|
|
5
5
|
name: 'Help, list all options',
|
|
@@ -41,7 +41,7 @@ export default createPrompt((config, done) => {
|
|
|
41
41
|
setError('Please input a value');
|
|
42
42
|
}
|
|
43
43
|
else {
|
|
44
|
-
setError(`"${
|
|
44
|
+
setError(`"${pc.red(value)}" isn't an available option`);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -83,7 +83,7 @@ export default createPrompt((config, done) => {
|
|
|
83
83
|
let helpTip = '';
|
|
84
84
|
const currentOption = allChoices.find(({ key }) => key === value.toLowerCase());
|
|
85
85
|
if (currentOption) {
|
|
86
|
-
helpTip = `${
|
|
86
|
+
helpTip = `${pc.cyan('>>')} ${getChoiceKey(currentOption, 'name')}`;
|
|
87
87
|
}
|
|
88
88
|
let error = '';
|
|
89
89
|
if (errorMsg) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/expand",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.11",
|
|
4
4
|
"description": "Inquirer checkbox prompt",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"typings": "./dist/cjs/types/index.d.ts",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"license": "MIT",
|
|
55
55
|
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/expand/README.md",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@inquirer/core": "^8.2.
|
|
57
|
+
"@inquirer/core": "^8.2.4",
|
|
58
58
|
"@inquirer/type": "^1.3.3",
|
|
59
|
-
"
|
|
59
|
+
"picocolors": "^1.0.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@inquirer/testing": "^2.1.
|
|
62
|
+
"@inquirer/testing": "^2.1.23"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
"sideEffects": false,
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "d5f62c6ee3e671f7d1b776b85d43781869d70918"
|
|
91
91
|
}
|