steamutils 1.2.98 → 1.2.99

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/SteamClient.js +7 -2
  2. package/package.json +1 -1
package/SteamClient.js CHANGED
@@ -1668,8 +1668,13 @@ function SteamClient({
1668
1668
  steamClient.sendToGC(730, 767, {}, Buffer.alloc(0))
1669
1669
  }
1670
1670
 
1671
- async function getUserOwnedApps(steamId) {
1672
- steamId = (steamId ? new SteamID(steamId) : steamClient.steamID).getSteamID64()
1671
+ async function getUserOwnedApps(steamId = steamClient.steamID) {
1672
+ if (!steamId) {
1673
+ return
1674
+ }
1675
+ if (typeof steamId?.getSteamID64 === "function") {
1676
+ steamId = steamId.getSteamID64()
1677
+ }
1673
1678
  const isMe = steamId === steamClient.steamID.getSteamID64();
1674
1679
  if (isMe && ownedApps.length) {
1675
1680
  return ownedApps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.2.98",
3
+ "version": "1.2.99",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.5.1",