aotrautils 0.0.1764 → 0.0.1766
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 +11 -8
- 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-
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (14/06/2025-13:36:44)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -3958,16 +3958,19 @@ window.setByDottedPath=(obj, path, value)=>{
|
|
3958
3958
|
const nextIsIndex=(!isNaN(pathParts[i + 1]));
|
3959
3959
|
currentObject[part]=(nextIsIndex ? [] : {});
|
3960
3960
|
}
|
3961
|
+
const previousObject=currentObject;
|
3961
3962
|
currentObject=currentObject[part];
|
3962
3963
|
|
3963
3964
|
if(isString(currentObject)){
|
3964
3965
|
// Here we are trying to set a value inside an object, but the attribute is actually a JSON string !
|
3965
3966
|
try{
|
3966
|
-
|
3967
|
+
previousObject[part]=parseJSON(currentObject);
|
3968
|
+
// We need to update the current object again...(since we have competely transformed it)
|
3969
|
+
currentObject=currentObject[part];
|
3967
3970
|
}catch(error){
|
3968
3971
|
// Here we have a string, and we want to set a value inside the attribute, but it's not an object !
|
3969
|
-
const
|
3970
|
-
|
3972
|
+
const subPathToChild=pathParts.slice(i+1);
|
3973
|
+
setByDottedPath(currentObject, subPathToChild.join("."), value);
|
3971
3974
|
return;
|
3972
3975
|
}
|
3973
3976
|
}
|
@@ -5009,7 +5012,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
5009
5012
|
|
5010
5013
|
|
5011
5014
|
|
5012
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (14/06/2025-
|
5015
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (14/06/2025-13:36:44)»*/
|
5013
5016
|
/*-----------------------------------------------------------------------------*/
|
5014
5017
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
5015
5018
|
*
|
@@ -13610,7 +13613,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13610
13613
|
|
13611
13614
|
|
13612
13615
|
|
13613
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (14/06/2025-
|
13616
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (14/06/2025-13:36:44)»*/
|
13614
13617
|
/*-----------------------------------------------------------------------------*/
|
13615
13618
|
|
13616
13619
|
|
@@ -14849,7 +14852,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
14849
14852
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
14850
14853
|
|
14851
14854
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
14852
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (14/06/2025-
|
14855
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (14/06/2025-13:36:44)»*/
|
14853
14856
|
/*-----------------------------------------------------------------------------*/
|
14854
14857
|
|
14855
14858
|
|
@@ -14995,7 +14998,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
14995
14998
|
|
14996
14999
|
|
14997
15000
|
|
14998
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (14/06/2025-
|
15001
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (14/06/2025-13:36:44)»*/
|
14999
15002
|
/*-----------------------------------------------------------------------------*/
|
15000
15003
|
|
15001
15004
|
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1766",
|
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)",
|