@inquirer/rawlist 5.2.6 → 5.2.7

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -98,10 +98,12 @@ export default createPrompt((config, done) => {
98
98
  (isDownKey(key) && active !== bounds.last)) {
99
99
  const offset = isUpKey(key) ? -1 : 1;
100
100
  let next = active;
101
+ let nextChoice;
101
102
  do {
102
103
  next = (next + offset + choices.length) % choices.length;
103
- } while (!isSelectableChoice(choices[next]));
104
- setValue(choices[next].key);
104
+ nextChoice = choices[next];
105
+ } while (!isSelectableChoice(nextChoice));
106
+ setValue(nextChoice.key);
105
107
  }
106
108
  }
107
109
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/rawlist",
3
- "version": "5.2.6",
3
+ "version": "5.2.7",
4
4
  "description": "Inquirer rawlist 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
  }