steamutils 1.4.97 → 1.4.98
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/utils.js +2 -2
package/package.json
CHANGED
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
|
|