aotrautils-srv 0.0.1562 → 0.0.1564

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 (10/05/2025-11:31:41)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (10/05/2025-13:48:34)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4895,7 +4895,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4895
4895
 
4896
4896
 
4897
4897
 
4898
- /*utils AI library associated with aotra version : «1_29072022-2359 (10/05/2025-11:31:41)»*/
4898
+ /*utils AI library associated with aotra version : «1_29072022-2359 (10/05/2025-13:48:34)»*/
4899
4899
  /*-----------------------------------------------------------------------------*/
4900
4900
 
4901
4901
 
@@ -5041,7 +5041,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
5041
5041
 
5042
5042
 
5043
5043
 
5044
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (10/05/2025-11:31:41)»*/
5044
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (10/05/2025-13:48:34)»*/
5045
5045
  /*-----------------------------------------------------------------------------*/
5046
5046
 
5047
5047
 
@@ -6057,7 +6057,8 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
6057
6057
  let requestBodyOrNamedArgsStr=null;
6058
6058
  if(requestBodyOrNamedArgs){
6059
6059
  try{
6060
- requestBodyOrNamedArgsStr=stringifyObject(requestBodyOrNamedArgs);
6060
+ //requestBodyOrNamedArgsStr=stringifyObject(requestBodyOrNamedArgs);
6061
+ requestBodyOrNamedArgsStr=JSON.stringify(requestBodyOrNamedArgs);
6061
6062
  }catch(parseErr){
6062
6063
  requestBodyOrNamedArgsStr=""+requestBodyOrNamedArgs;
6063
6064
  }
@@ -6144,9 +6145,9 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
6144
6145
  method: httpMethod,
6145
6146
  };
6146
6147
 
6147
- if(contains(["POST","PUT"],httpMethod)){
6148
- options.json=true;
6149
- }
6148
+ //if(contains(["POST","PUT"],httpMethod)){
6149
+ // options.json=true;
6150
+ //}
6150
6151
 
6151
6152
  options.headers=headers;
6152
6153
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.1562",
3
+ "version": "0.0.1564",
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)",