steamutils 1.1.92 → 1.1.94
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 +3 -1
- 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$/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
@@ -1072,7 +1072,7 @@ class SteamUser {
|
|
1072
1072
|
|
1073
1073
|
static async getUserFriendListByWebApiKey(webApiKey, steamId) {
|
1074
1074
|
const response = await request(`http://api.steampowered.com/ISteamUser/GetFriendList/v0001/?key=${webApiKey}&steamid=${steamId}&relationship=friend`);
|
1075
|
-
return response
|
1075
|
+
return response?.data?.friendslist?.friends?.map?.(({steamid}) => steamid) || []
|
1076
1076
|
const resultExample = ["76561198112239954", "76561199239548264", "76561199446829671"]
|
1077
1077
|
}
|
1078
1078
|
|
@@ -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,
|