aotrautils-srv 0.0.1586 → 0.0.1588

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 (11/05/2025-14:10:33)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (11/05/2025-14:47:16)»*/
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 (11/05/2025-14:10:33)»*/
4898
+ /*utils AI library associated with aotra version : «1_29072022-2359 (11/05/2025-14:47:16)»*/
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 (11/05/2025-14:10:33)»*/
5044
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (11/05/2025-14:47:16)»*/
5045
5045
  /*-----------------------------------------------------------------------------*/
5046
5046
 
5047
5047
 
@@ -6082,7 +6082,7 @@ performHTTPRequest=function(completeURL, httpMethod="GET", headers={}, requestBo
6082
6082
  if(contains(["POST","PUT"],httpMethod)){
6083
6083
  headers["Content-Type"]="application/json";
6084
6084
 
6085
- if(requestBodyOrNamedArgsStr && forceStringifyBody){
6085
+ if(requestBodyOrNamedArgsStr && isString(body)){
6086
6086
  headers["Content-Length"]=Buffer.byteLength(requestBodyOrNamedArgsStr);
6087
6087
  }
6088
6088
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.1586",
3
+ "version": "0.0.1588",
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)",