@inquirer/input
Advanced tools
@@ -45,3 +45,3 @@ "use strict"; | ||
| } | ||
| else if (key.name === 'tab' && !value) { | ||
| else if ((0, core_1.isTabKey)(key) && !value) { | ||
| setDefaultValue(undefined); | ||
@@ -48,0 +48,0 @@ rl.clearLine(0); // Remove the tab character. |
@@ -1,2 +0,2 @@ | ||
| import { createPrompt, useState, useKeypress, useEffect, usePrefix, isEnterKey, isBackspaceKey, makeTheme, } from '@inquirer/core'; | ||
| import { createPrompt, useState, useKeypress, useEffect, usePrefix, isBackspaceKey, isEnterKey, isTabKey, makeTheme, } from '@inquirer/core'; | ||
| const inputTheme = { | ||
@@ -43,3 +43,3 @@ validationFailureMode: 'keep', | ||
| } | ||
| else if (key.name === 'tab' && !value) { | ||
| else if (isTabKey(key) && !value) { | ||
| setDefaultValue(undefined); | ||
@@ -46,0 +46,0 @@ rl.clearLine(0); // Remove the tab character. |
+3
-3
| { | ||
| "name": "@inquirer/input", | ||
| "version": "4.2.1", | ||
| "version": "4.2.2", | ||
| "description": "Inquirer input text prompt", | ||
@@ -77,3 +77,3 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@inquirer/core": "^10.1.15", | ||
| "@inquirer/core": "^10.2.0", | ||
| "@inquirer/type": "^3.0.8" | ||
@@ -109,3 +109,3 @@ }, | ||
| }, | ||
| "gitHead": "c1a755fe8b50377b685ea5951e0794985ce8d356" | ||
| "gitHead": "fdc92010930a3a40da5ed4f14ba608d5333e3d55" | ||
| } |
16027
0.07%Updated