aotrautils 0.0.1936 → 0.0.1939
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 -10
- 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 (
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (03/08/2026-00:57:15)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -25,7 +25,11 @@
|
|
|
25
25
|
// COMPATIBILITY browser javascript / nodejs environment :
|
|
26
26
|
if(typeof(window)==="undefined") window=global;
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
// Node dependencies :
|
|
29
|
+
if(typeof(require)!=="undefined" && typeof(crypto)==="undefined"){
|
|
30
|
+
// Cryptography hashing utils :
|
|
31
|
+
window.crypto=require("node:crypto");
|
|
32
|
+
}
|
|
29
33
|
|
|
30
34
|
//=========================================================================
|
|
31
35
|
// GLOBAL CONSTANTS :
|
|
@@ -2871,7 +2875,6 @@ window.hex2dec=function(h){
|
|
|
2871
2875
|
return parseInt(h, 16);
|
|
2872
2876
|
}
|
|
2873
2877
|
|
|
2874
|
-
|
|
2875
2878
|
window.hashSafe=function(str){
|
|
2876
2879
|
if(typeof(window.crypto)==="undefined" || typeof(window.crypto.createHash)==="undefined"){
|
|
2877
2880
|
|
|
@@ -5470,7 +5473,7 @@ window.AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5470
5473
|
|
|
5471
5474
|
|
|
5472
5475
|
|
|
5473
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (
|
|
5476
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (03/08/2026-00:57:15)»*/
|
|
5474
5477
|
/*-----------------------------------------------------------------------------*/
|
|
5475
5478
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
5476
5479
|
*
|
|
@@ -12985,7 +12988,7 @@ window.createOritaMicroClient=function(url, port, isNode=false, staticMicroClien
|
|
|
12985
12988
|
|
|
12986
12989
|
|
|
12987
12990
|
|
|
12988
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (
|
|
12991
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (03/08/2026-00:57:15)»*/
|
|
12989
12992
|
/*-----------------------------------------------------------------------------*/
|
|
12990
12993
|
|
|
12991
12994
|
|
|
@@ -14047,10 +14050,10 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14047
14050
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14048
14051
|
|
|
14049
14052
|
window.AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14050
|
-
/*utils 3D library associated with aotra version : «1_29072022-2359 (
|
|
14053
|
+
/*utils 3D library associated with aotra version : «1_29072022-2359 (03/08/2026-00:57:15)»*/
|
|
14051
14054
|
/*-----------------------------------------------------------------------------*/
|
|
14052
14055
|
|
|
14053
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (
|
|
14056
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (03/08/2026-00:57:15)»*/
|
|
14054
14057
|
/*-----------------------------------------------------------------------------*/
|
|
14055
14058
|
|
|
14056
14059
|
|
|
@@ -14310,7 +14313,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
|
|
|
14310
14313
|
|
|
14311
14314
|
|
|
14312
14315
|
|
|
14313
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (
|
|
14316
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (03/08/2026-00:57:15)»*/
|
|
14314
14317
|
/*-----------------------------------------------------------------------------*/
|
|
14315
14318
|
|
|
14316
14319
|
|
|
@@ -16285,8 +16288,7 @@ function capitalize(str){
|
|
|
16285
16288
|
// COMPATIBILITY browser javascript / nodejs environment :
|
|
16286
16289
|
if(typeof(window)==="undefined") window=global;
|
|
16287
16290
|
|
|
16288
|
-
|
|
16289
|
-
window.crypto=require("node:crypto");
|
|
16291
|
+
|
|
16290
16292
|
|
|
16291
16293
|
// OLD : socket.io :
|
|
16292
16294
|
// https://stackoverflow.com/questions/31156884/how-to-use-https-on-node-js-using-express-socket-io
|
aotrautils/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1939",
|
|
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.1939",
|
|
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.1939",
|
|
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)",
|