aotrautils-srv 0.0.627 → 0.0.629
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:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (02/10/2023-20:15:41)»*/
|
|
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
|
|
@@ -5115,7 +5085,10 @@ class OpenAIAPIClient{
|
|
|
5115
5085
|
}
|
|
5116
5086
|
|
|
5117
5087
|
|
|
5118
|
-
|
|
5088
|
+
// Nodejs compatibility :
|
|
5089
|
+
getOpenAIAPIClient=(modelName, apiURL, agentRole, prompt)=>{
|
|
5090
|
+
return new OpenAIAPIClient(modelName, apiURL, agentRole, prompt);
|
|
5091
|
+
};
|
|
5119
5092
|
|
|
5120
5093
|
|
|
5121
5094
|
|
|
@@ -5126,12 +5099,10 @@ class OpenAIAPIClient{
|
|
|
5126
5099
|
AOTRAUTILS_LIB_IS_LOADED=true;
|
|
5127
5100
|
|
|
5128
5101
|
|
|
5129
|
-
|
|
5130
|
-
if(typeof(module)!=="undefined")
|
|
5131
|
-
module.exports = { OpenAIAPIClient : OpenAIAPIClient };
|
|
5102
|
+
|
|
5132
5103
|
|
|
5133
5104
|
|
|
5134
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (02/10/2023-20:
|
|
5105
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (02/10/2023-20:15:41)»*/
|
|
5135
5106
|
/*-----------------------------------------------------------------------------*/
|
|
5136
5107
|
|
|
5137
5108
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.629",
|
|
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)",
|