aotrautils 0.0.584 → 0.0.586

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:36)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (11/09/2023-01:30:02)»*/
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 CLIENT library associated with aotra version : «1_29072022-2359 (11/09/2023-00:47:36)»*/
4982
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (11/09/2023-01:30:02)»*/
4979
4983
  /*-----------------------------------------------------------------------------*/
4980
4984
  /* ## Utility global methods in a browser (htmljs) client environment.
4981
4985
  *
@@ -13242,7 +13246,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
13242
13246
 
13243
13247
 
13244
13248
 
13245
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (11/09/2023-00:47:36)»*/
13249
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (11/09/2023-01:30:02)»*/
13246
13250
  /*-----------------------------------------------------------------------------*/
13247
13251
 
13248
13252
 
@@ -14481,7 +14485,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14481
14485
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14482
14486
 
14483
14487
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14484
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (11/09/2023-00:47:36)»*/
14488
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (11/09/2023-01:30:02)»*/
14485
14489
  /*-----------------------------------------------------------------------------*/
14486
14490
 
14487
14491
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.584",
3
+ "version": "0.0.586",
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)",