aotrautils-srv 0.0.638 → 0.0.639

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 (04/10/2023-23:38:07)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (08/10/2023-18:32:39)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -503,7 +503,7 @@ window.aotestMethods.getScenariiInTest=function(test){
503
503
  return window.aotestMethods.doForAllTestsByType(allTestsByType, doOnIteration, filter, mustTerminate);
504
504
  };
505
505
 
506
- /*public*/window.aotestMethods.iterateOverValues=function(scenarioParam, doOnIterationForValue, visited=[], valuePath="", isValueFunction=null){
506
+ /*public*/window.aotestMethods.iterateOverValuesOnClonedObject=function(scenarioParam, doOnIterationForValue, visited=[], valuePath="", isValueFunction=null){
507
507
 
508
508
  // CAUTION : We ABSOLUTELY need to iterate over a deep copy, or else it will create weird incomprehensible bugs
509
509
  // if we do another recursive browsing on the initial object !!!
@@ -523,18 +523,18 @@ window.aotestMethods.getScenariiInTest=function(test){
523
523
  scenario[itemNameOrIndex]=doOnIterationForValue(item, itemNameOrIndex, valuePath);
524
524
  }else{
525
525
  if(isArray(item)){
526
- window.aotestMethods.iterateOverValues(item, doOnIterationForValue, visited, valuePath, isValueFunction);
526
+ window.aotestMethods.iterateOverValuesOnClonedObject(item, doOnIterationForValue, visited, valuePath, isValueFunction);
527
527
  }else if(isObject(item)){
528
- window.aotestMethods.iterateOverValues(item, doOnIterationForValue, visited, valuePath, isValueFunction);
528
+ window.aotestMethods.iterateOverValuesOnClonedObject(item, doOnIterationForValue, visited, valuePath, isValueFunction);
529
529
  }else{
530
530
  scenario[itemNameOrIndex]=item;
531
531
  }
532
532
  }
533
533
  }else{
534
534
  if(isArray(item)){
535
- window.aotestMethods.iterateOverValues(item, doOnIterationForValue, visited, valuePath, isValueFunction);
535
+ window.aotestMethods.iterateOverValuesOnClonedObject(item, doOnIterationForValue, visited, valuePath, isValueFunction);
536
536
  }else if(isObject(item)){
537
- window.aotestMethods.iterateOverValues(item, doOnIterationForValue, visited, valuePath, isValueFunction);
537
+ window.aotestMethods.iterateOverValuesOnClonedObject(item, doOnIterationForValue, visited, valuePath, isValueFunction);
538
538
  }else{
539
539
  scenario[itemNameOrIndex]=doOnIterationForValue(item, itemNameOrIndex, valuePath);
540
540
  }
@@ -660,9 +660,8 @@ window.aotest=function(parameters,functionDefinition=null,ignoreTest=false,CLASS
660
660
  if(!mainInstance) functionDefinition=window[functionNameParam];
661
661
  else{
662
662
 
663
- // // DBG
664
- // console.log("parameters:",parameters);
665
-
663
+ // // DBG
664
+ // console.log("parameters:",parameters);
666
665
 
667
666
  functionDefinition=mainInstance[functionNameParam];
668
667
 
@@ -5112,7 +5111,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5112
5111
 
5113
5112
 
5114
5113
 
5115
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (04/10/2023-23:38:07)»*/
5114
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (08/10/2023-18:32:39)»*/
5116
5115
  /*-----------------------------------------------------------------------------*/
5117
5116
 
5118
5117
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.638",
3
+ "version": "0.0.639",
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)",