listr2
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -5,1 +5,2 @@ export * from './listr'; | ||
export * from './interfaces/manager.interface'; | ||
export { createPrompt } from './utils/prompt'; |
@@ -10,2 +10,4 @@ "use strict"; | ||
__export(require("./interfaces/manager.interface")); | ||
var prompt_1 = require("./utils/prompt"); | ||
exports.createPrompt = prompt_1.createPrompt; | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,2 @@ | ||
import { Prompt } from 'enquirer'; | ||
import { PromptOptions, PromptTypes } from './prompt.interface'; | ||
export declare function promptUser(input: Prompt): Promise<any>; | ||
export declare function createPrompt(type: PromptTypes, options: PromptOptions): Promise<any>; |
@@ -5,13 +5,2 @@ "use strict"; | ||
const listr_interface_1 = require("../interfaces/listr.interface"); | ||
function promptUser(input) { | ||
try { | ||
return input.on('cancel', () => { | ||
throw new Error('Cancelled prompt. Quitting.'); | ||
}).run(); | ||
} | ||
catch (e) { | ||
throw new Error('There was a problem getting the answer of the last question. Quitting.'); | ||
} | ||
} | ||
exports.promptUser = promptUser; | ||
function createPrompt(type, options) { | ||
@@ -18,0 +7,0 @@ let prompt; |
{ | ||
"name": "listr2", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"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
76166
1139