aotrautils-srv 0.0.1407 → 0.0.1408

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 (19/04/2025-22:06:04)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (19/04/2025-22:09:02)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4894,7 +4894,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4894
4894
 
4895
4895
 
4896
4896
 
4897
- /*utils AI library associated with aotra version : «1_29072022-2359 (19/04/2025-22:06:04)»*/
4897
+ /*utils AI library associated with aotra version : «1_29072022-2359 (19/04/2025-22:09:02)»*/
4898
4898
  /*-----------------------------------------------------------------------------*/
4899
4899
 
4900
4900
 
@@ -5040,7 +5040,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
5040
5040
 
5041
5041
 
5042
5042
 
5043
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (19/04/2025-22:06:04)»*/
5043
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (19/04/2025-22:09:02)»*/
5044
5044
  /*-----------------------------------------------------------------------------*/
5045
5045
 
5046
5046
 
@@ -6807,7 +6807,7 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
6807
6807
  // TRACE
6808
6808
  lognow("INFO : We are not running in a browser context (isNodeContext:"+isNodeContext+";typeof(require):"+(typeof(require))+"). Using browser library.");
6809
6809
 
6810
- const body=((contains(["POST","PUT"],httpMethod) && requestBodyOrNamedArgs)?JSON.stringify(requestBodyOrNamedArgs):null);
6810
+ const body=((contains(["POST","PUT"],httpMethod) && requestBodyOrNamedArgs)?requestBodyOrNamedArgsStr:null);
6811
6811
  return new Promise((resolve,reject)=>{
6812
6812
  fetch(completeURL, {
6813
6813
  method: httpMethod,
@@ -6936,7 +6936,7 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
6936
6936
  if(contains(["POST","PUT"],httpMethod)){
6937
6937
  // (We need to stringify parameters or else we'll have an error :)
6938
6938
  if(!empty(requestBodyOrNamedArgs)){
6939
- request.write(stringifyObject(requestBodyOrNamedArgs));
6939
+ request.write(requestBodyOrNamedArgsStr);
6940
6940
  }
6941
6941
  }
6942
6942
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.1407",
3
+ "version": "0.0.1408",
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)",