@inquirer/password 0.0.23-alpha.0 → 0.0.27-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 +38 -8
- package/LICENSE +0 -22
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.27-alpha.0",
|
|
5
5
|
"description": "Inquirer password prompt",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"typings": "dist/index.d.ts",
|
|
@@ -10,20 +10,51 @@
|
|
|
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.
|
|
56
|
+
"@inquirer/input": "^0.0.27-alpha.0",
|
|
57
|
+
"@inquirer/type": "^0.0.4-alpha.0",
|
|
27
58
|
"chalk": "^5.0.1"
|
|
28
59
|
},
|
|
29
60
|
"scripts": {
|
|
@@ -31,6 +62,5 @@
|
|
|
31
62
|
},
|
|
32
63
|
"publishConfig": {
|
|
33
64
|
"access": "public"
|
|
34
|
-
}
|
|
35
|
-
"gitHead": "0e054fd0b58bf56e94088136dfd36b74246a5187"
|
|
65
|
+
}
|
|
36
66
|
}
|
package/LICENSE
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2022 Simon Boudrias
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person
|
|
4
|
-
obtaining a copy of this software and associated documentation
|
|
5
|
-
files (the "Software"), to deal in the Software without
|
|
6
|
-
restriction, including without limitation the rights to use,
|
|
7
|
-
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
-
copies of the Software, and to permit persons to whom the
|
|
9
|
-
Software is furnished to do so, subject to the following
|
|
10
|
-
conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be
|
|
13
|
-
included in all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
17
|
-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
19
|
-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
20
|
-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
-
OTHER DEALINGS IN THE SOFTWARE.
|