aotrautils-srv 0.0.1608 → 0.0.1610
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.
@@ -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:08:41)»*/
|
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 AI library associated with aotra version : «1_29072022-2359 (14/05/2025-
|
4946
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (14/05/2025-02:08:41)»*/
|
4933
4947
|
/*-----------------------------------------------------------------------------*/
|
4934
4948
|
|
4935
4949
|
|
@@ -5075,7 +5089,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
5075
5089
|
|
5076
5090
|
|
5077
5091
|
|
5078
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (14/05/2025-
|
5092
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (14/05/2025-02:08:41)»*/
|
5079
5093
|
/*-----------------------------------------------------------------------------*/
|
5080
5094
|
|
5081
5095
|
|
aotrautils-srv/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils-srv",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1610",
|
4
4
|
"main": "aotrautils-srv.build.js",
|
5
5
|
"description": "A library for vanilla javascript utils (server-side) used in aotra javascript CMS",
|
6
6
|
"author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",
|