aotrautils 0.0.1339 → 0.0.1340

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 (07/04/2025-19:03:20)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (12/04/2025-01:10:18)»*/
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 (07/04/2025-19:03:20)»*/
4901
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (12/04/2025-01:10:18)»*/
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 (07/04/2025-19:03:20)»*/
13473
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (12/04/2025-01:10:18)»*/
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 (07/04/2025-19:03:20)»*/
14712
+ /*utils AI library associated with aotra version : «1_29072022-2359 (12/04/2025-01:10:18)»*/
14713
14713
  /*-----------------------------------------------------------------------------*/
14714
14714
 
14715
14715
 
@@ -14853,7 +14853,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
14853
14853
 
14854
14854
 
14855
14855
 
14856
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (07/04/2025-19:03:20)»*/
14856
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (12/04/2025-01:10:18)»*/
14857
14857
  /*-----------------------------------------------------------------------------*/
14858
14858
 
14859
14859
 
@@ -16629,9 +16629,11 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
16629
16629
 
16630
16630
  if(data.error){
16631
16631
  const error=data.error;
16632
+ const statusCode=data.status;
16633
+
16632
16634
  // TRACE
16633
16635
  console.error("Error:", error);
16634
- reject(""+error);
16636
+ reject(""+error, statusCode);
16635
16637
  return;
16636
16638
  }
16637
16639
 
@@ -16642,7 +16644,7 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
16642
16644
  }).catch(error => {
16643
16645
  // TRACE
16644
16646
  console.error("Error:", error);
16645
- reject(`${error}`);
16647
+ reject(`${error}`, null);
16646
16648
  });
16647
16649
  });
16648
16650
  }// else :
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1339",
3
+ "version": "0.0.1340",
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)",