@inquirer/testing 2.1.29 → 2.1.31
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
|
@@ -92,11 +92,11 @@ function render(prompt, props, options) {
|
|
|
92
92
|
answer,
|
|
93
93
|
input,
|
|
94
94
|
events,
|
|
95
|
-
getScreen({ raw } = {}) {
|
|
95
|
+
getScreen: ({ raw } = {}) => {
|
|
96
96
|
const lastScreen = output.getLastChunk({ raw });
|
|
97
97
|
return raw ? lastScreen : (0, strip_ansi_1.default)(lastScreen).trim();
|
|
98
98
|
},
|
|
99
|
-
getFullOutput() {
|
|
99
|
+
getFullOutput: () => {
|
|
100
100
|
return output.getFullOutput();
|
|
101
101
|
},
|
|
102
102
|
};
|
|
@@ -12,8 +12,8 @@ export declare function render<const Props, const Value, const TestedPrompt exte
|
|
|
12
12
|
}): void;
|
|
13
13
|
type(text: string): void;
|
|
14
14
|
};
|
|
15
|
-
getScreen({ raw }?: {
|
|
15
|
+
getScreen: ({ raw }?: {
|
|
16
16
|
raw?: boolean;
|
|
17
|
-
})
|
|
18
|
-
getFullOutput()
|
|
17
|
+
}) => string;
|
|
18
|
+
getFullOutput: () => string;
|
|
19
19
|
}>;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -60,11 +60,11 @@ export async function render(prompt, props, options) {
|
|
|
60
60
|
answer,
|
|
61
61
|
input,
|
|
62
62
|
events,
|
|
63
|
-
getScreen({ raw } = {}) {
|
|
63
|
+
getScreen: ({ raw } = {}) => {
|
|
64
64
|
const lastScreen = output.getLastChunk({ raw });
|
|
65
65
|
return raw ? lastScreen : stripAnsi(lastScreen).trim();
|
|
66
66
|
},
|
|
67
|
-
getFullOutput() {
|
|
67
|
+
getFullOutput: () => {
|
|
68
68
|
return output.getFullOutput();
|
|
69
69
|
},
|
|
70
70
|
};
|
|
@@ -12,8 +12,8 @@ export declare function render<const Props, const Value, const TestedPrompt exte
|
|
|
12
12
|
}): void;
|
|
13
13
|
type(text: string): void;
|
|
14
14
|
};
|
|
15
|
-
getScreen({ raw }?: {
|
|
15
|
+
getScreen: ({ raw }?: {
|
|
16
16
|
raw?: boolean;
|
|
17
|
-
})
|
|
18
|
-
getFullOutput()
|
|
17
|
+
}) => string;
|
|
18
|
+
getFullOutput: () => string;
|
|
19
19
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/testing",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.31",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=18"
|
|
6
6
|
},
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"license": "MIT",
|
|
61
61
|
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/testing/README.md",
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@inquirer/type": "^1.5.
|
|
63
|
+
"@inquirer/type": "^1.5.2",
|
|
64
64
|
"@types/mute-stream": "^0.0.4",
|
|
65
|
-
"@types/node": "^
|
|
65
|
+
"@types/node": "^22.1.0",
|
|
66
66
|
"ansi-escapes": "^4.3.2",
|
|
67
67
|
"mute-stream": "^1.0.0",
|
|
68
68
|
"strip-ansi": "^6.0.1"
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
"sideEffects": false,
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "056e26aa6497e0036864d032f9eb8d821de821e7"
|
|
90
90
|
}
|