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.
- package/index.js +6 -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
|
|
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
|
|
6132
|
+
if (data?.success !== true) {
|
|
6129
6133
|
return
|
|
6130
6134
|
}
|
|
6131
6135
|
const {
|