steamutils 1.0.76 → 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 +9 -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)
@@ -1127,6 +1127,14 @@ function SteamClient({
1127
1127
  gamePlay,
1128
1128
  autoGamePlay,
1129
1129
  offAutoGamePlay,
1130
+ setIsPartyRegister(_isPartyRegister){
1131
+ isPartyRegister = _isPartyRegister
1132
+ if (!_isPartyRegister) {
1133
+ doClearInterval('autoPartyRegister')
1134
+ } else {
1135
+ sendHello()
1136
+ }
1137
+ },
1130
1138
  }
1131
1139
  }
1132
1140
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.0.76",
3
+ "version": "1.0.78",
4
4
  "dependencies": {
5
5
  "axios": "^1.3.4",
6
6
  "cheerio": "^1.0.0-rc.12",