pi-provider-qoder-cn 0.2.6 → 0.2.7
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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2014,12 +2014,12 @@ function formatQoderUsage(raw, mode, now = Date.now(), options = {}) {
|
|
|
2014
2014
|
const notes = [];
|
|
2015
2015
|
if (danger) {
|
|
2016
2016
|
notes.push({ label: "Status", value: "quota exceeded", color: ANSI.red });
|
|
2017
|
-
if (!showOrg || isPersonalStandard) {
|
|
2018
|
-
notes.push({ label: "Daily reset", value: formatDailyResetCountdown(now) });
|
|
2019
|
-
}
|
|
2020
2017
|
}
|
|
2021
2018
|
if (!showUserQuota && !showAddOnQuota && !showOrg) notes.push({ label: "Buckets", value: "none returned" });
|
|
2022
2019
|
if (raw?.isPlanQuotaProrated) notes.push({ label: "Note", value: "plan quota is prorated" });
|
|
2020
|
+
if (isPersonalStandard || !showOrg && formatResetTime(raw?.expiresAt, now) === "never") {
|
|
2021
|
+
notes.push({ label: "Daily reset", value: formatDailyResetCountdown(now) });
|
|
2022
|
+
}
|
|
2023
2023
|
notes.push({ label: "Expires", value: formatResetTime(raw?.expiresAt, now) });
|
|
2024
2024
|
const manageUrl = raw?.addOnQuota?.detailUrl || raw?.upgradeUrl || region.manageUrl;
|
|
2025
2025
|
if (manageUrl) notes.push({ label: "Manage", value: manageUrl });
|
package/package.json
CHANGED