blun-king-cli 6.3.2 → 6.3.3
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/lib/auth.js +3 -1
- package/lib/ui.js +1 -1
- package/package.json +1 -1
package/lib/auth.js
CHANGED
|
@@ -4,6 +4,8 @@ const os = require('os');
|
|
|
4
4
|
const https = require('https');
|
|
5
5
|
const readline = require('readline');
|
|
6
6
|
const chalk = require('chalk');
|
|
7
|
+
const inquirer = require('inquirer');
|
|
8
|
+
const inquirer = require("inquirer");
|
|
7
9
|
|
|
8
10
|
const CREDS_DIR = path.join(os.homedir(), '.blun');
|
|
9
11
|
const CREDS_FILE = path.join(CREDS_DIR, 'credentials.json');
|
|
@@ -69,7 +71,7 @@ function promptPassword(question) {
|
|
|
69
71
|
const c = ch.toString('utf8');
|
|
70
72
|
if (c === '\n' || c === '\r' || c === '\u0004') {
|
|
71
73
|
if (stdin.setRawMode) stdin.setRawMode(wasRaw || false);
|
|
72
|
-
stdin.removeListener('data', onData); process.stdout.write('\n'); resolve(pw);
|
|
74
|
+
stdin.removeListener('data', onData); stdin.pause(); process.stdout.write('\n'); resolve(pw);
|
|
73
75
|
} else if (c === '\u007f' || c === '\b') {
|
|
74
76
|
if (pw.length > 0) { pw = pw.slice(0, -1); process.stdout.write('\b \b'); }
|
|
75
77
|
} else if (c === '\u0003') { process.exit(0); }
|
package/lib/ui.js
CHANGED
|
@@ -40,7 +40,7 @@ function renderBanner() {
|
|
|
40
40
|
chalk.dim(" ") +
|
|
41
41
|
chalk.bold.white("BLUN King CLI") +
|
|
42
42
|
chalk.dim(" \u2502 ") +
|
|
43
|
-
chalk.green("
|
|
43
|
+
chalk.green("v" + require("../package.json").version) +
|
|
44
44
|
chalk.dim(" \u2502 ") +
|
|
45
45
|
chalk.yellow("Multi-KI Engine")
|
|
46
46
|
);
|