@cocreate/users 1.17.5 → 1.17.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 +14 -0
- package/package.json +7 -7
- package/src/client.js +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.17.7](https://github.com/CoCreate-app/CoCreate-users/compare/v1.17.6...v1.17.7) (2023-04-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* removed adding token as cookie ([44077f7](https://github.com/CoCreate-app/CoCreate-users/commit/44077f7064c6b489d29b278353044b1fe7d6c420))
|
|
7
|
+
|
|
8
|
+
## [1.17.6](https://github.com/CoCreate-app/CoCreate-users/compare/v1.17.5...v1.17.6) (2023-04-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* bump dependencies ([c4f667a](https://github.com/CoCreate-app/CoCreate-users/commit/c4f667a581777a7fd5e6334ccea0c328efa78266))
|
|
14
|
+
|
|
1
15
|
## [1.17.5](https://github.com/CoCreate-app/CoCreate-users/compare/v1.17.4...v1.17.5) (2023-04-11)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/users",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.7",
|
|
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",
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
"webpack-log": "^3.0.1"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@cocreate/actions": "^1.6.
|
|
64
|
-
"@cocreate/crud-client": "^1.19.
|
|
65
|
-
"@cocreate/docs": "^1.6.
|
|
66
|
-
"@cocreate/element-prototype": "^1.6.
|
|
67
|
-
"@cocreate/local-storage": "^1.5.
|
|
68
|
-
"@cocreate/render": "^1.22.
|
|
63
|
+
"@cocreate/actions": "^1.6.5",
|
|
64
|
+
"@cocreate/crud-client": "^1.19.5",
|
|
65
|
+
"@cocreate/docs": "^1.6.5",
|
|
66
|
+
"@cocreate/element-prototype": "^1.6.5",
|
|
67
|
+
"@cocreate/local-storage": "^1.5.5",
|
|
68
|
+
"@cocreate/render": "^1.22.6"
|
|
69
69
|
}
|
|
70
70
|
}
|
package/src/client.js
CHANGED
|
@@ -94,7 +94,7 @@ const CoCreateUser = {
|
|
|
94
94
|
localStorage.setItem("host", crud.socket.config.host);
|
|
95
95
|
localStorage.setItem('user_id', data.document[0]['_id']);
|
|
96
96
|
localStorage.setItem("token", token);
|
|
97
|
-
document.cookie = `token=${token};path=/`;
|
|
97
|
+
// document.cookie = `token=${token};path=/`;
|
|
98
98
|
message = "Succesful signIn";
|
|
99
99
|
document.dispatchEvent(new CustomEvent('signIn', {
|
|
100
100
|
detail: {}
|
|
@@ -119,11 +119,11 @@ const CoCreateUser = {
|
|
|
119
119
|
localStorage.removeItem("user_id");
|
|
120
120
|
localStorage.removeItem("token");
|
|
121
121
|
|
|
122
|
-
let allCookies = document.cookie.split(';');
|
|
122
|
+
// let allCookies = document.cookie.split(';');
|
|
123
123
|
|
|
124
|
-
for (var i = 0; i < allCookies.length; i++)
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
// for (var i = 0; i < allCookies.length; i++)
|
|
125
|
+
// document.cookie = allCookies[i] + "=;expires=" +
|
|
126
|
+
// new Date(0).toUTCString();
|
|
127
127
|
|
|
128
128
|
render.data({
|
|
129
129
|
selector: "[template='signOut']",
|