aotrautils 0.0.590 → 0.0.591
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.
- aotrautils/aotrautils.build.js +11 -9
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (18/09/2023-23:43:23)»*/
|
|
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=""){
|
|
506
|
+
/*public*/window.aotestMethods.iterateOverValues=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 !!!
|
|
@@ -518,13 +518,15 @@ window.aotestMethods.getScenariiInTest=function(test){
|
|
|
518
518
|
|
|
519
519
|
valuePath=basePath+"."+itemNameOrIndex;
|
|
520
520
|
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
521
|
+
const isValue=(isValueFunction && isValueFunction(item));
|
|
522
|
+
if(isArray(item) && !isValue){
|
|
523
|
+
window.aotestMethods.iterateOverValues(item, doOnIterationForValue, visited, valuePath, isValueFunction);
|
|
524
|
+
}else if(isObject(item) && !isValue){
|
|
525
|
+
window.aotestMethods.iterateOverValues(item, doOnIterationForValue, visited, valuePath, isValueFunction);
|
|
525
526
|
}else{
|
|
526
527
|
scenario[itemNameOrIndex]=doOnIterationForValue(item, itemNameOrIndex, valuePath);
|
|
527
528
|
}
|
|
529
|
+
|
|
528
530
|
});
|
|
529
531
|
|
|
530
532
|
};
|
|
@@ -4982,7 +4984,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4982
4984
|
|
|
4983
4985
|
|
|
4984
4986
|
|
|
4985
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (
|
|
4987
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (18/09/2023-23:43:23)»*/
|
|
4986
4988
|
/*-----------------------------------------------------------------------------*/
|
|
4987
4989
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
4988
4990
|
*
|
|
@@ -13249,7 +13251,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
|
|
|
13249
13251
|
|
|
13250
13252
|
|
|
13251
13253
|
|
|
13252
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (
|
|
13254
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (18/09/2023-23:43:23)»*/
|
|
13253
13255
|
/*-----------------------------------------------------------------------------*/
|
|
13254
13256
|
|
|
13255
13257
|
|
|
@@ -14488,7 +14490,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14488
14490
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14489
14491
|
|
|
14490
14492
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14491
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
|
14493
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (18/09/2023-23:43:23)»*/
|
|
14492
14494
|
/*-----------------------------------------------------------------------------*/
|
|
14493
14495
|
|
|
14494
14496
|
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.591",
|
|
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)",
|