aotrautils-srv 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.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- /*utils COMMONS library associated with aotra version : «1_29072022-2359 (26/07/2026-02:34:46)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (26/07/2026-02:36:58)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -1767,7 +1767,7 @@ function encodeXORNoPattern(strToEncode,key){
1767
1767
 
1768
1768
  // CAUTION : This method is declared this way because it's also used in a nodejs context!
1769
1769
  // TODO : FIXME : DO THIS FOR ALL OF THESE COMMON METHODS AND FUNCTIONS !
1770
- generateRandomString=function(length,/*NULLABLE*/mode=null, separator="~>"){
1770
+ window.generateRandomString=function(length,/*NULLABLE*/mode=null, separator="~>"){
1771
1771
 
1772
1772
  // This list must be very conservative, because we want to be able to pass it through GET URLs !
1773
1773
  // OLD (not enough conservative ?) : const ALLOWED_CHARS="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0912346789_-£¢¤¬²³¼½¾";
@@ -1918,7 +1918,7 @@ generateRandomStringFromOriginalString=function (str, randomFactor=1, mode=null)
1918
1918
  const strLength=str.length;
1919
1919
  const maxStrLength=strLength*randomFactor;
1920
1920
  const numberOfCharactersToChange=Math.getRandomInt(maxStrLength);
1921
- const randomString=generateRandomString(numberOfCharactersToChange, mode);
1921
+ const randomString=window.generateRandomString(numberOfCharactersToChange, mode);
1922
1922
  if(strLength<=maxStrLength) return randomString;
1923
1923
  let strIndexes=[];
1924
1924
  for(let i=0;i<strLength;i++){
@@ -5470,7 +5470,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5470
5470
 
5471
5471
 
5472
5472
 
5473
- /*utils AI library associated with aotra version : «1_29072022-2359 (26/07/2026-02:34:46)»*/
5473
+ /*utils AI library associated with aotra version : «1_29072022-2359 (26/07/2026-02:36:58)»*/
5474
5474
  /*-----------------------------------------------------------------------------*/
5475
5475
 
5476
5476
 
@@ -5730,7 +5730,7 @@ getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProviderName=DE
5730
5730
 
5731
5731
 
5732
5732
 
5733
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (26/07/2026-02:34:46)»*/
5733
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (26/07/2026-02:36:58)»*/
5734
5734
  /*-----------------------------------------------------------------------------*/
5735
5735
 
5736
5736
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.1901",
3
+ "version": "0.0.1902",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "aotrautils-srv",
9
- "version": "0.0.1901",
9
+ "version": "0.0.1902",
10
10
  "license": "HGPL-1.0",
11
11
  "dependencies": {
12
12
  "atob": "^2.1.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.1901",
3
+ "version": "0.0.1902",
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)",