aotrautils 0.0.1158 → 0.0.1160
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 -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 (19/03/2025-23:
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (19/03/2025-23:52:43)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -458,7 +458,7 @@ window.aotestMethods.iterateOverScenariiInTest=function(test, doOnEachIteration=
|
|
458
458
|
if(!doOnEachIteration) return;
|
459
459
|
return foreach(test,(scenario,scenarioName)=>{
|
460
460
|
const result=doOnEachIteration(test,scenario,scenarioName);
|
461
|
-
if(result) return result;
|
461
|
+
if(!nothing(result)) return result;
|
462
462
|
},(scenario,scenarioName)=>{ return window.aotestMethods.isScenarioName(scenarioName); });
|
463
463
|
};
|
464
464
|
|
@@ -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() === ""){
|
@@ -1896,6 +1899,7 @@ window.nothing=function(nullable, insist=false){
|
|
1896
1899
|
// classical (ie. non-associative) array...:
|
1897
1900
|
// NO : USE empty() instead: if(isArray(nullable)) return (nullable.length <= 0);
|
1898
1901
|
|
1902
|
+
// Case parameter is something :
|
1899
1903
|
return false;
|
1900
1904
|
}
|
1901
1905
|
|
@@ -4815,7 +4819,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4815
4819
|
|
4816
4820
|
|
4817
4821
|
|
4818
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (19/03/2025-23:
|
4822
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (19/03/2025-23:52:43)»*/
|
4819
4823
|
/*-----------------------------------------------------------------------------*/
|
4820
4824
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
4821
4825
|
*
|
@@ -13387,7 +13391,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13387
13391
|
|
13388
13392
|
|
13389
13393
|
|
13390
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (19/03/2025-23:
|
13394
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (19/03/2025-23:52:43)»*/
|
13391
13395
|
/*-----------------------------------------------------------------------------*/
|
13392
13396
|
|
13393
13397
|
|
@@ -14626,7 +14630,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
14626
14630
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
14627
14631
|
|
14628
14632
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
14629
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (19/03/2025-23:
|
14633
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (19/03/2025-23:52:43)»*/
|
14630
14634
|
/*-----------------------------------------------------------------------------*/
|
14631
14635
|
|
14632
14636
|
|
@@ -14770,7 +14774,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
14770
14774
|
|
14771
14775
|
|
14772
14776
|
|
14773
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (19/03/2025-23:
|
14777
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (19/03/2025-23:52:43)»*/
|
14774
14778
|
/*-----------------------------------------------------------------------------*/
|
14775
14779
|
|
14776
14780
|
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1160",
|
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)",
|