@cocreate/users 1.40.3 → 1.43.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/.github/workflows/automated.yml +22 -20
- package/package.json +10 -9
- package/src/client.js +4 -5
|
@@ -9,33 +9,36 @@ jobs:
|
|
|
9
9
|
about:
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
steps:
|
|
12
|
-
- name: Checkout
|
|
13
|
-
uses: actions/checkout@
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
- name: Checkout repository
|
|
13
|
+
uses: actions/checkout@v7
|
|
14
|
+
|
|
15
|
+
- name: Sync package.json description to GitHub About
|
|
16
|
+
env:
|
|
17
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB }}
|
|
18
|
+
run: |
|
|
19
|
+
DESC=$(jq -r '.description // empty' package.json)
|
|
20
|
+
if [ -n "$DESC" ]; then
|
|
21
|
+
echo "Updating repository description to: $DESC"
|
|
22
|
+
gh api -X PATCH repos/${{ github.repository }} -f description="$DESC"
|
|
23
|
+
else
|
|
24
|
+
echo "No description found in package.json."
|
|
25
|
+
fi
|
|
23
26
|
|
|
24
27
|
release:
|
|
25
28
|
runs-on: ubuntu-latest
|
|
26
29
|
steps:
|
|
27
|
-
- name: Checkout
|
|
28
|
-
uses: actions/checkout@
|
|
30
|
+
- name: Checkout repository
|
|
31
|
+
uses: actions/checkout@v7
|
|
29
32
|
with:
|
|
30
|
-
fetch-depth: 0
|
|
33
|
+
fetch-depth: 0
|
|
34
|
+
token: ${{ secrets.GITHUB }} # Authenticates git CLI for tag/commit pushes
|
|
31
35
|
|
|
32
36
|
- name: Setup Node.js
|
|
33
|
-
uses: actions/setup-node@
|
|
37
|
+
uses: actions/setup-node@v7
|
|
34
38
|
with:
|
|
35
|
-
node-version:
|
|
39
|
+
node-version: '24'
|
|
36
40
|
|
|
37
41
|
- name: Install Semantic Release & Plugins
|
|
38
|
-
# Installs semantic-release and its plugins on the runner
|
|
39
42
|
run: |
|
|
40
43
|
npm install -g semantic-release \
|
|
41
44
|
@semantic-release/changelog \
|
|
@@ -43,12 +46,11 @@ jobs:
|
|
|
43
46
|
@semantic-release/github \
|
|
44
47
|
@semantic-release/git
|
|
45
48
|
|
|
46
|
-
- name: Run Semantic Release
|
|
49
|
+
- name: Run Semantic Release
|
|
47
50
|
id: semantic
|
|
48
|
-
# This will automatically pick up your export default config file in the repository root
|
|
49
51
|
run: npx semantic-release
|
|
50
52
|
env:
|
|
51
|
-
GITHUB_TOKEN: "${{ secrets.
|
|
53
|
+
GITHUB_TOKEN: "${{ secrets.GITHUB }}"
|
|
52
54
|
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
|
|
53
55
|
|
|
54
56
|
outputs:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/users",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.43.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,17 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@cocreate/actions": "^1.
|
|
50
|
-
"@cocreate/config": "^1.
|
|
51
|
-
"@cocreate/crud-client": "^1.
|
|
52
|
-
"@cocreate/element-prototype": "^1.
|
|
53
|
-
"@cocreate/elements": "^1.
|
|
54
|
-
"@cocreate/local-storage": "^1.
|
|
55
|
-
"@cocreate/render": "^1.
|
|
49
|
+
"@cocreate/actions": "^1.23.0",
|
|
50
|
+
"@cocreate/config": "^1.16.0",
|
|
51
|
+
"@cocreate/crud-client": "^1.36.0",
|
|
52
|
+
"@cocreate/element-prototype": "^1.34.0",
|
|
53
|
+
"@cocreate/elements": "^1.44.0",
|
|
54
|
+
"@cocreate/local-storage": "^1.18.0",
|
|
55
|
+
"@cocreate/render": "^1.49.0",
|
|
56
|
+
"@cocreate/server": "^1.7.0"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
|
-
"@cocreate/webpack": "^1.
|
|
59
|
+
"@cocreate/webpack": "^1.7.0"
|
|
59
60
|
},
|
|
60
61
|
"allowScripts": {
|
|
61
62
|
"@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
|
|