aotrautils 0.0.589 → 0.0.590

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 (15/09/2023-00:52:40)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (15/09/2023-01:26:48)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -503,11 +503,17 @@ 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(scenario, doOnIterationForValue, visited=[], valuePath=""){
506
+ /*public*/window.aotestMethods.iterateOverValues=function(scenarioParam, doOnIterationForValue, visited=[], valuePath=""){
507
+
508
+ // CAUTION : We ABSOLUTELY need to iterate over a deep copy, or else it will create weird incomprehensible bugs
509
+ // if we do another recursive browsing on the initial object !!!
510
+ const scenario=JSON.parse(JSON.stringify(scenarioParam));
511
+
507
512
 
508
513
  const basePath=valuePath;
509
514
  foreach(scenario,(item, itemNameOrIndex)=>{
510
- if(contains(visited,item)) return "continue";
515
+
516
+ if(contains(visited, item)) return "continue";
511
517
  visited.push(item);
512
518
 
513
519
  valuePath=basePath+"."+itemNameOrIndex;
@@ -4976,7 +4982,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4976
4982
 
4977
4983
 
4978
4984
 
4979
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (15/09/2023-00:52:40)»*/
4985
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (15/09/2023-01:26:48)»*/
4980
4986
  /*-----------------------------------------------------------------------------*/
4981
4987
  /* ## Utility global methods in a browser (htmljs) client environment.
4982
4988
  *
@@ -13243,7 +13249,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
13243
13249
 
13244
13250
 
13245
13251
 
13246
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (15/09/2023-00:52:40)»*/
13252
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (15/09/2023-01:26:48)»*/
13247
13253
  /*-----------------------------------------------------------------------------*/
13248
13254
 
13249
13255
 
@@ -14482,7 +14488,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14482
14488
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14483
14489
 
14484
14490
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14485
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (15/09/2023-00:52:40)»*/
14491
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (15/09/2023-01:26:48)»*/
14486
14492
  /*-----------------------------------------------------------------------------*/
14487
14493
 
14488
14494
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.589",
3
+ "version": "0.0.590",
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)",