aotrautils-srv 0.0.1639 → 0.0.1640

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 (18/05/2025-01:10:33)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (19/05/2025-02:23:40)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -3811,6 +3811,15 @@ window.isNumber=function(n, strictMode=false){
3811
3811
  if(!strictMode) return !isNaN(parseFloat(n)) && isFinite(n);
3812
3812
  return !isNaN(n);
3813
3813
  }
3814
+ window.isStringRepresentingFloat=function(str)){
3815
+ if(isNumber(str, true)) return true;
3816
+ return /[0-9]+\.[0-9]*/gim.test(str);
3817
+ }
3818
+ window.isStringRepresentingInteger=function(str)){
3819
+ if(isNumber(str, false)) return true;
3820
+ return /[0-9]+/gim.test(str);
3821
+ }
3822
+
3814
3823
  window.isString=function(s){
3815
3824
  return typeof(s)==="string";
3816
3825
  }
@@ -4943,7 +4952,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4943
4952
 
4944
4953
 
4945
4954
 
4946
- /*utils AI library associated with aotra version : «1_29072022-2359 (18/05/2025-01:10:33)»*/
4955
+ /*utils AI library associated with aotra version : «1_29072022-2359 (19/05/2025-02:23:40)»*/
4947
4956
  /*-----------------------------------------------------------------------------*/
4948
4957
 
4949
4958
 
@@ -5089,7 +5098,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
5089
5098
 
5090
5099
 
5091
5100
 
5092
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (18/05/2025-01:10:33)»*/
5101
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (19/05/2025-02:23:40)»*/
5093
5102
  /*-----------------------------------------------------------------------------*/
5094
5103
 
5095
5104
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.1639",
3
+ "version": "0.0.1640",
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)",