aotrautils-srv 0.0.1831 → 0.0.1833
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 (
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (04/04/2026-17:58:07)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -2292,11 +2292,11 @@ window.findInArray=function(collection, equalsFunction, returnFunction=null){
|
|
|
2292
2292
|
}, equalsFunction);
|
|
2293
2293
|
}
|
|
2294
2294
|
|
|
2295
|
-
window.getKeyAt=function(associativeOrNormalArray,index){
|
|
2295
|
+
window.getKeyAt=function(associativeOrNormalArray,index=0){
|
|
2296
2296
|
return getAt(associativeOrNormalArray,index,true);
|
|
2297
2297
|
}
|
|
2298
2298
|
|
|
2299
|
-
window.getAt=function(associativeOrNormalArray,index,returnKey=false){
|
|
2299
|
+
window.getAt=function(associativeOrNormalArray,index=0,returnKey=false){
|
|
2300
2300
|
if(empty(associativeOrNormalArray)) return null;
|
|
2301
2301
|
let i=0;
|
|
2302
2302
|
// CAUTION : Only use this «return foreach» syntax with SINGLE-LEVEL nested loops ONLY !
|
|
@@ -5140,7 +5140,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5140
5140
|
|
|
5141
5141
|
|
|
5142
5142
|
|
|
5143
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (
|
|
5143
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (04/04/2026-17:58:07)»*/
|
|
5144
5144
|
/*-----------------------------------------------------------------------------*/
|
|
5145
5145
|
|
|
5146
5146
|
|
|
@@ -5286,7 +5286,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
|
5286
5286
|
|
|
5287
5287
|
|
|
5288
5288
|
|
|
5289
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (
|
|
5289
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (04/04/2026-17:58:07)»*/
|
|
5290
5290
|
/*-----------------------------------------------------------------------------*/
|
|
5291
5291
|
|
|
5292
5292
|
|
|
@@ -7600,9 +7600,7 @@ performHTTPRequest=function(completeURL, httpMethod="GET", headers={}, requestBo
|
|
|
7600
7600
|
};
|
|
7601
7601
|
|
|
7602
7602
|
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
replacePathVariablesNamesWithValuesIfPossible=function(apiURL, namedArgs){
|
|
7603
|
+
window.replacePathVariablesNamesWithValuesIfPossible=function(apiURL, namedArgs){
|
|
7606
7604
|
let result=apiURL;
|
|
7607
7605
|
foreach(namedArgs,(namedArgValue, namedArgKey)=>{
|
|
7608
7606
|
result=result.replace("{"+namedArgKey+"}",namedArgValue);
|
|
@@ -7610,7 +7608,7 @@ replacePathVariablesNamesWithValuesIfPossible=function(apiURL, namedArgs){
|
|
|
7610
7608
|
return result;
|
|
7611
7609
|
};
|
|
7612
7610
|
|
|
7613
|
-
appendGetParameters=function(apiURL, namedArgsParam){
|
|
7611
|
+
window.appendGetParameters=function(apiURL, namedArgsParam){
|
|
7614
7612
|
if(nothing(namedArgsParam)) return "";
|
|
7615
7613
|
try{
|
|
7616
7614
|
|
|
@@ -7635,6 +7633,11 @@ appendGetParameters=function(apiURL, namedArgsParam){
|
|
|
7635
7633
|
|
|
7636
7634
|
|
|
7637
7635
|
|
|
7636
|
+
window.startsWithUpperCase=(str)=>{
|
|
7637
|
+
if(nothing(str)) return false;
|
|
7638
|
+
return str[0].toUpperCase()===str[0];
|
|
7639
|
+
}
|
|
7640
|
+
|
|
7638
7641
|
|
|
7639
7642
|
|
|
7640
7643
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1833",
|
|
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)",
|