aotrautils 0.0.1209 → 0.0.1211
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 +8 -11
- 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-
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (30/03/2025-22:40:07)»*/
|
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)
|
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 CLIENT library associated with aotra version : «1_29072022-2359 (30/03/2025-
|
4871
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (30/03/2025-22:40:07)»*/
|
4875
4872
|
/*-----------------------------------------------------------------------------*/
|
4876
4873
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
4877
4874
|
*
|
@@ -13443,7 +13440,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13443
13440
|
|
13444
13441
|
|
13445
13442
|
|
13446
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (30/03/2025-
|
13443
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (30/03/2025-22:40:07)»*/
|
13447
13444
|
/*-----------------------------------------------------------------------------*/
|
13448
13445
|
|
13449
13446
|
|
@@ -14682,7 +14679,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
14682
14679
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
14683
14680
|
|
14684
14681
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
14685
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (30/03/2025-
|
14682
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (30/03/2025-22:40:07)»*/
|
14686
14683
|
/*-----------------------------------------------------------------------------*/
|
14687
14684
|
|
14688
14685
|
|
@@ -14826,7 +14823,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
14826
14823
|
|
14827
14824
|
|
14828
14825
|
|
14829
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (30/03/2025-
|
14826
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (30/03/2025-22:40:07)»*/
|
14830
14827
|
/*-----------------------------------------------------------------------------*/
|
14831
14828
|
|
14832
14829
|
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1211",
|
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)",
|