steamutils 1.0.39 → 1.0.41
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/.idea/jsLibraryMappings.xml +6 -0
- package/.idea/steamutils.iml +1 -1
- package/.idea/vcs.xml +1 -1
- package/index.js +24 -0
- package/package.json +1 -1
package/.idea/steamutils.iml
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
<module type="WEB_MODULE" version="4">
|
3
3
|
<component name="NewModuleRootManager">
|
4
4
|
<content url="file://$MODULE_DIR$">
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
6
5
|
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
7
7
|
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
8
8
|
</content>
|
9
9
|
<orderEntry type="inheritedJdk" />
|
package/.idea/vcs.xml
CHANGED
package/index.js
CHANGED
@@ -4060,6 +4060,30 @@ class SteamUser {
|
|
4060
4060
|
return list
|
4061
4061
|
}
|
4062
4062
|
|
4063
|
+
async getSteamGuardStatus() {
|
4064
|
+
const result = await this._httpRequest({
|
4065
|
+
url: `https://store.steampowered.com/twofactor/manage_action`,
|
4066
|
+
"headers": {
|
4067
|
+
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
|
4068
|
+
"Referer": "https://store.steampowered.com/twofactor/manage_action",
|
4069
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
4070
|
+
},
|
4071
|
+
})
|
4072
|
+
const $ = cheerio.load(result?.data || '')
|
4073
|
+
|
4074
|
+
if($('#steam_authenticator_form #steam_authenticator_check[checked]')?.length){
|
4075
|
+
return 'steam_authenticator'
|
4076
|
+
}
|
4077
|
+
|
4078
|
+
if($('#email_authenticator_form #email_authenticator_check[checked]')?.length){
|
4079
|
+
return 'email_authenticator'
|
4080
|
+
}
|
4081
|
+
|
4082
|
+
if($('#none_authenticator_form #none_authenticator_check[checked]')?.length){
|
4083
|
+
return 'none_authenticator'
|
4084
|
+
}
|
4085
|
+
}
|
4086
|
+
|
4063
4087
|
async turningSteamGuardOff() {
|
4064
4088
|
const result = await this._httpRequest({
|
4065
4089
|
url: `https://store.steampowered.com/twofactor/manage_action`,
|