steamutils 1.2.34 → 1.2.35
Sign up to get free protection for your applications and to get access to all the features.
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/steamutils.iml +1 -1
- package/.idea/vcs.xml +1 -1
- package/index.js +16 -0
- package/package.json +1 -1
- package/.idea/deployment.xml +0 -21
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$/temp" />
|
6
5
|
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
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
@@ -6003,6 +6003,22 @@ class SteamUser {
|
|
6003
6003
|
return {}
|
6004
6004
|
}
|
6005
6005
|
}
|
6006
|
+
|
6007
|
+
async getAmountSpentOnSteam() {
|
6008
|
+
const response = (await this._httpRequest({
|
6009
|
+
url: `https://help.steampowered.com/en/`,
|
6010
|
+
}))?.data
|
6011
|
+
if (!response) {
|
6012
|
+
return null
|
6013
|
+
}
|
6014
|
+
const $ = cheerio.load(response)
|
6015
|
+
const text = $('.help_event_limiteduser .help_event_limiteduser_spend').text()
|
6016
|
+
if (text?.startsWith("Amount Spent on Steam")) {
|
6017
|
+
return text
|
6018
|
+
} else {
|
6019
|
+
return null
|
6020
|
+
}
|
6021
|
+
}
|
6006
6022
|
}
|
6007
6023
|
|
6008
6024
|
export default SteamUser
|
package/package.json
CHANGED
package/.idea/deployment.xml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project version="4">
|
3
|
-
<component name="PublishConfigData" remoteFilesAllowedToDisappearOnAutoupload="false">
|
4
|
-
<serverData>
|
5
|
-
<paths name="steamsupport">
|
6
|
-
<serverdata>
|
7
|
-
<mappings>
|
8
|
-
<mapping local="$PROJECT_DIR$" web="/" />
|
9
|
-
</mappings>
|
10
|
-
</serverdata>
|
11
|
-
</paths>
|
12
|
-
<paths name="steamsupportui">
|
13
|
-
<serverdata>
|
14
|
-
<mappings>
|
15
|
-
<mapping local="$PROJECT_DIR$" web="/" />
|
16
|
-
</mappings>
|
17
|
-
</serverdata>
|
18
|
-
</paths>
|
19
|
-
</serverData>
|
20
|
-
</component>
|
21
|
-
</project>
|