aotrautils-srv 0.0.549 → 0.0.551
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-22:25:36)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -1855,16 +1855,18 @@ window.getOrCreateAttribute=function(parentObject, attributeNameOrAttributesName
|
|
|
1855
1855
|
return parentObject[attributeName];
|
|
1856
1856
|
}
|
|
1857
1857
|
if(isArray(attributeNameOrAttributesName)){
|
|
1858
|
+
|
|
1859
|
+
|
|
1858
1860
|
// let item=parentObject;
|
|
1859
1861
|
// foreach(attributeNameOrAttributesName,(attributeName)=>{
|
|
1860
1862
|
// const child=getOrCreateAttribute(item, attributeName, defaultValue);
|
|
1861
1863
|
// });
|
|
1862
|
-
const item=getOrCreateAttribute(
|
|
1864
|
+
const item=getOrCreateAttribute(parentObject, attributeNameOrAttributesName.slice(1), defaultValue);
|
|
1863
1865
|
|
|
1864
1866
|
//DBG
|
|
1865
1867
|
lognow("item:",item);
|
|
1866
1868
|
|
|
1867
|
-
const result=getOrCreateAttribute(
|
|
1869
|
+
const result=getOrCreateAttribute(item, attributeNameOrAttributesName[0], defaultValue);
|
|
1868
1870
|
|
|
1869
1871
|
//DBG
|
|
1870
1872
|
lognow("result:",result);
|
|
@@ -4961,7 +4963,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4961
4963
|
|
|
4962
4964
|
|
|
4963
4965
|
|
|
4964
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (26/07/2023-
|
|
4966
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (26/07/2023-22:25:36)»*/
|
|
4965
4967
|
/*-----------------------------------------------------------------------------*/
|
|
4966
4968
|
|
|
4967
4969
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.551",
|
|
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)",
|