aotrautils 0.0.1366 → 0.0.1368
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 (15/04/2025-18:
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (15/04/2025-18:23:55)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -4898,7 +4898,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4898
4898
|
|
4899
4899
|
|
4900
4900
|
|
4901
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (15/04/2025-18:
|
4901
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (15/04/2025-18:23:55)»*/
|
4902
4902
|
/*-----------------------------------------------------------------------------*/
|
4903
4903
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
4904
4904
|
*
|
@@ -13470,7 +13470,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13470
13470
|
|
13471
13471
|
|
13472
13472
|
|
13473
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (15/04/2025-18:
|
13473
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (15/04/2025-18:23:55)»*/
|
13474
13474
|
/*-----------------------------------------------------------------------------*/
|
13475
13475
|
|
13476
13476
|
|
@@ -14709,7 +14709,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
14709
14709
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
14710
14710
|
|
14711
14711
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
14712
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (15/04/2025-18:
|
14712
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (15/04/2025-18:23:55)»*/
|
14713
14713
|
/*-----------------------------------------------------------------------------*/
|
14714
14714
|
|
14715
14715
|
|
@@ -14854,7 +14854,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
14854
14854
|
|
14855
14855
|
|
14856
14856
|
|
14857
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (15/04/2025-18:
|
14857
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (15/04/2025-18:23:55)»*/
|
14858
14858
|
/*-----------------------------------------------------------------------------*/
|
14859
14859
|
|
14860
14860
|
|
@@ -16642,6 +16642,7 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
|
|
16642
16642
|
// DBG
|
16643
16643
|
console.log("~~~~~~~~~~~data :",data);
|
16644
16644
|
|
16645
|
+
data.httpStatus=status;
|
16645
16646
|
resolve(data);
|
16646
16647
|
}).catch(error => {
|
16647
16648
|
// TRACE
|
@@ -16708,7 +16709,7 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
|
|
16708
16709
|
}
|
16709
16710
|
|
16710
16711
|
// CAUTION : .request(...) => statusCode, .fetch(...) => status (performHTTPRequest(...) uses fetch(...))
|
16711
|
-
|
16712
|
+
const status=response.statusCode;
|
16712
16713
|
// if(status!=200){
|
16713
16714
|
// const error=nonull(response.statusMessage, "No error message for error code "+status);
|
16714
16715
|
// // TRACE
|
@@ -16717,7 +16718,7 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
|
|
16717
16718
|
// return;
|
16718
16719
|
// }
|
16719
16720
|
|
16720
|
-
resolve( {responseData:responseData, response:response, responseDataStr:responseDataStr} );
|
16721
|
+
resolve( {responseData:responseData, response:response, responseDataStr:responseDataStr, httpStatus: status} );
|
16721
16722
|
}catch(parseError3){
|
16722
16723
|
// DBG
|
16723
16724
|
lognow("WARN : Could not JSON parse the response data ! Must deal with the raw string:«"+responseDataStr+"»", parseError3);
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1368",
|
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)",
|