steamutils 1.1.82 → 1.1.84

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
@@ -1564,13 +1564,13 @@ class SteamUser {
1564
1564
  checkTooManyRequest = true
1565
1565
  await sleep(30000)
1566
1566
  } else if (response.status === 401) {
1567
- console.log('Unauthorized')
1567
+ console.log('Unauthorized', config.url)
1568
1568
  if (params.method.toUpperCase() === 'POST') {
1569
1569
  config.headers['Content-Type'] = config.headers['content-type'] = 'multipart/form-data'
1570
1570
  retry = 1
1571
1571
  }
1572
1572
  } else {
1573
- console.log(response.status);
1573
+ console.log(response.status, config.url);
1574
1574
  }
1575
1575
  }
1576
1576
  return response
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.82",
3
+ "version": "1.1.84",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",