aotrautils 0.0.1901 → 0.0.1902
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 +18 -18
- 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 (26/07/2026-02:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (26/07/2026-02:34:09)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -29,7 +29,7 @@ if(typeof(window)==="undefined") window=global;
|
|
|
29
29
|
|
|
30
30
|
//=========================================================================
|
|
31
31
|
// GLOBAL CONSTANTS :
|
|
32
|
-
PERFORM_TESTS_ON_LIBRARY=false;
|
|
32
|
+
window.PERFORM_TESTS_ON_LIBRARY=false;
|
|
33
33
|
|
|
34
34
|
//FLATTEN / UNFLATTEN JSON CONSTANTS :
|
|
35
35
|
|
|
@@ -2690,7 +2690,7 @@ window.startsWith=window.aotest({
|
|
|
2690
2690
|
scenario2ok : [ [ "https://example.com", "http://" ], false ]
|
|
2691
2691
|
}, function(str, subStr){
|
|
2692
2692
|
return str.lastIndexOf(subStr, 0) === 0;
|
|
2693
|
-
}, !PERFORM_TESTS_ON_LIBRARY);
|
|
2693
|
+
}, !window.PERFORM_TESTS_ON_LIBRARY);
|
|
2694
2694
|
|
|
2695
2695
|
|
|
2696
2696
|
|
|
@@ -2860,7 +2860,7 @@ scenario4 : [ [ " test1 \r\r\ntest2", "compactHTML" ], "test1 \n\n\ntest2" ]
|
|
|
2860
2860
|
|
|
2861
2861
|
// «Soft» mode is default mode :
|
|
2862
2862
|
return str.replace(/[\s\t\n\r]+/igm, " ").trim();
|
|
2863
|
-
}, !PERFORM_TESTS_ON_LIBRARY);
|
|
2863
|
+
}, !window.PERFORM_TESTS_ON_LIBRARY);
|
|
2864
2864
|
|
|
2865
2865
|
|
|
2866
2866
|
window.dec2hex=function(d){
|
|
@@ -3414,7 +3414,7 @@ window.aotest({
|
|
|
3414
3414
|
dummy : "obj1"
|
|
3415
3415
|
} ], false ]
|
|
3416
3416
|
|
|
3417
|
-
}, isArray, !PERFORM_TESTS_ON_LIBRARY);
|
|
3417
|
+
}, isArray, !window.PERFORM_TESTS_ON_LIBRARY);
|
|
3418
3418
|
|
|
3419
3419
|
window.arraysEqual=function(array1, array2){
|
|
3420
3420
|
if(!array1 && !array2)
|
|
@@ -3500,7 +3500,7 @@ window.aotest({
|
|
|
3500
3500
|
dummy : "tab8"
|
|
3501
3501
|
} ], true ]
|
|
3502
3502
|
|
|
3503
|
-
}, arraysEqual, !PERFORM_TESTS_ON_LIBRARY);
|
|
3503
|
+
}, arraysEqual, !window.PERFORM_TESTS_ON_LIBRARY);
|
|
3504
3504
|
|
|
3505
3505
|
window.objectsEqual=window.aotest({
|
|
3506
3506
|
name : "objectsEqual",
|
|
@@ -3575,7 +3575,7 @@ window.objectsEqual=window.aotest({
|
|
|
3575
3575
|
}
|
|
3576
3576
|
|
|
3577
3577
|
return true;
|
|
3578
|
-
}, !PERFORM_TESTS_ON_LIBRARY);
|
|
3578
|
+
}, !window.PERFORM_TESTS_ON_LIBRARY);
|
|
3579
3579
|
|
|
3580
3580
|
|
|
3581
3581
|
|
|
@@ -3698,7 +3698,7 @@ Math.coerceInRange=window.aotest({
|
|
|
3698
3698
|
value=Math.abs(value);
|
|
3699
3699
|
}
|
|
3700
3700
|
return Math.min(Math.max(value, min), max);
|
|
3701
|
-
}, !PERFORM_TESTS_ON_LIBRARY);
|
|
3701
|
+
}, !window.PERFORM_TESTS_ON_LIBRARY);
|
|
3702
3702
|
|
|
3703
3703
|
|
|
3704
3704
|
Math.getMinMax=function(strMinMaxRange, separator="¬>"){
|
|
@@ -5470,7 +5470,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5470
5470
|
|
|
5471
5471
|
|
|
5472
5472
|
|
|
5473
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (26/07/2026-02:
|
|
5473
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (26/07/2026-02:34:09)»*/
|
|
5474
5474
|
/*-----------------------------------------------------------------------------*/
|
|
5475
5475
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
5476
5476
|
*
|
|
@@ -5501,7 +5501,7 @@ if(typeof(window)==="undefined") window=global;
|
|
|
5501
5501
|
// GLOBAL CONSTANTS :
|
|
5502
5502
|
|
|
5503
5503
|
const APOSTROPHE="’";
|
|
5504
|
-
PERFORM_TESTS_ON_LIBRARY=false;
|
|
5504
|
+
window.PERFORM_TESTS_ON_LIBRARY=false;
|
|
5505
5505
|
|
|
5506
5506
|
// CAUTION ! Apparently nodejs ECMAscript does not do lazy evaluation when it's for throwing declaraion exceptions (it's logical, when you think a second about it..)
|
|
5507
5507
|
function isUserMediaAvailable(){
|
|
@@ -5515,7 +5515,7 @@ if(typeof aotest === "undefined"){
|
|
|
5515
5515
|
// If aotest library is not available, then we replace aotest calls with simple tested function calls :
|
|
5516
5516
|
aotest=function(testcase,testedFunction){ return testedFunction; };
|
|
5517
5517
|
// TRACE IF NEEDED
|
|
5518
|
-
if(PERFORM_TESTS_ON_LIBRARY) console.log("WARN : aotest library not found, deactivating aotest unit test abilities.");
|
|
5518
|
+
if(window.PERFORM_TESTS_ON_LIBRARY) console.log("WARN : aotest library not found, deactivating aotest unit test abilities.");
|
|
5519
5519
|
}
|
|
5520
5520
|
if(typeof monitorProgression === "undefined"){
|
|
5521
5521
|
monitorProgression=function(progressionTotalAmount,monitoredFunction){ return monitoredFunction; };
|
|
@@ -5826,7 +5826,7 @@ cssStringToJQueryObject=aotest({
|
|
|
5826
5826
|
result[name.replace("*/", "").trim()]=value;
|
|
5827
5827
|
}
|
|
5828
5828
|
return result;
|
|
5829
|
-
}, !PERFORM_TESTS_ON_LIBRARY);
|
|
5829
|
+
}, !window.PERFORM_TESTS_ON_LIBRARY);
|
|
5830
5830
|
|
|
5831
5831
|
// HTML elements management :
|
|
5832
5832
|
|
|
@@ -6388,7 +6388,7 @@ var isURLHttps=aotest(
|
|
|
6388
6388
|
// Function definition
|
|
6389
6389
|
, function(url){
|
|
6390
6390
|
return startsWith(url.toLowerCase(), "https://");
|
|
6391
|
-
}, !PERFORM_TESTS_ON_LIBRARY);
|
|
6391
|
+
}, !window.PERFORM_TESTS_ON_LIBRARY);
|
|
6392
6392
|
|
|
6393
6393
|
|
|
6394
6394
|
/*DEPRECATED, use new URL("...") instead !*/
|
|
@@ -13291,7 +13291,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
|
|
|
13291
13291
|
|
|
13292
13292
|
|
|
13293
13293
|
|
|
13294
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (26/07/2026-02:
|
|
13294
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (26/07/2026-02:34:09)»*/
|
|
13295
13295
|
/*-----------------------------------------------------------------------------*/
|
|
13296
13296
|
|
|
13297
13297
|
|
|
@@ -14376,10 +14376,10 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14376
14376
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14377
14377
|
|
|
14378
14378
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14379
|
-
/*utils 3D library associated with aotra version : «1_29072022-2359 (26/07/2026-02:
|
|
14379
|
+
/*utils 3D library associated with aotra version : «1_29072022-2359 (26/07/2026-02:34:09)»*/
|
|
14380
14380
|
/*-----------------------------------------------------------------------------*/
|
|
14381
14381
|
|
|
14382
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (26/07/2026-02:
|
|
14382
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (26/07/2026-02:34:09)»*/
|
|
14383
14383
|
/*-----------------------------------------------------------------------------*/
|
|
14384
14384
|
|
|
14385
14385
|
|
|
@@ -14639,7 +14639,7 @@ getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProviderName=DE
|
|
|
14639
14639
|
|
|
14640
14640
|
|
|
14641
14641
|
|
|
14642
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (26/07/2026-02:
|
|
14642
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (26/07/2026-02:34:09)»*/
|
|
14643
14643
|
/*-----------------------------------------------------------------------------*/
|
|
14644
14644
|
|
|
14645
14645
|
|
|
@@ -16285,7 +16285,7 @@ window.getCurrentLevelPrototypeNameForAORTACServerCell=()=>{
|
|
|
16285
16285
|
|
|
16286
16286
|
|
|
16287
16287
|
// COMPATIBILITY browser javascript / nodejs environment :
|
|
16288
|
-
if(typeof(window)==="undefined") window=global;
|
|
16288
|
+
if(typeof(window)==="undefined") window=global;
|
|
16289
16289
|
|
|
16290
16290
|
|
|
16291
16291
|
// ==================================================================================================================
|
aotrautils/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1902",
|
|
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.1902",
|
|
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.1902",
|
|
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)",
|