@webtypen/webframez-core 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -56,13 +56,16 @@ class ConsoleCommand {
|
|
|
56
56
|
return this;
|
|
57
57
|
}
|
|
58
58
|
ask(question) {
|
|
59
|
-
return
|
|
60
|
-
|
|
61
|
-
this.rl
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const result = yield new Promise((resolve) => {
|
|
61
|
+
if (this.rl) {
|
|
62
|
+
this.rl.question(question, (answer) => {
|
|
63
|
+
resolve(answer);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
resolve(null);
|
|
67
|
+
});
|
|
68
|
+
return result;
|
|
66
69
|
});
|
|
67
70
|
}
|
|
68
71
|
progress(count) {
|
package/package.json
CHANGED
|
@@ -44,8 +44,8 @@ export class ConsoleCommand {
|
|
|
44
44
|
return this;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
ask(question: string) {
|
|
48
|
-
|
|
47
|
+
async ask(question: string) {
|
|
48
|
+
const result = await new Promise((resolve) => {
|
|
49
49
|
if (this.rl) {
|
|
50
50
|
this.rl.question(question, (answer) => {
|
|
51
51
|
resolve(answer);
|
|
@@ -53,6 +53,7 @@ export class ConsoleCommand {
|
|
|
53
53
|
}
|
|
54
54
|
resolve(null);
|
|
55
55
|
});
|
|
56
|
+
return result;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
progress(count: number) {
|