aotrautils 0.0.1590 → 0.0.1591
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 +13 -11
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (11/05/2025-15:
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (11/05/2025-15:10:23)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -4895,7 +4895,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4895
4895
|
|
4896
4896
|
|
4897
4897
|
|
4898
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (11/05/2025-15:
|
4898
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (11/05/2025-15:10:23)»*/
|
4899
4899
|
/*-----------------------------------------------------------------------------*/
|
4900
4900
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
4901
4901
|
*
|
@@ -13497,7 +13497,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13497
13497
|
|
13498
13498
|
|
13499
13499
|
|
13500
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (11/05/2025-15:
|
13500
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (11/05/2025-15:10:23)»*/
|
13501
13501
|
/*-----------------------------------------------------------------------------*/
|
13502
13502
|
|
13503
13503
|
|
@@ -14736,7 +14736,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
14736
14736
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
14737
14737
|
|
14738
14738
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
14739
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (11/05/2025-15:
|
14739
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (11/05/2025-15:10:23)»*/
|
14740
14740
|
/*-----------------------------------------------------------------------------*/
|
14741
14741
|
|
14742
14742
|
|
@@ -14882,7 +14882,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
14882
14882
|
|
14883
14883
|
|
14884
14884
|
|
14885
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (11/05/2025-15:
|
14885
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (11/05/2025-15:10:23)»*/
|
14886
14886
|
/*-----------------------------------------------------------------------------*/
|
14887
14887
|
|
14888
14888
|
|
@@ -15898,13 +15898,15 @@ performHTTPRequest=function(completeURL, httpMethod="GET", headers={}, requestBo
|
|
15898
15898
|
// Body
|
15899
15899
|
let requestBodyOrNamedArgsStr=null;
|
15900
15900
|
if(requestBodyOrNamedArgs){
|
15901
|
-
if(isString(requestBodyOrNamedArgs) && !isObject(requestBodyOrNamedArgs))
|
15902
|
-
// If it's already a string, we assume it
|
15901
|
+
if(isString(requestBodyOrNamedArgs) && !isObject(requestBodyOrNamedArgs)){
|
15902
|
+
// If it's already a string, we assume it's a valid JSOn string already :
|
15903
15903
|
requestBodyOrNamedArgsStr=requestBodyOrNamedArgs.replace(/[\r\n]+/gim, ""); // We remove all the breaklines
|
15904
|
-
|
15905
|
-
|
15906
|
-
|
15907
|
-
|
15904
|
+
}else{
|
15905
|
+
try{
|
15906
|
+
requestBodyOrNamedArgsStr=stringifyObject(requestBodyOrNamedArgs).replace(/[\r\n]+/gim, ""); // We remove all the breaklines
|
15907
|
+
}catch(parseErr){
|
15908
|
+
requestBodyOrNamedArgsStr=""+requestBodyOrNamedArgs;
|
15909
|
+
}
|
15908
15910
|
}
|
15909
15911
|
}
|
15910
15912
|
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1591",
|
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)",
|