aotrautils 0.0.1160 → 0.0.1162
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 +10 -7
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
@@ -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 (20/03/2025-13:45:44)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -2049,7 +2049,7 @@ window.foreach=function(arrayOfValues,doOnEachFunction,
|
|
2049
2049
|
if(filterFunction && !filterFunction(item,i)) continue;
|
2050
2050
|
}
|
2051
2051
|
var returnedObjectOrCommand=doOnEachFunction(item,i);
|
2052
|
-
if(returnedObjectOrCommand){
|
2052
|
+
if(!nothing(returnedObjectOrCommand)){
|
2053
2053
|
if(returnedObjectOrCommand==="continue"){
|
2054
2054
|
continue;
|
2055
2055
|
}else if(returnedObjectOrCommand==="break" || returnedObjectOrCommand==="return"){
|
@@ -2112,7 +2112,7 @@ window.foreach=function(arrayOfValues,doOnEachFunction,
|
|
2112
2112
|
if(filterFunction && !filterFunction(item,key)) continue;
|
2113
2113
|
}
|
2114
2114
|
var returnedObjectOrCommand=doOnEachFunction(item,key,cnt);
|
2115
|
-
if(returnedObjectOrCommand){
|
2115
|
+
if(!nothing(returnedObjectOrCommand)){
|
2116
2116
|
if(returnedObjectOrCommand==="continue"){
|
2117
2117
|
continue;
|
2118
2118
|
}else if(returnedObjectOrCommand==="break" || returnedObjectOrCommand==="return"){
|
@@ -2958,6 +2958,9 @@ window.empty=function(sizable,/*OPTIONAL*/insist=false){
|
|
2958
2958
|
if(nothing(sizable, insist))
|
2959
2959
|
return true;
|
2960
2960
|
|
2961
|
+
if(typeof(sizable.length)!="undefined" && sizable.length!=null)
|
2962
|
+
return (0<sizable.length);
|
2963
|
+
|
2961
2964
|
// NEW :
|
2962
2965
|
const result=(countKeys(sizable)==0);
|
2963
2966
|
return result;
|
@@ -4819,7 +4822,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4819
4822
|
|
4820
4823
|
|
4821
4824
|
|
4822
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (
|
4825
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (20/03/2025-13:45:44)»*/
|
4823
4826
|
/*-----------------------------------------------------------------------------*/
|
4824
4827
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
4825
4828
|
*
|
@@ -13391,7 +13394,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13391
13394
|
|
13392
13395
|
|
13393
13396
|
|
13394
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (
|
13397
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (20/03/2025-13:45:44)»*/
|
13395
13398
|
/*-----------------------------------------------------------------------------*/
|
13396
13399
|
|
13397
13400
|
|
@@ -14630,7 +14633,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
14630
14633
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
14631
14634
|
|
14632
14635
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
14633
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (
|
14636
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (20/03/2025-13:45:44)»*/
|
14634
14637
|
/*-----------------------------------------------------------------------------*/
|
14635
14638
|
|
14636
14639
|
|
@@ -14774,7 +14777,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
14774
14777
|
|
14775
14778
|
|
14776
14779
|
|
14777
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
14780
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (20/03/2025-13:45:44)»*/
|
14778
14781
|
/*-----------------------------------------------------------------------------*/
|
14779
14782
|
|
14780
14783
|
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1162",
|
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)",
|