aotrautils-srv 0.0.1080 → 0.0.1082

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 (23/02/2025-17:08:22)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (11/03/2025-01:13:42)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -450,12 +450,17 @@ if(!window.aotestAllTestsManager){
450
450
  // Utility methods for aotest framework :
451
451
  window.aotestMethods.getScenariiInTest=function(test){
452
452
  let results={};
453
- foreach(test,(scenario,scenarioName)=>{
454
- results[scenarioName]=scenario;
455
- },(scenario,scenarioName)=>{ return window.aotestMethods.isScenarioName(scenarioName); });
453
+ window.aotestMethods.iterateOverScenariiInTest(test,(t,s,sName)=>{ results[sName]=s; });
456
454
  return results;
457
455
  };
458
456
 
457
+ window.aotestMethods.iterateOverScenariiInTest=function(test, doOnEachIteration=null){
458
+ if(!doOnEachIteration) return;
459
+ return foreach(test,(scenario,scenarioName)=>{
460
+ const result=doOnEachIteration(test,scenario,scenarioName);
461
+ if(result) return result;
462
+ },(scenario,scenarioName)=>{ return window.aotestMethods.isScenarioName(scenarioName); });
463
+ };
459
464
 
460
465
  /*private*/window.aotestMethods.doForAllTestsByType=function(allTestsByType, doOnIteration, filter=null, mustTerminate=null){
461
466
 
@@ -5321,7 +5326,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5321
5326
 
5322
5327
 
5323
5328
 
5324
- /*utils AI library associated with aotra version : «1_29072022-2359 (23/02/2025-17:08:22)»*/
5329
+ /*utils AI library associated with aotra version : «1_29072022-2359 (11/03/2025-01:13:42)»*/
5325
5330
  /*-----------------------------------------------------------------------------*/
5326
5331
 
5327
5332
 
@@ -5465,7 +5470,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
5465
5470
 
5466
5471
 
5467
5472
 
5468
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (23/02/2025-17:08:22)»*/
5473
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (11/03/2025-01:13:42)»*/
5469
5474
  /*-----------------------------------------------------------------------------*/
5470
5475
 
5471
5476
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.1080",
3
+ "version": "0.0.1082",
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)",