@inquirer/password 2.1.12 → 2.1.14

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 CHANGED
@@ -6,12 +6,29 @@ Interactive password input component for command line interfaces. Supports input
6
6
 
7
7
  # Installation
8
8
 
9
+ <table>
10
+ <tr>
11
+ <th>npm</th>
12
+ <th>yarn</th>
13
+ </tr>
14
+ <tr>
15
+ <td>
16
+
9
17
  ```sh
10
18
  npm install @inquirer/password
19
+ ```
20
+
21
+ </td>
22
+ <td>
11
23
 
24
+ ```sh
12
25
  yarn add @inquirer/password
13
26
  ```
14
27
 
28
+ </td>
29
+ </tr>
30
+ </table>
31
+
15
32
  # Usage
16
33
 
17
34
  ```js
@@ -0,0 +1,10 @@
1
+ import { type Theme } from '@inquirer/core';
2
+ import type { PartialDeep } from '@inquirer/type';
3
+ type PasswordConfig = {
4
+ message: string;
5
+ mask?: boolean | string;
6
+ validate?: (value: string) => boolean | string | Promise<string | boolean>;
7
+ theme?: PartialDeep<Theme>;
8
+ };
9
+ declare const _default: import("@inquirer/type").Prompt<string, PasswordConfig>;
10
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/password",
3
- "version": "2.1.12",
3
+ "version": "2.1.14",
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": "^9.0.0",
60
+ "@inquirer/core": "^9.0.2",
61
61
  "@inquirer/type": "^1.4.0",
62
62
  "ansi-escapes": "^4.3.2"
63
63
  },
64
64
  "devDependencies": {
65
- "@inquirer/testing": "^2.1.24"
65
+ "@inquirer/testing": "^2.1.25"
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": "fc27d575bceb96466cb8da8524c26d4eb2a77df0"
90
+ "gitHead": "95d2d65d3aca2c0fab66c7fd40b5dc413dfc894f"
91
91
  }