aotrautils-srv 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.
|
@@ -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:59)»*/
|
|
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 AI library associated with aotra version : «1_29072022-2359 (
|
|
5476
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (03/08/2026-00:57:59)»*/
|
|
5474
5477
|
/*-----------------------------------------------------------------------------*/
|
|
5475
5478
|
|
|
5476
5479
|
|
|
@@ -5730,7 +5733,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
|
|
|
5730
5733
|
|
|
5731
5734
|
|
|
5732
5735
|
|
|
5733
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (
|
|
5736
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (03/08/2026-00:57:59)»*/
|
|
5734
5737
|
/*-----------------------------------------------------------------------------*/
|
|
5735
5738
|
|
|
5736
5739
|
|
|
@@ -7705,8 +7708,7 @@ function capitalize(str){
|
|
|
7705
7708
|
// COMPATIBILITY browser javascript / nodejs environment :
|
|
7706
7709
|
if(typeof(window)==="undefined") window=global;
|
|
7707
7710
|
|
|
7708
|
-
|
|
7709
|
-
window.crypto=require("node:crypto");
|
|
7711
|
+
|
|
7710
7712
|
|
|
7711
7713
|
// OLD : socket.io :
|
|
7712
7714
|
// https://stackoverflow.com/questions/31156884/how-to-use-https-on-node-js-using-express-socket-io
|
aotrautils-srv/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
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-srv",
|
|
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-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1937",
|
|
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)",
|