@inquirer/password 2.1.10 → 2.1.12
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/README.md +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ const answer = await password({ message: 'Enter your name' });
|
|
|
26
26
|
| -------- | ----------------------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
27
27
|
| message | `string` | yes | The question to ask |
|
|
28
28
|
| mask | `boolean` | no | Show a `*` mask over the input or keep it transparent |
|
|
29
|
-
| validate | `string => boolean \| string \| Promise<
|
|
29
|
+
| validate | `string => boolean \| string \| Promise<boolean \| string>` | no | On submit, validate the filtered answered content. When returning a string, it'll be used as the error message displayed to the user. Note: returning a rejected promise, we'll assume a code error happened and crash. |
|
|
30
30
|
| theme | [See Theming](#Theming) | no | Customize look of the prompt. |
|
|
31
31
|
|
|
32
32
|
## Theming
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/password",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.12",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=18"
|
|
6
6
|
},
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"license": "MIT",
|
|
58
58
|
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/password/README.md",
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@inquirer/core": "^
|
|
61
|
-
"@inquirer/type": "^1.
|
|
60
|
+
"@inquirer/core": "^9.0.0",
|
|
61
|
+
"@inquirer/type": "^1.4.0",
|
|
62
62
|
"ansi-escapes": "^4.3.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@inquirer/testing": "^2.1.
|
|
65
|
+
"@inquirer/testing": "^2.1.24"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
"sideEffects": false,
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "fc27d575bceb96466cb8da8524c26d4eb2a77df0"
|
|
91
91
|
}
|