aotrautils 0.0.1832 → 0.0.1834

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/04/2026-18:03:13)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (04/04/2026-17:58:02)»*/
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 CLIENT library associated with aotra version : «1_29072022-2359 (02/04/2026-18:03:13)»*/
5143
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (04/04/2026-17:58:02)»*/
5144
5144
  /*-----------------------------------------------------------------------------*/
5145
5145
  /* ## Utility global methods in a browser (htmljs) client environment.
5146
5146
  *
@@ -5818,11 +5818,6 @@ function escapeHTML(str){
5818
5818
  }
5819
5819
 
5820
5820
 
5821
- function startsWithUpperCase(str){
5822
- if(nothing(str)) return false;
5823
- return str[0].toUpperCase()===str[0];
5824
- }
5825
-
5826
5821
  function getTextWordsExtract(textStrParam, wordsNumber,/* OPTIONAL */wordPositionOffset){
5827
5822
 
5828
5823
  if (wordsNumber <= 0)
@@ -13225,7 +13220,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
13225
13220
 
13226
13221
 
13227
13222
 
13228
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (02/04/2026-18:03:13)»*/
13223
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (04/04/2026-17:58:02)»*/
13229
13224
  /*-----------------------------------------------------------------------------*/
13230
13225
 
13231
13226
 
@@ -14554,10 +14549,10 @@ function rayVsUnitSphereClosestPoint(p, r) {
14554
14549
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14555
14550
 
14556
14551
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14557
- /*utils 3D library associated with aotra version : «1_29072022-2359 (02/04/2026-18:03:13)»*/
14552
+ /*utils 3D library associated with aotra version : «1_29072022-2359 (04/04/2026-17:58:02)»*/
14558
14553
  /*-----------------------------------------------------------------------------*/
14559
14554
 
14560
- /*utils AI library associated with aotra version : «1_29072022-2359 (02/04/2026-18:03:13)»*/
14555
+ /*utils AI library associated with aotra version : «1_29072022-2359 (04/04/2026-17:58:02)»*/
14561
14556
  /*-----------------------------------------------------------------------------*/
14562
14557
 
14563
14558
 
@@ -14703,7 +14698,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
14703
14698
 
14704
14699
 
14705
14700
 
14706
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (02/04/2026-18:03:13)»*/
14701
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (04/04/2026-17:58:02)»*/
14707
14702
  /*-----------------------------------------------------------------------------*/
14708
14703
 
14709
14704
 
@@ -17017,9 +17012,7 @@ performHTTPRequest=function(completeURL, httpMethod="GET", headers={}, requestBo
17017
17012
  };
17018
17013
 
17019
17014
 
17020
-
17021
-
17022
- replacePathVariablesNamesWithValuesIfPossible=function(apiURL, namedArgs){
17015
+ window.replacePathVariablesNamesWithValuesIfPossible=function(apiURL, namedArgs){
17023
17016
  let result=apiURL;
17024
17017
  foreach(namedArgs,(namedArgValue, namedArgKey)=>{
17025
17018
  result=result.replace("{"+namedArgKey+"}",namedArgValue);
@@ -17027,7 +17020,7 @@ replacePathVariablesNamesWithValuesIfPossible=function(apiURL, namedArgs){
17027
17020
  return result;
17028
17021
  };
17029
17022
 
17030
- appendGetParameters=function(apiURL, namedArgsParam){
17023
+ window.appendGetParameters=function(apiURL, namedArgsParam){
17031
17024
  if(nothing(namedArgsParam)) return "";
17032
17025
  try{
17033
17026
 
@@ -17052,6 +17045,11 @@ appendGetParameters=function(apiURL, namedArgsParam){
17052
17045
 
17053
17046
 
17054
17047
 
17048
+ window.startsWithUpperCase=(str)=>{
17049
+ if(nothing(str)) return false;
17050
+ return str[0].toUpperCase()===str[0];
17051
+ }
17052
+
17055
17053
 
17056
17054
 
17057
17055
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1832",
3
+ "version": "0.0.1834",
4
4
  "main": "aotrautils.build.js",
5
5
  "description": "A library for vanilla javascript utils (client-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",