@@ -60586,13 +60586,13 @@ function createPrompt(view) {
6058660586 rl.on("close", hooksCleanup);
6058760587 cleanups.add(() => rl.removeListener("close", hooksCleanup));
6058860588 cycle(() => {
60589- var _a, _b ;
60589+ var _a;
6059060590 try {
6059160591 const nextView = view(config, (value) => {
6059260592 setImmediate(() => resolve(value));
6059360593 });
6059460594 if (nextView === void 0) {
60595- const callerFilename = (_b = ( _a = callSites[1]) == null ? void 0 : _a.getFileName) == null ? void 0 : _b.call(_a );
60595+ const callerFilename = (_a = callSites[1]) == null ? void 0 : _a.getFileName( );
6059660596 throw new Error(`Prompt functions must return a string.
6059760597 at ${callerFilename}`);
6059860598 }
@@ -60678,14 +60678,17 @@ function normalizeChoices(choices) {
6067860678 };
6067960679 }
6068060680 const name = choice.name ?? String(choice.value);
60681- return {
60681+ const normalizedChoice = {
6068260682 value: choice.value,
6068360683 name,
6068460684 short: choice.short ?? name,
60685- description: choice.description,
6068660685 disabled: choice.disabled ?? false,
6068760686 checked: choice.checked ?? false
6068860687 };
60688+ if (choice.description) {
60689+ normalizedChoice.description = choice.description;
60690+ }
60691+ return normalizedChoice;
6068960692 });
6069060693}
6069160694var esm_default2 = createPrompt((config, done) => {
@@ -61324,13 +61327,16 @@ function normalizeChoices4(choices) {
6132461327 };
6132561328 }
6132661329 const name = choice.name ?? String(choice.value);
61327- return {
61330+ const normalizedChoice = {
6132861331 value: choice.value,
6132961332 name,
61330- description: choice.description,
6133161333 short: choice.short ?? name,
6133261334 disabled: choice.disabled ?? false
6133361335 };
61336+ if (choice.description) {
61337+ normalizedChoice.description = choice.description;
61338+ }
61339+ return normalizedChoice;
6133461340 });
6133561341}
6133661342var esm_default10 = createPrompt((config, done) => {
@@ -61488,13 +61494,16 @@ function normalizeChoices5(choices) {
6148861494 };
6148961495 }
6149061496 const name = choice.name ?? String(choice.value);
61491- return {
61497+ const normalizedChoice = {
6149261498 value: choice.value,
6149361499 name,
61494- description: choice.description,
6149561500 short: choice.short ?? name,
6149661501 disabled: choice.disabled ?? false
6149761502 };
61503+ if (choice.description) {
61504+ normalizedChoice.description = choice.description;
61505+ }
61506+ return normalizedChoice;
6149861507 });
6149961508}
6150061509var esm_default11 = createPrompt((config, done) => {
0 commit comments