aotrautils-srv 0.0.561 → 0.0.563

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 (01/08/2023-03:04:56)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (07/08/2023-03:21:42)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -506,8 +506,23 @@ window.aotestMethods.getScenariiInTest=function(test){
506
506
 
507
507
  };
508
508
 
509
+ // UNUSED
510
+ /*public*/window.aotestMethods.iterateOverValues=function(scenario, doOnIterationForValue, visited=[]){
509
511
 
512
+ foreach(scenario,(item, itemNameOrIndex)=>{
513
+ if(contains(visited,item)) return "continue";
514
+ visited.push(item);
515
+ if(isArray(item)){
516
+ self.iterateOverValues(item, result[itemNameOrIndex], visited);
517
+ }else if(isObject(item)){
518
+ self.iterateOverValues(item, result[itemNameOrIndex], visited);
519
+ }else{
520
+ scenario[itemNameOrIndex]=doOnIterationForValue(item, itemNameOrIndex);
521
+ }
522
+ });
510
523
 
524
+ };
525
+
511
526
 
512
527
 
513
528
 
@@ -4961,7 +4976,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4961
4976
 
4962
4977
 
4963
4978
 
4964
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (01/08/2023-03:04:56)»*/
4979
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (07/08/2023-03:21:42)»*/
4965
4980
  /*-----------------------------------------------------------------------------*/
4966
4981
 
4967
4982
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.561",
3
+ "version": "0.0.563",
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)",