aotrautils-srv 0.0.1121 → 0.0.1122
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 (19/03/2025-00:
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (19/03/2025-00:55:51)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -4884,7 +4884,7 @@ function flattenGraph(root, UUID_ATTR_NAME, CLASSNAME_ATTR_NAME, POINTER_TO_ATTR
|
|
4884
4884
|
function process(obj, map, isRoot=false) { // Store objects by ID
|
4885
4885
|
|
4886
4886
|
if(obj === null || isPrimitive(obj)) return obj; // Primitives stay unchanged
|
4887
|
-
if(contains(visitedObjects,obj)) return { [POINTER_TO_ATTR_NAME] : obj }; // Return if already processed
|
4887
|
+
if(contains(visitedObjects,obj)) return { [POINTER_TO_ATTR_NAME] : obj[UUID_ATTR_NAME] }; // Return if already processed
|
4888
4888
|
|
4889
4889
|
const id = (isRoot?ROOT_UUID:getUUID());
|
4890
4890
|
visitedObjects.push(obj); // Mark object as processed
|
@@ -4905,7 +4905,7 @@ function flattenGraph(root, UUID_ATTR_NAME, CLASSNAME_ATTR_NAME, POINTER_TO_ATTR
|
|
4905
4905
|
if(!contains(visitedObjects,item)){
|
4906
4906
|
process(item, map);
|
4907
4907
|
}
|
4908
|
-
serialized[indexOrKey] = { [POINTER_TO_ATTR_NAME] : item }; // Return if already processed;
|
4908
|
+
serialized[indexOrKey] = { [POINTER_TO_ATTR_NAME] : item[UUID_ATTR_NAME] }; // Return if already processed;
|
4909
4909
|
},(item)=>!isFunction(item));
|
4910
4910
|
|
4911
4911
|
return serialized;
|
@@ -5246,7 +5246,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
5246
5246
|
|
5247
5247
|
|
5248
5248
|
|
5249
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (19/03/2025-00:
|
5249
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (19/03/2025-00:55:51)»*/
|
5250
5250
|
/*-----------------------------------------------------------------------------*/
|
5251
5251
|
|
5252
5252
|
|
@@ -5390,7 +5390,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
5390
5390
|
|
5391
5391
|
|
5392
5392
|
|
5393
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (19/03/2025-00:
|
5393
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (19/03/2025-00:55:51)»*/
|
5394
5394
|
/*-----------------------------------------------------------------------------*/
|
5395
5395
|
|
5396
5396
|
|
aotrautils-srv/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils-srv",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1122",
|
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)",
|