periderm-cli 0.1.21 → 0.1.23

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 +13 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -417,10 +417,19 @@ program
417
417
  console.info(chalk.red(`token invalid: ${r.error}`));
418
418
  return;
419
419
  }
420
- console.info(`api: ${cfg.apiUrl}`);
421
- console.info(`user: ${r.user_id}`);
422
- console.info(`plan: ${r.plan}`);
423
- console.info(`quota: ${r.scans_remaining} scans remaining`);
420
+ console.info("");
421
+ for (const line of PERIDERM_ASCII.split("\n")) {
422
+ console.info(chalk.hex("#FF4D00")(line));
423
+ }
424
+ console.info("");
425
+ const formatEmail = r.email || r.user_id || "Unknown";
426
+ const formatPlan = r.plan || "starter";
427
+ const formatQuota = `${r.scans_remaining ?? "?"}`;
428
+ console.info(chalk.bold.white("Account : ") + chalk.white(formatEmail));
429
+ console.info(chalk.bold.white("Plan : ") + chalk.magenta(formatPlan));
430
+ console.info(chalk.bold.white("Quota : ") + chalk.yellow(`${formatQuota} scans`));
431
+ console.info(chalk.bold.white("API : ") + chalk.cyan(cfg.apiUrl));
432
+ console.info("");
424
433
  });
425
434
  program
426
435
  .command("logout")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "periderm-cli",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "A pre-launch checklist for your codebase. Scan JS, TS, JSX, and TSX projects before you ship.",
5
5
  "type": "module",
6
6
  "bin": {