aotrautils-srv 0.0.628 → 0.0.630

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 (02/10/2023-20:09:03)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (03/10/2023-00:14:06)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4766,36 +4766,6 @@ window.getAsTreeStructure=function(oldMap, stateOnly=false, removeTypeInfo=true
4766
4766
 
4767
4767
 
4768
4768
 
4769
- //// For nodejs compatibility:
4770
- //function setupCompatibility(functions){
4771
- // let objectToExport=null;
4772
- ////if(typeof(module)!=="undefined" && typeof(module.exports)!=="undefined"){
4773
- //// objectToExport=module.exports;
4774
- // if(typeof(exports)!=="undefined"){
4775
- // objectToExport=exports;
4776
- // } else if(typeof(global)!=="undefined"){
4777
- // objectToExport=global;
4778
- // }else if(typeof(window)!=="undefined"){
4779
- // objectToExport=window;
4780
- // }
4781
- //
4782
- ////objectToExport.aou={};
4783
- // foreach(functions,(f,functionName)=>{
4784
- //// let functionName=(f.name==="anonymous"?("anonymous_"+getUUID("short")):f.name);
4785
- //// objectToExport.aou[functionName]=f;
4786
- // objectToExport[functionName]=f;
4787
- // });
4788
- //}
4789
- //setupCompatibility({"foreach":foreach,"isString":isString});
4790
-
4791
-
4792
-
4793
-
4794
-
4795
-
4796
- // This code is way more clever and smaller than the one above !
4797
-
4798
- // LIMITATIONS : DOES NOT HANDLE METHODS / FUNCTIONS OF THE OBJECTS !
4799
4769
 
4800
4770
  /*
4801
4771
  cycle.js
@@ -5068,7 +5038,7 @@ class OpenAIAPIClient{
5068
5038
  const self=this;
5069
5039
  const messages = [
5070
5040
  { role: "system", content: this.agentRole },
5071
- { role: "user", content: this.prompt+additionalPrompt },
5041
+ { role: "user", content: (this.prompt + additionalPrompt) },
5072
5042
  ];
5073
5043
 
5074
5044
  async function getResult(){
@@ -5132,7 +5102,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5132
5102
 
5133
5103
 
5134
5104
 
5135
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (02/10/2023-20:09:03)»*/
5105
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (03/10/2023-00:14:06)»*/
5136
5106
  /*-----------------------------------------------------------------------------*/
5137
5107
 
5138
5108
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.628",
3
+ "version": "0.0.630",
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)",