steamutils 1.0.26 → 1.0.27

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
@@ -92,6 +92,7 @@ function SteamClient({
92
92
 
93
93
  const events = {
94
94
  loggedOn: [],
95
+ webSession: [],
95
96
  friendMessage: [],
96
97
  friendTyping: [],
97
98
  }
@@ -222,7 +223,9 @@ function SteamClient({
222
223
  })
223
224
 
224
225
  steamClient.on('webSession', (sessionID, cookies) => {
225
- // console.log('webSession', sessionID, cookies);
226
+ const webSession = {sessionID, cookies};
227
+ steamClient.webSession = webSession
228
+ events.webSession.forEach(e => e?.(webSession))
226
229
  })
227
230
 
228
231
  steamClient.on('receivedFromGC', async (appid, msgType, payload) => {
package/index.js CHANGED
@@ -1059,7 +1059,7 @@ class SteamUser {
1059
1059
  params = this._formatHttpRequest(params)
1060
1060
 
1061
1061
  if(!this._cookies) {
1062
- throw new Error('You jave not set cookie yet')
1062
+ throw new Error('You have not set cookie yet')
1063
1063
  }
1064
1064
 
1065
1065
  if(params.method.toUpperCase() === 'POST') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "dependencies": {
5
5
  "axios": "^1.3.4",
6
6
  "cheerio": "^1.0.0-rc.12",