aotrautils-srv 0.0.199 → 0.0.200
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-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1.0.0.000 (19/07/2022-01:12:32)»*/
|
|
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-
|
|
4831
|
+
/*utils SERVER library associated with aotra version : «1.0.0.000 (19/07/2022-01:12:32)»*/
|
|
4832
4832
|
/*-----------------------------------------------------------------------------*/
|
|
4833
4833
|
|
|
4834
4834
|
|
|
@@ -6097,6 +6097,7 @@ initNodeServer=function(doOnClientConnection=null, doOnFinalizeServer=null, /*OP
|
|
|
6097
6097
|
// ========================= UTILITY SERVERSIDE METHODS : =========================
|
|
6098
6098
|
|
|
6099
6099
|
class ListManager{
|
|
6100
|
+
|
|
6100
6101
|
constructor(config){
|
|
6101
6102
|
this.config=config;
|
|
6102
6103
|
this.maxItemsNumber=nonull(this.config.max,999);
|
|
@@ -6151,7 +6152,7 @@ class ListManager{
|
|
|
6151
6152
|
}
|
|
6152
6153
|
|
|
6153
6154
|
isClientActive(clientId){
|
|
6154
|
-
if(!
|
|
6155
|
+
if(!this.isSessionActive()) return false;
|
|
6155
6156
|
const clientPosition=this.getItemPosition(clientId);
|
|
6156
6157
|
const result=(clientPosition<=this.maxItemsNumber);
|
|
6157
6158
|
return result;
|
|
@@ -6191,6 +6192,9 @@ class ListManager{
|
|
|
6191
6192
|
return result;
|
|
6192
6193
|
}
|
|
6193
6194
|
|
|
6195
|
+
getItemsNumber(){
|
|
6196
|
+
return getArraySize(this.itemsInfos);
|
|
6197
|
+
}
|
|
6194
6198
|
|
|
6195
6199
|
}
|
|
6196
6200
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.200",
|
|
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)",
|