aotrautils-srv 0.0.1598 → 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.
@@ -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:12)»*/
|
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 AI library associated with aotra version : «1_29072022-2359 (13/05/2025-
|
4932
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (13/05/2025-01:01:12)»*/
|
4925
4933
|
/*-----------------------------------------------------------------------------*/
|
4926
4934
|
|
4927
4935
|
|
@@ -5067,7 +5075,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
5067
5075
|
|
5068
5076
|
|
5069
5077
|
|
5070
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (13/05/2025-
|
5078
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (13/05/2025-01:01:12)»*/
|
5071
5079
|
/*-----------------------------------------------------------------------------*/
|
5072
5080
|
|
5073
5081
|
|
aotrautils-srv/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils-srv",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1599",
|
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)",
|