aotrautils 0.0.1934 → 0.0.1937
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 +20 -14
- aotrautils/package-lock.json +2 -2
- 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 (02/08/2026-00:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (02/08/2026-00:48:19)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5470,7 +5470,7 @@ window.AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5470
5470
|
|
|
5471
5471
|
|
|
5472
5472
|
|
|
5473
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (02/08/2026-00:
|
|
5473
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (02/08/2026-00:48:19)»*/
|
|
5474
5474
|
/*-----------------------------------------------------------------------------*/
|
|
5475
5475
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
5476
5476
|
*
|
|
@@ -12985,7 +12985,7 @@ window.createOritaMicroClient=function(url, port, isNode=false, staticMicroClien
|
|
|
12985
12985
|
|
|
12986
12986
|
|
|
12987
12987
|
|
|
12988
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (02/08/2026-00:
|
|
12988
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (02/08/2026-00:48:19)»*/
|
|
12989
12989
|
/*-----------------------------------------------------------------------------*/
|
|
12990
12990
|
|
|
12991
12991
|
|
|
@@ -14047,10 +14047,10 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14047
14047
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14048
14048
|
|
|
14049
14049
|
window.AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14050
|
-
/*utils 3D library associated with aotra version : «1_29072022-2359 (02/08/2026-00:
|
|
14050
|
+
/*utils 3D library associated with aotra version : «1_29072022-2359 (02/08/2026-00:48:19)»*/
|
|
14051
14051
|
/*-----------------------------------------------------------------------------*/
|
|
14052
14052
|
|
|
14053
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (02/08/2026-00:
|
|
14053
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (02/08/2026-00:48:19)»*/
|
|
14054
14054
|
/*-----------------------------------------------------------------------------*/
|
|
14055
14055
|
|
|
14056
14056
|
|
|
@@ -14310,7 +14310,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
|
|
|
14310
14310
|
|
|
14311
14311
|
|
|
14312
14312
|
|
|
14313
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (02/08/2026-00:
|
|
14313
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (02/08/2026-00:48:19)»*/
|
|
14314
14314
|
/*-----------------------------------------------------------------------------*/
|
|
14315
14315
|
|
|
14316
14316
|
|
|
@@ -16816,7 +16816,7 @@ window.WebsocketImplementation={
|
|
|
16816
16816
|
// CAUTION : SECURITY BREACH :
|
|
16817
16817
|
// BUT ALSO NECESSARY TO ALLOW SELF-SIGNED CERTIFICATES USAGE WITH THE YESBOT SYSTEM ON DEV ENVIRONMENTS !
|
|
16818
16818
|
// (ONLY FOR DEV ENVIRONMENTS :)
|
|
16819
|
-
rejectUnauthorized:
|
|
16819
|
+
rejectUnauthorized:isURLLocalhost(serverURL), // (THIS IS A KNOWN SECURITY BREACH)
|
|
16820
16820
|
secure: isSecure
|
|
16821
16821
|
});
|
|
16822
16822
|
|
|
@@ -17422,8 +17422,7 @@ window.getListManager=function(config){
|
|
|
17422
17422
|
// function performHTTPRequest(...){...
|
|
17423
17423
|
// USE THIS INSTEAD :
|
|
17424
17424
|
window.performHTTPRequest=function(completeURL, httpMethod="GET", headers={}, requestBodyOrNamedArgs=null, isNodeContext=false,
|
|
17425
|
-
addCORSHeader=ADD_CORS_HEADER_BY_DEFAULT
|
|
17426
|
-
allowSelfSignedCerts=false/*RECOMMENDED VALUE, TRY NOT TO SET IT TO «true» !!!*/){
|
|
17425
|
+
addCORSHeader=ADD_CORS_HEADER_BY_DEFAULT){
|
|
17427
17426
|
|
|
17428
17427
|
// Body
|
|
17429
17428
|
let requestBodyOrNamedArgsStr=null;
|
|
@@ -17480,8 +17479,9 @@ window.performHTTPRequest=function(completeURL, httpMethod="GET", headers={}, re
|
|
|
17480
17479
|
};
|
|
17481
17480
|
|
|
17482
17481
|
|
|
17483
|
-
if(
|
|
17484
|
-
options.rejectUnauthorized=
|
|
17482
|
+
if(isURLLocalhost(completeURL)){
|
|
17483
|
+
options.rejectUnauthorized=false;
|
|
17484
|
+
}
|
|
17485
17485
|
|
|
17486
17486
|
|
|
17487
17487
|
return new Promise((resolve,reject)=>{
|
|
@@ -17543,10 +17543,11 @@ window.performHTTPRequest=function(completeURL, httpMethod="GET", headers={}, re
|
|
|
17543
17543
|
options.headers=headers;
|
|
17544
17544
|
|
|
17545
17545
|
|
|
17546
|
-
if(
|
|
17547
|
-
options.rejectUnauthorized=
|
|
17546
|
+
if(isURLLocalhost(completeURL)){
|
|
17547
|
+
options.rejectUnauthorized=false;
|
|
17548
|
+
}
|
|
17549
|
+
|
|
17548
17550
|
|
|
17549
|
-
|
|
17550
17551
|
return new Promise((resolve,reject)=>{
|
|
17551
17552
|
|
|
17552
17553
|
// Create the HTTP request
|
|
@@ -17660,6 +17661,11 @@ window.startsWithUpperCase=(str)=>{
|
|
|
17660
17661
|
}
|
|
17661
17662
|
|
|
17662
17663
|
|
|
17664
|
+
window.isURLLocalhost=(url)=>{
|
|
17665
|
+
if(!url) return false;
|
|
17666
|
+
return (contains(url, ":localhost") || contains(url, ":127.0.0.1"));
|
|
17667
|
+
}
|
|
17668
|
+
|
|
17663
17669
|
|
|
17664
17670
|
|
|
17665
17671
|
/* ## Utility network global methods in a javascript, console (nodejs), or vanilla javascript with no browser environment.
|
aotrautils/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1937",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "aotrautils",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.1937",
|
|
10
10
|
"license": "HGPL-1.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"atob": "^2.1.2",
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1937",
|
|
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)",
|