@cocreate/users 1.40.3 → 1.42.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/package.json +9 -9
- package/src/client.js +4 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/users",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.42.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",
|
|
@@ -46,16 +46,16 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@cocreate/actions": "^1.22.
|
|
50
|
-
"@cocreate/config": "^1.14.
|
|
51
|
-
"@cocreate/crud-client": "^1.35.
|
|
52
|
-
"@cocreate/element-prototype": "^1.33.
|
|
53
|
-
"@cocreate/elements": "^1.43.
|
|
54
|
-
"@cocreate/local-storage": "^1.17.
|
|
55
|
-
"@cocreate/render": "^1.48.
|
|
49
|
+
"@cocreate/actions": "^1.22.3",
|
|
50
|
+
"@cocreate/config": "^1.14.3",
|
|
51
|
+
"@cocreate/crud-client": "^1.35.2",
|
|
52
|
+
"@cocreate/element-prototype": "^1.33.2",
|
|
53
|
+
"@cocreate/elements": "^1.43.2",
|
|
54
|
+
"@cocreate/local-storage": "^1.17.2",
|
|
55
|
+
"@cocreate/render": "^1.48.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@cocreate/webpack": "^1.6.
|
|
58
|
+
"@cocreate/webpack": "^1.6.2"
|
|
59
59
|
},
|
|
60
60
|
"allowScripts": {
|
|
61
61
|
"@cocreate/actions@1.21.4": true,
|
package/src/client.js
CHANGED
|
@@ -177,8 +177,8 @@ const CoCreateUser = {
|
|
|
177
177
|
|
|
178
178
|
signOut: function (action) {
|
|
179
179
|
// Synchronously evict user configuration metadata
|
|
180
|
-
Config.
|
|
181
|
-
Config.
|
|
180
|
+
Config.delete("user_id");
|
|
181
|
+
Config.delete("token");
|
|
182
182
|
|
|
183
183
|
if (Crud && Crud.socket) {
|
|
184
184
|
Crud.socket.user_id = null;
|
|
@@ -238,9 +238,8 @@ const CoCreateUser = {
|
|
|
238
238
|
let redirectLink = redirectTag.getAttribute("href");
|
|
239
239
|
if (redirectLink) {
|
|
240
240
|
if (userStatus == "offline") {
|
|
241
|
-
|
|
242
|
-
Config.
|
|
243
|
-
Config.remove("token");
|
|
241
|
+
Config.delete("user_id");
|
|
242
|
+
Config.delete("token");
|
|
244
243
|
if (Crud && Crud.socket) Crud.socket.user_id = null;
|
|
245
244
|
}
|
|
246
245
|
|