aotrautils-srv 0.0.1752 → 0.0.1754
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 (
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (13/06/2025-23:25:40)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -3948,16 +3948,17 @@ window.setByDottedPath=(obj, path, value)=>{
|
|
3948
3948
|
obj[path]=value;
|
3949
3949
|
}
|
3950
3950
|
let currentObject=obj;
|
3951
|
-
const
|
3952
|
-
for(let i=0; i<
|
3953
|
-
const part=
|
3951
|
+
const pathParts=path.split(".");
|
3952
|
+
for(let i=0; i<pathParts.length-1; i++) {
|
3953
|
+
const part=pathParts[i];
|
3954
3954
|
if(!(part in currentObject)) {
|
3955
|
-
const nextIsIndex=(!isNaN(
|
3955
|
+
const nextIsIndex=(!isNaN(pathParts[i + 1]));
|
3956
3956
|
currentObject[part]=(nextIsIndex ? [] : {});
|
3957
3957
|
}
|
3958
3958
|
currentObject=currentObject[part];
|
3959
3959
|
}
|
3960
|
-
|
3960
|
+
const lastAttributeNameInPath=pathParts[pathParts.length - 1];
|
3961
|
+
currentObject[lastAttributeNameInPath]=value;
|
3961
3962
|
};
|
3962
3963
|
|
3963
3964
|
|
@@ -4991,7 +4992,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4991
4992
|
|
4992
4993
|
|
4993
4994
|
|
4994
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (
|
4995
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (13/06/2025-23:25:40)»*/
|
4995
4996
|
/*-----------------------------------------------------------------------------*/
|
4996
4997
|
|
4997
4998
|
|
@@ -5137,7 +5138,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
5137
5138
|
|
5138
5139
|
|
5139
5140
|
|
5140
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (
|
5141
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (13/06/2025-23:25:40)»*/
|
5141
5142
|
/*-----------------------------------------------------------------------------*/
|
5142
5143
|
|
5143
5144
|
|
aotrautils-srv/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils-srv",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1754",
|
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)",
|