steamutils 1.1.78 → 1.1.79

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +5 -0
  2. 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}`)
@@ -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() || '')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.78",
3
+ "version": "1.1.79",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",