aotrautils-srv 0.0.550 → 0.0.552
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 (26/07/2023-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (26/07/2023-23:27:38)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -1855,21 +1855,15 @@ window.getOrCreateAttribute=function(parentObject, attributeNameOrAttributesName
|
|
|
1855
1855
|
return parentObject[attributeName];
|
|
1856
1856
|
}
|
|
1857
1857
|
if(isArray(attributeNameOrAttributesName)){
|
|
1858
|
-
// let item=parentObject;
|
|
1859
|
-
// foreach(attributeNameOrAttributesName,(attributeName)=>{
|
|
1860
|
-
// const child=getOrCreateAttribute(item, attributeName, defaultValue);
|
|
1861
|
-
// });
|
|
1862
|
-
const item=getOrCreateAttribute(parentObject, attributeNameOrAttributesName.slice(1), defaultValue);
|
|
1863
1858
|
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1859
|
+
const attributeName=attributeNameOrAttributesName[0];
|
|
1860
|
+
if(parentObject[attributeName]){
|
|
1861
|
+
parentObject[attributeName]=getOrCreateAttribute(parentObject[attributeName], attributeNameOrAttributesName.slice(1), defaultValue);
|
|
1862
|
+
}else{
|
|
1863
|
+
parentObject[attributeName]=getOrCreateAttribute({}, attributeNameOrAttributesName.slice(1), defaultValue);
|
|
1864
|
+
}
|
|
1865
|
+
return parentObject;
|
|
1871
1866
|
|
|
1872
|
-
return result;
|
|
1873
1867
|
}
|
|
1874
1868
|
return parentObject;
|
|
1875
1869
|
}
|
|
@@ -4961,7 +4955,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4961
4955
|
|
|
4962
4956
|
|
|
4963
4957
|
|
|
4964
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (26/07/2023-
|
|
4958
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (26/07/2023-23:27:38)»*/
|
|
4965
4959
|
/*-----------------------------------------------------------------------------*/
|
|
4966
4960
|
|
|
4967
4961
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.552",
|
|
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)",
|