aotrautils-srv 0.0.212 → 0.0.213
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:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1.0.0.000 (19/07/2022-03:46:31)»*/
|
|
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:
|
|
4831
|
+
/*utils SERVER library associated with aotra version : «1.0.0.000 (19/07/2022-03:46:31)»*/
|
|
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]={
|
|
@@ -6197,9 +6200,22 @@ class ListManager{
|
|
|
6197
6200
|
}
|
|
6198
6201
|
|
|
6199
6202
|
isSessionActive(){
|
|
6203
|
+
|
|
6204
|
+
|
|
6205
|
+
// DBG
|
|
6206
|
+
lognow(" !!! this.sessionDurationSeconds : "+this.sessionDurationSeconds);
|
|
6207
|
+
lognow(" !!! this.started : "+this.started);
|
|
6208
|
+
lognow(" !!! this.time : "+this.time);
|
|
6209
|
+
|
|
6210
|
+
|
|
6200
6211
|
if(!this.sessionDurationSeconds) return true;
|
|
6201
6212
|
if(!this.started) return false;
|
|
6202
|
-
|
|
6213
|
+
const result=!hasDelayPassed(this.time, this.sessionDurationSeconds*1000);
|
|
6214
|
+
|
|
6215
|
+
// DBG
|
|
6216
|
+
lognow(" !!! HAS DELAY PASSED : "+result);
|
|
6217
|
+
|
|
6218
|
+
return result;
|
|
6203
6219
|
}
|
|
6204
6220
|
|
|
6205
6221
|
isClientActive(clientId){
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.213",
|
|
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)",
|