steamutils 1.0.10 → 1.0.11

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.
Files changed (2) hide show
  1. package/SteamClient.js +6 -2
  2. package/package.json +1 -1
package/SteamClient.js CHANGED
@@ -112,8 +112,12 @@ function SteamClient({
112
112
  }
113
113
  }
114
114
  if (!personas) {
115
- return {}
116
- } else {
115
+ try {
116
+ personas = (await steamClient.getPersonas(steamIDs))?.personas
117
+ } catch (e) {
118
+ }
119
+ }
120
+ if (personas) {
117
121
  for (let sid64 in personas) {
118
122
  personas[sid64].id = sid64
119
123
  personas[sid64].avatar_hash = Buffer.from(personas[sid64].avatar_hash).toString("hex")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "dependencies": {
5
5
  "axios": "^1.3.4",
6
6
  "cheerio": "^1.0.0-rc.12",