@inquirer/testing 2.1.17 → 2.1.18
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/dist/cjs/index.js
CHANGED
|
@@ -55,7 +55,7 @@ class BufferedStream extends node_stream_1.Stream.Writable {
|
|
|
55
55
|
}
|
|
56
56
|
getLastChunk({ raw }) {
|
|
57
57
|
const chunks = raw ? __classPrivateFieldGet(this, _BufferedStream__rawChunks, "f") : __classPrivateFieldGet(this, _BufferedStream__chunks, "f");
|
|
58
|
-
const lastChunk = chunks
|
|
58
|
+
const lastChunk = chunks.at(-1);
|
|
59
59
|
return lastChunk !== null && lastChunk !== void 0 ? lastChunk : '';
|
|
60
60
|
}
|
|
61
61
|
getFullOutput() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import MuteStream from 'mute-stream';
|
|
2
2
|
import type { Prompt } from '@inquirer/type';
|
|
3
|
-
export declare function render<TestedPrompt extends Prompt<
|
|
4
|
-
answer: import("@inquirer/type").CancelablePromise<
|
|
3
|
+
export declare function render<TestedPrompt extends Prompt<unknown, unknown>>(prompt: TestedPrompt, props: Parameters<TestedPrompt>[0], options?: Parameters<TestedPrompt>[1]): Promise<{
|
|
4
|
+
answer: import("@inquirer/type").CancelablePromise<unknown>;
|
|
5
5
|
input: MuteStream;
|
|
6
6
|
events: {
|
|
7
7
|
keypress(key: string | {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ class BufferedStream extends Stream.Writable {
|
|
|
25
25
|
}
|
|
26
26
|
getLastChunk({ raw }) {
|
|
27
27
|
const chunks = raw ? this.#_rawChunks : this.#_chunks;
|
|
28
|
-
const lastChunk = chunks
|
|
28
|
+
const lastChunk = chunks.at(-1);
|
|
29
29
|
return lastChunk ?? '';
|
|
30
30
|
}
|
|
31
31
|
getFullOutput() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import MuteStream from 'mute-stream';
|
|
2
2
|
import type { Prompt } from '@inquirer/type';
|
|
3
|
-
export declare function render<TestedPrompt extends Prompt<
|
|
4
|
-
answer: import("@inquirer/type").CancelablePromise<
|
|
3
|
+
export declare function render<TestedPrompt extends Prompt<unknown, unknown>>(prompt: TestedPrompt, props: Parameters<TestedPrompt>[0], options?: Parameters<TestedPrompt>[1]): Promise<{
|
|
4
|
+
answer: import("@inquirer/type").CancelablePromise<unknown>;
|
|
5
5
|
input: MuteStream;
|
|
6
6
|
events: {
|
|
7
7
|
keypress(key: string | {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/testing",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.18",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=18"
|
|
6
6
|
},
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"license": "MIT",
|
|
61
61
|
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/testing/README.md",
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@inquirer/type": "^1.3.
|
|
63
|
+
"@inquirer/type": "^1.3.1",
|
|
64
64
|
"@types/mute-stream": "^0.0.4",
|
|
65
65
|
"@types/node": "^20.12.7",
|
|
66
66
|
"ansi-escapes": "^4.3.2",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "d0e92901ebb7eb77d027786a2e1ac41fc15326b6"
|
|
89
89
|
}
|