wisdom 17.2.0 → 17.2.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/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2026.02.05, v17.2.1
2
+
3
+ fix:
4
+ - a4fb95a wisdom: promps: crash after cancel
5
+
1
6
  2026.02.03, v17.2.0
2
7
 
3
8
  feature:
package/lib/prompts.js CHANGED
@@ -1,9 +1,12 @@
1
1
  import enquirer from 'enquirer';
2
2
  import {tryToCatch} from 'try-to-catch';
3
3
  import {choose as chooseCLI} from '@putout/cli-choose';
4
+ import {initKeypressListen} from '@putout/cli-choose/keypress';
4
5
 
5
6
  const {Confirm} = enquirer;
6
7
 
8
+ initKeypressListen();
9
+
7
10
  export const choose = async () => {
8
11
  const choices = [
9
12
  'patch',
@@ -20,7 +23,8 @@ export const ask = async (name, version) => {
20
23
  message: `Are you sure that you want to publish major version of '${name}': v${version}?`,
21
24
  });
22
25
 
23
- return await run(prompt);
26
+ const [, answer] = await tryToCatch(run, prompt);
27
+ return answer;
24
28
  };
25
29
 
26
30
  async function run(prompt) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wisdom",
3
- "version": "17.2.0",
3
+ "version": "17.2.1",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "configurable publish releases to github and npm",
6
6
  "homepage": "http://github.com/coderaiser/wisdom",