@inquirer/confirm 5.1.14 → 5.1.15
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/commonjs/index.js +2 -0
- package/dist/esm/index.js +2 -0
- package/package.json +2 -2
package/dist/commonjs/index.js
CHANGED
|
@@ -19,6 +19,8 @@ exports.default = (0, core_1.createPrompt)((config, done) => {
|
|
|
19
19
|
const theme = (0, core_1.makeTheme)(config.theme);
|
|
20
20
|
const prefix = (0, core_1.usePrefix)({ status, theme });
|
|
21
21
|
(0, core_1.useKeypress)((key, rl) => {
|
|
22
|
+
if (status !== 'idle')
|
|
23
|
+
return;
|
|
22
24
|
if ((0, core_1.isEnterKey)(key)) {
|
|
23
25
|
const answer = getBooleanValue(value, config.default);
|
|
24
26
|
setValue(transformer(answer));
|
package/dist/esm/index.js
CHANGED
|
@@ -17,6 +17,8 @@ export default createPrompt((config, done) => {
|
|
|
17
17
|
const theme = makeTheme(config.theme);
|
|
18
18
|
const prefix = usePrefix({ status, theme });
|
|
19
19
|
useKeypress((key, rl) => {
|
|
20
|
+
if (status !== 'idle')
|
|
21
|
+
return;
|
|
20
22
|
if (isEnterKey(key)) {
|
|
21
23
|
const answer = getBooleanValue(value, config.default);
|
|
22
24
|
setValue(transformer(answer));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/confirm",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.15",
|
|
4
4
|
"description": "Inquirer confirm prompt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"optional": true
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "df341a8094bde7687225143bb0b4cf932846be4f"
|
|
109
109
|
}
|