Socket
Socket
Sign inDemoInstall

listr2

Package Overview
Dependencies
Maintainers
1
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

listr2 - npm Package Compare versions

Comparing version 1.2.21 to 1.2.22

2

dist/utils/prompt.d.ts
import { Prompt } from 'enquirer';
import { PromptOptionsType, PromptTypes } from './prompt.interface';
export declare function newPrompt<T extends PromptTypes>(type: T, options: PromptOptionsType<T>): Prompt;
export declare function createPrompt<T extends PromptTypes>(type: T, options: PromptOptionsType<T>): Promise<any>;
export declare function createPrompt<T extends PromptTypes>(type: T, options: PromptOptionsType<T>, error?: boolean): Promise<any>;

@@ -71,4 +71,7 @@ "use strict";

exports.newPrompt = newPrompt;
function createPrompt(type, options) {
function createPrompt(type, options, error = false) {
return newPrompt(type, options).on('cancel', () => {
if (error) {
throw new Error('Cancelled prompt.');
}
return 'Cancelled prompt.';

@@ -75,0 +78,0 @@ }).run();

{
"name": "listr2",
"version": "1.2.21",
"version": "1.2.22",
"description": "Terminal task list reborn!",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc