@inquirer/core 10.1.1 → 10.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.
- package/LICENSE +1 -1
- package/README.md +20 -0
- package/dist/commonjs/lib/create-prompt.js +0 -1
- package/dist/esm/lib/create-prompt.js +0 -1
- package/package.json +7 -7
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -4,6 +4,26 @@ The `@inquirer/core` package is the library enabling the creation of Inquirer pr
|
|
|
4
4
|
|
|
5
5
|
It aims to implements a lightweight API similar to React hooks - but without JSX.
|
|
6
6
|
|
|
7
|
+
# Special Thanks
|
|
8
|
+
|
|
9
|
+
<div align="center">
|
|
10
|
+
<br>
|
|
11
|
+
<br>
|
|
12
|
+
<a href="https://www.warp.dev/?utm_source=npmjs&utm_medium=referral&utm_campaign=inquirer">
|
|
13
|
+
<div>
|
|
14
|
+
<picture>
|
|
15
|
+
<img alt="Warp" width="400" src="https://github.com/user-attachments/assets/2bda420d-4211-4900-a37e-e3c7056d799c">
|
|
16
|
+
</picture>
|
|
17
|
+
</div>
|
|
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>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
7
27
|
# Installation
|
|
8
28
|
|
|
9
29
|
<table>
|
|
@@ -69,7 +69,6 @@ function createPrompt(view) {
|
|
|
69
69
|
});
|
|
70
70
|
const screen = new screen_manager_js_1.default(rl);
|
|
71
71
|
const { promise, resolve, reject } = promise_polyfill_js_1.PromisePolyfill.withResolver();
|
|
72
|
-
/** @deprecated pass an AbortSignal in the context options instead. See {@link https://github.com/SBoudrias/Inquirer.js#canceling-prompt} */
|
|
73
72
|
const cancel = () => reject(new errors_js_1.CancelPromptError());
|
|
74
73
|
if (signal) {
|
|
75
74
|
const abort = () => reject(new errors_js_1.AbortPromptError({ cause: signal.reason }));
|
|
@@ -40,7 +40,6 @@ export function createPrompt(view) {
|
|
|
40
40
|
});
|
|
41
41
|
const screen = new ScreenManager(rl);
|
|
42
42
|
const { promise, resolve, reject } = PromisePolyfill.withResolver();
|
|
43
|
-
/** @deprecated pass an AbortSignal in the context options instead. See {@link https://github.com/SBoudrias/Inquirer.js#canceling-prompt} */
|
|
44
43
|
const cancel = () => reject(new CancelPromptError());
|
|
45
44
|
if (signal) {
|
|
46
45
|
const abort = () => reject(new AbortPromptError({ cause: signal.reason }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/core",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.3",
|
|
4
4
|
"description": "Core Inquirer prompt API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"tsc": "tshy"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@inquirer/figures": "^1.0.
|
|
78
|
-
"@inquirer/type": "^3.0.
|
|
77
|
+
"@inquirer/figures": "^1.0.9",
|
|
78
|
+
"@inquirer/type": "^3.0.2",
|
|
79
79
|
"ansi-escapes": "^4.3.2",
|
|
80
80
|
"cli-width": "^4.1.0",
|
|
81
81
|
"mute-stream": "^2.0.0",
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
"yoctocolors-cjs": "^2.1.2"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@arethetypeswrong/cli": "^0.17.
|
|
89
|
-
"@inquirer/testing": "^2.1.
|
|
88
|
+
"@arethetypeswrong/cli": "^0.17.2",
|
|
89
|
+
"@inquirer/testing": "^2.1.40",
|
|
90
90
|
"@repo/tsconfig": "workspace:*",
|
|
91
91
|
"@types/mute-stream": "^0.0.4",
|
|
92
|
-
"@types/node": "^22.10.
|
|
92
|
+
"@types/node": "^22.10.5",
|
|
93
93
|
"@types/wrap-ansi": "^3.0.0",
|
|
94
94
|
"tshy": "^3.0.2"
|
|
95
95
|
},
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
".": "./src/index.ts"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "43afbb5a1a96a23342f9fa3867e3d5d0a9abc8fe"
|
|
112
112
|
}
|