aotrautils-srv 0.0.395 → 0.0.397
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/12/2022-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (11/12/2022-20:50:47)»*/
|
|
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 SERVER library associated with aotra version : «1_29072022-2359 (11/12/2022-
|
|
4853
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (11/12/2022-20:50:47)»*/
|
|
4854
4854
|
/*-----------------------------------------------------------------------------*/
|
|
4855
4855
|
|
|
4856
4856
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.397",
|
|
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)",
|