@yerofey/cryptowallet-cli 1.37.0 → 1.37.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.
Files changed (2) hide show
  1. package/cli.js +6 -0
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -17,10 +17,13 @@ import Method from './src/Method.js';
17
17
  // get the current file path
18
18
  const __filename = fileURLToPath(import.meta.url);
19
19
 
20
+ const exit = process.exit;
21
+
20
22
  if (options.list !== undefined) {
21
23
  (async () => {
22
24
  return new Method('list').init();
23
25
  })();
26
+ exit(0);
24
27
  }
25
28
 
26
29
  // generate mnemonic string if no argument is passed or only the mnemonic length is passed
@@ -36,18 +39,21 @@ if (
36
39
  copy: options?.copy || false,
37
40
  });
38
41
  })();
42
+ exit(0);
39
43
  }
40
44
 
41
45
  if (options.version) {
42
46
  (async () => {
43
47
  return new Method('version').init();
44
48
  })();
49
+ exit(0);
45
50
  }
46
51
 
47
52
  if (options.donate) {
48
53
  (async () => {
49
54
  return new Method('donate').init();
50
55
  })();
56
+ exit(0);
51
57
  }
52
58
 
53
59
  const chain = (options.chain.toUpperCase() || 'EVM').trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yerofey/cryptowallet-cli",
3
- "version": "1.37.0",
3
+ "version": "1.37.1",
4
4
  "description": "Crypto wallet generator CLI tool",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/yerofey/cryptowallet-cli",