steamutils 1.0.53 → 1.0.54
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/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/steamutils.iml +1 -1
- package/.idea/vcs.xml +1 -1
- package/SteamClient.js +6 -4
- 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/SteamClient.js
CHANGED
@@ -215,18 +215,18 @@ function SteamClient({
|
|
215
215
|
if (notCachesteamIDs.length) {
|
216
216
|
let personas = null
|
217
217
|
try {
|
218
|
-
personas = (await steamClient.getPersonas(
|
218
|
+
personas = (await steamClient.getPersonas(notCachesteamIDs))?.personas
|
219
219
|
} catch (e) {
|
220
220
|
}
|
221
221
|
if (!personas || !Object.keys(personas).length) {
|
222
222
|
try {
|
223
|
-
personas = (await steamClient.getPersonas(
|
223
|
+
personas = (await steamClient.getPersonas(notCachesteamIDs))?.personas
|
224
224
|
} catch (e) {
|
225
225
|
}
|
226
226
|
}
|
227
227
|
if (!personas || !Object.keys(personas).length) {
|
228
228
|
try {
|
229
|
-
personas = (await steamClient.getPersonas(
|
229
|
+
personas = (await steamClient.getPersonas(notCachesteamIDs))?.personas
|
230
230
|
} catch (e) {
|
231
231
|
}
|
232
232
|
}
|
@@ -815,7 +815,9 @@ function SteamClient({
|
|
815
815
|
}
|
816
816
|
|
817
817
|
async function autoRequestFreeLicense(shouldLog = false, max = 10) {
|
818
|
-
const
|
818
|
+
const mCookies = getCookie();
|
819
|
+
if (!mCookies) return
|
820
|
+
const steamUtils = new SteamUtils(mCookies)
|
819
821
|
|
820
822
|
const userData = await steamUtils.getDynamicStoreUserData()
|
821
823
|
if (!userData) return
|