@cocreate/users 1.27.3 → 1.27.5

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.27.5](https://github.com/CoCreate-app/CoCreate-users/compare/v1.27.4...v1.27.5) (2023-10-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * await getValue() ([fc610fd](https://github.com/CoCreate-app/CoCreate-users/commit/fc610fd8739013a728edcfcabb790ad2fa242dbc))
7
+
8
+ ## [1.27.4](https://github.com/CoCreate-app/CoCreate-users/compare/v1.27.3...v1.27.4) (2023-10-14)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bump dependencies ([6853d55](https://github.com/CoCreate-app/CoCreate-users/commit/6853d552ca50f643a525b83af7081c11623745b8))
14
+
1
15
  ## [1.27.3](https://github.com/CoCreate-app/CoCreate-users/compare/v1.27.2...v1.27.3) (2023-10-09)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.27.3",
3
+ "version": "1.27.5",
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.11.5",
62
- "@cocreate/crud-client": "^1.28.3",
63
- "@cocreate/element-prototype": "^1.11.4",
64
- "@cocreate/elements": "^1.23.3",
65
- "@cocreate/local-storage": "^1.10.4",
66
- "@cocreate/render": "^1.28.2"
61
+ "@cocreate/actions": "^1.11.6",
62
+ "@cocreate/crud-client": "^1.28.4",
63
+ "@cocreate/element-prototype": "^1.11.5",
64
+ "@cocreate/elements": "^1.23.4",
65
+ "@cocreate/local-storage": "^1.10.5",
66
+ "@cocreate/render": "^1.28.3"
67
67
  }
68
68
  }
package/src/client.js CHANGED
@@ -82,19 +82,18 @@ const CoCreateUser = {
82
82
  }
83
83
  },
84
84
 
85
- signIn: function (btn) {
85
+ signIn: async function (btn) {
86
86
  let form = btn.closest('form');
87
87
  let array = form.getAttribute('array');
88
88
  let query = [];
89
89
 
90
90
  const inputs = form.querySelectorAll('input[key="email"], input[key="password"], input[key="username"]');
91
-
92
- inputs.forEach((input) => {
93
- const key = input.getAttribute('key');
94
- const value = input.getValue();
91
+ for (let i = 0; i < inputs.length; i++) {
92
+ const key = inputs[i].getAttribute('key');
93
+ const value = await inputs[i].getValue();
95
94
  array = 'keys';
96
95
  query.push({ key, value, operator: '$eq' })
97
- });
96
+ }
98
97
 
99
98
  let request = {
100
99
  method: 'read.object',