aotrautils-srv 0.0.551 → 0.0.553
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:56:28)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -1856,22 +1856,14 @@ window.getOrCreateAttribute=function(parentObject, attributeNameOrAttributesName
|
|
|
1856
1856
|
}
|
|
1857
1857
|
if(isArray(attributeNameOrAttributesName)){
|
|
1858
1858
|
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
//DBG
|
|
1867
|
-
lognow("item:",item);
|
|
1868
|
-
|
|
1869
|
-
const result=getOrCreateAttribute(item, attributeNameOrAttributesName[0], defaultValue);
|
|
1870
|
-
|
|
1871
|
-
//DBG
|
|
1872
|
-
lognow("result:",result);
|
|
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;
|
|
1873
1866
|
|
|
1874
|
-
return result;
|
|
1875
1867
|
}
|
|
1876
1868
|
return parentObject;
|
|
1877
1869
|
}
|
|
@@ -4963,7 +4955,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4963
4955
|
|
|
4964
4956
|
|
|
4965
4957
|
|
|
4966
|
-
/*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:56:28)»*/
|
|
4967
4959
|
/*-----------------------------------------------------------------------------*/
|
|
4968
4960
|
|
|
4969
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.553",
|
|
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)",
|