@inquirer/core 10.0.0 → 10.0.1
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.
|
@@ -102,7 +102,7 @@ function createPrompt(view) {
|
|
|
102
102
|
// Wait for the promise to settle, then cleanup.
|
|
103
103
|
.finally(() => {
|
|
104
104
|
cleanups.forEach((cleanup) => cleanup());
|
|
105
|
-
screen.done({ clearContent: Boolean(context
|
|
105
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
|
106
106
|
output.end();
|
|
107
107
|
})
|
|
108
108
|
// Once cleanup is done, let the expose promise resolve/reject to the internal one.
|
|
@@ -16,7 +16,7 @@ type Pointer<Value> = SetPointer<Value> | UnsetPointer<Value>;
|
|
|
16
16
|
export declare function withPointer<Value, ReturnValue>(cb: (pointer: Pointer<Value>) => ReturnValue): ReturnValue;
|
|
17
17
|
export declare function handleChange(): void;
|
|
18
18
|
export declare const effectScheduler: {
|
|
19
|
-
queue(cb: (readline: InquirerReadline) => void): void;
|
|
19
|
+
queue(cb: (readline: InquirerReadline) => void | (() => void)): void;
|
|
20
20
|
run(): void;
|
|
21
21
|
clearAll(): void;
|
|
22
22
|
};
|
|
@@ -73,7 +73,7 @@ export function createPrompt(view) {
|
|
|
73
73
|
// Wait for the promise to settle, then cleanup.
|
|
74
74
|
.finally(() => {
|
|
75
75
|
cleanups.forEach((cleanup) => cleanup());
|
|
76
|
-
screen.done({ clearContent: Boolean(context
|
|
76
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
|
77
77
|
output.end();
|
|
78
78
|
})
|
|
79
79
|
// Once cleanup is done, let the expose promise resolve/reject to the internal one.
|
|
@@ -16,7 +16,7 @@ type Pointer<Value> = SetPointer<Value> | UnsetPointer<Value>;
|
|
|
16
16
|
export declare function withPointer<Value, ReturnValue>(cb: (pointer: Pointer<Value>) => ReturnValue): ReturnValue;
|
|
17
17
|
export declare function handleChange(): void;
|
|
18
18
|
export declare const effectScheduler: {
|
|
19
|
-
queue(cb: (readline: InquirerReadline) => void): void;
|
|
19
|
+
queue(cb: (readline: InquirerReadline) => void | (() => void)): void;
|
|
20
20
|
run(): void;
|
|
21
21
|
clearAll(): void;
|
|
22
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/core",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"description": "Core Inquirer prompt API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -86,10 +86,10 @@
|
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@arethetypeswrong/cli": "^0.16.4",
|
|
89
|
-
"@inquirer/testing": "^2.1.
|
|
89
|
+
"@inquirer/testing": "^2.1.36",
|
|
90
90
|
"@repo/tsconfig": "workspace:*",
|
|
91
91
|
"@types/mute-stream": "^0.0.4",
|
|
92
|
-
"@types/node": "^22.
|
|
92
|
+
"@types/node": "^22.8.0",
|
|
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": "da3dd749325495266025f2dbdb339a812da468f8"
|
|
112
112
|
}
|