@layr-labs/ecloud-cli 1.0.0-devep1 → 1.0.0-devep2

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 (31) hide show
  1. package/VERSION +2 -2
  2. package/dist/commands/billing/__tests__/status.test.js +4 -23
  3. package/dist/commands/billing/__tests__/status.test.js.map +1 -1
  4. package/dist/commands/billing/__tests__/top-up.test.js +273 -89
  5. package/dist/commands/billing/__tests__/top-up.test.js.map +1 -1
  6. package/dist/commands/billing/list-cards.js +409 -0
  7. package/dist/commands/billing/list-cards.js.map +1 -0
  8. package/dist/commands/billing/status.js +4 -23
  9. package/dist/commands/billing/status.js.map +1 -1
  10. package/dist/commands/billing/top-up.js +151 -79
  11. package/dist/commands/billing/top-up.js.map +1 -1
  12. package/dist/commands/compute/app/deploy.js +1 -1
  13. package/dist/commands/compute/app/info.js +1 -1
  14. package/dist/commands/compute/app/list.js +1 -1
  15. package/dist/commands/compute/app/logs.js +1 -1
  16. package/dist/commands/compute/app/profile/set.js +1 -1
  17. package/dist/commands/compute/app/releases.js +1 -1
  18. package/dist/commands/compute/app/start.js +1 -1
  19. package/dist/commands/compute/app/stop.js +1 -1
  20. package/dist/commands/compute/app/terminate.js +1 -1
  21. package/dist/commands/compute/app/upgrade.js +1 -1
  22. package/dist/commands/compute/build/info.js +1 -1
  23. package/dist/commands/compute/build/list.js +1 -1
  24. package/dist/commands/compute/build/logs.js +1 -1
  25. package/dist/commands/compute/build/status.js +1 -1
  26. package/dist/commands/compute/build/submit.js +1 -1
  27. package/dist/commands/compute/build/verify.js +1 -1
  28. package/dist/commands/compute/undelegate.js +1 -1
  29. package/dist/hooks/init/__tests__/version-check.test.js +1 -1
  30. package/dist/hooks/init/version-check.js +1 -1
  31. package/package.json +2 -2
package/VERSION CHANGED
@@ -1,2 +1,2 @@
1
- version=1.0.0-devep1
2
- commit=b210c1e7e17be9d0847834901bd986b0a3742456
1
+ version=1.0.0-devep2
2
+ commit=6556c862a68b0eb9962b654b22d428d984c9e6a5
@@ -524,29 +524,10 @@ ${chalk2.bold(" Line Items:")}`);
524
524
  }
525
525
  }
526
526
  }
527
- if (result.creditsApplied !== void 0 && result.creditsApplied > 0) {
528
- this.log(`
529
- ${chalk2.bold(" Invoice Summary:")}`);
530
- const subtotal = result.upcomingInvoiceSubtotal ?? result.upcomingInvoiceTotal ?? 0;
531
- this.log(` Subtotal: $${subtotal.toFixed(2)}`);
532
- this.log(` Credits Applied: ${chalk2.green(`-$${result.creditsApplied.toFixed(2)}`)}`);
533
- this.log(` ${"\u2500".repeat(21)}`);
534
- this.log(` Total Due: $${(result.upcomingInvoiceTotal ?? 0).toFixed(2)}`);
535
- if (result.remainingCredits !== void 0) {
536
- this.log(
537
- `
538
- ${chalk2.bold("Remaining Credits:")} ${chalk2.cyan(`$${result.remainingCredits.toFixed(2)}`)}${formatExpiry(result.nextCreditExpiry)}`
539
- );
540
- }
541
- } else if (result.upcomingInvoiceTotal !== void 0) {
542
- this.log(`
543
- Upcoming Invoice: $${result.upcomingInvoiceTotal.toFixed(2)}`);
544
- if (result.remainingCredits !== void 0 && result.remainingCredits > 0) {
545
- this.log(
546
- ` ${chalk2.bold("Available Credits:")} ${chalk2.cyan(`$${result.remainingCredits.toFixed(2)}`)}${formatExpiry(result.nextCreditExpiry)}`
547
- );
548
- }
549
- }
527
+ const credits = result.remainingCredits ?? 0;
528
+ this.log(
529
+ ` Credits: ${chalk2.cyan(`$${credits.toFixed(2)}`)}${formatExpiry(result.nextCreditExpiry)}`
530
+ );
550
531
  if (result.cancelAtPeriodEnd) {
551
532
  this.log(`
552
533
  ${chalk2.yellow("\u26A0 Subscription will cancel at period end")}`);