@inquirer/prompts 3.3.2 → 4.1.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/README.md +10 -0
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -234,6 +234,16 @@ exec < /dev/tty
|
|
|
234
234
|
node my-script.js
|
|
235
235
|
```
|
|
236
236
|
|
|
237
|
+
## Wait for config
|
|
238
|
+
|
|
239
|
+
Maybe some question configuration require to await a value.
|
|
240
|
+
|
|
241
|
+
```js
|
|
242
|
+
import { confirm } from '@inquirer/prompts';
|
|
243
|
+
|
|
244
|
+
const answer = await confirm({ message: await getMessage() });
|
|
245
|
+
```
|
|
246
|
+
|
|
237
247
|
# Community prompts
|
|
238
248
|
|
|
239
249
|
If you created a cool prompt, [send us a PR adding it](https://github.com/SBoudrias/Inquirer.js/edit/master/README.md) to the list below!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/prompts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
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",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
|
-
"node": ">=
|
|
63
|
+
"node": ">=18"
|
|
64
64
|
},
|
|
65
65
|
"exports": {
|
|
66
66
|
".": {
|
|
@@ -75,16 +75,16 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@inquirer/checkbox": "^1.
|
|
79
|
-
"@inquirer/confirm": "^
|
|
80
|
-
"@inquirer/core": "^
|
|
81
|
-
"@inquirer/editor": "^
|
|
82
|
-
"@inquirer/expand": "^
|
|
83
|
-
"@inquirer/input": "^
|
|
84
|
-
"@inquirer/password": "^
|
|
85
|
-
"@inquirer/rawlist": "^
|
|
86
|
-
"@inquirer/select": "^
|
|
78
|
+
"@inquirer/checkbox": "^2.1.0",
|
|
79
|
+
"@inquirer/confirm": "^3.0.0",
|
|
80
|
+
"@inquirer/core": "^7.0.0",
|
|
81
|
+
"@inquirer/editor": "^2.0.0",
|
|
82
|
+
"@inquirer/expand": "^2.0.0",
|
|
83
|
+
"@inquirer/input": "^2.0.0",
|
|
84
|
+
"@inquirer/password": "^2.0.0",
|
|
85
|
+
"@inquirer/rawlist": "^2.0.0",
|
|
86
|
+
"@inquirer/select": "^2.0.0"
|
|
87
87
|
},
|
|
88
88
|
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/prompts/README.md",
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "0dfa6bd174d0891c07dcb6a97d04db29b9fc6f34"
|
|
90
90
|
}
|