aotrautils-srv 0.0.187 → 0.0.190

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 (18/07/2022-01:35:37)»*/
3
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (18/07/2022-02:53:54)»*/
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 (18/07/2022-01:35:37)»*/
4831
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (18/07/2022-02:53:54)»*/
4832
4832
  /*-----------------------------------------------------------------------------*/
4833
4833
 
4834
4834
 
@@ -5914,7 +5914,7 @@ initNodeServer=function(doOnClientConnection=null, doOnFinalizeServer=null, /*OP
5914
5914
  argCLPort=jsonConf.port;
5915
5915
  argCLCertPath=jsonConf.sslCertPath;
5916
5916
  argCLKeyPath=jsonConf.sslKeyPath;
5917
- serverConfig=nonull({},jsonConf.serverConfig);
5917
+ serverConfig=nonull(jsonConf.serverConfig,{});
5918
5918
  }catch(err1){
5919
5919
  lognow("ERROR : Cannot parse argument JSON string «"+val+"».",err1);
5920
5920
  }
@@ -6175,18 +6175,18 @@ class ListManager{
6175
6175
  if(id==null){
6176
6176
  // TRACE
6177
6177
  lognow("ERROR : Cannot calculate item position, no id specified.");
6178
- return;
6178
+ return null;
6179
6179
  }
6180
6180
  if(!this.itemsInfos[id]){
6181
6181
  // TRACE
6182
6182
  lognow("ERROR : Cannot calculate item position, item not found for id «"+id+"».");
6183
- return;
6183
+ return null;
6184
6184
  }
6185
6185
  let result=0;
6186
- foreach(this.itemsInfos,(itemInfo,key)=>{
6186
+ foreach(this.itemsInfos, (itemInfo, key)=>{
6187
6187
  result++;
6188
- if(id==key) return "break";
6189
- },null,(itemInfo1,itemInfo2)=>item1.time<item2.time);
6188
+ if(id===key) return "break";
6189
+ },null,(itemInfo1, itemInfo2)=>item1.time<item2.time);
6190
6190
  return result;
6191
6191
  }
6192
6192
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.187",
3
+ "version": "0.0.190",
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)",