aotrautils 0.0.1679 → 0.0.1681

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 (01/06/2025-04:40:04)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (02/06/2025-00:25:37)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4944,11 +4944,13 @@ window.parseJSON=function(strParam){
4944
4944
  throw new Error("ERROR : Error parsing string «" + strParam + "» as JSON. No parsing failback managed to parse it !");
4945
4945
  }
4946
4946
 
4947
- window.stringifyObject=function(objectToStringify){
4947
+ window.stringifyObject=function(objectToStringify, prettifierOption=null/*(can be tab character «\t», or any other character, or a number, for the number of spaces per tab, ex.: 2)*/){
4948
4948
 
4949
4949
  if(objectToStringify==null) return null;
4950
4950
 
4951
4951
  if(JSON && JSON.stringify && typeof JSON.stringify !== "undefined" && typeof JSON.stringify === "function"){
4952
+ if(prettifierOption)
4953
+ return JSON.stringify(objectToStringify, null, prettifierOption);
4952
4954
  return JSON.stringify(objectToStringify);
4953
4955
  }
4954
4956
  if(typeof jQuery !== "undefined" && typeof jQuery.stringify !== "undefined" && typeof jQuery.stringify === "function"){
@@ -4989,7 +4991,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4989
4991
 
4990
4992
 
4991
4993
 
4992
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (01/06/2025-04:40:04)»*/
4994
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (02/06/2025-00:25:37)»*/
4993
4995
  /*-----------------------------------------------------------------------------*/
4994
4996
  /* ## Utility global methods in a browser (htmljs) client environment.
4995
4997
  *
@@ -13592,7 +13594,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
13592
13594
 
13593
13595
 
13594
13596
 
13595
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (01/06/2025-04:40:04)»*/
13597
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (02/06/2025-00:25:37)»*/
13596
13598
  /*-----------------------------------------------------------------------------*/
13597
13599
 
13598
13600
 
@@ -14831,7 +14833,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14831
14833
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14832
14834
 
14833
14835
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14834
- /*utils AI library associated with aotra version : «1_29072022-2359 (01/06/2025-04:40:04)»*/
14836
+ /*utils AI library associated with aotra version : «1_29072022-2359 (02/06/2025-00:25:37)»*/
14835
14837
  /*-----------------------------------------------------------------------------*/
14836
14838
 
14837
14839
 
@@ -14977,7 +14979,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
14977
14979
 
14978
14980
 
14979
14981
 
14980
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (01/06/2025-04:40:04)»*/
14982
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (02/06/2025-00:25:37)»*/
14981
14983
  /*-----------------------------------------------------------------------------*/
14982
14984
 
14983
14985
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1679",
3
+ "version": "0.0.1681",
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)",