@inquirer/password
Advanced tools
Comparing version 1.1.15 to 1.1.16
@@ -54,2 +54,3 @@ "use strict"; | ||
let formattedValue = ''; | ||
let helpTip; | ||
if (config.mask) { | ||
@@ -60,3 +61,3 @@ const maskChar = typeof config.mask === 'string' ? config.mask : '*'; | ||
else if (status !== 'done') { | ||
formattedValue = `${chalk_1.default.dim('[input is masked]')}${ansi_escapes_1.default.cursorHide}`; | ||
helpTip = `${chalk_1.default.dim('[input is masked]')}${ansi_escapes_1.default.cursorHide}`; | ||
} | ||
@@ -70,3 +71,3 @@ if (status === 'done') { | ||
} | ||
return [`${prefix} ${message} ${formattedValue}`, error]; | ||
return [[prefix, message, formattedValue, helpTip].filter(Boolean).join(' '), error]; | ||
}); |
@@ -54,2 +54,3 @@ "use strict"; | ||
let formattedValue = ''; | ||
let helpTip; | ||
if (config.mask) { | ||
@@ -60,3 +61,3 @@ const maskChar = typeof config.mask === 'string' ? config.mask : '*'; | ||
else if (status !== 'done') { | ||
formattedValue = `${chalk_1.default.dim('[input is masked]')}${ansi_escapes_1.default.cursorHide}`; | ||
helpTip = `${chalk_1.default.dim('[input is masked]')}${ansi_escapes_1.default.cursorHide}`; | ||
} | ||
@@ -70,3 +71,3 @@ if (status === 'done') { | ||
} | ||
return [`${prefix} ${message} ${formattedValue}`, error]; | ||
return [[prefix, message, formattedValue, helpTip].filter(Boolean).join(' '), error]; | ||
}); |
{ | ||
"name": "@inquirer/password", | ||
"version": "1.1.15", | ||
"version": "1.1.16", | ||
"engines": { | ||
@@ -60,3 +60,3 @@ "node": ">=14.18.0" | ||
"dependencies": { | ||
"@inquirer/core": "^5.1.2", | ||
"@inquirer/core": "^6.0.0", | ||
"@inquirer/type": "^1.1.6", | ||
@@ -89,3 +89,3 @@ "ansi-escapes": "^4.3.2", | ||
}, | ||
"gitHead": "6c0d1d23e6881a10bc3d718d079a0a09ba382dd5" | ||
"gitHead": "4dee2b11d89a7c8a698c9eeda546ba8092b84f64" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14118
202
+ Added@inquirer/core@6.0.0(transitive)
- Removed@inquirer/core@5.1.2(transitive)
Updated@inquirer/core@^6.0.0