@inquirer/core 7.1.1 → 7.1.3

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.
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Separator = void 0;
7
7
  const chalk_1 = __importDefault(require("chalk"));
8
- const figures_1 = __importDefault(require("figures"));
8
+ const figures_1 = __importDefault(require("@inquirer/figures"));
9
9
  /**
10
10
  * Separator object
11
11
  * Used to space/separate choices group
@@ -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
  */
@@ -1,5 +1,5 @@
1
1
  import chalk from 'chalk';
2
- import figures from 'figures';
2
+ import figures from '@inquirer/figures';
3
3
  /**
4
4
  * Separator object
5
5
  * Used to space/separate choices group
@@ -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.1",
3
+ "version": "7.1.3",
4
4
  "engines": {
5
5
  "node": ">=18"
6
6
  },
@@ -57,22 +57,22 @@
57
57
  "license": "MIT",
58
58
  "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/core/README.md",
59
59
  "dependencies": {
60
- "@inquirer/type": "^1.2.1",
60
+ "@inquirer/figures": "^1.0.0",
61
+ "@inquirer/type": "^1.2.2",
61
62
  "@types/mute-stream": "^0.0.4",
62
- "@types/node": "^20.11.30",
63
+ "@types/node": "^20.12.4",
63
64
  "@types/wrap-ansi": "^3.0.0",
64
65
  "ansi-escapes": "^4.3.2",
65
66
  "chalk": "^4.1.2",
66
67
  "cli-spinners": "^2.9.2",
67
68
  "cli-width": "^4.1.0",
68
- "figures": "^3.2.0",
69
69
  "mute-stream": "^1.0.0",
70
70
  "signal-exit": "^4.1.0",
71
71
  "strip-ansi": "^6.0.1",
72
72
  "wrap-ansi": "^6.2.0"
73
73
  },
74
74
  "devDependencies": {
75
- "@inquirer/testing": "^2.1.14"
75
+ "@inquirer/testing": "^2.1.16"
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": "086fb1c59092cba248e55583d92f34e4eec44b2d"
98
+ "gitHead": "6bfbdfc457ab6d99b9d80c106b5edad285c8b9ba"
99
99
  }