@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.
Files changed (2) hide show
  1. package/dist/index.js +2 -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 !== undefined && this.#calls >= this.#maxMessages;
37456
- const cost = this.#maxCost !== undefined && this.#totals.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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/cli-shared",
3
- "version": "0.9.26",
3
+ "version": "0.9.27",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",