@inquirer/prompts 3.3.1 → 4.0.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.
Files changed (2) hide show
  1. package/README.md +10 -0
  2. 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.3.1",
3
+ "version": "4.0.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": ">=14.18.0"
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.5.1",
79
- "@inquirer/confirm": "^2.0.16",
80
- "@inquirer/core": "^5.1.2",
81
- "@inquirer/editor": "^1.2.14",
82
- "@inquirer/expand": "^1.1.15",
83
- "@inquirer/input": "^1.2.15",
84
- "@inquirer/password": "^1.1.15",
85
- "@inquirer/rawlist": "^1.2.15",
86
- "@inquirer/select": "^1.3.2"
78
+ "@inquirer/checkbox": "^2.0.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": "6c0d1d23e6881a10bc3d718d079a0a09ba382dd5"
89
+ "gitHead": "44016a40bc9e93455dfdb9fa6c25c27c1c109bd3"
90
90
  }