steamutils 1.1.93 → 1.1.95
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 +3 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3632,6 +3632,8 @@ class SteamUser {
|
|
|
3632
3632
|
url: `dev/apikey`,
|
|
3633
3633
|
})
|
|
3634
3634
|
|
|
3635
|
+
if(!result) return
|
|
3636
|
+
|
|
3635
3637
|
if (result?.data?.includes('You will be granted access to Steam Web API keys when you have games in your Steam account.')) {
|
|
3636
3638
|
return {
|
|
3637
3639
|
success: false,
|
|
@@ -3639,6 +3641,7 @@ class SteamUser {
|
|
|
3639
3641
|
}
|
|
3640
3642
|
}
|
|
3641
3643
|
|
|
3644
|
+
if(!result._$) return
|
|
3642
3645
|
const parseResult = _self._parseSteamWebAPIKey(result._$())
|
|
3643
3646
|
if (parseResult.error === 'registerkey') {
|
|
3644
3647
|
const result2 = await this._httpRequest({
|