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.
@@ -0,0 +1,5 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <state>
3
+ <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
4
+ </state>
5
+ </component>
@@ -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
@@ -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="$PROJECT_DIR$" vcs="Git" />
4
+ <mapping directory="" vcs="Git" />
5
5
  </component>
6
6
  </project>
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(steamIDs))?.personas
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(steamIDs))?.personas
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(steamIDs))?.personas
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 steamUtils = new SteamUtils(getCookie())
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "dependencies": {
5
5
  "axios": "^1.3.4",
6
6
  "cheerio": "^1.0.0-rc.12",