hodl-wallet 1.4.2 → 1.4.4

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/index.mjs +4 -6
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -18,6 +18,10 @@ const __dirname = dirname(__filename);
18
18
  import inquirerAutocomplete from 'inquirer-autocomplete-prompt';
19
19
  inquirer.registerPrompt('autocomplete', inquirerAutocomplete);
20
20
 
21
+ process.on('SIGINT', () => {
22
+ process.exit();
23
+ });
24
+
21
25
  class Wallet {
22
26
  constructor(encryptionKey) {
23
27
  const hodlDir = path.join(os.homedir(), '.HODL');
@@ -681,7 +685,6 @@ try {
681
685
  process.exit(1);
682
686
  }
683
687
 
684
- // Register the displayExitPhrase method and account clearing to be called on process exit
685
688
  process.on('exit', () => {
686
689
  wallet.clearAccountData();
687
690
  UIManager.displayExitPhrase();
@@ -718,8 +721,3 @@ while (true) {
718
721
  process.exit();
719
722
  }
720
723
  }
721
-
722
- process.on('SIGINT', () => {
723
- console.log('\n');
724
- process.exit();
725
- });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hodl-wallet",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "🧊 HODL Wallet - Fast CLI crypto wallet!",
5
5
  "author": "Martin Clasen",
6
6
  "repository": {