plexmint 0.2.4 → 0.2.6

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 +5 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -560,13 +560,13 @@ async function buyCommand(ticker) {
560
560
  const client = new PlexMintClient(getApiKey());
561
561
  const result = await client.purchase(upperTicker);
562
562
  spinner.stop();
563
- const { ticker: t, title, pricePaid, walletBalance } = result.data;
563
+ const d = result.data;
564
564
  console.log("");
565
565
  console.log(mint(" \u2713 ") + chalk6.bold("Purchase complete!"));
566
566
  console.log("");
567
- console.log(chalk6.gray(" Prompt: ") + chalk6.white(`${title} (${t})`));
568
- console.log(chalk6.gray(" Price paid: ") + mint(formatPrice(pricePaid)));
569
- console.log(chalk6.gray(" Wallet balance: ") + chalk6.white(formatPrice(walletBalance)));
567
+ console.log(chalk6.gray(" Prompt: ") + chalk6.white(`${d.title || upperTicker} (${d.ticker || upperTicker})`));
568
+ if (d.pricePaid) console.log(chalk6.gray(" Price paid: ") + mint(formatPrice(d.pricePaid)));
569
+ if (d.walletBalance != null) console.log(chalk6.gray(" Wallet balance: ") + chalk6.white(formatPrice(d.walletBalance)));
570
570
  console.log("");
571
571
  console.log(
572
572
  chalk6.gray(" View in your library: ") + chalk6.white("plexmint library")
@@ -627,7 +627,7 @@ async function walletCommand() {
627
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"));
628
628
  console.log("");
629
629
  console.log(
630
- chalk7.gray(" Balance: ") + mint.bold(formatPrice(balance)) + chalk7.gray(` ${currency}`)
630
+ chalk7.gray(" Balance: ") + mint.bold(formatPrice(balance)) + chalk7.gray(` ${currency || "USD"}`)
631
631
  );
632
632
  console.log("");
633
633
  if (transactions.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plexmint",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "PlexMint CLI — Browse, buy, and manage AI prompts from your terminal",
5
5
  "type": "module",
6
6
  "bin": {