@cocreate/users 1.22.6 → 1.22.8

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.22.8](https://github.com/CoCreate-app/CoCreate-users/compare/v1.22.7...v1.22.8) (2023-06-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Refactor user creation and remove unnecessary code. ([15bf5c8](https://github.com/CoCreate-app/CoCreate-users/commit/15bf5c87572521471be3aa1a75bbdba37486ac1c))
7
+
8
+ ## [1.22.7](https://github.com/CoCreate-app/CoCreate-users/compare/v1.22.6...v1.22.7) (2023-05-25)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Update dependencies versions ([8ea7c78](https://github.com/CoCreate-app/CoCreate-users/commit/8ea7c782737e2c0c62bce71bc320a7738521f0ad))
14
+
1
15
  ## [1.22.6](https://github.com/CoCreate-app/CoCreate-users/compare/v1.22.5...v1.22.6) (2023-05-25)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.22.6",
3
+ "version": "1.22.8",
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
@@ -52,9 +52,7 @@ const CoCreateUser = {
52
52
  roles: ['user'],
53
53
  email: user.document.email,
54
54
  password: user.document.password || btoa('0000'),
55
- user: {
56
- collection
57
- }
55
+ collection
58
56
  },
59
57
  organization_id
60
58
  }
@@ -96,9 +94,6 @@ const CoCreateUser = {
96
94
  let request = {
97
95
  db: 'indexeddb',
98
96
  collection,
99
- // document: {
100
- // lastSignIn: new Date().toISOString()
101
- // },
102
97
  filter: {
103
98
  query
104
99
  }