@inquirer/rawlist 2.2.1 → 2.2.3
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 +1 -1
- package/dist/esm/index.mjs +1 -1
- package/package.json +5 -5
package/dist/cjs/index.js
CHANGED
|
@@ -56,7 +56,7 @@ exports.default = (0, core_1.createPrompt)((config, done) => {
|
|
|
56
56
|
return ` ${choice.separator}`;
|
|
57
57
|
}
|
|
58
58
|
index += 1;
|
|
59
|
-
const line = ` ${choice.key || index}) ${choice.name || choice.value}`;
|
|
59
|
+
const line = ` ${choice.key || index}) ${String(choice.name || choice.value)}`;
|
|
60
60
|
if (choice.key === value.toLowerCase() || String(index) === value) {
|
|
61
61
|
return theme.style.highlight(line);
|
|
62
62
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -49,7 +49,7 @@ export default createPrompt((config, done) => {
|
|
|
49
49
|
return ` ${choice.separator}`;
|
|
50
50
|
}
|
|
51
51
|
index += 1;
|
|
52
|
-
const line = ` ${choice.key || index}) ${choice.name || choice.value}`;
|
|
52
|
+
const line = ` ${choice.key || index}) ${String(choice.name || choice.value)}`;
|
|
53
53
|
if (choice.key === value.toLowerCase() || String(index) === value) {
|
|
54
54
|
return theme.style.highlight(line);
|
|
55
55
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/rawlist",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
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/main/packages/rawlist/README.md",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@inquirer/core": "^9.0.
|
|
58
|
-
"@inquirer/type": "^1.5.
|
|
57
|
+
"@inquirer/core": "^9.0.9",
|
|
58
|
+
"@inquirer/type": "^1.5.2",
|
|
59
59
|
"yoctocolors-cjs": "^2.1.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@inquirer/testing": "^2.1.
|
|
62
|
+
"@inquirer/testing": "^2.1.31"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
"sideEffects": false,
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "056e26aa6497e0036864d032f9eb8d821de821e7"
|
|
90
90
|
}
|