@myhpmp/core 1.1.0 → 1.1.1

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.
@@ -1,4 +1,6 @@
1
1
  export function calcTokenExp(tokens) {
2
+ if (!Number.isFinite(tokens) || tokens < 0)
3
+ return 0;
2
4
  return Math.floor(tokens / 1000);
3
5
  }
4
6
  export const DAILY_SESSION_CAP = 30;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myhpmp/core",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Shared core logic for My HP/MP — level system, EXP calculator, tier data, i18n",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",