aotrautils 0.0.1597 → 0.0.1599
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 +15 -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 (13/05/2025-
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (13/05/2025-01:01:08)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -452,14 +452,15 @@ if(!window.aotestAllTestsManager){
|
|
452
452
|
|
453
453
|
// Utility methods for aotest framework :
|
454
454
|
|
455
|
-
window.aotestMethods.
|
456
|
-
return foreach(
|
455
|
+
window.aotestMethods.getParentTestByScenarioNameInTestsArray=function(testsArray, scenarioName){
|
456
|
+
return foreach(testsArray,test=>{
|
457
457
|
return window.aotestMethods.iterateOverScenariiInSingleTest(test, (parentTest, scenario)=>{
|
458
458
|
if(scenario.name===scenarioName)
|
459
459
|
return parentTest;
|
460
460
|
});
|
461
461
|
});
|
462
462
|
}
|
463
|
+
|
463
464
|
window.aotestMethods.getScenarioByName=function(allTests, scenarioName){
|
464
465
|
const result=window.aotestMethods.iterateOverScenarii(allTests, null, null, null, scenario=>scenario.name===scenarioName);
|
465
466
|
if(result) return result;
|
@@ -513,7 +514,14 @@ window.aotestMethods.iterateOverScenarii=function(allTests, doOnIteration, tests
|
|
513
514
|
return loopResultI;
|
514
515
|
}
|
515
516
|
|
517
|
+
// ----------------
|
516
518
|
|
519
|
+
window.aotestMethods.getScenarioByNameInTestsArray=function(testsArray, scenarioName){
|
520
|
+
return foreach(testsArray,(test)=>{
|
521
|
+
return aotestMethods.getScenarioInSingleTest(test, scenarioName);
|
522
|
+
});
|
523
|
+
}
|
524
|
+
// ----
|
517
525
|
window.aotestMethods.getScenarioInSingleTest=function(test, scenarioName=null){
|
518
526
|
if(!scenarioName) return null;
|
519
527
|
return window.aotestMethods.iterateOverScenariiInSingleTest(test,(t,s,sName)=>{
|
@@ -4921,7 +4929,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4921
4929
|
|
4922
4930
|
|
4923
4931
|
|
4924
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (13/05/2025-
|
4932
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (13/05/2025-01:01:08)»*/
|
4925
4933
|
/*-----------------------------------------------------------------------------*/
|
4926
4934
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
4927
4935
|
*
|
@@ -13523,7 +13531,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13523
13531
|
|
13524
13532
|
|
13525
13533
|
|
13526
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (13/05/2025-
|
13534
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (13/05/2025-01:01:08)»*/
|
13527
13535
|
/*-----------------------------------------------------------------------------*/
|
13528
13536
|
|
13529
13537
|
|
@@ -14762,7 +14770,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
14762
14770
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
14763
14771
|
|
14764
14772
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
14765
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (13/05/2025-
|
14773
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (13/05/2025-01:01:08)»*/
|
14766
14774
|
/*-----------------------------------------------------------------------------*/
|
14767
14775
|
|
14768
14776
|
|
@@ -14908,7 +14916,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
14908
14916
|
|
14909
14917
|
|
14910
14918
|
|
14911
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (13/05/2025-
|
14919
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (13/05/2025-01:01:08)»*/
|
14912
14920
|
/*-----------------------------------------------------------------------------*/
|
14913
14921
|
|
14914
14922
|
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1599",
|
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)",
|