aotrautils 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:29)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (19/05/2025-02:23:36)»*/
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 CLIENT library associated with aotra version : «1_29072022-2359 (18/05/2025-01:10:29)»*/
4955
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (19/05/2025-02:23:36)»*/
4947
4956
  /*-----------------------------------------------------------------------------*/
4948
4957
  /* ## Utility global methods in a browser (htmljs) client environment.
4949
4958
  *
@@ -13546,7 +13555,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
13546
13555
 
13547
13556
 
13548
13557
 
13549
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (18/05/2025-01:10:29)»*/
13558
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (19/05/2025-02:23:36)»*/
13550
13559
  /*-----------------------------------------------------------------------------*/
13551
13560
 
13552
13561
 
@@ -14785,7 +14794,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14785
14794
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14786
14795
 
14787
14796
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14788
- /*utils AI library associated with aotra version : «1_29072022-2359 (18/05/2025-01:10:29)»*/
14797
+ /*utils AI library associated with aotra version : «1_29072022-2359 (19/05/2025-02:23:36)»*/
14789
14798
  /*-----------------------------------------------------------------------------*/
14790
14799
 
14791
14800
 
@@ -14931,7 +14940,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
14931
14940
 
14932
14941
 
14933
14942
 
14934
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (18/05/2025-01:10:29)»*/
14943
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (19/05/2025-02:23:36)»*/
14935
14944
  /*-----------------------------------------------------------------------------*/
14936
14945
 
14937
14946
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1639",
3
+ "version": "0.0.1640",
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)",