@cocreate/socket-server 1.21.6 → 1.21.7
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 +10 -0
- package/CoCreate.config.js +1 -2
- package/docs/index.html +2 -2
- package/package.json +1 -1
- package/src/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [1.21.7](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.21.6...v1.21.7) (2023-11-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* meta name typo ([37b85be](https://github.com/CoCreate-app/CoCreate-socket-server/commit/37b85bee20c4ff7e73eccca039f9dbeb84c82417))
|
|
7
|
+
* update crud methods ([2853e1f](https://github.com/CoCreate-app/CoCreate-socket-server/commit/2853e1f82c76998cdf2d5de3ee05128c454bd2e8))
|
|
8
|
+
* update host ([4139426](https://github.com/CoCreate-app/CoCreate-socket-server/commit/41394268a2b0814d2373870184c7d30c60b94383))
|
|
9
|
+
* updated date to ISO format with UTC timezone ([98b5e0a](https://github.com/CoCreate-app/CoCreate-socket-server/commit/98b5e0abd9768e8297b54db9a4b86babf3fc69ca))
|
|
10
|
+
|
|
1
11
|
## [1.21.6](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.21.5...v1.21.6) (2023-11-03)
|
|
2
12
|
|
|
3
13
|
|
package/CoCreate.config.js
CHANGED
package/docs/index.html
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
sizes="32x32"
|
|
12
12
|
href="https://cocreate.app/images/favicon.ico" />
|
|
13
13
|
<meta
|
|
14
|
-
|
|
14
|
+
name="description"
|
|
15
15
|
content="A simple HTML5 and pure javascript component. Easy configuration using data-attributes and highly styleable." />
|
|
16
16
|
<meta
|
|
17
|
-
|
|
17
|
+
name="keywords"
|
|
18
18
|
content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
19
19
|
<meta name="robots" content="index,follow" />
|
|
20
20
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -82,7 +82,7 @@ class SocketServer extends EventEmitter {
|
|
|
82
82
|
else
|
|
83
83
|
data.$filter.limit = 1
|
|
84
84
|
|
|
85
|
-
self.emit('read
|
|
85
|
+
self.emit('object.read', data);
|
|
86
86
|
|
|
87
87
|
if (self.authenticate) {
|
|
88
88
|
const { user_id, expires } = self.authenticate.decodeToken(options.token)
|
|
@@ -330,7 +330,7 @@ class SocketServer extends EventEmitter {
|
|
|
330
330
|
if (data.method === 'region.added' || data.method === 'region.removed')
|
|
331
331
|
console.log('data.method: ', data.method)
|
|
332
332
|
|
|
333
|
-
if (socket.user_id && socket.expires && new Date().getTime() >= socket.expires) {
|
|
333
|
+
if (socket.user_id && socket.expires && new Date(new Date().toISOString()).getTime() >= socket.expires) {
|
|
334
334
|
socket.user_id = socket.expires = null
|
|
335
335
|
this.send({ socket, method: 'updateUserStatus', userStatus: 'off', socketId: data.socketId, organization_id })
|
|
336
336
|
}
|