Inquirer

Latest version: v3.3.0

Safety actively analyzes 641202 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 18 of 22

0.8.0

New Feature

Add `inquirer.createPromptModule()` who return a self contained `inquirer.prompt` method. This allow to decouple multiple interfaces who could rely on `inquirer.prompt` and different sets of prompts.

Example usage:

js
var prompt = inquirer.createPromptModule();

prompt.registerPrompt('long-list', LongListPrompt);

prompt([{
type: 'long-list',
message: 'Choose a menu item',
choices: [ /* etc */ ]
}], callback);

0.7.3

Bug fix
- Correctly detect when to add a `:` to the end of a question phrase if it the question contains color codes.

0.7.2

Bug
- Update checkbox icons (some people had issue with their terminal fonts)

Feature
- `message` can now also be a function

0.7.1

- Fix bug with `checkbox` prompt validation

0.7.0

New look

Thanks to sindresorhus, we have a set of new glyph and a refreshed style.

New feature
- `inquirer.registerPrompt()` allow to register custom prompts (plugins!) or overwriting defaults prompts (mocking!)
- `inquirer.restoreDefaultPrompts()` to restore the defaults prompts

Bugs
- `checkbox` prompt failed when used with an asynchronous `validate` method.

0.6.0

Mainly an internal API update. We now use [RxJS](http://reactive-extensions.github.io/RxJS/) internally and provide a few public API surfacing this internal switch.

Reactive JS

[See full doc for details](https://github.com/SBoudrias/Inquirer.js#reactive-interface)
- You can now pass an `Observable` in lieu of a question array. This allow you to programmatically (and progressively) fill up Inquirer question queue.
- Using `inquirer.prompts(prompts).process.subscribe()` you can be notified each time a question is answered.

Features (not Rx specific)
- `filter` functions can now be async.

Bug Fix
- `filter` function on an `input` prompt is not re-runned on the previously filtered value.

Page 18 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.