@cocreate/users 1.32.0 → 1.33.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 +12 -0
- package/package.json +5 -5
- package/src/server.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [1.33.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.32.0...v1.33.0) (2024-01-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* applied host to define environment/branch ([953c3fa](https://github.com/CoCreate-app/CoCreate-users/commit/953c3fa3cd144e1d9c0718e0c25df786892a136d))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* bumped CoCreate dependencies to their latest versions ([e118a0f](https://github.com/CoCreate-app/CoCreate-users/commit/e118a0fcbd74ac9ffa20ec21830855b1176c50ee))
|
|
12
|
+
|
|
1
13
|
# [1.32.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.31.3...v1.32.0) (2023-12-21)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/users",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
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",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"webpack-log": "^3.0.1"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@cocreate/actions": "^1.
|
|
62
|
-
"@cocreate/crud-client": "^1.
|
|
61
|
+
"@cocreate/actions": "^1.15.1",
|
|
62
|
+
"@cocreate/crud-client": "^1.32.2",
|
|
63
63
|
"@cocreate/element-prototype": "^1.15.0",
|
|
64
|
-
"@cocreate/elements": "^1.
|
|
64
|
+
"@cocreate/elements": "^1.32.0",
|
|
65
65
|
"@cocreate/local-storage": "^1.12.0",
|
|
66
|
-
"@cocreate/render": "^1.
|
|
66
|
+
"@cocreate/render": "^1.37.1"
|
|
67
67
|
}
|
|
68
68
|
}
|
package/src/server.js
CHANGED
|
@@ -17,12 +17,14 @@ class CoCreateUser {
|
|
|
17
17
|
try {
|
|
18
18
|
if (data.user) {
|
|
19
19
|
data.user.method = 'object.create'
|
|
20
|
+
data.user.host = data.host
|
|
20
21
|
const response = await this.crud.send(data.user)
|
|
21
22
|
this.wsManager.send(response);
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
if (data.userKey) {
|
|
25
26
|
data.userKey.method = 'object.create'
|
|
27
|
+
data.userKey.host = data.host
|
|
26
28
|
const response = await this.crud.send(data.userKey)
|
|
27
29
|
this.wsManager.send(response);
|
|
28
30
|
}
|
|
@@ -55,6 +57,7 @@ class CoCreateUser {
|
|
|
55
57
|
this.crud.send(data).then(async (data) => {
|
|
56
58
|
let response = {
|
|
57
59
|
socket,
|
|
60
|
+
host: data.host,
|
|
58
61
|
method: 'signIn',
|
|
59
62
|
success: false,
|
|
60
63
|
message: "signIn failed",
|