aotrautils 0.0.1117 → 0.0.1119

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-12:49:35)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (18/03/2025-18:07:52)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4016,7 +4016,7 @@ window.clone=function(obj){
4016
4016
  };
4017
4017
 
4018
4018
 
4019
- window.isProperAttributeName=function(key){
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 CLIENT library associated with aotra version : «1_29072022-2359 (18/03/2025-12:49:35)»*/
5250
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (18/03/2025-18:07:52)»*/
5251
5251
  /*-----------------------------------------------------------------------------*/
5252
5252
  /* ## Utility global methods in a browser (htmljs) client environment.
5253
5253
  *
@@ -13819,7 +13819,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
13819
13819
 
13820
13820
 
13821
13821
 
13822
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (18/03/2025-12:49:35)»*/
13822
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (18/03/2025-18:07:52)»*/
13823
13823
  /*-----------------------------------------------------------------------------*/
13824
13824
 
13825
13825
 
@@ -15058,7 +15058,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
15058
15058
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
15059
15059
 
15060
15060
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
15061
- /*utils AI library associated with aotra version : «1_29072022-2359 (18/03/2025-12:49:35)»*/
15061
+ /*utils AI library associated with aotra version : «1_29072022-2359 (18/03/2025-18:07:52)»*/
15062
15062
  /*-----------------------------------------------------------------------------*/
15063
15063
 
15064
15064
 
@@ -15202,7 +15202,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
15202
15202
 
15203
15203
 
15204
15204
 
15205
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (18/03/2025-12:49:35)»*/
15205
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (18/03/2025-18:07:52)»*/
15206
15206
  /*-----------------------------------------------------------------------------*/
15207
15207
 
15208
15208
 
@@ -15287,10 +15287,9 @@ if(typeof(fs)==="undefined"){
15287
15287
  return path;
15288
15288
  },
15289
15289
 
15290
- readTreeObjectFromFile:function(clientId="noclient", repositoryName="norepository", CLASSNAME_ATTR_NAME=DEFAULT_CLASSNAME_ATTR_NAME){
15290
+ readTreeObjectFromFile:function(clientId="noclient", repositoryName="norepository", keepClassName=false){
15291
15291
 
15292
15292
  let path=self.getPath(clientId,repositoryName);
15293
-
15294
15293
  let resultFlat=null;
15295
15294
 
15296
15295
  try{
@@ -15312,7 +15311,7 @@ if(typeof(fs)==="undefined"){
15312
15311
  // 2)
15313
15312
  if(!empty(resultData) && isFlatMap(resultData)){
15314
15313
  // CAUTION : We have to keep the type information, here too ! (in the sub-objects)
15315
- resultData=getAsTreeStructure(resultData, true);
15314
+ resultData=getAsTreeStructure(resultData, keepClassName);
15316
15315
  }
15317
15316
 
15318
15317
  return resultData;
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1117",
3
+ "version": "0.0.1119",
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)",