@cocreate/users 1.37.1 → 1.37.3

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,18 @@
1
+ ## [1.37.3](https://github.com/CoCreate-app/CoCreate-users/compare/v1.37.2...v1.37.3) (2024-06-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * checkSession debounce function ([6229d80](https://github.com/CoCreate-app/CoCreate-users/commit/6229d8089e0a509d0c171f6e329cd3fcce495356))
7
+ * debounce check session ([2a31537](https://github.com/CoCreate-app/CoCreate-users/commit/2a315373bbebae765d91392118aee92216b6456a))
8
+
9
+ ## [1.37.2](https://github.com/CoCreate-app/CoCreate-users/compare/v1.37.1...v1.37.2) (2024-06-23)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * bump dependencies ([59bc2f3](https://github.com/CoCreate-app/CoCreate-users/commit/59bc2f37ce6a779215cfacbbb09caaab117c8178))
15
+
1
16
  ## [1.37.1](https://github.com/CoCreate-app/CoCreate-users/compare/v1.37.0...v1.37.1) (2024-06-23)
2
17
 
3
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.37.1",
3
+ "version": "1.37.3",
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.18.3",
62
- "@cocreate/crud-client": "^1.11.0",
61
+ "@cocreate/actions": "^1.18.4",
62
+ "@cocreate/crud-client": "^1.33.11",
63
63
  "@cocreate/element-prototype": "^1.23.0",
64
- "@cocreate/elements": "^1.12.2",
64
+ "@cocreate/elements": "^1.35.7",
65
65
  "@cocreate/local-storage": "^1.15.0",
66
- "@cocreate/render": "^1.15.2"
66
+ "@cocreate/render": "^1.41.3"
67
67
  }
68
68
  }
package/src/client.js CHANGED
@@ -458,16 +458,24 @@ Actions.init([
458
458
  }
459
459
  ]);
460
460
 
461
- Observer.init({
462
- name: 'CoCreateElementsRemovedNodes',
463
- observe: ['addedNodes'],
464
- target: '[session]',
465
- callback: () => {
461
+ let checkSessionTimeout
462
+ function checkSession() {
463
+ clearTimeout(checkSessionTimeout);
464
+ checkSessionTimeout = setTimeout(function () {
466
465
  Crud.socket.send({
467
466
  method: 'checkSession',
468
467
  broadcast: false,
469
468
  broadcastBrowser: false
470
469
  });
470
+ }, 500);
471
+ }
472
+
473
+ Observer.init({
474
+ name: 'CoCreateUserSessionAddedNodes',
475
+ observe: ['addedNodes'],
476
+ target: '[session]',
477
+ callback: () => {
478
+ checkSession();
471
479
  }
472
480
  });
473
481