aotrautils 0.0.1756 → 0.0.1758
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 +16 -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 (14/06/2025-01:
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (14/06/2025-02:01:26)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -3952,6 +3952,15 @@ window.setByDottedPath=(obj, path, value)=>{
|
|
3952
3952
|
let currentObject=obj;
|
3953
3953
|
for(let i=0; i<pathParts.length-1; i++) {
|
3954
3954
|
|
3955
|
+
const part=pathParts[i];
|
3956
|
+
// We create the sub-object if not already present:
|
3957
|
+
if(!(part in currentObject)) {
|
3958
|
+
const nextIsIndex=(!isNaN(pathParts[i + 1]));
|
3959
|
+
currentObject[part]=(nextIsIndex ? [] : {});
|
3960
|
+
}
|
3961
|
+
currentObject=currentObject[part];
|
3962
|
+
|
3963
|
+
|
3955
3964
|
if(isString(currentObject)){
|
3956
3965
|
// Here we are trying to set a value inside an object, but the attribute is actually a JSON string !
|
3957
3966
|
try{
|
@@ -3963,18 +3972,11 @@ window.setByDottedPath=(obj, path, value)=>{
|
|
3963
3972
|
return;
|
3964
3973
|
}
|
3965
3974
|
}
|
3966
|
-
|
3967
|
-
const part=pathParts[i];
|
3968
|
-
// We create the sub-object if not already present:
|
3969
|
-
if(!(part in currentObject)) {
|
3970
|
-
const nextIsIndex=(!isNaN(pathParts[i + 1]));
|
3971
|
-
currentObject[part]=(nextIsIndex ? [] : {});
|
3972
|
-
}
|
3973
|
-
currentObject=currentObject[part];
|
3974
|
-
|
3975
|
+
|
3975
3976
|
}
|
3976
3977
|
const lastAttributeNameInPath=pathParts[pathParts.length-1];
|
3977
3978
|
currentObject[lastAttributeNameInPath]=value;
|
3979
|
+
|
3978
3980
|
};
|
3979
3981
|
|
3980
3982
|
|
@@ -5009,7 +5011,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
5009
5011
|
|
5010
5012
|
|
5011
5013
|
|
5012
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (14/06/2025-01:
|
5014
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (14/06/2025-02:01:26)»*/
|
5013
5015
|
/*-----------------------------------------------------------------------------*/
|
5014
5016
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
5015
5017
|
*
|
@@ -13610,7 +13612,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13610
13612
|
|
13611
13613
|
|
13612
13614
|
|
13613
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (14/06/2025-01:
|
13615
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (14/06/2025-02:01:26)»*/
|
13614
13616
|
/*-----------------------------------------------------------------------------*/
|
13615
13617
|
|
13616
13618
|
|
@@ -14849,7 +14851,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
14849
14851
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
14850
14852
|
|
14851
14853
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
14852
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (14/06/2025-01:
|
14854
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (14/06/2025-02:01:26)»*/
|
14853
14855
|
/*-----------------------------------------------------------------------------*/
|
14854
14856
|
|
14855
14857
|
|
@@ -14995,7 +14997,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
14995
14997
|
|
14996
14998
|
|
14997
14999
|
|
14998
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (14/06/2025-01:
|
15000
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (14/06/2025-02:01:26)»*/
|
14999
15001
|
/*-----------------------------------------------------------------------------*/
|
15000
15002
|
|
15001
15003
|
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1758",
|
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)",
|