@cocreate/users 1.21.5 → 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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.21.7](https://github.com/CoCreate-app/CoCreate-users/compare/v1.21.6...v1.21.7) (2023-05-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * updated dependencies to their latest versions ([2807bb2](https://github.com/CoCreate-app/CoCreate-users/commit/2807bb28f7845959ffd0f70fea7b0b502f033da1))
7
+
8
+ ## [1.21.6](https://github.com/CoCreate-app/CoCreate-users/compare/v1.21.5...v1.21.6) (2023-05-20)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Refactor user sign-in data collection in client.js ([fb899e2](https://github.com/CoCreate-app/CoCreate-users/commit/fb899e2e88c3cb1be0ee6efbdbb468e768fb34e0))
14
+
1
15
  ## [1.21.5](https://github.com/CoCreate-app/CoCreate-users/compare/v1.21.4...v1.21.5) (2023-05-20)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.21.5",
3
+ "version": "1.21.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,7 +60,7 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@cocreate/actions": "^1.8.11",
63
- "@cocreate/crud-client": "^1.21.2",
63
+ "@cocreate/crud-client": "^1.21.3",
64
64
  "@cocreate/docs": "^1.7.11",
65
65
  "@cocreate/element-prototype": "^1.8.11",
66
66
  "@cocreate/form": "^1.14.11",
package/src/client.js CHANGED
@@ -29,15 +29,14 @@ const CoCreateUser = {
29
29
  inputs.forEach((input) => {
30
30
  const name = input.getAttribute('name');
31
31
  const value = input.getValue();
32
- collection = input.getAttribute('collection') || collection;
32
+ collection = 'keys';
33
33
  query.push({ name, value, operator: '$eq' })
34
34
  });
35
35
 
36
36
  let request = {
37
37
  collection,
38
38
  document: {
39
- lastSignIn: new Date().toISOString(),
40
- current_org: crud.socket.config.organization_id
39
+ lastSignIn: new Date().toISOString()
41
40
  },
42
41
  filter: {
43
42
  query