aotrautils 0.0.1143 → 0.0.1144
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
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (19/03/2025-02:
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (19/03/2025-02:52:46)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -4883,7 +4883,7 @@ function flattenGraph(root, UUID_ATTR_NAME, CLASSNAME_ATTR_NAME, POINTER_TO_ATTR
|
|
4883
4883
|
|
4884
4884
|
function process(obj, map, isRoot=false) { // Store objects by ID
|
4885
4885
|
|
4886
|
-
if(obj === null || isPrimitive(obj)) return obj; // Primitives stay unchanged
|
4886
|
+
if(typeof(obj)==="undefined" || obj === null || isPrimitive(obj)) return obj; // Primitives stay unchanged
|
4887
4887
|
if(visitedObjects.has(obj)) return { [POINTER_TO_ATTR_NAME] : visitedObjects.get(obj) }; // Return if already processed
|
4888
4888
|
|
4889
4889
|
const id = (isRoot?ROOT_UUID:getUUID());
|
@@ -4898,7 +4898,7 @@ function flattenGraph(root, UUID_ATTR_NAME, CLASSNAME_ATTR_NAME, POINTER_TO_ATTR
|
|
4898
4898
|
foreach(obj,(item,indexOrKey)=>{
|
4899
4899
|
|
4900
4900
|
let value=null;
|
4901
|
-
if(item === null || isPrimitive(item)){
|
4901
|
+
if(typeof(item)==="undefined" || item === null || isPrimitive(item)){
|
4902
4902
|
serialized[indexOrKey]=item; // Primitives stay unchanged
|
4903
4903
|
return "continue";
|
4904
4904
|
}
|
@@ -4933,7 +4933,7 @@ function restoreGraph(flatData, keepClassName=false, UUID_ATTR_NAME, CLASSNAME_A
|
|
4933
4933
|
|
4934
4934
|
function revive(id, keepClassName, restoredObjects = {}) {
|
4935
4935
|
|
4936
|
-
if(!id ||
|
4936
|
+
if(!id || typeof(flatData[id])==="undefined" || flatData[id]==null) return null;
|
4937
4937
|
const found=restoredObjects[id];
|
4938
4938
|
if(restoredObjects[id]) return found;
|
4939
4939
|
|
@@ -4945,7 +4945,7 @@ function restoreGraph(flatData, keepClassName=false, UUID_ATTR_NAME, CLASSNAME_A
|
|
4945
4945
|
restoredObjects[id]=instance; // Assign ID early to handle circular references
|
4946
4946
|
|
4947
4947
|
foreach(objData,(item,indexOrKey)=>{
|
4948
|
-
if(item==null){
|
4948
|
+
if(typeof(item)==="undefined" || item==null){
|
4949
4949
|
instance[POINTER_TO_ATTR_NAME]=null;
|
4950
4950
|
}else{
|
4951
4951
|
const isRef = (!isPrimitive(item) && (POINTER_TO_ATTR_NAME in item));
|
@@ -5246,7 +5246,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
5246
5246
|
|
5247
5247
|
|
5248
5248
|
|
5249
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (19/03/2025-02:
|
5249
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (19/03/2025-02:52:46)»*/
|
5250
5250
|
/*-----------------------------------------------------------------------------*/
|
5251
5251
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
5252
5252
|
*
|
@@ -13818,7 +13818,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13818
13818
|
|
13819
13819
|
|
13820
13820
|
|
13821
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (19/03/2025-02:
|
13821
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (19/03/2025-02:52:46)»*/
|
13822
13822
|
/*-----------------------------------------------------------------------------*/
|
13823
13823
|
|
13824
13824
|
|
@@ -15057,7 +15057,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
15057
15057
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
15058
15058
|
|
15059
15059
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
15060
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (19/03/2025-02:
|
15060
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (19/03/2025-02:52:46)»*/
|
15061
15061
|
/*-----------------------------------------------------------------------------*/
|
15062
15062
|
|
15063
15063
|
|
@@ -15201,7 +15201,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
15201
15201
|
|
15202
15202
|
|
15203
15203
|
|
15204
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (19/03/2025-02:
|
15204
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (19/03/2025-02:52:46)»*/
|
15205
15205
|
/*-----------------------------------------------------------------------------*/
|
15206
15206
|
|
15207
15207
|
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1144",
|
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)",
|