@polka-codes/cli-shared 0.9.26 → 0.9.27
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
|
@@ -37452,8 +37452,8 @@ class UsageMeter {
|
|
|
37452
37452
|
this.#calls = 0;
|
|
37453
37453
|
}
|
|
37454
37454
|
isLimitExceeded() {
|
|
37455
|
-
const messageCount = this.#maxMessages
|
|
37456
|
-
const cost = this.#maxCost
|
|
37455
|
+
const messageCount = this.#maxMessages > 0 && this.#calls >= this.#maxMessages;
|
|
37456
|
+
const cost = this.#maxCost > 0 && this.#totals.cost >= this.#maxCost;
|
|
37457
37457
|
return {
|
|
37458
37458
|
messageCount,
|
|
37459
37459
|
maxMessages: this.#maxMessages,
|