@cocreate/users 1.33.0 → 1.33.1

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,10 @@
1
+ ## [1.33.1](https://github.com/CoCreate-app/CoCreate-users/compare/v1.33.0...v1.33.1) (2024-01-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update to support new query system ([6e11866](https://github.com/CoCreate-app/CoCreate-users/commit/6e118666cc66c83adaf0a56c029f044305d9d924))
7
+
1
8
  # [1.33.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.32.0...v1.33.0) (2024-01-08)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.33.0",
3
+ "version": "1.33.1",
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",
package/src/client.js CHANGED
@@ -79,13 +79,13 @@ const CoCreateUser = {
79
79
 
80
80
  signIn: async function (action) {
81
81
  if (!action.form) return;
82
- let query = [];
82
+ let query = {};
83
83
 
84
84
  const inputs = action.form.querySelectorAll('input[key="email"], input[key="password"], input[key="username"]');
85
85
  for (let i = 0; i < inputs.length; i++) {
86
86
  const key = inputs[i].getAttribute('key');
87
87
  const value = await inputs[i].getValue();
88
- query.push({ key, value, operator: '$eq' })
88
+ query[key] = value
89
89
  }
90
90
 
91
91
  let request = {