aotrautils-srv 0.0.995 → 0.0.997
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 (
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (17/06/2024-02:27:29)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -1900,7 +1900,7 @@ window.nothing=function(nullable, insist=false){
|
|
|
1900
1900
|
return false;
|
|
1901
1901
|
}
|
|
1902
1902
|
|
|
1903
|
-
window.
|
|
1903
|
+
window.getOrCreateSimpleObjectAttribute=function(parentObject, attributeNameOrAttributesName){
|
|
1904
1904
|
if(nothing(parentObject)) return null;
|
|
1905
1905
|
if(nothing(attributeNameOrAttributesName)) return parentObject;
|
|
1906
1906
|
if(isString(attributeNameOrAttributesName) || (isArray(attributeNameOrAttributesName) && attributeNameOrAttributesName.length===1)){
|
|
@@ -1927,7 +1927,7 @@ window.getOrCreateAttribute=function(parentObject, attributeNameOrAttributesName
|
|
|
1927
1927
|
parentObject[attributeName]=DEFAULT_VALUE;
|
|
1928
1928
|
}
|
|
1929
1929
|
const sliced=attributeNameOrAttributesName.slice(1);
|
|
1930
|
-
let foundOrCreatedChild=
|
|
1930
|
+
let foundOrCreatedChild=getOrCreateSimpleObjectAttribute(parentObject[attributeName], sliced);
|
|
1931
1931
|
return foundOrCreatedChild;
|
|
1932
1932
|
}
|
|
1933
1933
|
return null; // (case no child found nor could be created.)
|
|
@@ -5353,7 +5353,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5353
5353
|
|
|
5354
5354
|
|
|
5355
5355
|
|
|
5356
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
|
5356
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (17/06/2024-02:27:29)»*/
|
|
5357
5357
|
/*-----------------------------------------------------------------------------*/
|
|
5358
5358
|
|
|
5359
5359
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.997",
|
|
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)",
|