@inquirer/select 4.1.0 → 4.1.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.
package/README.md CHANGED
@@ -4,6 +4,16 @@ Simple interactive command line prompt to display a list of choices (single sele
4
4
 
5
5
  ![select prompt](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/list.svg)
6
6
 
7
+ # Special Thanks
8
+
9
+ <div align="center" markdown="1">
10
+
11
+ [![Graphite](https://github.com/user-attachments/assets/53db40ca-2254-481a-a094-6597f8716e29)](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)<br>
12
+
13
+ ### [Graphite is the AI developer productivity platform helping teams on GitHub ship higher quality software, faster](https://graphite.dev/?utm_source=npmjs&utm_medium=repo&utm_campaign=inquirerjs)
14
+
15
+ </div>
16
+
7
17
  # Installation
8
18
 
9
19
  <table>
@@ -33,13 +33,16 @@ function normalizeChoices(choices) {
33
33
  };
34
34
  }
35
35
  const name = choice.name ?? String(choice.value);
36
- return {
36
+ const normalizedChoice = {
37
37
  value: choice.value,
38
38
  name,
39
- description: choice.description,
40
39
  short: choice.short ?? name,
41
40
  disabled: choice.disabled ?? false,
42
41
  };
42
+ if (choice.description) {
43
+ normalizedChoice.description = choice.description;
44
+ }
45
+ return normalizedChoice;
43
46
  });
44
47
  }
45
48
  exports.default = (0, core_1.createPrompt)((config, done) => {
package/dist/esm/index.js CHANGED
@@ -27,13 +27,16 @@ function normalizeChoices(choices) {
27
27
  };
28
28
  }
29
29
  const name = choice.name ?? String(choice.value);
30
- return {
30
+ const normalizedChoice = {
31
31
  value: choice.value,
32
32
  name,
33
- description: choice.description,
34
33
  short: choice.short ?? name,
35
34
  disabled: choice.disabled ?? false,
36
35
  };
36
+ if (choice.description) {
37
+ normalizedChoice.description = choice.description;
38
+ }
39
+ return normalizedChoice;
37
40
  });
38
41
  }
39
42
  export default createPrompt((config, done) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/select",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Inquirer select/list prompt",
5
5
  "keywords": [
6
6
  "answer",
@@ -74,15 +74,15 @@
74
74
  "tsc": "tshy"
75
75
  },
76
76
  "dependencies": {
77
- "@inquirer/core": "^10.1.9",
77
+ "@inquirer/core": "^10.1.10",
78
78
  "@inquirer/figures": "^1.0.11",
79
- "@inquirer/type": "^3.0.5",
79
+ "@inquirer/type": "^3.0.6",
80
80
  "ansi-escapes": "^4.3.2",
81
81
  "yoctocolors-cjs": "^2.1.2"
82
82
  },
83
83
  "devDependencies": {
84
84
  "@arethetypeswrong/cli": "^0.17.4",
85
- "@inquirer/testing": "^2.1.45",
85
+ "@inquirer/testing": "^2.1.46",
86
86
  "@repo/tsconfig": "workspace:*",
87
87
  "tshy": "^3.0.2"
88
88
  },
@@ -109,5 +109,5 @@
109
109
  "optional": true
110
110
  }
111
111
  },
112
- "gitHead": "83508f90ca65d26abc1408e4209e4f8fc73e43fe"
112
+ "gitHead": "d367155a8d64d8b3e93f9c763adccf708aedc8a8"
113
113
  }