steamutils 1.1.14 → 1.1.16

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/SteamClient.js CHANGED
@@ -707,7 +707,9 @@ function SteamClient({
707
707
  }, 60000, 'autoRequestFreeLicense')
708
708
  }
709
709
  if (autoPlay) {
710
- autoGamePlay()
710
+ onCookie(function () {
711
+ autoGamePlay()
712
+ })
711
713
  }
712
714
  })
713
715
 
@@ -998,6 +1000,16 @@ function SteamClient({
998
1000
  }
999
1001
  }
1000
1002
 
1003
+ function onCookie(callback) {
1004
+ if(getCookies() ){
1005
+ callback(getCookies())
1006
+ } else {
1007
+ onEvent('webSession', function (webSession) {
1008
+ callback(webSession?.cookies?.join?.(';'))
1009
+ }, true)
1010
+ }
1011
+ }
1012
+
1001
1013
  function init() {
1002
1014
  bindEvent()
1003
1015
  login()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.14",
3
+ "version": "1.1.16",
4
4
  "main":"index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",