From 8a1582a40a05a570b06725badc53156e18569ea1 Mon Sep 17 00:00:00 2001 From: przemerr Date: Mon, 10 Jun 2024 21:37:18 +0200 Subject: [PATCH] enter to exit --- exodusRecovery.js | 9 ++++++--- package.json | 3 +-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/exodusRecovery.js b/exodusRecovery.js index 87a332d..208d84d 100644 --- a/exodusRecovery.js +++ b/exodusRecovery.js @@ -1,4 +1,4 @@ -const cryptography = require('@liskhq/lisk-cryptography'); +const cryptography = require('@liskhq/lisk-cryptography'); const readline = require('readline'); const nacl = require('tweetnacl'); @@ -60,8 +60,11 @@ rl.question('Enter your private key (hex format): ', (privateKeyHex) => { } catch (error) { console.error('Error:', error); } finally { - rl.close(); - process.exit(0); + rl.question('Press Enter to exit...', () => { + rl.close(); + process.exit(0); + }); } }); }); + diff --git a/package.json b/package.json index ce5ba88..b589805 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,6 @@ "version": "1.0.0", "description": "Tool for creating backup JSON for the Lisk Desktop from a private key", "main": "exodusRecovery.js", - }, "bin": { "exodusRecovery": "./exodusRecovery.js" }, @@ -13,7 +12,7 @@ "node": "18.x" }, "dependencies": { - "@liskhq/lisk-cryptography": "^4.4.0", + "@liskhq/lisk-cryptography": "^4.0.0", "tweetnacl": "^1.0.3" } }