@cocreate/socket-server 1.29.1 → 1.29.3
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 +5 -5
- package/src/index.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.29.3](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.29.2...v1.29.3) (2024-06-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update dependencies ([94a0d53](https://github.com/CoCreate-app/CoCreate-socket-server/commit/94a0d530e19f9e58516ff09f2f630a7e1c4c8288))
|
|
7
|
+
|
|
8
|
+
## [1.29.2](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.29.1...v1.29.2) (2024-06-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* temporarily handle sending messages that dont have modules ([f1f6407](https://github.com/CoCreate-app/CoCreate-socket-server/commit/f1f6407817b95040accebd9fc4523a1817928ff2))
|
|
14
|
+
|
|
1
15
|
## [1.29.1](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.29.0...v1.29.1) (2024-04-26)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/socket-server",
|
|
3
|
-
"version": "1.29.
|
|
3
|
+
"version": "1.29.3",
|
|
4
4
|
"description": "CoCreate-socket-server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cocreate-socket",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
},
|
|
41
41
|
"homepage": "https://cocreate.app/docs/CoCreate-socket-server",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@cocreate/config": "^1.
|
|
44
|
-
"@cocreate/
|
|
45
|
-
"@cocreate/
|
|
46
|
-
"ws": "7.5.
|
|
43
|
+
"@cocreate/config": "^1.12.4",
|
|
44
|
+
"@cocreate/utils": "^1.34.0",
|
|
45
|
+
"@cocreate/uuid": "^1.11.3",
|
|
46
|
+
"ws": "^7.5.10"
|
|
47
47
|
}
|
|
48
48
|
}
|
package/src/index.js
CHANGED
|
@@ -432,9 +432,12 @@ class SocketServer extends EventEmitter {
|
|
|
432
432
|
if (authorized.authorized)
|
|
433
433
|
data = authorized.authorized
|
|
434
434
|
|
|
435
|
+
// TODO: handle non module cases where send is required from messages
|
|
435
436
|
let moduleName = data.method.split('.')[0]
|
|
436
437
|
if (['storage', 'database', 'array', 'index', 'object'].includes(moduleName))
|
|
437
438
|
this.emit(data.method, data);
|
|
439
|
+
else if (data.method === 'crdt' || data.method === 'cursor')
|
|
440
|
+
this.send(data);
|
|
438
441
|
else
|
|
439
442
|
this.emit(moduleName, data);
|
|
440
443
|
}
|