Code Monkey home page Code Monkey logo

inquirer-checkbox-plus-prompt's People

Contributors

faressoft avatar hershmire avatar stevemao avatar umutcanbolat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

inquirer-checkbox-plus-prompt's Issues

UnhandledPromiseRejectionWarning - terminate node process

Hi there, I'm just trying to install the inquirer-checkbox-plus-prompt. But it's thrown some unexpected UnhandledPromiseRejectionWarning error then my node js process totally broken.

Can you figure out why it's happening?

Thank you! If you have any information want to comment on it I'll help you.

report

Up Arrow key tries history, re-filters list.

If I have a checkbox prompt open, type in "foo" then go about my business, everything is fine.

If I then run the prompt later, type in "bar" and try to scroll upwards w/ the up arrow key, I am getting history put into the search.

I'm running bash on MacOS.

Would love to look into this myself, but not sure I'll have the time any day soon.

feature request: events for left and right arrows

Hi,

I'd like to write a customized (plug-in) prompt displaying "buttons" distributed horizontally.
The user would be able to change button selection with arrow keys.
The problem is that normalizedUpKey and normalizedDownKey don't support left and right arrows.
Could you please extend events.js?

Kind Regards
Jarek
inquirer-buttons

ESM Error

I receive this error when trying to use the latest version of 'inquirer'.

var chalk = require('chalk');
            ^
Error [ERR_REQUIRE_ESM]: require() of ES Module

Is there support for the latest 'inquirer' version?

Upgrade dependency to fix Vulnerability CVE-2021-3807

There's a Regular Expression Denial of Service vulnerability in the ansi-regex package in versions < 6.0.1:
https://app.snyk.io/vuln/SNYK-JS-ANSIREGEX-1583908
https://nvd.nist.gov/vuln/detail/CVE-2021-3807

Would it be possible to update inquirer deps to use a major version like [email protected]?

The dependencies from this package that use out of date versions that I see are:
[email protected] > [email protected]

Fix versions are https://github.com/chalk/ansi-regex/releases/tag/v6.0.1, https://github.com/chalk/ansi-regex/releases/tag/v5.0.1

Incompatibility with inquirer 9.x

Since inquirer is now a native Node ECMAScript module, inquirer-checkbox-plus-prompt plugin crashes with the following error :

Error [ERR_REQUIRE_ESM]: require() of ES Module node_modules\inquirer\lib\prompts\base.js from node_modules\inquirer-checkbox-plus-prompt\index.js not supported.
Instead change the require of base.js in node_modules\inquirer-checkbox-plus-prompt\index.js to a dynamic import() which is available in all CommonJS modules.

`answersSoFar` is always undefined

const { tests: filteredTests } = await inquirer.prompt([
        {
            type: 'checkbox-plus',
            name: 'tests',
            message: 'Select test files',
            highlight: true,
            searchable: true,
            default: selected,
            async source(answersSoFar, input = '') {
               console.log(answersSoFar) ///??? undefined
                const res = fuzzy.filter(input, tests, {
                    extract: (item) => item.path
                }).map((element) => element.original.path);
                return res;
            }
        }
    ]);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.