Updating NPM dependencies
This commit is contained in:
3
node_modules/prompts/dist/prompts.js
generated
vendored
3
node_modules/prompts/dist/prompts.js
generated
vendored
@@ -11,8 +11,10 @@ function toPrompt(type, args, opts = {}) {
|
||||
const p = new el[type](args);
|
||||
const onAbort = opts.onAbort || noop;
|
||||
const onSubmit = opts.onSubmit || noop;
|
||||
const onExit = opts.onExit || noop;
|
||||
p.on('state', args.onState || noop);
|
||||
p.on('submit', x => res(onSubmit(x)));
|
||||
p.on('exit', x => res(onExit(x)));
|
||||
p.on('abort', x => rej(onAbort(x)));
|
||||
});
|
||||
}
|
||||
@@ -204,6 +206,7 @@ const byTitle = (input, choices) => Promise.resolve(choices.filter(item => item.
|
||||
* @param {number} [args.limit=10] Max number of results to show
|
||||
* @param {string} [args.style="default"] Render style ('default', 'password', 'invisible')
|
||||
* @param {String} [args.initial] Index of the default value
|
||||
* @param {boolean} [opts.clearFirst] The first ESCAPE keypress will clear the input
|
||||
* @param {String} [args.fallback] Fallback message - defaults to initial value
|
||||
* @param {function} [args.onState] On state change callback
|
||||
* @param {Stream} [args.stdin] The Readable stream to listen to
|
||||
|
||||
Reference in New Issue
Block a user