aotrautils 0.0.1985 → 0.0.1987
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 +18 -17
- aotrautils/package-lock.json +2 -2
- 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 (13/09/2026-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (13/09/2026-22:08:58)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5475,7 +5475,7 @@ window.AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5475
5475
|
|
|
5476
5476
|
|
|
5477
5477
|
|
|
5478
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (13/09/2026-
|
|
5478
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (13/09/2026-22:08:58)»*/
|
|
5479
5479
|
/*-----------------------------------------------------------------------------*/
|
|
5480
5480
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
5481
5481
|
*
|
|
@@ -12990,7 +12990,7 @@ window.createOritaMicroClient=function(url, port, isNode=false, staticMicroClien
|
|
|
12990
12990
|
|
|
12991
12991
|
|
|
12992
12992
|
|
|
12993
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (13/09/2026-
|
|
12993
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (13/09/2026-22:08:58)»*/
|
|
12994
12994
|
/*-----------------------------------------------------------------------------*/
|
|
12995
12995
|
|
|
12996
12996
|
|
|
@@ -14052,10 +14052,10 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14052
14052
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14053
14053
|
|
|
14054
14054
|
window.AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14055
|
-
/*utils 3D library associated with aotra version : «1_29072022-2359 (13/09/2026-
|
|
14055
|
+
/*utils 3D library associated with aotra version : «1_29072022-2359 (13/09/2026-22:08:58)»*/
|
|
14056
14056
|
/*-----------------------------------------------------------------------------*/
|
|
14057
14057
|
|
|
14058
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (13/09/2026-
|
|
14058
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (13/09/2026-22:08:58)»*/
|
|
14059
14059
|
/*-----------------------------------------------------------------------------*/
|
|
14060
14060
|
|
|
14061
14061
|
|
|
@@ -14319,7 +14319,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
|
|
|
14319
14319
|
|
|
14320
14320
|
|
|
14321
14321
|
|
|
14322
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (13/09/2026-
|
|
14322
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (13/09/2026-22:08:58)»*/
|
|
14323
14323
|
/*-----------------------------------------------------------------------------*/
|
|
14324
14324
|
|
|
14325
14325
|
|
|
@@ -17545,6 +17545,16 @@ window.performHTTPRequest=function(completeURL, httpMethod="GET", headers={}, re
|
|
|
17545
17545
|
|
|
17546
17546
|
// The whole response has been received.
|
|
17547
17547
|
response.on("end", () => {
|
|
17548
|
+
|
|
17549
|
+
// CAUTION : .request(...) => statusCode, .fetch(...) => status (performHTTPRequest(...) uses fetch(...))
|
|
17550
|
+
const status=response.statusCode;
|
|
17551
|
+
// if(status!=200){
|
|
17552
|
+
// const error=nonull(response.statusMessage, "No error message for error code "+status);
|
|
17553
|
+
// // TRACE
|
|
17554
|
+
// console.error("Error:", error);
|
|
17555
|
+
// reject({error:""+error, httpStatus:status});
|
|
17556
|
+
// return;
|
|
17557
|
+
// }
|
|
17548
17558
|
|
|
17549
17559
|
try{
|
|
17550
17560
|
let responseData;
|
|
@@ -17559,26 +17569,17 @@ window.performHTTPRequest=function(completeURL, httpMethod="GET", headers={}, re
|
|
|
17559
17569
|
}catch(parseError2){
|
|
17560
17570
|
// DBG
|
|
17561
17571
|
lognow("WARN : Could not JSON parse the response data ! Must deal with the raw string:«"+responseDataStr+"»", parseError2);
|
|
17562
|
-
resolve( {response:response, responseDataStr:responseDataStr} );
|
|
17572
|
+
resolve( {response:response, responseDataStr:responseDataStr, httpStatus:status} );
|
|
17563
17573
|
return;
|
|
17564
17574
|
}
|
|
17565
17575
|
}
|
|
17566
17576
|
|
|
17567
|
-
// CAUTION : .request(...) => statusCode, .fetch(...) => status (performHTTPRequest(...) uses fetch(...))
|
|
17568
|
-
const status=response.statusCode;
|
|
17569
|
-
// if(status!=200){
|
|
17570
|
-
// const error=nonull(response.statusMessage, "No error message for error code "+status);
|
|
17571
|
-
// // TRACE
|
|
17572
|
-
// console.error("Error:", error);
|
|
17573
|
-
// reject({error:""+error, httpStatus:status});
|
|
17574
|
-
// return;
|
|
17575
|
-
// }
|
|
17576
17577
|
|
|
17577
17578
|
resolve( {responseData:responseData, response:response, responseDataStr:responseDataStr, httpStatus: status} );
|
|
17578
17579
|
}catch(parseError3){
|
|
17579
17580
|
// DBG
|
|
17580
17581
|
lognow("WARN : Could not JSON parse the response data ! Must deal with the raw string:«"+responseDataStr+"»", parseError3);
|
|
17581
|
-
resolve( {response:response, responseDataStr:responseDataStr} );
|
|
17582
|
+
resolve( {response:response, responseDataStr:responseDataStr, httpStatus:status} );
|
|
17582
17583
|
return;
|
|
17583
17584
|
}
|
|
17584
17585
|
|
aotrautils/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1987",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "aotrautils",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.1987",
|
|
10
10
|
"license": "HGPL-1.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"atob": "^2.1.2",
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1987",
|
|
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)",
|