aotrautils 0.0.1107 → 0.0.1109
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.
- aotrautils/aotrautils.build.js +12 -18
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (13/03/2025-23:56:42)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -5326,7 +5326,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
5326
5326
|
|
5327
5327
|
|
5328
5328
|
|
5329
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (
|
5329
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (13/03/2025-23:56:42)»*/
|
5330
5330
|
/*-----------------------------------------------------------------------------*/
|
5331
5331
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
5332
5332
|
*
|
@@ -13898,7 +13898,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
|
|
13898
13898
|
|
13899
13899
|
|
13900
13900
|
|
13901
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (
|
13901
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (13/03/2025-23:56:42)»*/
|
13902
13902
|
/*-----------------------------------------------------------------------------*/
|
13903
13903
|
|
13904
13904
|
|
@@ -15137,7 +15137,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
15137
15137
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
15138
15138
|
|
15139
15139
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
15140
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (
|
15140
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (13/03/2025-23:56:42)»*/
|
15141
15141
|
/*-----------------------------------------------------------------------------*/
|
15142
15142
|
|
15143
15143
|
|
@@ -15281,7 +15281,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
15281
15281
|
|
15282
15282
|
|
15283
15283
|
|
15284
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
15284
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (13/03/2025-23:56:42)»*/
|
15285
15285
|
/*-----------------------------------------------------------------------------*/
|
15286
15286
|
|
15287
15287
|
|
@@ -15453,7 +15453,7 @@ function isConnected(clientSocket){
|
|
15453
15453
|
|
15454
15454
|
// -Server :
|
15455
15455
|
|
15456
|
-
|
15456
|
+
getConsoleServerParams=function(portParam=null, certPathParam=null, keyPathParam=null, argsOffset=0, ignoreConsoleArgs=false){
|
15457
15457
|
|
15458
15458
|
// Node dependencies :
|
15459
15459
|
// https=require("https");
|
@@ -15473,26 +15473,20 @@ getServerParams=function(portParam=null, certPathParam=null, keyPathParam=null,
|
|
15473
15473
|
const result={};
|
15474
15474
|
|
15475
15475
|
// We read the command-line arguments if needed :
|
15476
|
-
|
15477
|
-
|
15478
|
-
|
15479
|
-
process.argv.forEach(function (val, i){
|
15480
|
-
if(i<=argsOffset+1) return;
|
15481
|
-
else if(i==argsOffset+2) argCLPort=val;
|
15482
|
-
else if(i==argsOffset+3) argCLCertPath=val;
|
15483
|
-
else if(i==argsOffset+4) argCLKeyPath=val;
|
15484
|
-
});
|
15476
|
+
const argCLPort=getConsoleParam(1,argsOffset);
|
15477
|
+
const argCLCertPath=getConsoleParam(2,argsOffset);
|
15478
|
+
const argCLKeyPath=getConsoleParam(3,argsOffset);
|
15485
15479
|
|
15486
15480
|
// Console, command-line arguments OVERRIDE parameters values :
|
15487
15481
|
|
15488
|
-
result.port=nonull(argCLPort,portParam);
|
15482
|
+
result.port=(ignoreConsoleArgs?portParam:nonull(argCLPort,portParam));
|
15489
15483
|
result.certPath=null;
|
15490
15484
|
result.keyPath=null;
|
15491
15485
|
result.isSecure=!!(certPathParam || keyPathParam);
|
15492
15486
|
|
15493
15487
|
if(result.isSecure){
|
15494
|
-
result.certPath=nonull(argCLCertPath,certPathParam);
|
15495
|
-
result.keyPath=nonull(argCLKeyPath,keyPathParam);
|
15488
|
+
result.certPath=(ignoreConsoleArgs?certPathParam:nonull(argCLCertPath,certPathParam));
|
15489
|
+
result.keyPath=(ignoreConsoleArgs?keyPathParam:nonull(argCLKeyPath,keyPathParam));
|
15496
15490
|
}
|
15497
15491
|
|
15498
15492
|
// Eventual encryption options :
|
aotrautils/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1109",
|
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)",
|