aotrautils-srv 0.0.747 → 0.0.748

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 (12/11/2023-01:34:17)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (30/01/2024-18:34:40)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5167,7 +5167,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5167
5167
 
5168
5168
 
5169
5169
 
5170
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (12/11/2023-01:34:17)»*/
5170
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (30/01/2024-18:34:40)»*/
5171
5171
  /*-----------------------------------------------------------------------------*/
5172
5172
 
5173
5173
 
@@ -5339,7 +5339,7 @@ function isConnected(clientSocket){
5339
5339
 
5340
5340
  // -Server :
5341
5341
 
5342
- getServerParams=function(portParam=null, certPathParam=null, keyPathParam=null){
5342
+ getServerParams=function(portParam=null, certPathParam=null, keyPathParam=null, argsOffset=0){
5343
5343
 
5344
5344
  // Node dependencies :
5345
5345
  // https=require("https");
@@ -5363,12 +5363,15 @@ getServerParams=function(portParam=null, certPathParam=null, keyPathParam=null){
5363
5363
  let argCLCertPath;
5364
5364
  let argCLKeyPath;
5365
5365
  process.argv.forEach(function (val, i){
5366
- if(i<=1) return;
5367
- else if(i==2) argCLPort=val;
5368
- else if(i==3) argCLCertPath=val;
5369
- else if(i==4) argCLKeyPath=val;
5366
+ if(i<=argsOffset+1) return;
5367
+ else if(i==argsOffset+2) argCLPort=val;
5368
+ else if(i==argsOffset+3) argCLCertPath=val;
5369
+ else if(i==argsOffset+4) argCLKeyPath=val;
5370
5370
  });
5371
5371
 
5372
+ // DBG
5373
+ console.log(">>>>>>>>>>>>>>>>>argsOffset:",argsOffset);
5374
+
5372
5375
  // Console, command-line arguments OVERRIDE parameters values :
5373
5376
 
5374
5377
  result.port=nonull(argCLPort,portParam);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.747",
3
+ "version": "0.0.748",
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)",