aotrautils 0.0.398 → 0.0.400
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (11/12/2022-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (11/12/2022-20:28:29)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4123,17 +4123,17 @@ window.getSignatureOnFlatStructure=function(objFlat,isHashed=false,attributesNam
|
|
|
4123
4123
|
|
|
4124
4124
|
|
|
4125
4125
|
|
|
4126
|
-
window.clearAttribute=function(tree, attrName,
|
|
4126
|
+
window.clearAttribute=function(tree, attrName, maxLevel=null){
|
|
4127
4127
|
|
|
4128
|
-
if(
|
|
4128
|
+
if( (maxLevel!=null && maxLevel<=0) || tree==null || !isObject(tree)
|
|
4129
4129
|
// && !isArray(tree)
|
|
4130
|
-
)
|
|
4130
|
+
) return;
|
|
4131
4131
|
|
|
4132
4132
|
if(tree && tree[attrName])
|
|
4133
4133
|
delete tree[attrName];
|
|
4134
4134
|
|
|
4135
|
-
foreach(tree,(subTree)=>{
|
|
4136
|
-
clearAttribute(subTree,attrName,
|
|
4135
|
+
foreach(tree, (subTree)=>{
|
|
4136
|
+
clearAttribute(subTree, attrName, (maxLevel==null?null:(maxLevel-1)));
|
|
4137
4137
|
});
|
|
4138
4138
|
|
|
4139
4139
|
};
|
|
@@ -4850,7 +4850,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4850
4850
|
|
|
4851
4851
|
|
|
4852
4852
|
|
|
4853
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (11/12/2022-
|
|
4853
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (11/12/2022-20:28:29)»*/
|
|
4854
4854
|
/*-----------------------------------------------------------------------------*/
|
|
4855
4855
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
4856
4856
|
*
|
|
@@ -12972,7 +12972,7 @@ createOritaMicroClient=function(url, port, isNode=false){
|
|
|
12972
12972
|
};
|
|
12973
12973
|
|
|
12974
12974
|
|
|
12975
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (11/12/2022-
|
|
12975
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (11/12/2022-20:28:29)»*/
|
|
12976
12976
|
/*-----------------------------------------------------------------------------*/
|
|
12977
12977
|
|
|
12978
12978
|
|
|
@@ -14200,7 +14200,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14200
14200
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14201
14201
|
|
|
14202
14202
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14203
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (11/12/2022-
|
|
14203
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (11/12/2022-20:28:29)»*/
|
|
14204
14204
|
/*-----------------------------------------------------------------------------*/
|
|
14205
14205
|
|
|
14206
14206
|
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.400",
|
|
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)",
|