@cocreate/users 1.19.8 → 1.20.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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [1.20.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.19.9...v1.20.0) (2023-05-10)
2
+
3
+
4
+ ### Features
5
+
6
+ * if !dbUrl use indexeddb ([ba86800](https://github.com/CoCreate-app/CoCreate-users/commit/ba8680066b01ffa8df02dfeb260d229d2081fc44))
7
+
8
+ ## [1.19.9](https://github.com/CoCreate-app/CoCreate-users/compare/v1.19.8...v1.19.9) (2023-05-07)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * crud.wsManger ([f725296](https://github.com/CoCreate-app/CoCreate-users/commit/f725296a7fc62eb6520e2c3e748a5f64bb3cc164))
14
+
1
15
  ## [1.19.8](https://github.com/CoCreate-app/CoCreate-users/compare/v1.19.7...v1.19.8) (2023-05-06)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.19.8",
3
+ "version": "1.20.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",
package/src/client.js CHANGED
@@ -66,7 +66,7 @@ const CoCreateUser = {
66
66
  }
67
67
 
68
68
  const socket = crud.socket.getSockets()
69
- if (!socket[0] || !socket[0].connected || window && !window.navigator.onLine) {
69
+ if (!socket[0] || !socket[0].connected || window && !window.navigator.onLine || crud.socket.dbUrl == false || crud.socket.organization == false) {
70
70
  crud.updateDocument(request).then((response) => {
71
71
  response['success'] = false
72
72
  response['status'] = "signIn failed"
package/src/server.js CHANGED
@@ -1,6 +1,6 @@
1
1
  class CoCreateUser {
2
- constructor(wsManager, crud) {
3
- this.wsManager = wsManager
2
+ constructor(crud) {
3
+ this.wsManager = crud.wsManager
4
4
  this.crud = crud
5
5
  this.init()
6
6
  }