aotrautils 0.0.1159 → 0.0.1161
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 +11 -8
- 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:33:18)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -1880,12 +1880,15 @@ window.nothing=function(nullable, insist=false){
|
|
1880
1880
|
|
1881
1881
|
if(nullable === true)
|
1882
1882
|
return false;
|
1883
|
+
|
1884
|
+
if(nullable === false)
|
1885
|
+
return false;
|
1883
1886
|
|
1884
1887
|
// To avoid the case where the nullable is a number and equal to zero, in which case it is not considered as the same as null ! :
|
1885
1888
|
if(nullable===0)
|
1886
1889
|
return false;
|
1887
1890
|
|
1888
|
-
if((!nullable) || (typeof nullable === "undefined") || nullable === null
|
1891
|
+
if((!nullable) || (typeof nullable === "undefined") || nullable === null){
|
1889
1892
|
return true;
|
1890
1893
|
}
|
1891
1894
|
if(typeof nullable === "string" && insist && (nullable + "").trim() === ""){
|
@@ -2046,7 +2049,7 @@ window.foreach=function(arrayOfValues,doOnEachFunction,
|
|
2046
2049
|
if(filterFunction && !filterFunction(item,i)) continue;
|
2047
2050
|
}
|
2048
2051
|
var returnedObjectOrCommand=doOnEachFunction(item,i);
|
2049
|
-
if(returnedObjectOrCommand){
|
2052
|
+
if(!nothing(returnedObjectOrCommand)){
|
2050
2053
|
if(returnedObjectOrCommand==="continue"){
|
2051
2054
|
continue;
|
2052
2055
|
}else if(returnedObjectOrCommand==="break" || returnedObjectOrCommand==="return"){
|
@@ -2109,7 +2112,7 @@ window.foreach=function(arrayOfValues,doOnEachFunction,
|
|
2109
2112
|
if(filterFunction && !filterFunction(item,key)) continue;
|
2110
2113
|
}
|
2111
2114
|
var returnedObjectOrCommand=doOnEachFunction(item,key,cnt);
|
2112
|
-
if(returnedObjectOrCommand){
|
2115
|
+
if(!nothing(returnedObjectOrCommand)){
|
2113
2116
|
if(returnedObjectOrCommand==="continue"){
|
2114
2117
|
continue;
|
2115
2118
|
}else if(returnedObjectOrCommand==="break" || returnedObjectOrCommand==="return"){
|
@@ -4816,7 +4819,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4816
4819
|
|
4817
4820
|
|
4818
4821
|
|
4819
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (
|
4822
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (20/03/2025-13:33:18)»*/
|
4820
4823
|
/*-----------------------------------------------------------------------------*/
|
4821
4824
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
4822
4825
|
*
|
@@ -13388,7 +13391,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13388
13391
|
|
13389
13392
|
|
13390
13393
|
|
13391
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (
|
13394
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (20/03/2025-13:33:18)»*/
|
13392
13395
|
/*-----------------------------------------------------------------------------*/
|
13393
13396
|
|
13394
13397
|
|
@@ -14627,7 +14630,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
14627
14630
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
14628
14631
|
|
14629
14632
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
14630
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (
|
14633
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (20/03/2025-13:33:18)»*/
|
14631
14634
|
/*-----------------------------------------------------------------------------*/
|
14632
14635
|
|
14633
14636
|
|
@@ -14771,7 +14774,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
14771
14774
|
|
14772
14775
|
|
14773
14776
|
|
14774
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
14777
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (20/03/2025-13:33:18)»*/
|
14775
14778
|
/*-----------------------------------------------------------------------------*/
|
14776
14779
|
|
14777
14780
|
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1161",
|
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)",
|