@inquirer/rawlist 2.1.11 → 2.1.12
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 +2 -2
- package/dist/esm/index.mjs +2 -2
- package/package.json +6 -6
package/dist/cjs/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Separator = void 0;
|
|
7
7
|
const core_1 = require("@inquirer/core");
|
|
8
|
-
const
|
|
8
|
+
const yoctocolors_cjs_1 = __importDefault(require("yoctocolors-cjs"));
|
|
9
9
|
const numberRegex = /\d+/;
|
|
10
10
|
function isSelectableChoice(choice) {
|
|
11
11
|
return choice != null && !core_1.Separator.isSeparator(choice);
|
|
@@ -37,7 +37,7 @@ exports.default = (0, core_1.createPrompt)((config, done) => {
|
|
|
37
37
|
setError('Please input a value');
|
|
38
38
|
}
|
|
39
39
|
else {
|
|
40
|
-
setError(`"${
|
|
40
|
+
setError(`"${yoctocolors_cjs_1.default.red(value)}" isn't an available option`);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
else {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createPrompt, useState, useKeypress, usePrefix, isEnterKey, Separator, makeTheme, } from '@inquirer/core';
|
|
2
|
-
import
|
|
2
|
+
import colors from 'yoctocolors-cjs';
|
|
3
3
|
const numberRegex = /\d+/;
|
|
4
4
|
function isSelectableChoice(choice) {
|
|
5
5
|
return choice != null && !Separator.isSeparator(choice);
|
|
@@ -31,7 +31,7 @@ export default createPrompt((config, done) => {
|
|
|
31
31
|
setError('Please input a value');
|
|
32
32
|
}
|
|
33
33
|
else {
|
|
34
|
-
setError(`"${
|
|
34
|
+
setError(`"${colors.red(value)}" isn't an available option`);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/rawlist",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.12",
|
|
4
4
|
"description": "Inquirer rawlist 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/rawlist/README.md",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@inquirer/core": "^
|
|
58
|
-
"@inquirer/type": "^1.
|
|
59
|
-
"
|
|
57
|
+
"@inquirer/core": "^9.0.0",
|
|
58
|
+
"@inquirer/type": "^1.4.0",
|
|
59
|
+
"yoctocolors-cjs": "^2.1.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@inquirer/testing": "^2.1.
|
|
62
|
+
"@inquirer/testing": "^2.1.24"
|
|
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": "fc27d575bceb96466cb8da8524c26d4eb2a77df0"
|
|
91
91
|
}
|