aotrautils-srv 0.0.580 → 0.0.582

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 (11/09/2023-00:47:47)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (11/09/2023-01:30:08)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -506,17 +506,21 @@ window.aotestMethods.getScenariiInTest=function(test){
506
506
 
507
507
  };
508
508
 
509
- /*public*/window.aotestMethods.iterateOverValues=function(scenario, doOnIterationForValue, visited=[]){
509
+ /*public*/window.aotestMethods.iterateOverValues=function(scenario, doOnIterationForValue, visited=[], valuePath=""){
510
510
 
511
+ const basePath=valuePath;
511
512
  foreach(scenario,(item, itemNameOrIndex)=>{
512
513
  if(contains(visited,item)) return "continue";
513
514
  visited.push(item);
515
+
516
+ valuePath=basePath+"."+itemNameOrIndex;
517
+
514
518
  if(isArray(item)){
515
- window.aotestMethods.iterateOverValues(item, doOnIterationForValue, visited);
519
+ window.aotestMethods.iterateOverValues(item, doOnIterationForValue, visited, valuePath);
516
520
  }else if(isObject(item)){
517
- window.aotestMethods.iterateOverValues(item, doOnIterationForValue, visited);
521
+ window.aotestMethods.iterateOverValues(item, doOnIterationForValue, visited, valuePath);
518
522
  }else{
519
- scenario[itemNameOrIndex]=doOnIterationForValue(item, itemNameOrIndex);
523
+ scenario[itemNameOrIndex]=doOnIterationForValue(item, itemNameOrIndex, valuePath);
520
524
  }
521
525
  });
522
526
 
@@ -4975,7 +4979,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4975
4979
 
4976
4980
 
4977
4981
 
4978
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (11/09/2023-00:47:47)»*/
4982
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (11/09/2023-01:30:08)»*/
4979
4983
  /*-----------------------------------------------------------------------------*/
4980
4984
 
4981
4985
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.580",
3
+ "version": "0.0.582",
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)",