aotrautils-srv 0.0.1105 → 0.0.1106
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 (18/03/2025-
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (18/03/2025-17:17:24)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -4016,7 +4016,7 @@ window.clone=function(obj){
|
|
4016
4016
|
};
|
4017
4017
|
|
4018
4018
|
|
4019
|
-
window.
|
4019
|
+
window.isProperAttributeNameInFlatStructure=function(key){
|
4020
4020
|
return key!==DEFAULT_UUID_ATTR_NAME && key!==DEFAULT_CLASSNAME_ATTR_NAME;
|
4021
4021
|
}
|
4022
4022
|
|
@@ -5247,7 +5247,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
5247
5247
|
|
5248
5248
|
|
5249
5249
|
|
5250
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (18/03/2025-
|
5250
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (18/03/2025-17:17:24)»*/
|
5251
5251
|
/*-----------------------------------------------------------------------------*/
|
5252
5252
|
|
5253
5253
|
|
@@ -5391,7 +5391,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
5391
5391
|
|
5392
5392
|
|
5393
5393
|
|
5394
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (18/03/2025-
|
5394
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (18/03/2025-17:17:24)»*/
|
5395
5395
|
/*-----------------------------------------------------------------------------*/
|
5396
5396
|
|
5397
5397
|
|
@@ -5476,10 +5476,9 @@ if(typeof(fs)==="undefined"){
|
|
5476
5476
|
return path;
|
5477
5477
|
},
|
5478
5478
|
|
5479
|
-
readTreeObjectFromFile:function(clientId="noclient", repositoryName="norepository",
|
5479
|
+
readTreeObjectFromFile:function(clientId="noclient", repositoryName="norepository", keepClassName=false){
|
5480
5480
|
|
5481
5481
|
let path=self.getPath(clientId,repositoryName);
|
5482
|
-
|
5483
5482
|
let resultFlat=null;
|
5484
5483
|
|
5485
5484
|
try{
|
@@ -5501,7 +5500,7 @@ if(typeof(fs)==="undefined"){
|
|
5501
5500
|
// 2)
|
5502
5501
|
if(!empty(resultData) && isFlatMap(resultData)){
|
5503
5502
|
// CAUTION : We have to keep the type information, here too ! (in the sub-objects)
|
5504
|
-
resultData=getAsTreeStructure(resultData,
|
5503
|
+
resultData=getAsTreeStructure(resultData, keepClassName);
|
5505
5504
|
}
|
5506
5505
|
|
5507
5506
|
return resultData;
|
aotrautils-srv/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils-srv",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1106",
|
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)",
|