aotrautils-srv 0.0.938 → 0.0.940

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-00:47:29)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (15/04/2024-01:51:05)»*/
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-00:47:29)»*/
5278
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (15/04/2024-01:51:05)»*/
5279
5279
  /*-----------------------------------------------------------------------------*/
5280
5280
 
5281
5281
 
@@ -6980,7 +6980,7 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
6980
6980
  // CASE BROWSER CONTEXT :
6981
6981
  if(!isNodeContext || typeof(require)=="undefined"){
6982
6982
  // TRACE
6983
- lognow("INFO : require() not found, this may need we are not running in a nodejs context. This is currently not supported. Aborting");
6983
+ lognow("INFO : We are not running in a nodejs context (isNodeContext:"+isNodeContext+";typeof(require):"+(typeof(require))+"). Using browser library.");
6984
6984
 
6985
6985
  const body=((contains(["POST","PUT"],httpMethod) && requestBodyOrNamedArgs)?JSON.stringify(requestBodyOrNamedArgs):null);
6986
6986
  return new Promise((resolve,reject)=>{
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.938",
3
+ "version": "0.0.940",
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)",