aotrautils 0.0.1092 → 0.0.1094

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:18)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (11/03/2025-01:13:39)»*/
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 CLIENT library associated with aotra version : «1_29072022-2359 (23/02/2025-17:08:18)»*/
5329
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (11/03/2025-01:13:39)»*/
5325
5330
  /*-----------------------------------------------------------------------------*/
5326
5331
  /* ## Utility global methods in a browser (htmljs) client environment.
5327
5332
  *
@@ -13893,7 +13898,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
13893
13898
 
13894
13899
 
13895
13900
 
13896
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (23/02/2025-17:08:18)»*/
13901
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (11/03/2025-01:13:39)»*/
13897
13902
  /*-----------------------------------------------------------------------------*/
13898
13903
 
13899
13904
 
@@ -15132,7 +15137,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
15132
15137
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
15133
15138
 
15134
15139
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
15135
- /*utils AI library associated with aotra version : «1_29072022-2359 (23/02/2025-17:08:18)»*/
15140
+ /*utils AI library associated with aotra version : «1_29072022-2359 (11/03/2025-01:13:39)»*/
15136
15141
  /*-----------------------------------------------------------------------------*/
15137
15142
 
15138
15143
 
@@ -15276,7 +15281,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
15276
15281
 
15277
15282
 
15278
15283
 
15279
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (23/02/2025-17:08:18)»*/
15284
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (11/03/2025-01:13:39)»*/
15280
15285
  /*-----------------------------------------------------------------------------*/
15281
15286
 
15282
15287
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1092",
3
+ "version": "0.0.1094",
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)",