@inquirer/expand 5.0.10 → 5.0.11

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/index.d.ts CHANGED
@@ -11,10 +11,10 @@ type Choice<Value> = {
11
11
  };
12
12
  declare const _default: <Value>(config: {
13
13
  message: string;
14
- choices: readonly {
14
+ choices: readonly (Separator | {
15
15
  key: Key;
16
16
  name: string;
17
- }[] | readonly (Separator | Choice<Value>)[];
17
+ } | Choice<Value>)[];
18
18
  default?: (Key | "h") | undefined;
19
19
  expanded?: boolean | undefined;
20
20
  theme?: PartialDeep<Theme> | undefined;
package/dist/index.js CHANGED
@@ -8,9 +8,10 @@ function normalizeChoices(choices) {
8
8
  const name = 'name' in choice ? choice.name : String(choice.value);
9
9
  const value = 'value' in choice ? choice.value : name;
10
10
  return {
11
+ // oxlint-disable-next-line typescript/no-unsafe-type-assertion
11
12
  value: value,
12
13
  name,
13
- key: choice.key.toLowerCase(),
14
+ key: choice.key,
14
15
  };
15
16
  });
16
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/expand",
3
- "version": "5.0.10",
3
+ "version": "5.0.11",
4
4
  "description": "Inquirer checkbox prompt",
5
5
  "keywords": [
6
6
  "answer",
@@ -67,11 +67,11 @@
67
67
  "tsc": "tsc"
68
68
  },
69
69
  "dependencies": {
70
- "@inquirer/core": "^11.1.7",
71
- "@inquirer/type": "^4.0.4"
70
+ "@inquirer/core": "^11.1.8",
71
+ "@inquirer/type": "^4.0.5"
72
72
  },
73
73
  "devDependencies": {
74
- "typescript": "^5.9.3"
74
+ "typescript": "^6.0.2"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@types/node": ">=18"
@@ -86,5 +86,5 @@
86
86
  },
87
87
  "main": "./dist/index.js",
88
88
  "types": "./dist/index.d.ts",
89
- "gitHead": "b218fcc4afe888a58957aa78c9a032f9bd2d60cb"
89
+ "gitHead": "e68fe01d65359e083581c48c4a18cd8f97d88842"
90
90
  }