aotrautils 0.0.1208 → 0.0.1209
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.
- aotrautils/aotrautils.build.js +17 -14
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
@@ -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:21)»*/
|
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 CLIENT library associated with aotra version : «1_29072022-2359 (30/03/2025-02:
|
4874
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (30/03/2025-02:55:21)»*/
|
4872
4875
|
/*-----------------------------------------------------------------------------*/
|
4873
4876
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
4874
4877
|
*
|
@@ -13440,7 +13443,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13440
13443
|
|
13441
13444
|
|
13442
13445
|
|
13443
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (30/03/2025-02:
|
13446
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (30/03/2025-02:55:21)»*/
|
13444
13447
|
/*-----------------------------------------------------------------------------*/
|
13445
13448
|
|
13446
13449
|
|
@@ -14679,7 +14682,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
14679
14682
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
14680
14683
|
|
14681
14684
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
14682
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (30/03/2025-02:
|
14685
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (30/03/2025-02:55:21)»*/
|
14683
14686
|
/*-----------------------------------------------------------------------------*/
|
14684
14687
|
|
14685
14688
|
|
@@ -14823,7 +14826,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
14823
14826
|
|
14824
14827
|
|
14825
14828
|
|
14826
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (30/03/2025-02:
|
14829
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (30/03/2025-02:55:21)»*/
|
14827
14830
|
/*-----------------------------------------------------------------------------*/
|
14828
14831
|
|
14829
14832
|
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1209",
|
4
4
|
"main": "aotrautils.build.js",
|
5
5
|
"description": "A library for vanilla javascript utils (client-side) used in aotra javascript CMS",
|
6
6
|
"author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",
|