aotrautils-srv 0.0.1992 → 0.0.1993

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 (14/09/2026-00:20:11)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (14/09/2026-01:06:31)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -3584,6 +3584,16 @@ window.objectsEqual=window.aotest({
3584
3584
 
3585
3585
 
3586
3586
 
3587
+ window.getShortenedString=function(str, charactersNumber){
3588
+ var DOTS_STRING="...";
3589
+
3590
+ if(charactersNumber<=0)
3591
+ return str;
3592
+ if(nothing(str))
3593
+ return "";
3594
+
3595
+ return str.substring(0, Math.min(str.length, charactersNumber))+DOTS_STRING;
3596
+ }
3587
3597
 
3588
3598
  window.getTextExtract=function(charactersNumberBefore, charactersNumberAfter, str, word){
3589
3599
  var DOTS_STRING="(...)";
@@ -5475,7 +5485,7 @@ window.AOTRAUTILS_LIB_IS_LOADED=true;
5475
5485
 
5476
5486
 
5477
5487
 
5478
- /*utils AI library associated with aotra version : «1_29072022-2359 (14/09/2026-00:20:11)»*/
5488
+ /*utils AI library associated with aotra version : «1_29072022-2359 (14/09/2026-01:06:31)»*/
5479
5489
  /*-----------------------------------------------------------------------------*/
5480
5490
 
5481
5491
 
@@ -5739,7 +5749,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
5739
5749
 
5740
5750
 
5741
5751
 
5742
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (14/09/2026-00:20:11)»*/
5752
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (14/09/2026-01:06:31)»*/
5743
5753
  /*-----------------------------------------------------------------------------*/
5744
5754
 
5745
5755
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.1992",
3
+ "version": "0.0.1993",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "aotrautils-srv",
9
- "version": "0.0.1992",
9
+ "version": "0.0.1993",
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.1992",
3
+ "version": "0.0.1993",
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)",