@cocreate/socket-server 1.13.0 → 1.13.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 +8 -0
- package/package.json +2 -4
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.13.1](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.13.0...v1.13.1) (2023-06-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Refactor authentication method to use token decoding 🚀 ([249cf69](https://github.com/CoCreate-app/CoCreate-socket-server/commit/249cf69c3ce918a2d5bee324456008e1923d8226))
|
|
7
|
+
* Update dependencies versions for [@cocreate](https://github.com/cocreate) libraries ([b7d21f3](https://github.com/CoCreate-app/CoCreate-socket-server/commit/b7d21f334dd160fbad19b4f3539b6adfbfed9861))
|
|
8
|
+
|
|
1
9
|
# [1.13.0](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.12.1...v1.13.0) (2023-06-10)
|
|
2
10
|
|
|
3
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/socket-server",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"description": "CoCreate-socket-server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cocreate-socket",
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"scripts": {
|
|
28
28
|
"demo": "PORT=5000 node demo/server.js",
|
|
29
29
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
30
|
-
"docs": "node ./node_modules/@cocreate/docs/src/index.js",
|
|
31
30
|
"postinstall": "node ./node_modules/@cocreate/cli/check-coc.js"
|
|
32
31
|
},
|
|
33
32
|
"repository": {
|
|
@@ -44,8 +43,7 @@
|
|
|
44
43
|
"@cocreate/cli": "^1.29.3"
|
|
45
44
|
},
|
|
46
45
|
"dependencies": {
|
|
47
|
-
"@cocreate/
|
|
48
|
-
"@cocreate/uuid": "^1.4.15",
|
|
46
|
+
"@cocreate/uuid": "^1.4.16",
|
|
49
47
|
"ws": "7.5.9"
|
|
50
48
|
}
|
|
51
49
|
}
|
package/src/index.js
CHANGED
|
@@ -129,7 +129,7 @@ class SocketServer extends EventEmitter {
|
|
|
129
129
|
});
|
|
130
130
|
let user_id = null;
|
|
131
131
|
if (this.authenticate)
|
|
132
|
-
user_id = await this.authenticate.
|
|
132
|
+
user_id = await this.authenticate.decodeToken(req);
|
|
133
133
|
|
|
134
134
|
if (this.authorize) {
|
|
135
135
|
data.host = this.getHost(req)
|