@inquirer/password 4.0.19 → 4.0.21
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 -5
- package/dist/esm/index.js +2 -2
- package/package.json +6 -6
package/dist/commonjs/index.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
const core_1 = require("@inquirer/core");
|
|
7
|
-
const
|
|
4
|
+
const ansi_1 = require("@inquirer/ansi");
|
|
8
5
|
exports.default = (0, core_1.createPrompt)((config, done) => {
|
|
9
6
|
const { validate = () => true } = config;
|
|
10
7
|
const theme = (0, core_1.makeTheme)(config.theme);
|
|
@@ -47,7 +44,7 @@ exports.default = (0, core_1.createPrompt)((config, done) => {
|
|
|
47
44
|
formattedValue = maskChar.repeat(value.length);
|
|
48
45
|
}
|
|
49
46
|
else if (status !== 'done') {
|
|
50
|
-
helpTip = `${theme.style.help('[input is masked]')}${
|
|
47
|
+
helpTip = `${theme.style.help('[input is masked]')}${ansi_1.cursorHide}`;
|
|
51
48
|
}
|
|
52
49
|
if (status === 'done') {
|
|
53
50
|
formattedValue = theme.style.answer(formattedValue);
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createPrompt, useState, useKeypress, usePrefix, isEnterKey, makeTheme, } from '@inquirer/core';
|
|
2
|
-
import
|
|
2
|
+
import { cursorHide } from '@inquirer/ansi';
|
|
3
3
|
export default createPrompt((config, done) => {
|
|
4
4
|
const { validate = () => true } = config;
|
|
5
5
|
const theme = makeTheme(config.theme);
|
|
@@ -42,7 +42,7 @@ export default createPrompt((config, done) => {
|
|
|
42
42
|
formattedValue = maskChar.repeat(value.length);
|
|
43
43
|
}
|
|
44
44
|
else if (status !== 'done') {
|
|
45
|
-
helpTip = `${theme.style.help('[input is masked]')}${
|
|
45
|
+
helpTip = `${theme.style.help('[input is masked]')}${cursorHide}`;
|
|
46
46
|
}
|
|
47
47
|
if (status === 'done') {
|
|
48
48
|
formattedValue = theme.style.answer(formattedValue);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/password",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.21",
|
|
4
4
|
"description": "Inquirer password prompt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
"tsc": "tshy"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@inquirer/
|
|
78
|
-
"@inquirer/
|
|
79
|
-
"
|
|
77
|
+
"@inquirer/ansi": "^1.0.1",
|
|
78
|
+
"@inquirer/core": "^10.3.0",
|
|
79
|
+
"@inquirer/type": "^3.0.9"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
83
|
-
"@inquirer/testing": "^2.1.
|
|
83
|
+
"@inquirer/testing": "^2.1.51",
|
|
84
84
|
"tshy": "^3.0.2"
|
|
85
85
|
},
|
|
86
86
|
"engines": {
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"optional": true
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "87cb01e67a25983bdaf0d74a7685915c0afb5f23"
|
|
110
110
|
}
|