steamutils 1.2.56 → 1.2.58

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.
package/SteamClient.js CHANGED
@@ -76,9 +76,9 @@ export const LOCS = {
76
76
  const appid = 730
77
77
  let CSGO_VER = 13952
78
78
 
79
- SteamUtils.GetCurrentVersion(appid).then(function (ver) {
80
- CSGO_VER = ver
81
- })
79
+ // SteamUtils.GetCurrentVersion(appid).then(function (ver) {
80
+ // CSGO_VER = ver
81
+ // })
82
82
 
83
83
  const PersonasCache = []
84
84
 
package/index.js CHANGED
@@ -2568,9 +2568,11 @@ class SteamUser {
2568
2568
 
2569
2569
  if (text.startsWith('Competitive ')) {
2570
2570
  matchInfo.map = text.substringAfter('Competitive ')
2571
+ } else if (text.startsWith('Premier ')) {
2572
+ matchInfo.map = text.substringAfter('Premier ')
2571
2573
  } else if (text.endsWith(' GMT')) {
2572
2574
  matchInfo.time = text
2573
- matchInfo.timestamp = moment.utc(text.replace('GMT','').trim(),'YYYY-MM-DD HH:mm:ss', true).valueOf()
2575
+ matchInfo.timestamp = moment.utc(text.replace('GMT', '').trim(), 'YYYY-MM-DD HH:mm:ss', true).valueOf()
2574
2576
  } else if (text.startsWith('Wait Time: ')) {
2575
2577
  matchInfo.waitTime = text.substringAfter('Wait Time: ')
2576
2578
  } else if (text.startsWith('Match Duration: ')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.2.56",
3
+ "version": "1.2.58",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.5.1",