apiblaze 0.17.4 → 0.17.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.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -443,7 +443,7 @@ async function admin(call) {
|
|
|
443
443
|
function formatBilling(billing) {
|
|
444
444
|
const b = billing;
|
|
445
445
|
if (!b || typeof b.charged_cents !== "number") return null;
|
|
446
|
-
const usd = (b.charged_cents / 100).toFixed(2);
|
|
446
|
+
const usd = b.charged_cents >= 1 || b.charged_cents === 0 ? (b.charged_cents / 100).toFixed(2) : (b.charged_cents / 100).toFixed(4);
|
|
447
447
|
const rem = typeof b.credits_remaining === "number" ? ` \xB7 $${(b.credits_remaining / 100).toFixed(2)} credit left` : "";
|
|
448
448
|
return `\u{1F4B3} Charged $${usd}${rem}`;
|
|
449
449
|
}
|
|
@@ -693,7 +693,7 @@ var import_commander = require("commander");
|
|
|
693
693
|
var import_chalk35 = __toESM(require("chalk"));
|
|
694
694
|
|
|
695
695
|
// package.json
|
|
696
|
-
var version = "0.17.
|
|
696
|
+
var version = "0.17.5";
|
|
697
697
|
|
|
698
698
|
// src/index.ts
|
|
699
699
|
init_types();
|
package/package.json
CHANGED