steamutils 1.1.80 → 1.1.82

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,8 +2,8 @@
2
2
  <module type="WEB_MODULE" version="4">
3
3
  <component name="NewModuleRootManager">
4
4
  <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
5
  <excludeFolder url="file://$MODULE_DIR$/temp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
7
7
  <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
8
  </content>
9
9
  <orderEntry type="inheritedJdk" />
package/.idea/vcs.xml CHANGED
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
5
  </component>
6
6
  </project>
package/index.js CHANGED
@@ -5331,6 +5331,12 @@ class SteamUser {
5331
5331
  case "Received from the Community Market": {
5332
5332
  break
5333
5333
  }
5334
+ case "Exchanged one or more items for something different": {
5335
+ break
5336
+ }
5337
+ case "Earned an item due to ownership of another game": {
5338
+ break
5339
+ }
5334
5340
  default: {
5335
5341
  if (description.startsWith("You traded with ")) {
5336
5342
  const peopleEl = tradehistory_event_description_el.find('a[href]')
@@ -5399,7 +5405,12 @@ class SteamUser {
5399
5405
  })
5400
5406
  })
5401
5407
 
5408
+ const id = [timestamp, description, plusminus, tradehistory_items.map(item => (item.classid || '0') + "_" + (item.instanceid || '0')).join('|')]
5409
+ .map(item => item.toString().replaceAll(/[^a-zA-Z0-9-+_|]/gi, ''))
5410
+ .join('_').toLowerCase()
5411
+
5402
5412
  tradehistory.push({
5413
+ id,
5403
5414
  timestamp,
5404
5415
  timestampStr,
5405
5416
  description,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.80",
3
+ "version": "1.1.82",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
- </state>
5
- </component>