@inquirer/prompts 5.1.0 → 5.1.2

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
@@ -17,13 +17,31 @@ npx @inquirer/demo@latest
17
17
 
18
18
  # Installation
19
19
 
20
+ <table>
21
+ <tr>
22
+ <th>npm</th>
23
+ <th>yarn</th>
24
+ </tr>
25
+ <tr>
26
+ <td>
27
+
20
28
  ```sh
21
29
  npm install @inquirer/prompts
30
+ ```
31
+
32
+ </td>
33
+ <td>
22
34
 
35
+ ```sh
23
36
  yarn add @inquirer/prompts
24
37
  ```
25
38
 
26
- Inquirer recently underwent a rewrite from the ground up to reduce the package size and improve performance. The previous version of the package is still maintained (though not actively developed), and offered hundreds of community contributed prompts that might not have been migrated to the latest API. If this is what you're looking for, the [previous package is over here](https://github.com/SBoudrias/Inquirer.js/tree/master/packages/inquirer).
39
+ </td>
40
+ </tr>
41
+ </table>
42
+
43
+ > [!NOTE]
44
+ > Inquirer recently underwent a rewrite from the ground up to reduce the package size and improve performance. The previous version of the package is still maintained (though not actively developed), and offered hundreds of community contributed prompts that might not have been migrated to the latest API. If this is what you're looking for, the [previous package is over here](https://github.com/SBoudrias/Inquirer.js/tree/master/packages/inquirer).
27
45
 
28
46
  # Usage
29
47
 
@@ -106,6 +124,16 @@ import { editor } from '@inquirer/prompts';
106
124
 
107
125
  [See documentation](https://github.com/SBoudrias/Inquirer.js/tree/master/packages/editor) for usage example and options documentation.
108
126
 
127
+ ## [Number](https://github.com/SBoudrias/Inquirer.js/tree/master/packages/number)
128
+
129
+ Very similar to the `input` prompt, but with built-in number validation configuration option.
130
+
131
+ ```js
132
+ import { number } from '@inquirer/prompts';
133
+ ```
134
+
135
+ [See documentation](https://github.com/SBoudrias/Inquirer.js/tree/master/packages/number) for usage example and options documentation.
136
+
109
137
  ## [Raw List](https://github.com/SBoudrias/Inquirer.js/tree/master/packages/rawlist)
110
138
 
111
139
  ![Raw list prompt](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/rawlist.svg)
@@ -0,0 +1,9 @@
1
+ export { default as checkbox, Separator } from '@inquirer/checkbox';
2
+ export { default as editor } from '@inquirer/editor';
3
+ export { default as confirm } from '@inquirer/confirm';
4
+ export { default as input } from '@inquirer/input';
5
+ export { default as number } from '@inquirer/number';
6
+ export { default as expand } from '@inquirer/expand';
7
+ export { default as rawlist } from '@inquirer/rawlist';
8
+ export { default as password } from '@inquirer/password';
9
+ export { default as select } from '@inquirer/select';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/prompts",
3
- "version": "5.1.0",
3
+ "version": "5.1.2",
4
4
  "description": "Inquirer prompts, combined in a single package",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "typings": "./dist/cjs/types/index.d.ts",
@@ -77,20 +77,20 @@
77
77
  }
78
78
  },
79
79
  "dependencies": {
80
- "@inquirer/checkbox": "^2.3.8",
81
- "@inquirer/confirm": "^3.1.12",
82
- "@inquirer/editor": "^2.1.12",
83
- "@inquirer/expand": "^2.1.12",
84
- "@inquirer/input": "^2.1.12",
85
- "@inquirer/number": "^1.0.0",
86
- "@inquirer/password": "^2.1.12",
87
- "@inquirer/rawlist": "^2.1.12",
88
- "@inquirer/select": "^2.3.8"
80
+ "@inquirer/checkbox": "^2.3.10",
81
+ "@inquirer/confirm": "^3.1.14",
82
+ "@inquirer/editor": "^2.1.14",
83
+ "@inquirer/expand": "^2.1.14",
84
+ "@inquirer/input": "^2.2.1",
85
+ "@inquirer/number": "^1.0.2",
86
+ "@inquirer/password": "^2.1.14",
87
+ "@inquirer/rawlist": "^2.1.14",
88
+ "@inquirer/select": "^2.3.10"
89
89
  },
90
90
  "devDependencies": {
91
91
  "@inquirer/type": "^1.4.0"
92
92
  },
93
93
  "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/prompts/README.md",
94
94
  "sideEffects": false,
95
- "gitHead": "fc27d575bceb96466cb8da8524c26d4eb2a77df0"
95
+ "gitHead": "95d2d65d3aca2c0fab66c7fd40b5dc413dfc894f"
96
96
  }