steamutils 1.5.26 → 1.5.27

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 +5 -5
  2. package/package.json +11 -11
package/index.js CHANGED
@@ -6440,8 +6440,8 @@ export default class SteamUser {
6440
6440
  }
6441
6441
 
6442
6442
  async beginFileUpload(filePath) {
6443
- const { imageSize } = await import("image-size");
6444
- const dimensions = imageSize(filePath);
6443
+ const { Jimp } = await import("jimp");
6444
+ const image = await Jimp.read(filePath);
6445
6445
  const stats = fs.statSync(filePath);
6446
6446
 
6447
6447
  let sha1 = "";
@@ -6454,9 +6454,9 @@ export default class SteamUser {
6454
6454
  file_size: stats.size,
6455
6455
  file_name: path.basename(filePath),
6456
6456
  file_sha: sha1,
6457
- file_image_width: dimensions.width,
6458
- file_image_height: dimensions.height,
6459
- file_type: dimensions.type, // Returns "jpg", "png", "webp", etc.
6457
+ file_image_width: image.getWidth(),
6458
+ file_image_height: image.getHeight(),
6459
+ file_type: image.getMIME(),
6460
6460
  sessionid: this.getSessionid(),
6461
6461
  };
6462
6462
 
package/package.json CHANGED
@@ -1,38 +1,38 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.5.26",
3
+ "version": "1.5.27",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",
7
- "axios": "^1.7.8",
7
+ "axios": "^1.8.1",
8
8
  "bytebuffer": "^5.0.1",
9
9
  "cheerio": "^1.0.0",
10
10
  "crypto-js": "^4.2.0",
11
11
  "csgo-friendcode": "^3.0.3",
12
- "form-data": "^4.0.1",
12
+ "form-data": "^4.0.2",
13
13
  "image-size": "^2.0.0",
14
14
  "jimp": "^1.6.0",
15
15
  "jsqr": "^1.4.0",
16
16
  "lodash": "^4.17.21",
17
17
  "moment": "^2.30.1",
18
- "moment-timezone": "^0.5.46",
18
+ "moment-timezone": "^0.5.47",
19
19
  "node-bignumber": "^1.2.2",
20
- "p-queue": "^8.0.1",
20
+ "p-queue": "^8.1.0",
21
21
  "protobufjs": "^7.4.0",
22
- "qs": "^6.13.1",
23
- "steam-session": "^1.9.0",
22
+ "qs": "^6.14.0",
23
+ "steam-session": "^1.9.2",
24
24
  "steam-totp": "^2.1.2",
25
25
  "steam-user": "^5.2.0",
26
- "steamcommunity": "^3.48.5",
26
+ "steamcommunity": "^3.48.6",
27
27
  "steamid": "^2.1.0",
28
28
  "url-parse": "^1.5.10",
29
- "uuid": "^11.0.3",
29
+ "uuid": "^11.1.0",
30
30
  "xml-js": "^1.6.11",
31
31
  "xml2js": "^0.6.2"
32
32
  },
33
33
  "type": "module",
34
34
  "devDependencies": {
35
- "eslint-config-prettier": "^9.1.0",
36
- "eslint-plugin-prettier": "^5.2.1"
35
+ "eslint-config-prettier": "^10.0.2",
36
+ "eslint-plugin-prettier": "^5.2.3"
37
37
  }
38
38
  }