steamutils 1.1.78 → 1.1.80
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +6 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1543,6 +1543,9 @@ class SteamUser {
|
|
1543
1543
|
if (customURL) {
|
1544
1544
|
this._myProfile = `id/${customURL}`
|
1545
1545
|
}
|
1546
|
+
} else if (redirectURL?.startsWith('https://steamcommunity.com/login/')) {
|
1547
|
+
console.error('Login first', this._steamid_user)
|
1548
|
+
return null
|
1546
1549
|
}
|
1547
1550
|
|
1548
1551
|
console.log(`Redirect to ${redirectURL}`)
|
@@ -4264,7 +4267,7 @@ class SteamUser {
|
|
4264
4267
|
Last_Match: object.Last_Match,
|
4265
4268
|
}
|
4266
4269
|
})
|
4267
|
-
matchmaking_table = matchmaking_table
|
4270
|
+
matchmaking_table = matchmaking_table?.map(function (object) {
|
4268
4271
|
removeSpaceKeys(object)
|
4269
4272
|
return {
|
4270
4273
|
Matchmaking_Mode: object.Matchmaking_Mode,
|
@@ -5219,6 +5222,8 @@ class SteamUser {
|
|
5219
5222
|
}
|
5220
5223
|
}
|
5221
5224
|
|
5225
|
+
if(!result) return
|
5226
|
+
|
5222
5227
|
const descriptions = result.descriptions
|
5223
5228
|
const $ = cheerio.load(result.html?.replaceAll(/[\t\n\r]/gi, '')
|
5224
5229
|
?.trim() || '')
|