aotrautils-srv 0.0.950 → 0.0.951

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 (15/04/2024-03:13:05)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (18/04/2024-00:00:50)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5275,7 +5275,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5275
5275
 
5276
5276
 
5277
5277
 
5278
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (15/04/2024-03:13:05)»*/
5278
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (18/04/2024-00:00:50)»*/
5279
5279
  /*-----------------------------------------------------------------------------*/
5280
5280
 
5281
5281
 
@@ -7023,7 +7023,7 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
7023
7023
  // CASE BROWSER CONTEXT :
7024
7024
  if(!isNodeContext || typeof(require)=="undefined"){
7025
7025
  // TRACE
7026
- lognow("INFO : We are not running in a nodejs context (isNodeContext:"+isNodeContext+";typeof(require):"+(typeof(require))+"). Using browser library.");
7026
+ lognow("INFO : We are not running in a browser context (isNodeContext:"+isNodeContext+";typeof(require):"+(typeof(require))+"). Using browser library.");
7027
7027
 
7028
7028
  const body=((contains(["POST","PUT"],httpMethod) && requestBodyOrNamedArgs)?JSON.stringify(requestBodyOrNamedArgs):null);
7029
7029
  return new Promise((resolve,reject)=>{
@@ -7065,6 +7065,10 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
7065
7065
 
7066
7066
  // CASE NODEJS CONTEXT :
7067
7067
 
7068
+ // TRACE
7069
+ lognow("INFO : We are not running in a nodejs context (isNodeContext:"+isNodeContext+";typeof(require):"+(typeof(require))+"). Using nodejs library.");
7070
+
7071
+
7068
7072
  const isSecure=(!empty(completeURL) && contains(completeURL.toLowerCase(),"https://"));
7069
7073
  const httpHandler=isSecure?require("https"):require("http");
7070
7074
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.950",
3
+ "version": "0.0.951",
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)",