@cocreate/users 1.5.0 → 1.5.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.5.1](https://github.com/CoCreate-app/CoCreate-users/compare/v1.5.0...v1.5.1) (2022-03-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update param roomInfo to socketInfo ([6784138](https://github.com/CoCreate-app/CoCreate-users/commit/6784138e71feb00866cb8159b1d3c95136b5f00d))
7
+
1
8
  # [1.5.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.4.35...v1.5.0) (2022-03-03)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "A simple users component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "users",
package/src/server.js CHANGED
@@ -9,12 +9,12 @@ class CoCreateUser {
9
9
 
10
10
  init() {
11
11
  if (this.wsManager) {
12
- this.wsManager.on('createUserNew', (socket, data, roomInfo) => this.createUserNew(socket, data));
13
- this.wsManager.on('createUser', (socket, data, roomInfo) => this.createUser(socket, data));
14
- this.wsManager.on('login', (socket, data, roomInfo) => this.login(socket, data, roomInfo))
15
- this.wsManager.on('usersCurrentOrg', (socket, data, roomInfo) => this.usersCurrentOrg(socket, data, roomInfo))
16
- this.wsManager.on('fetchUser', (socket, data, roomInfo) => this.fetchUser(socket, data, roomInfo))
17
- this.wsManager.on('userStatus', (socket, data, roomInfo) => this.setUserStatus(socket, data, roomInfo))
12
+ this.wsManager.on('createUserNew', (socket, data, socketInfo) => this.createUserNew(socket, data));
13
+ this.wsManager.on('createUser', (socket, data, socketInfo) => this.createUser(socket, data));
14
+ this.wsManager.on('login', (socket, data, socketInfo) => this.login(socket, data, socketInfo))
15
+ this.wsManager.on('usersCurrentOrg', (socket, data, socketInfo) => this.usersCurrentOrg(socket, data, socketInfo))
16
+ this.wsManager.on('fetchUser', (socket, data, socketInfo) => this.fetchUser(socket, data, socketInfo))
17
+ this.wsManager.on('userStatus', (socket, data, socketInfo) => this.setUserStatus(socket, data, socketInfo))
18
18
  }
19
19
  }
20
20
 
@@ -227,7 +227,7 @@ class CoCreateUser {
227
227
  /**
228
228
  * status: 'on/off/idle'
229
229
  */
230
- async setUserStatus(socket, req_data, roomInfo) {
230
+ async setUserStatus(socket, req_data, socketInfo) {
231
231
  const self = this;
232
232
  const {info, status} = req_data;
233
233