aotrautils-srv 0.0.911 → 0.0.913

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/2024-16:03:37)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (07/04/2024-16:08:43)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5220,7 +5220,7 @@ class OpenAIAPIClient{
5220
5220
  messages:messages,
5221
5221
  };
5222
5222
 
5223
- return performHTTPRequestNode(self.apiURL,"POST",headers,parameters).then((responseObj)=>{
5223
+ return performHTTPRequestNode(this.apiURL,"POST",headers,parameters).then((responseObj)=>{
5224
5224
  const responseData=responseObj.responseData;
5225
5225
  //const response=responseObj.response;
5226
5226
  //const responseDataStr=responseObj.responseDataStr;
@@ -5246,7 +5246,7 @@ class OpenAIAPIClient{
5246
5246
  }).catch(error => {
5247
5247
  // TRACE
5248
5248
  console.error("Error:", error);
5249
- reject(""+error);
5249
+ throw error;
5250
5250
  });
5251
5251
 
5252
5252
 
@@ -5327,7 +5327,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5327
5327
 
5328
5328
 
5329
5329
 
5330
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (07/04/2024-16:03:37)»*/
5330
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (07/04/2024-16:08:43)»*/
5331
5331
  /*-----------------------------------------------------------------------------*/
5332
5332
 
5333
5333
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.911",
3
+ "version": "0.0.913",
4
4
  "main": "aotrautils-srv.build.js",
5
5
  "description": "A library for vanilla javascript utils (server-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",