faces-cli 1.5.11 → 1.5.12

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.
@@ -29,7 +29,7 @@ export default class AuthWhoami extends BaseCommand {
29
29
  process.stderr.write(` status: not authenticated\n`);
30
30
  }
31
31
  if (json)
32
- process.stdout.write(JSON.stringify(diag) + '\n');
32
+ process.stdout.write(JSON.stringify(diag, null, 2) + '\n');
33
33
  process.exit(1);
34
34
  }
35
35
  // Try API key first (priority), then JWT. Always try both and report.
@@ -99,7 +99,7 @@ export default class AuthWhoami extends BaseCommand {
99
99
  }
100
100
  if (!diag.authenticated) {
101
101
  if (json)
102
- process.stdout.write(JSON.stringify(diag) + '\n');
102
+ process.stdout.write(JSON.stringify(diag, null, 2) + '\n');
103
103
  process.exit(1);
104
104
  }
105
105
  return diag;
@@ -14,7 +14,7 @@ export default class BillingTopup extends BaseCommand {
14
14
  const amount = Number.parseFloat(flags.amount);
15
15
  if (Number.isNaN(amount) || amount < 1.0)
16
16
  this.error('Minimum topup is $1.00 (--amount)');
17
- const payload = { amount };
17
+ const payload = { amount_usd: amount };
18
18
  if (flags['payment-ref'])
19
19
  payload.payment_ref = flags['payment-ref'];
20
20
  let data;