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.
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptLibraryMappings">
4
+ <includedPredefinedLibrary name="Node.js Core" />
5
+ </component>
6
+ </project>
@@ -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
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
5
  </component>
6
6
  </project>
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`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "dependencies": {
5
5
  "axios": "^1.3.4",
6
6
  "cheerio": "^1.0.0-rc.12",