steamutils 1.3.24 → 1.3.25

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.
Files changed (2) hide show
  1. package/index.js +6 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1698,7 +1698,11 @@ class SteamUser {
1698
1698
  }
1699
1699
  } else if (redirectURL?.startsWith('https://steamcommunity.com/login/')) {
1700
1700
  console.error('Login first', this._steamid_user)
1701
- return null
1701
+ return {
1702
+ data: {
1703
+ error: 'Login first'
1704
+ }
1705
+ }
1702
1706
  }
1703
1707
 
1704
1708
  console.log(`Redirect ${config.url} to ${redirectURL}`)
@@ -6125,7 +6129,7 @@ class SteamUser {
6125
6129
  ...(!!token && {continue_token: token})
6126
6130
  }
6127
6131
  const data = (await this._httpMyRequestAjax(`gcpd/730?${Object.keys(param).map(k => `${k}=${param[k]}`).join('&')}`))?.data
6128
- if (data.success !== true) {
6132
+ if (data?.success !== true) {
6129
6133
  return
6130
6134
  }
6131
6135
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.3.24",
3
+ "version": "1.3.25",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.5",