steamutils 1.1.81 → 1.1.83

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <state>
3
+ <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
+ </state>
5
+ </component>
@@ -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$/temp" />
6
5
  <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
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="$PROJECT_DIR$" vcs="Git" />
4
+ <mapping directory="" vcs="Git" />
5
5
  </component>
6
6
  </project>
package/index.js CHANGED
@@ -3390,6 +3390,9 @@ class SteamUser {
3390
3390
  const { data } = await this._httpRequestAjax({
3391
3391
  url: 'actions/GroupInvite',
3392
3392
  data: params,
3393
+ headers: {
3394
+ 'content-type': 'application/x-www-form-urlencoded'
3395
+ },
3393
3396
  method: 'POST',
3394
3397
  })
3395
3398
  return data
@@ -5405,7 +5408,12 @@ class SteamUser {
5405
5408
  })
5406
5409
  })
5407
5410
 
5411
+ const id = [timestamp, description, plusminus, tradehistory_items.map(item => (item.classid || '0') + "_" + (item.instanceid || '0')).join('|')]
5412
+ .map(item => item.toString().replaceAll(/[^a-zA-Z0-9-+_|]/gi, ''))
5413
+ .join('_').toLowerCase()
5414
+
5408
5415
  tradehistory.push({
5416
+ id,
5409
5417
  timestamp,
5410
5418
  timestampStr,
5411
5419
  description,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.81",
3
+ "version": "1.1.83",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",