@inquirer/core 7.1.1 → 7.1.2
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.
|
@@ -39,8 +39,6 @@ class ScreenManager {
|
|
|
39
39
|
this.cursorPos = rl.getCursorPos();
|
|
40
40
|
}
|
|
41
41
|
render(content, bottomContent = '') {
|
|
42
|
-
this.clean();
|
|
43
|
-
this.rl.output.unmute();
|
|
44
42
|
/**
|
|
45
43
|
* Write message to screen and setPrompt to control backspace
|
|
46
44
|
*/
|
|
@@ -78,6 +76,8 @@ class ScreenManager {
|
|
|
78
76
|
output += ansi_escapes_1.default.cursorUp(bottomContentHeight);
|
|
79
77
|
// Return cursor to the initial left offset.
|
|
80
78
|
output += ansi_escapes_1.default.cursorTo(this.cursorPos.cols);
|
|
79
|
+
this.clean();
|
|
80
|
+
this.rl.output.unmute();
|
|
81
81
|
/**
|
|
82
82
|
* Set up state for next re-rendering
|
|
83
83
|
*/
|
|
@@ -15,8 +15,6 @@ export default class ScreenManager {
|
|
|
15
15
|
this.cursorPos = rl.getCursorPos();
|
|
16
16
|
}
|
|
17
17
|
render(content, bottomContent = '') {
|
|
18
|
-
this.clean();
|
|
19
|
-
this.rl.output.unmute();
|
|
20
18
|
/**
|
|
21
19
|
* Write message to screen and setPrompt to control backspace
|
|
22
20
|
*/
|
|
@@ -54,6 +52,8 @@ export default class ScreenManager {
|
|
|
54
52
|
output += ansiEscapes.cursorUp(bottomContentHeight);
|
|
55
53
|
// Return cursor to the initial left offset.
|
|
56
54
|
output += ansiEscapes.cursorTo(this.cursorPos.cols);
|
|
55
|
+
this.clean();
|
|
56
|
+
this.rl.output.unmute();
|
|
57
57
|
/**
|
|
58
58
|
* Set up state for next re-rendering
|
|
59
59
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/core",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=18"
|
|
6
6
|
},
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@inquirer/type": "^1.2.1",
|
|
61
61
|
"@types/mute-stream": "^0.0.4",
|
|
62
|
-
"@types/node": "^20.
|
|
62
|
+
"@types/node": "^20.12.4",
|
|
63
63
|
"@types/wrap-ansi": "^3.0.0",
|
|
64
64
|
"ansi-escapes": "^4.3.2",
|
|
65
65
|
"chalk": "^4.1.2",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"wrap-ansi": "^6.2.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@inquirer/testing": "^2.1.
|
|
75
|
+
"@inquirer/testing": "^2.1.15"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "e5300568c6b043f325a1107e38e99d931593510e"
|
|
99
99
|
}
|