aotrautils-srv 0.0.212 → 0.0.215

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- /*utils COMMONS library associated with aotra version : «1.0.0.000 (19/07/2022-03:41:16)»*/
3
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (19/07/2022-03:52:13)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4828,7 +4828,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4828
4828
 
4829
4829
 
4830
4830
 
4831
- /*utils SERVER library associated with aotra version : «1.0.0.000 (19/07/2022-03:41:16)»*/
4831
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (19/07/2022-03:52:13)»*/
4832
4832
  /*-----------------------------------------------------------------------------*/
4833
4833
 
4834
4834
 
@@ -6166,7 +6166,6 @@ class ListManager{
6166
6166
  const numberOfItemsCurrently=getArraySize(this.itemsInfos);
6167
6167
 
6168
6168
  // DBG
6169
- lognow(">>>>>>>>>this.itemsInfos:",this.itemsInfos);
6170
6169
  lognow(">>>>>>>>>numberOfItemsCurrently:",numberOfItemsCurrently);
6171
6170
  lognow(">>>>>>>>>Object.keys(arrayOfValues):",Object.keys(this.itemsInfos));
6172
6171
 
@@ -6179,6 +6178,10 @@ class ListManager{
6179
6178
 
6180
6179
 
6181
6180
  if(numberOfItemsCurrently==0 && this.mode==="startAtConnexion"){
6181
+
6182
+ // DBG
6183
+ lognow(">>>>>>>>>START SESSION !!!!");
6184
+
6182
6185
  this.startSession();
6183
6186
  }
6184
6187
  this.itemsInfos[id]={
@@ -6188,7 +6191,7 @@ class ListManager{
6188
6191
  }
6189
6192
 
6190
6193
  startSession(){
6191
- this.time==getNow();
6194
+ this.time=getNow();
6192
6195
  this.started=true;
6193
6196
  }
6194
6197
 
@@ -6197,9 +6200,21 @@ class ListManager{
6197
6200
  }
6198
6201
 
6199
6202
  isSessionActive(){
6203
+
6204
+ // DBG
6205
+ lognow(" !!! this.sessionDurationSeconds : "+this.sessionDurationSeconds);
6206
+ lognow(" !!! this.started : "+this.started);
6207
+ lognow(" !!! this.time : "+this.time);
6208
+
6209
+
6200
6210
  if(!this.sessionDurationSeconds) return true;
6201
6211
  if(!this.started) return false;
6202
- return !hasDelayPassed(this.time, this.sessionDurationSeconds*1000);
6212
+ const result=!hasDelayPassed(this.time, this.sessionDurationSeconds*1000);
6213
+
6214
+ // DBG
6215
+ lognow(" !!! HAS DELAY PASSED : "+result);
6216
+
6217
+ return result;
6203
6218
  }
6204
6219
 
6205
6220
  isClientActive(clientId){
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.212",
3
+ "version": "0.0.215",
4
4
  "main": "aotrautils-srv.build.js",
5
5
  "description": "A library for vanilla javascript utils (server-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",