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.20 to 1.2.21

2

dist/index.d.ts

@@ -5,2 +5,2 @@ export * from './listr';

export * from './interfaces/manager.interface';
export { createPrompt } from './utils/prompt';
export { createPrompt, newPrompt } from './utils/prompt';

@@ -12,2 +12,3 @@ "use strict";

exports.createPrompt = prompt_1.createPrompt;
exports.newPrompt = prompt_1.newPrompt;
//# sourceMappingURL=index.js.map

@@ -0,2 +1,4 @@

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>;

@@ -5,3 +5,3 @@ "use strict";

const listr_interface_1 = require("../interfaces/listr.interface");
function createPrompt(type, options) {
function newPrompt(type, options) {
let prompt;

@@ -69,3 +69,7 @@ switch (type.toString().toLocaleLowerCase()) {

}
return prompt.on('cancel', () => {
return prompt;
}
exports.newPrompt = newPrompt;
function createPrompt(type, options) {
return newPrompt(type, options).on('cancel', () => {
return 'Cancelled prompt.';

@@ -72,0 +76,0 @@ }).run();

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

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

Sorry, the diff of this file is not supported yet

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