@inquirer/core
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@inquirer/core", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"engines": { | ||
@@ -60,3 +60,3 @@ "node": ">=14.18.0" | ||
"dependencies": { | ||
"@inquirer/type": "^0.1.0", | ||
"@inquirer/type": "^1.0.0", | ||
"ansi-escapes": "^6.0.0", | ||
@@ -74,3 +74,3 @@ "chalk": "^5.2.0", | ||
"devDependencies": { | ||
"@inquirer/testing": "^0.1.0", | ||
"@inquirer/testing": "^1.0.0", | ||
"@jest/globals": "^29.5.0" | ||
@@ -100,3 +100,3 @@ }, | ||
}, | ||
"gitHead": "bd58130dd8204945a31b062070b829003b8385fc" | ||
"gitHead": "e93c4cb14f0c35ebd1efb065776b90f48899b075" | ||
} |
@@ -65,18 +65,18 @@ # `@inquirer/core` | ||
- [Confirm Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/confirm/src/index.ts) | ||
- [Input Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/input/src/index.ts) | ||
- [Password Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/password/src/index.ts) | ||
- [Editor Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/editor/src/index.ts) | ||
- [Select Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/select/src/index.ts) | ||
- [Checkbox Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/checkbox/src/index.ts) | ||
- [Rawlist Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/rawlist/src/index.ts) | ||
- [Expand Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/expand/src/index.ts) | ||
- [Confirm Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/confirm/src/index.mts) | ||
- [Input Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/input/src/index.mts) | ||
- [Password Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/password/src/index.mts) | ||
- [Editor Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/editor/src/index.mts) | ||
- [Select Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/select/src/index.mts) | ||
- [Checkbox Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/checkbox/src/index.mts) | ||
- [Rawlist Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/rawlist/src/index.mts) | ||
- [Expand Prompt](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/expand/src/index.mts) | ||
## API | ||
### `createPrompt(config, context)` | ||
### `createPrompt(viewFn)` | ||
The `createPrompt` function returns an asynchronous function that returns a promise that'll resolve to the valid answer a user submit. This prompt function takes the prompt configuration as its first argument (this is defined by each prompt), and the context options as a second argument. | ||
The `createPrompt` function returns an asynchronous function that returns a promise resolving to the valid answer a user submit. This prompt function takes the prompt configuration as its first argument (this is defined by each prompt), and the context options as a second argument. | ||
The context options are: | ||
The prompt configuration is unique to each prompt. The context options are: | ||
@@ -83,0 +83,0 @@ | Property | Type | Required | Description | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
48159
0
+ Added@inquirer/type@1.5.5(transitive)
- Removed@inquirer/type@0.1.0(transitive)
Updated@inquirer/type@^1.0.0