aotrautils 0.0.1257 → 0.0.1259
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.
aotrautils/aotrautils.build.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (02/04/2025-
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (02/04/2025-21:51:52)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -2952,8 +2952,11 @@ Math.getRandomsInArray=function(arrayOfValues, numberOfItemsToGet=1){
|
|
2952
2952
|
|
2953
2953
|
if(numberOfItemsToGet<0 || empty(arrayOfValues)) return [];
|
2954
2954
|
const size=getArraySize(arrayOfValues);
|
2955
|
+
|
2955
2956
|
// We skip a costly random calculation if we have only one element in array :
|
2956
2957
|
if(size===1) return [valueAt(arrayOfValues,0)];
|
2958
|
+
// We skip a costly random calculation if we have to return all elements in array :
|
2959
|
+
if(size<=numberOfItemsToGet) return arrayOfValues;
|
2957
2960
|
|
2958
2961
|
const indexesPool=[];
|
2959
2962
|
for(let i=0;i<size;i++) indexesPool.push(i);
|
@@ -4894,7 +4897,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4894
4897
|
|
4895
4898
|
|
4896
4899
|
|
4897
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (02/04/2025-
|
4900
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (02/04/2025-21:51:52)»*/
|
4898
4901
|
/*-----------------------------------------------------------------------------*/
|
4899
4902
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
4900
4903
|
*
|
@@ -13466,7 +13469,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13466
13469
|
|
13467
13470
|
|
13468
13471
|
|
13469
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (02/04/2025-
|
13472
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (02/04/2025-21:51:52)»*/
|
13470
13473
|
/*-----------------------------------------------------------------------------*/
|
13471
13474
|
|
13472
13475
|
|
@@ -14705,7 +14708,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
14705
14708
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
14706
14709
|
|
14707
14710
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
14708
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (02/04/2025-
|
14711
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (02/04/2025-21:51:52)»*/
|
14709
14712
|
/*-----------------------------------------------------------------------------*/
|
14710
14713
|
|
14711
14714
|
|
@@ -14849,7 +14852,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
14849
14852
|
|
14850
14853
|
|
14851
14854
|
|
14852
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (02/04/2025-
|
14855
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (02/04/2025-21:51:52)»*/
|
14853
14856
|
/*-----------------------------------------------------------------------------*/
|
14854
14857
|
|
14855
14858
|
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1259",
|
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)",
|