steamutils 1.4.97 → 1.4.98

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.4.97",
3
+ "version": "1.4.98",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",
package/utils.js CHANGED
@@ -986,10 +986,10 @@ export async function loginWithCredentials({ username, password, timeoutMs = 120
986
986
  });
987
987
  }
988
988
 
989
- function calculateAccountXP(currentXp, xpEarnedThisWeek, xpEarned, nextXp) {
989
+ export function calculateAccountXP(currentXp, xpEarnedThisWeek, xpEarned, nextXp) {
990
990
  return (
991
991
  (() => {
992
- if (!Number.isFinite(nextXp)) {
992
+ if (typeof nextXp !== "number" || !Number.isFinite(nextXp)) {
993
993
  return;
994
994
  }
995
995