aotrautils-srv 0.0.1214 → 0.0.1215
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:
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (30/03/2025-02:55:24)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -4093,7 +4093,7 @@ window.areEquivalentFlatMaps=function(o1,o2,UUID_ATTR_NAME=DEFAULT_UUID_ATTR_NAM
|
|
4093
4093
|
let entry=o2[key];
|
4094
4094
|
|
4095
4095
|
//let s2=hashSafe(getSignatureOnNonCycledObject(entry,false,ignoredAttributes));
|
4096
|
-
let s2=hashSafe(
|
4096
|
+
let s2=hashSafe(getSignatureOnFlatObject(entry,false));
|
4097
4097
|
|
4098
4098
|
if(!contains(signatures1,s2)){
|
4099
4099
|
|
@@ -4243,21 +4243,24 @@ window.areEquivalent=function(obj1Param,obj2Param,flattenBeforeCompute=false, UU
|
|
4243
4243
|
if(isArrayObj1!==isArrayObj2) return false;
|
4244
4244
|
|
4245
4245
|
let obj1, obj2;
|
4246
|
+
let s1,s2;
|
4246
4247
|
if(flattenBeforeCompute){
|
4247
4248
|
// CAUTION : The UUIDs generation can alter the result !
|
4248
|
-
|
4249
|
-
|
4249
|
+
obj1=JSON.decycle(obj1Param);
|
4250
|
+
obj2=JSON.decycle(obj2Param);
|
4251
|
+
s1=getSignatureOnFlatObject(obj1, false);
|
4252
|
+
s2=getSignatureOnFlatObject(obj2, false);
|
4250
4253
|
}else{
|
4251
|
-
|
4252
|
-
|
4254
|
+
obj1=obj1Param;
|
4255
|
+
obj2=obj2Param;
|
4256
|
+
s1=getSignatureOnObject(obj1, false);
|
4257
|
+
s2=getSignatureOnObject(obj2, false);
|
4253
4258
|
}
|
4254
4259
|
|
4255
4260
|
//We ignore uuid keys :
|
4256
4261
|
//const ignoredAttributes=[UUID_ATTR_NAME,POINTER_TO_ATTR_NAME];
|
4257
|
-
//
|
4258
|
-
//
|
4259
|
-
let s1=getSignatureOnObject(obj1, false);
|
4260
|
-
let s2=getSignatureOnObject(obj2, false);
|
4262
|
+
//s1=getSignatureOnNonCycledObject(obj1,false,ignoredAttributes);
|
4263
|
+
//s2=getSignatureOnNonCycledObject(obj2,false,ignoredAttributes);
|
4261
4264
|
|
4262
4265
|
// DBG
|
4263
4266
|
//lognow("+++++++++++++++++SIGNATURE 1:",s1);
|
@@ -4868,7 +4871,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4868
4871
|
|
4869
4872
|
|
4870
4873
|
|
4871
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (30/03/2025-02:
|
4874
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (30/03/2025-02:55:24)»*/
|
4872
4875
|
/*-----------------------------------------------------------------------------*/
|
4873
4876
|
|
4874
4877
|
|
@@ -5012,7 +5015,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
5012
5015
|
|
5013
5016
|
|
5014
5017
|
|
5015
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (30/03/2025-02:
|
5018
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (30/03/2025-02:55:24)»*/
|
5016
5019
|
/*-----------------------------------------------------------------------------*/
|
5017
5020
|
|
5018
5021
|
|
aotrautils-srv/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils-srv",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1215",
|
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)",
|