steamutils 1.3.74 → 1.3.76

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. package/SteamClient.js +2426 -2416
  2. package/index.js +7049 -7035
  3. package/package.json +1 -1
  4. package/test_steamclient.js +12 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.3.74",
3
+ "version": "1.3.76",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",
@@ -3,7 +3,18 @@ import SteamClient from "./SteamClient.js";
3
3
  async function fetchPlayerProfile() {}
4
4
 
5
5
  async function main() {
6
- await fetchPlayerProfile();
6
+ const steamClient = new SteamClient({
7
+ cookie: "",
8
+ isAutoPlay: true,
9
+ isInvisible: true,
10
+ });
11
+ steamClient.onEvent("csgoOnline", function (data) {
12
+ const storeItems = data.personalStore.items.map(function (item) {
13
+ return data.items[item];
14
+ });
15
+ console.log(storeItems);
16
+ });
17
+ steamClient.init();
7
18
  }
8
19
 
9
20
  main();