steamutils 1.4.97 → 1.4.98
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/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
|
|