@inquirer/core 10.1.3 → 10.1.5
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/README.md
CHANGED
|
@@ -6,22 +6,15 @@ It aims to implements a lightweight API similar to React hooks - but without JSX
|
|
|
6
6
|
|
|
7
7
|
# Special Thanks
|
|
8
8
|
|
|
9
|
-
<div align="center">
|
|
10
|
-
|
|
11
|
-
<br>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<b>Warp, the intelligent terminal for developers</b>
|
|
19
|
-
<div>
|
|
20
|
-
<sup>Available for MacOS and Linux<br>
|
|
21
|
-
Visit warp.dev to learn more
|
|
22
|
-
</sup>
|
|
23
|
-
</div>
|
|
24
|
-
</a>
|
|
9
|
+
<div align="center" markdown="1">
|
|
10
|
+
|
|
11
|
+
[](https://www.warp.dev/?utm_source=npmjs&utm_medium=referral&utm_campaign=inquirer)<br>
|
|
12
|
+
|
|
13
|
+
### [Warp, the intelligent terminal for developers](https://www.warp.dev/?utm_source=npmjs&utm_medium=referral&utm_campaign=inquirer)
|
|
14
|
+
|
|
15
|
+
[Inquirer's terminal of choice!](https://www.warp.dev/?utm_source=npmjs&utm_medium=referral&utm_campaign=inquirer)<br>
|
|
16
|
+
[Available for MacOS and Linux](https://www.warp.dev/?utm_source=npmjs&utm_medium=referral&utm_campaign=inquirer)<br>
|
|
17
|
+
|
|
25
18
|
</div>
|
|
26
19
|
|
|
27
20
|
# Installation
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
6
|
+
const node_util_1 = require("node:util");
|
|
7
7
|
const ansi_escapes_1 = __importDefault(require("ansi-escapes"));
|
|
8
8
|
const utils_js_1 = require("./utils.js");
|
|
9
9
|
const height = (content) => content.split('\n').length;
|
|
@@ -30,7 +30,7 @@ class ScreenManager {
|
|
|
30
30
|
render(content, bottomContent = '') {
|
|
31
31
|
// Write message to screen and setPrompt to control backspace
|
|
32
32
|
const promptLine = lastLine(content);
|
|
33
|
-
const rawPromptLine = (0,
|
|
33
|
+
const rawPromptLine = (0, node_util_1.stripVTControlCharacters)(promptLine);
|
|
34
34
|
// Remove the rl.line from our prompt. We can't rely on the content of
|
|
35
35
|
// rl.line (mainly because of the password prompt), so just rely on it's
|
|
36
36
|
// length.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { stripVTControlCharacters } from 'node:util';
|
|
2
2
|
import ansiEscapes from 'ansi-escapes';
|
|
3
3
|
import { breakLines, readlineWidth } from './utils.js';
|
|
4
4
|
const height = (content) => content.split('\n').length;
|
|
@@ -25,7 +25,7 @@ export default class ScreenManager {
|
|
|
25
25
|
render(content, bottomContent = '') {
|
|
26
26
|
// Write message to screen and setPrompt to control backspace
|
|
27
27
|
const promptLine = lastLine(content);
|
|
28
|
-
const rawPromptLine =
|
|
28
|
+
const rawPromptLine = stripVTControlCharacters(promptLine);
|
|
29
29
|
// Remove the rl.line from our prompt. We can't rely on the content of
|
|
30
30
|
// rl.line (mainly because of the password prompt), so just rely on it's
|
|
31
31
|
// length.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/core",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.5",
|
|
4
4
|
"description": "Core Inquirer prompt API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -74,22 +74,21 @@
|
|
|
74
74
|
"tsc": "tshy"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@inquirer/figures": "^1.0.
|
|
78
|
-
"@inquirer/type": "^3.0.
|
|
77
|
+
"@inquirer/figures": "^1.0.10",
|
|
78
|
+
"@inquirer/type": "^3.0.3",
|
|
79
79
|
"ansi-escapes": "^4.3.2",
|
|
80
80
|
"cli-width": "^4.1.0",
|
|
81
81
|
"mute-stream": "^2.0.0",
|
|
82
82
|
"signal-exit": "^4.1.0",
|
|
83
|
-
"strip-ansi": "^6.0.1",
|
|
84
83
|
"wrap-ansi": "^6.2.0",
|
|
85
84
|
"yoctocolors-cjs": "^2.1.2"
|
|
86
85
|
},
|
|
87
86
|
"devDependencies": {
|
|
88
|
-
"@arethetypeswrong/cli": "^0.17.
|
|
89
|
-
"@inquirer/testing": "^2.1.
|
|
87
|
+
"@arethetypeswrong/cli": "^0.17.3",
|
|
88
|
+
"@inquirer/testing": "^2.1.42",
|
|
90
89
|
"@repo/tsconfig": "workspace:*",
|
|
91
90
|
"@types/mute-stream": "^0.0.4",
|
|
92
|
-
"@types/node": "^22.10.
|
|
91
|
+
"@types/node": "^22.10.10",
|
|
93
92
|
"@types/wrap-ansi": "^3.0.0",
|
|
94
93
|
"tshy": "^3.0.2"
|
|
95
94
|
},
|
|
@@ -108,5 +107,5 @@
|
|
|
108
107
|
".": "./src/index.ts"
|
|
109
108
|
}
|
|
110
109
|
},
|
|
111
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "a8768f9e974362aed97bc47f6c3466718e8edce9"
|
|
112
111
|
}
|