aotrautils 0.0.1365 → 0.0.1366

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 (15/04/2025-17:44:21)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (15/04/2025-18:10:16)»*/
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-17:44:21)»*/
4901
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (15/04/2025-18:10:16)»*/
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-17:44:21)»*/
13473
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (15/04/2025-18:10:16)»*/
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-17:44:21)»*/
14712
+ /*utils AI library associated with aotra version : «1_29072022-2359 (15/04/2025-18:10:16)»*/
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-17:44:21)»*/
14857
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (15/04/2025-18:10:16)»*/
14858
14858
  /*-----------------------------------------------------------------------------*/
14859
14859
 
14860
14860
 
@@ -16630,8 +16630,9 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
16630
16630
 
16631
16631
  // CAUTION : .request(...) => statusCode, .fetch(...) => status (performHTTPRequest(...) uses fetch(...))
16632
16632
  const status=data.status;
16633
- if(status!=200){
16634
- const error=nonull(data.error, data.detail);
16633
+ if(status!=200 && data.error){
16634
+ // const error=nonull(data.error, data.detail);
16635
+ const error=data.error;
16635
16636
  // TRACE
16636
16637
  console.error("Error:", error);
16637
16638
  reject({error:""+error, httpStatus:status});
@@ -16707,15 +16708,15 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
16707
16708
  }
16708
16709
 
16709
16710
  // CAUTION : .request(...) => statusCode, .fetch(...) => status (performHTTPRequest(...) uses fetch(...))
16710
- const status=response.statusCode;
16711
- if(status!=200){
16712
- const error=nonull(response.statusMessage, "No error message for error code "+status);
16713
- // TRACE
16714
- console.error("Error:", error);
16715
- reject({error:""+error, httpStatus:status});
16716
- return;
16717
- }
16718
-
16711
+ // const status=response.statusCode;
16712
+ // if(status!=200){
16713
+ // const error=nonull(response.statusMessage, "No error message for error code "+status);
16714
+ // // TRACE
16715
+ // console.error("Error:", error);
16716
+ // reject({error:""+error, httpStatus:status});
16717
+ // return;
16718
+ // }
16719
+
16719
16720
  resolve( {responseData:responseData, response:response, responseDataStr:responseDataStr} );
16720
16721
  }catch(parseError3){
16721
16722
  // DBG
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1365",
3
+ "version": "0.0.1366",
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)",