Comparing version 0.7.0-beta.3 to 0.7.0-beta.4
@@ -15,10 +15,10 @@ "use strict"; | ||
const stream_1 = require("stream"); | ||
class Ask { | ||
const AskProto = { | ||
execute(questionInput, optionsAsk) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const question = this.trimAndAddSpace(questionInput); | ||
const question = AskProto.trimAndAddSpace(questionInput); | ||
return new Promise(resolve => { | ||
const questionInterface = (0, readline_1.createInterface)({ | ||
input: process.stdin, | ||
output: this.output(question, optionsAsk === null || optionsAsk === void 0 ? void 0 : optionsAsk.hidden), | ||
output: AskProto.output(question, optionsAsk === null || optionsAsk === void 0 ? void 0 : optionsAsk.hidden), | ||
terminal: true | ||
@@ -32,3 +32,3 @@ }); | ||
}); | ||
} | ||
}, | ||
output(question, muted = false) { | ||
@@ -52,7 +52,7 @@ let printAsk = false; | ||
}); | ||
} | ||
}, | ||
trimAndAddSpace(value) { | ||
return `${value.trim()} `; | ||
} | ||
} | ||
exports.ask = new Ask().execute; | ||
}; | ||
exports.ask = AskProto.execute; |
{ | ||
"name": "cowmand", | ||
"version": "0.7.0-beta.3", | ||
"version": "0.7.0-beta.4", | ||
"description": "Fast helper to create a cli", | ||
@@ -5,0 +5,0 @@ "tags": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123903