aotrautils 0.0.751 → 0.0.753

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:13)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (30/01/2024-18:31:02)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5167,7 +5167,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5167
5167
 
5168
5168
 
5169
5169
 
5170
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (12/11/2023-01:34:13)»*/
5170
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (30/01/2024-18:31:02)»*/
5171
5171
  /*-----------------------------------------------------------------------------*/
5172
5172
  /* ## Utility global methods in a browser (htmljs) client environment.
5173
5173
  *
@@ -12747,7 +12747,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
12747
12747
  };
12748
12748
  data.compression = {
12749
12749
  precision: 1,
12750
- // algorithm:"LZW"
12750
+ //algorithm:"LZW"
12751
12751
  };
12752
12752
 
12753
12753
  }
@@ -12809,47 +12809,18 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
12809
12809
  resolve(oritaClient); // CAUTION : Media handler might be ready AFTER this point !
12810
12810
  }
12811
12811
 
12812
-
12813
-
12814
-
12815
-
12816
-
12817
12812
  });
12818
12813
 
12819
-
12820
-
12821
-
12822
12814
  oritaClient.client.socketToServer.receive("communication", (message) => {
12823
12815
  // We execute eventual on message events listeners :
12824
12816
  foreach(oritaClient.onCommunicationEventListeners, (e) => {
12825
12817
  if (!e.condition || e.condition(message)) e.execute(message);
12826
12818
  });
12827
12819
  });
12828
-
12829
-
12830
-
12831
-
12832
-
12833
-
12834
-
12835
-
12836
-
12837
-
12838
-
12839
-
12840
-
12841
12820
 
12842
12821
  });
12843
12822
 
12844
12823
 
12845
-
12846
-
12847
-
12848
-
12849
-
12850
-
12851
-
12852
-
12853
12824
  };
12854
12825
 
12855
12826
 
@@ -13409,7 +13380,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
13409
13380
 
13410
13381
 
13411
13382
 
13412
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (12/11/2023-01:34:13)»*/
13383
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (30/01/2024-18:31:02)»*/
13413
13384
  /*-----------------------------------------------------------------------------*/
13414
13385
 
13415
13386
 
@@ -14648,7 +14619,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14648
14619
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14649
14620
 
14650
14621
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14651
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (12/11/2023-01:34:13)»*/
14622
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (30/01/2024-18:31:02)»*/
14652
14623
  /*-----------------------------------------------------------------------------*/
14653
14624
 
14654
14625
 
@@ -14820,7 +14791,7 @@ function isConnected(clientSocket){
14820
14791
 
14821
14792
  // -Server :
14822
14793
 
14823
- getServerParams=function(portParam=null, certPathParam=null, keyPathParam=null){
14794
+ getServerParams=function(portParam=null, certPathParam=null, keyPathParam=null, argsOffset=0){
14824
14795
 
14825
14796
  // Node dependencies :
14826
14797
  // https=require("https");
@@ -14844,12 +14815,15 @@ getServerParams=function(portParam=null, certPathParam=null, keyPathParam=null){
14844
14815
  let argCLCertPath;
14845
14816
  let argCLKeyPath;
14846
14817
  process.argv.forEach(function (val, i){
14847
- if(i<=1) return;
14848
- else if(i==2) argCLPort=val;
14849
- else if(i==3) argCLCertPath=val;
14850
- else if(i==4) argCLKeyPath=val;
14818
+ if(i<=argsOffset+1) return;
14819
+ else if(i==argsOffset+2) argCLPort=val;
14820
+ else if(i==argsOffset+3) argCLCertPath=val;
14821
+ else if(i==argsOffset+4) argCLKeyPath=val;
14851
14822
  });
14852
14823
 
14824
+ // DBG
14825
+ console.log(">>>>>>>>>>>>>>>>>argsOffset:",argsOffset);
14826
+
14853
14827
  // Console, command-line arguments OVERRIDE parameters values :
14854
14828
 
14855
14829
  result.port=nonull(argCLPort,portParam);
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.751",
3
+ "version": "0.0.753",
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)",