@cocreate/socket-server 1.20.1 → 1.21.0
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 +14 -0
- package/package.json +1 -1
- package/src/index.js +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [1.21.0](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.20.2...v1.21.0) (2023-10-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* ObjectId() returns an object containg the parts iof the _id along with a toString() function ([d0fffc7](https://github.com/CoCreate-app/CoCreate-socket-server/commit/d0fffc777f099b242a0dccfe5ed6b8008d54dda2))
|
|
7
|
+
|
|
8
|
+
## [1.20.2](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.20.1...v1.20.2) (2023-10-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* added more methods to the message_log if condition ([37f1106](https://github.com/CoCreate-app/CoCreate-socket-server/commit/37f1106efc30c1278aded8462d779c70e18f28f4))
|
|
14
|
+
|
|
1
15
|
## [1.20.1](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.20.0...v1.20.1) (2023-10-19)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -2,7 +2,6 @@ const WebSocket = require('ws');
|
|
|
2
2
|
const { URL } = require("url");
|
|
3
3
|
const EventEmitter = require("events").EventEmitter;
|
|
4
4
|
const uid = require('@cocreate/uuid')
|
|
5
|
-
// const { ObjectId } = require('@cocreate/utils')
|
|
6
5
|
const config = require('@cocreate/config')
|
|
7
6
|
|
|
8
7
|
class SocketServer extends EventEmitter {
|
|
@@ -421,7 +420,7 @@ class SocketServer extends EventEmitter {
|
|
|
421
420
|
if (authorized && authorized.authorized)
|
|
422
421
|
data = authorized.authorized
|
|
423
422
|
|
|
424
|
-
if (!data.method.startsWith('read.')
|
|
423
|
+
if (!data.method.startsWith('read.') && data.method !== 'updateUserStatus' && data.method !== 'userStatus' && data.method !== 'signIn' && data.method !== 'signUp') {
|
|
425
424
|
let object = { url: socket.socketUrl, data }
|
|
426
425
|
delete object.socket
|
|
427
426
|
this.emit('create.object', {
|