greybel-interpreter 1.2.5 → 1.2.7
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.
package/dist/handler/output.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export declare abstract class OutputHandler {
|
|
2
2
|
abstract print(message: string): void;
|
|
3
3
|
abstract progress(timeout: number): Promise<void>;
|
|
4
|
-
abstract waitForInput(): Promise<string>;
|
|
4
|
+
abstract waitForInput(isPassword: boolean): Promise<string>;
|
|
5
5
|
abstract waitForKeyPress(): Promise<number>;
|
|
6
|
+
abstract clear(): void;
|
|
6
7
|
}
|
|
7
8
|
export declare class DefaultOutputHandler extends OutputHandler {
|
|
8
9
|
print(message: string): void;
|
|
9
10
|
progress(timeout: number): Promise<void>;
|
|
10
|
-
waitForInput(): Promise<string>;
|
|
11
|
+
waitForInput(_isPassword: boolean): Promise<string>;
|
|
11
12
|
waitForKeyPress(): Promise<number>;
|
|
13
|
+
clear(): void;
|
|
12
14
|
}
|
package/dist/handler/output.js
CHANGED
|
@@ -35,12 +35,15 @@ var DefaultOutputHandler = /** @class */ (function (_super) {
|
|
|
35
35
|
setTimeout(resolve, timeout);
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
|
-
DefaultOutputHandler.prototype.waitForInput = function () {
|
|
38
|
+
DefaultOutputHandler.prototype.waitForInput = function (_isPassword) {
|
|
39
39
|
return Promise.resolve('test');
|
|
40
40
|
};
|
|
41
41
|
DefaultOutputHandler.prototype.waitForKeyPress = function () {
|
|
42
42
|
return Promise.resolve(13);
|
|
43
43
|
};
|
|
44
|
+
DefaultOutputHandler.prototype.clear = function () {
|
|
45
|
+
console.clear();
|
|
46
|
+
};
|
|
44
47
|
return DefaultOutputHandler;
|
|
45
48
|
}(OutputHandler));
|
|
46
49
|
exports.DefaultOutputHandler = DefaultOutputHandler;
|