plexmint 0.2.3 → 0.2.5

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/dist/index.js +10 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -290,14 +290,18 @@ async function setupCommand() {
290
290
  code.trim()
291
291
  );
292
292
  verifySpinner.succeed("Email verified!");
293
- const { apiKey, user } = result.data;
294
- setAuth(apiKey, user.email, user.name);
293
+ const apiKey = result.data.apiKey;
294
+ const user = result.data.user;
295
+ const userName = user?.name ?? name.trim();
296
+ const userEmail = user?.email ?? email.trim().toLowerCase();
297
+ const userTicker = user?.tickerPrefix ?? tickerPrefix.trim().toUpperCase();
298
+ setAuth(apiKey, userEmail, userName);
295
299
  console.log("");
296
300
  console.log(mint(" \u2713 ") + chalk2.bold("Account verified!"));
297
301
  console.log("");
298
- console.log(chalk2.gray(" Name: ") + chalk2.white(user.name));
299
- console.log(chalk2.gray(" Email: ") + chalk2.white(user.email));
300
- console.log(chalk2.gray(" Ticker Prefix: ") + chalk2.white(user.tickerPrefix));
302
+ console.log(chalk2.gray(" Name: ") + chalk2.white(userName));
303
+ console.log(chalk2.gray(" Email: ") + chalk2.white(userEmail));
304
+ console.log(chalk2.gray(" Ticker Prefix: ") + chalk2.white(userTicker));
301
305
  console.log(chalk2.gray(" API Key: ") + chalk2.white(apiKey));
302
306
  console.log(chalk2.gray(" Config: ") + chalk2.white(getConfigPath()));
303
307
  console.log("");
@@ -623,7 +627,7 @@ async function walletCommand() {
623
627
  console.log(chalk7.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
624
628
  console.log("");
625
629
  console.log(
626
- chalk7.gray(" Balance: ") + mint.bold(formatPrice(balance)) + chalk7.gray(` ${currency}`)
630
+ chalk7.gray(" Balance: ") + mint.bold(formatPrice(balance)) + chalk7.gray(` ${currency || "USD"}`)
627
631
  );
628
632
  console.log("");
629
633
  if (transactions.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plexmint",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "PlexMint CLI — Browse, buy, and manage AI prompts from your terminal",
5
5
  "type": "module",
6
6
  "bin": {