@inquirer/core 7.1.0 → 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.0",
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.11.26",
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",
@@ -67,13 +67,12 @@
67
67
  "cli-width": "^4.1.0",
68
68
  "figures": "^3.2.0",
69
69
  "mute-stream": "^1.0.0",
70
- "run-async": "^3.0.0",
71
70
  "signal-exit": "^4.1.0",
72
71
  "strip-ansi": "^6.0.1",
73
72
  "wrap-ansi": "^6.2.0"
74
73
  },
75
74
  "devDependencies": {
76
- "@inquirer/testing": "^2.1.13"
75
+ "@inquirer/testing": "^2.1.15"
77
76
  },
78
77
  "scripts": {
79
78
  "tsc": "yarn run tsc:esm && yarn run tsc:cjs",
@@ -96,5 +95,5 @@
96
95
  }
97
96
  }
98
97
  },
99
- "gitHead": "2de191afab92c1a214dfe268c80109014803f11b"
98
+ "gitHead": "e5300568c6b043f325a1107e38e99d931593510e"
100
99
  }