aotrautils-srv 0.0.580 → 0.0.581

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