aotrautils-srv 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 (
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (02/06/2025-00:25:41)»*/
|
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 AI library associated with aotra version : «1_29072022-2359 (
|
4994
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (02/06/2025-00:25:41)»*/
|
4993
4995
|
/*-----------------------------------------------------------------------------*/
|
4994
4996
|
|
4995
4997
|
|
@@ -5135,7 +5137,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
5135
5137
|
|
5136
5138
|
|
5137
5139
|
|
5138
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (
|
5140
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (02/06/2025-00:25:41)»*/
|
5139
5141
|
/*-----------------------------------------------------------------------------*/
|
5140
5142
|
|
5141
5143
|
|
aotrautils-srv/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils-srv",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1681",
|
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)",
|