aotrautils-srv 0.0.185 → 0.0.188

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:25:28)»*/
3
+ /*utils COMMONS library associated with aotra version : «1.0.0.000 (18/07/2022-02:19: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 (18/07/2022-01:25:28)»*/
4831
+ /*utils SERVER library associated with aotra version : «1.0.0.000 (18/07/2022-02:19:31)»*/
4832
4832
  /*-----------------------------------------------------------------------------*/
4833
4833
 
4834
4834
 
@@ -5659,10 +5659,6 @@ WebsocketImplementation={
5659
5659
 
5660
5660
  const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
5661
5661
 
5662
- ////
5663
- // DBG
5664
- lognow(" CLIENT-BROWSER RECEIVED 2:",dataWrapped);
5665
-
5666
5662
 
5667
5663
  // Channel information is stored in exchanged data :
5668
5664
  if(dataWrapped.channelName && dataWrapped.channelName!==channelName) return;
@@ -6179,18 +6175,18 @@ class ListManager{
6179
6175
  if(id==null){
6180
6176
  // TRACE
6181
6177
  lognow("ERROR : Cannot calculate item position, no id specified.");
6182
- return;
6178
+ return null;
6183
6179
  }
6184
6180
  if(!this.itemsInfos[id]){
6185
6181
  // TRACE
6186
6182
  lognow("ERROR : Cannot calculate item position, item not found for id «"+id+"».");
6187
- return;
6183
+ return null;
6188
6184
  }
6189
6185
  let result=0;
6190
- foreach(this.itemsInfos,(itemInfo,key)=>{
6186
+ foreach(this.itemsInfos, (itemInfo, key)=>{
6191
6187
  result++;
6192
- if(id==key) return "break";
6193
- },null,(itemInfo1,itemInfo2)=>item1.time<item2.time);
6188
+ if(id===key) return "break";
6189
+ },null,(itemInfo1, itemInfo2)=>item1.time<item2.time);
6194
6190
  return result;
6195
6191
  }
6196
6192
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.185",
3
+ "version": "0.0.188",
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)",