@inquirer/password 0.0.25-alpha.0 → 0.0.28-alpha.0
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/index.d.ts +5 -4
- package/dist/index.js +4 -3
- package/package.json +39 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import type { Prompt } from '@inquirer/type';
|
|
2
|
+
import input from '@inquirer/input';
|
|
3
|
+
declare type PasswordConfig = Parameters<typeof input>[0] & {
|
|
3
4
|
mask?: boolean | string;
|
|
4
5
|
};
|
|
5
|
-
declare const
|
|
6
|
-
export default
|
|
6
|
+
declare const password: Prompt<string, PasswordConfig>;
|
|
7
|
+
export default password;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import input from '@inquirer/input
|
|
1
|
+
import input from '@inquirer/input';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
|
-
|
|
3
|
+
const password = (config, context) => {
|
|
4
4
|
if (config.transformer) {
|
|
5
5
|
throw new Error('Inquirer password prompt do not support custom transformer function. Use the input prompt instead.');
|
|
6
6
|
}
|
|
@@ -16,5 +16,6 @@ export default (config, stdio) => {
|
|
|
16
16
|
}
|
|
17
17
|
return '';
|
|
18
18
|
},
|
|
19
|
-
},
|
|
19
|
+
}, context);
|
|
20
20
|
};
|
|
21
|
+
export default password;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/password",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.28-alpha.0",
|
|
5
5
|
"description": "Inquirer password prompt",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"typings": "dist/index.d.ts",
|
|
@@ -10,21 +10,52 @@
|
|
|
10
10
|
],
|
|
11
11
|
"repository": "SBoudrias/Inquirer.js",
|
|
12
12
|
"keywords": [
|
|
13
|
+
"answer",
|
|
14
|
+
"answers",
|
|
15
|
+
"ask",
|
|
16
|
+
"base",
|
|
17
|
+
"cli",
|
|
13
18
|
"cli",
|
|
14
19
|
"command",
|
|
15
|
-
"line",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
20
|
+
"command-line",
|
|
21
|
+
"confirm",
|
|
22
|
+
"enquirer",
|
|
23
|
+
"generate",
|
|
24
|
+
"generator",
|
|
25
|
+
"hyper",
|
|
18
26
|
"input",
|
|
27
|
+
"inquire",
|
|
28
|
+
"inquirer",
|
|
29
|
+
"interface",
|
|
30
|
+
"iterm",
|
|
31
|
+
"javascript",
|
|
32
|
+
"menu",
|
|
33
|
+
"node",
|
|
34
|
+
"nodejs",
|
|
19
35
|
"prompt",
|
|
20
|
-
"
|
|
36
|
+
"promptly",
|
|
37
|
+
"prompts",
|
|
38
|
+
"question",
|
|
39
|
+
"readline",
|
|
40
|
+
"scaffold",
|
|
41
|
+
"scaffolder",
|
|
42
|
+
"scaffolding",
|
|
43
|
+
"stdin",
|
|
44
|
+
"stdout",
|
|
45
|
+
"terminal",
|
|
46
|
+
"tty",
|
|
47
|
+
"ui",
|
|
48
|
+
"yeoman",
|
|
49
|
+
"yo",
|
|
50
|
+
"zsh"
|
|
21
51
|
],
|
|
22
52
|
"author": "Simon Boudrias <admin@simonboudrias.com>",
|
|
23
53
|
"license": "MIT",
|
|
24
54
|
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/password/README.md",
|
|
25
55
|
"dependencies": {
|
|
26
|
-
"@inquirer/input": "^0.0.
|
|
27
|
-
"
|
|
56
|
+
"@inquirer/input": "^0.0.28-alpha.0",
|
|
57
|
+
"@inquirer/type": "^0.0.4-alpha.0",
|
|
58
|
+
"chalk": "^5.1.2"
|
|
28
59
|
},
|
|
29
60
|
"scripts": {
|
|
30
61
|
"tsc": "tsc"
|
|
@@ -32,5 +63,5 @@
|
|
|
32
63
|
"publishConfig": {
|
|
33
64
|
"access": "public"
|
|
34
65
|
},
|
|
35
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "f532af8be2d622caa5e54adf4c084d588c9ffad6"
|
|
36
67
|
}
|