@inquirer/core 10.1.4 → 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
@@ -8,10 +8,12 @@ It aims to implements a lightweight API similar to React hooks - but without JSX
8
8
 
9
9
  <div align="center" markdown="1">
10
10
 
11
- [![Warp](https://github.com/user-attachments/assets/2bda420d-4211-4900-a37e-e3c7056d799c)](https://www.warp.dev/?utm_source=npmjs&utm_medium=referral&utm_campaign=inquirer)<br>
12
- **[Warp, the intelligent terminal for developers](https://www.warp.dev/?utm_source=npmjs&utm_medium=referral&utm_campaign=inquirer)**<br>
11
+ [![Warp](https://github.com/user-attachments/assets/0c3b132c-8984-49cf-918a-db6f6abe2c01)](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>
13
16
  [Available for MacOS and Linux](https://www.warp.dev/?utm_source=npmjs&utm_medium=referral&utm_campaign=inquirer)<br>
14
- [Visit warp.dev to learn more](https://www.warp.dev/?utm_source=npmjs&utm_medium=referral&utm_campaign=inquirer)
15
17
 
16
18
  </div>
17
19
 
@@ -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 strip_ansi_1 = __importDefault(require("strip-ansi"));
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, strip_ansi_1.default)(promptLine);
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 stripAnsi from 'strip-ansi';
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 = stripAnsi(promptLine);
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.4",
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.9",
78
- "@inquirer/type": "^3.0.2",
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.2",
89
- "@inquirer/testing": "^2.1.41",
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.5",
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": "0b28eff102cb90e933faf104a1e42c2298b7cb0e"
110
+ "gitHead": "a8768f9e974362aed97bc47f6c3466718e8edce9"
112
111
  }