steamutils 1.0.0 → 1.0.1

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/index.js +36 -2
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -2874,11 +2874,45 @@ class SteamUser {
2874
2874
  }
2875
2875
 
2876
2876
  async getOwnedAppsID() {
2877
- let response = await this._httpRequest(`https://store.steampowered.com/dynamicstore/userdata/?id=${this._miniprofile_user}`)
2878
- return response?.data?.rgOwnedApps
2877
+ let response = await this.getDynamicStoreUserData()
2878
+ return response?.rgOwnedApps
2879
2879
  const resultExample = [730, 223750,]
2880
2880
  }
2881
2881
 
2882
+ async getDynamicStoreUserData() {
2883
+ let response = await this._httpRequest(`https://store.steampowered.com/dynamicstore/userdata/?id=${this._miniprofile_user}`)
2884
+ return response?.data
2885
+ const responseExample = {
2886
+ rgWishlist: [],
2887
+ rgOwnedPackages: [303386, 347132,],
2888
+ rgOwnedApps: [730, 107600,],
2889
+ rgFollowedApps: [],
2890
+ rgMasterSubApps: [],
2891
+ rgPackagesInCart: [],
2892
+ rgAppsInCart: [],
2893
+ rgRecommendedTags: [{tagid: 5055, name: "eSports"},{tagid: 19, name: "Action"}],
2894
+ rgIgnoredApps: [],
2895
+ rgIgnoredPackages: [],
2896
+ rgCurators: [],
2897
+ rgCuratorsIgnored: [],
2898
+ rgCurations: [],
2899
+ bShowFilteredUserReviewScores: true,
2900
+ rgCreatorsFollowed: [],
2901
+ rgCreatorsIgnored: [],
2902
+ rgExcludedTags: [],
2903
+ rgExcludedContentDescriptorIDs: [3, 4],
2904
+ rgAutoGrantApps: [],
2905
+ rgRecommendedApps: [1782210, 1273710,],
2906
+ rgPreferredPlatforms: [],
2907
+ rgPrimaryLanguage: 0,
2908
+ rgSecondaryLanguages: [],
2909
+ bAllowAppImpressions: true,
2910
+ nCartLineItemCount: 0,
2911
+ nRemainingCartDiscount: 0,
2912
+ nTotalCartDiscount: 0
2913
+ }
2914
+ }
2915
+
2882
2916
  async getListGroupInvitable(userSteamID) {
2883
2917
  const result = await this._httpRequestAjax(`${this.getSteamUserProfileURL(userSteamID)}/ajaxgroupinvite?new_profile=1`)
2884
2918
  const $ = result._$()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "dependencies": {
5
5
  "axios": "^1.3.4",
6
6
  "cheerio": "^1.0.0-rc.12",
@@ -9,6 +9,7 @@
9
9
  "moment": "^2.29.4",
10
10
  "node-bignumber": "^1.2.2",
11
11
  "steamid": "^2.0.0",
12
+ "url-parse": "^1.5.10",
12
13
  "xml-js": "^1.6.11",
13
14
  "xml2js": "^0.4.23"
14
15
  },