aotrautils 0.0.1609 → 0.0.1611
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 +20 -6
- 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 (14/05/2025-
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (14/05/2025-02:14:39)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -452,12 +452,24 @@ if(!window.aotestAllTestsManager){
|
|
452
452
|
|
453
453
|
// Utility methods for aotest framework :
|
454
454
|
|
455
|
+
// UI/CLI ONLY :
|
455
456
|
window.aotestMethods.getParentTestByScenarioNameInTestsArray=function(testsArray, scenarioName){
|
456
457
|
return foreach(testsArray,test=>{
|
457
458
|
return window.aotestMethods.iterateOverScenariiInSingleTest(test, (parentTest, scenario)=>{
|
458
459
|
if(scenario.name===scenarioName)
|
459
460
|
return parentTest;
|
460
|
-
});
|
461
|
+
});
|
462
|
+
});
|
463
|
+
}
|
464
|
+
|
465
|
+
window.aotestMethods.getParentTestByScenarioName=function(testsByMethod, scenarioName){
|
466
|
+
return foreach(testsByMethod,testsForOneMethod=>{
|
467
|
+
return foreach(testsForOneMethod,(test,methodName)=>{
|
468
|
+
return window.aotestMethods.iterateOverScenariiInSingleTest(test, (parentTest, scenario)=>{
|
469
|
+
if(scenario.name===scenarioName)
|
470
|
+
return parentTest;
|
471
|
+
});
|
472
|
+
});
|
461
473
|
});
|
462
474
|
}
|
463
475
|
|
@@ -516,11 +528,13 @@ window.aotestMethods.iterateOverScenarii=function(allTests, doOnIteration, tests
|
|
516
528
|
|
517
529
|
// ----------------
|
518
530
|
|
531
|
+
// UI/CLI ONLY :
|
519
532
|
window.aotestMethods.getScenarioByNameInTestsArray=function(testsArray, scenarioName){
|
520
533
|
return foreach(testsArray,(test)=>{
|
521
534
|
return aotestMethods.getScenarioInSingleTest(test, scenarioName);
|
522
535
|
});
|
523
536
|
}
|
537
|
+
|
524
538
|
// ----
|
525
539
|
window.aotestMethods.getScenarioInSingleTest=function(test, scenarioName=null){
|
526
540
|
if(!scenarioName) return null;
|
@@ -4929,7 +4943,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4929
4943
|
|
4930
4944
|
|
4931
4945
|
|
4932
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (14/05/2025-
|
4946
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (14/05/2025-02:14:39)»*/
|
4933
4947
|
/*-----------------------------------------------------------------------------*/
|
4934
4948
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
4935
4949
|
*
|
@@ -13531,7 +13545,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13531
13545
|
|
13532
13546
|
|
13533
13547
|
|
13534
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (14/05/2025-
|
13548
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (14/05/2025-02:14:39)»*/
|
13535
13549
|
/*-----------------------------------------------------------------------------*/
|
13536
13550
|
|
13537
13551
|
|
@@ -14770,7 +14784,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
14770
14784
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
14771
14785
|
|
14772
14786
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
14773
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (14/05/2025-
|
14787
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (14/05/2025-02:14:39)»*/
|
14774
14788
|
/*-----------------------------------------------------------------------------*/
|
14775
14789
|
|
14776
14790
|
|
@@ -14916,7 +14930,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
14916
14930
|
|
14917
14931
|
|
14918
14932
|
|
14919
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (14/05/2025-
|
14933
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (14/05/2025-02:14:39)»*/
|
14920
14934
|
/*-----------------------------------------------------------------------------*/
|
14921
14935
|
|
14922
14936
|
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1611",
|
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)",
|