steamutils 1.0.77 → 1.0.78

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 +1 -1
  2. package/package.json +1 -1
package/SteamClient.js CHANGED
@@ -270,7 +270,7 @@ function SteamClient({
270
270
  async function gamePlay() {
271
271
  let ownedApps = null
272
272
  while (!Array.isArray(ownedApps)) {
273
- ownedApps = (await (new SteamUtils(cookie)).getDynamicStoreUserData())?.rgOwnedApps
273
+ ownedApps = (await (new SteamUtils(cookie || steamClient.webSession?.cookies)).getDynamicStoreUserData())?.rgOwnedApps
274
274
  }
275
275
  ownedApps.length = Math.min(ownedApps.length, 30)
276
276
  _.remove(ownedApps, 730)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.0.77",
3
+ "version": "1.0.78",
4
4
  "dependencies": {
5
5
  "axios": "^1.3.4",
6
6
  "cheerio": "^1.0.0-rc.12",