aotrautils-srv 0.0.1216 → 0.0.1218

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_29072022-2359 (30/03/2025-02:59:07)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (30/03/2025-22:40:11)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4360,23 +4360,21 @@ window.calculateProtoDelta=function(obj1,obj2,
4360
4360
  /*public*/window.getSignatureOnObject=function(obj, isHashed=true){
4361
4361
  // We always flatten the input object first :
4362
4362
  const flatObj=getAsFlatStructure(obj);
4363
-
4364
4363
  return getSignatureOnFlatObject(flatObj, isHashed);
4365
4364
  }
4366
4365
 
4367
4366
  /*public*/window.getSignatureOnFlatObject=function(flatObj, isHashed=true){
4368
-
4369
4367
  // We construct a simple array, to get rid of the identifiers values :
4368
+ const flatArray=[];
4370
4369
  foreach(flatObj,item=>flatArray.push(item));
4371
-
4372
- return getSignatureOnNonCycledObject(flatObj, isHashed, [DEFAULT_UUID_ATTR_NAME, DEFAULT_POINTER_TO_ATTR_NAME]);
4370
+ return getSignatureOnNonCycledObject(flatArray, isHashed, [DEFAULT_UUID_ATTR_NAME, DEFAULT_POINTER_TO_ATTR_NAME]);
4373
4371
  }
4374
4372
 
4375
4373
  // DO NOT CALL DIRECTLY :
4376
4374
  // CAUTION : will cause an INFINITE LOOP if the object contains a CYCLE !
4377
4375
  /*private*/window.getSignatureOnNonCycledObject=function(obj, isHashed=true, attributesNamesToIgnore=null){
4378
4376
  var result="";
4379
- if(obj==null) return "null";
4377
+ if(obj==null) return "null";
4380
4378
  if(isPrimitive(obj)) return ""+obj;
4381
4379
 
4382
4380
  if(isArray(obj)){
@@ -4432,7 +4430,6 @@ window.calculateProtoDelta=function(obj1,obj2,
4432
4430
  }, ()=>true,
4433
4431
  // We must sort the object keys to be sure the comparison is order-insensitive !
4434
4432
  (key1,key2)=>key1.localeCompare(key2));
4435
-
4436
4433
 
4437
4434
  }
4438
4435
 
@@ -4871,7 +4868,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4871
4868
 
4872
4869
 
4873
4870
 
4874
- /*utils AI library associated with aotra version : «1_29072022-2359 (30/03/2025-02:59:07)»*/
4871
+ /*utils AI library associated with aotra version : «1_29072022-2359 (30/03/2025-22:40:11)»*/
4875
4872
  /*-----------------------------------------------------------------------------*/
4876
4873
 
4877
4874
 
@@ -5015,7 +5012,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
5015
5012
 
5016
5013
 
5017
5014
 
5018
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (30/03/2025-02:59:07)»*/
5015
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (30/03/2025-22:40:11)»*/
5019
5016
  /*-----------------------------------------------------------------------------*/
5020
5017
 
5021
5018
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.1216",
3
+ "version": "0.0.1218",
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)",