aotrautils 0.0.959 → 0.0.961

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:08:10)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (18/04/2024-00:00:42)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5275,7 +5275,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5275
5275
 
5276
5276
 
5277
5277
 
5278
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (15/04/2024-03:08:10)»*/
5278
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (18/04/2024-00:00:42)»*/
5279
5279
  /*-----------------------------------------------------------------------------*/
5280
5280
  /* ## Utility global methods in a browser (htmljs) client environment.
5281
5281
  *
@@ -13486,7 +13486,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
13486
13486
 
13487
13487
 
13488
13488
 
13489
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (15/04/2024-03:08:10)»*/
13489
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (18/04/2024-00:00:42)»*/
13490
13490
  /*-----------------------------------------------------------------------------*/
13491
13491
 
13492
13492
 
@@ -14725,7 +14725,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14725
14725
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14726
14726
 
14727
14727
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14728
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (15/04/2024-03:08:10)»*/
14728
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (18/04/2024-00:00:42)»*/
14729
14729
  /*-----------------------------------------------------------------------------*/
14730
14730
 
14731
14731
 
@@ -16473,7 +16473,7 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
16473
16473
  // CASE BROWSER CONTEXT :
16474
16474
  if(!isNodeContext || typeof(require)=="undefined"){
16475
16475
  // TRACE
16476
- lognow("INFO : We are not running in a nodejs context (isNodeContext:"+isNodeContext+";typeof(require):"+(typeof(require))+"). Using browser library.");
16476
+ lognow("INFO : We are not running in a browser context (isNodeContext:"+isNodeContext+";typeof(require):"+(typeof(require))+"). Using browser library.");
16477
16477
 
16478
16478
  const body=((contains(["POST","PUT"],httpMethod) && requestBodyOrNamedArgs)?JSON.stringify(requestBodyOrNamedArgs):null);
16479
16479
  return new Promise((resolve,reject)=>{
@@ -16515,6 +16515,10 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
16515
16515
 
16516
16516
  // CASE NODEJS CONTEXT :
16517
16517
 
16518
+ // TRACE
16519
+ lognow("INFO : We are not running in a nodejs context (isNodeContext:"+isNodeContext+";typeof(require):"+(typeof(require))+"). Using nodejs library.");
16520
+
16521
+
16518
16522
  const isSecure=(!empty(completeURL) && contains(completeURL.toLowerCase(),"https://"));
16519
16523
  const httpHandler=isSecure?require("https"):require("http");
16520
16524
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.959",
3
+ "version": "0.0.961",
4
4
  "main": "aotrautils.build.js",
5
5
  "description": "A library for vanilla javascript utils (client-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",