aotrautils-srv 0.0.805 → 0.0.807
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 (22/02/2024-00:03:25)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -3736,13 +3736,7 @@ getUUID=function(mode=null){
|
|
|
3736
3736
|
window.instanciate=function(className=null){
|
|
3737
3737
|
let newObj={};
|
|
3738
3738
|
|
|
3739
|
-
if(!className) return newObj;
|
|
3740
|
-
|
|
3741
|
-
// DBG
|
|
3742
|
-
if(!className.startsWith)
|
|
3743
|
-
lognow(">>>>>>>>>>>>>>>>className:",className);
|
|
3744
|
-
|
|
3745
|
-
|
|
3739
|
+
if(!className || !className.startsWith) return newObj;
|
|
3746
3740
|
|
|
3747
3741
|
if(className.startsWith("HTML")){
|
|
3748
3742
|
if(typeof(document)!=="undefined"){
|
|
@@ -5289,7 +5283,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5289
5283
|
|
|
5290
5284
|
|
|
5291
5285
|
|
|
5292
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
|
5286
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (22/02/2024-00:03:25)»*/
|
|
5293
5287
|
/*-----------------------------------------------------------------------------*/
|
|
5294
5288
|
|
|
5295
5289
|
|
|
@@ -7024,11 +7018,11 @@ performHTTPRequestNode=function(completeURL,httpMethod="GET",headers={},requestB
|
|
|
7024
7018
|
|
|
7025
7019
|
try{
|
|
7026
7020
|
const responseData=parseJSON(responseDataStr);
|
|
7027
|
-
resolve(responseData, response, responseDataStr);
|
|
7021
|
+
resolve( {responseData:responseData, response:response, responseDataStr:responseDataStr} );
|
|
7028
7022
|
}catch(error){
|
|
7029
7023
|
// DBG
|
|
7030
7024
|
lognow("WARN : Could not JSON parse the response data ! Must deal with the string:«"+responseDataStr+"»", error);
|
|
7031
|
-
resolve(
|
|
7025
|
+
resolve( {response:response, responseDataStr:responseDataStr} );
|
|
7032
7026
|
return;
|
|
7033
7027
|
}
|
|
7034
7028
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.807",
|
|
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)",
|