aotrautils-srv 0.0.268 → 0.0.270

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 (23/11/2022-18:45:22)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (23/11/2022-20:30:20)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4827,7 +4827,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4827
4827
 
4828
4828
 
4829
4829
 
4830
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (23/11/2022-18:45:22)»*/
4830
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (23/11/2022-20:30:20)»*/
4831
4831
  /*-----------------------------------------------------------------------------*/
4832
4832
 
4833
4833
 
@@ -5032,8 +5032,8 @@ getServerParams=function(portParam=null,certPathParam=null,keyPathParam=null){
5032
5032
  result.sslOptions=null;
5033
5033
  if(result.isSecure){
5034
5034
  result.sslOptions={
5035
- cert: fs.readFileSync(certPath),
5036
- key: fs.readFileSync(keyPath),
5035
+ cert: fs.readFileSync(result.certPath),
5036
+ key: fs.readFileSync(result.keyPath),
5037
5037
  };
5038
5038
  }
5039
5039
 
@@ -5851,9 +5851,7 @@ launchNodeHTTPServer=function(port, doOnConnect=null, doOnFinalizeServer=null, /
5851
5851
  let filePath=urlFile.indexOf("?")!==-1?urlFile.split("?")[0]:urlFile;
5852
5852
  if(filePath=="./") filePath="./index.html";
5853
5853
 
5854
- let extname=path.extname(filePath);
5855
5854
  let contentType="text/html";
5856
-
5857
5855
 
5858
5856
  fs.readFile(filePath, function(error, fileContent){
5859
5857
  if(error){
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.268",
3
+ "version": "0.0.270",
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)",