aotrautils-srv 0.0.1397 → 0.0.1399
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 (19/04/2025-21:22:55)»*/
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
5
5
|
|
6
6
|
|
@@ -4832,21 +4832,17 @@ window.parseJSON=function(strParam){
|
|
4832
4832
|
return jQuery.parseJSON(str);
|
4833
4833
|
}
|
4834
4834
|
throw new Error("ERROR : No JSON subsystem found to parse the JSON string.");
|
4835
|
-
|
4836
4835
|
} catch (error){
|
4837
4836
|
// TRACE
|
4838
4837
|
log("WARN : Error parsing string «" + strParam + "» as JSON. Trying last-chance fallback.");
|
4839
4838
|
try {
|
4840
4839
|
var obj=eval("(" + str + ")");
|
4841
|
-
|
4842
4840
|
return obj;
|
4843
4841
|
} catch (error2){
|
4844
|
-
|
4845
4842
|
// TRACE
|
4846
4843
|
log(error2);
|
4847
|
-
|
4844
|
+
throw new Error("ERROR : Error parsing string «" + strParam + "» as JSON. Last-chance fallback failed." +
|
4848
4845
|
" CHECK IF THERE IS ANY «'» SINGLE QUOTE CHARACTER IN YOUR LITERALS STRINGS, AND REPLACE IT WITH «´» ACUTE CHARACTER INSTEAD.");
|
4849
|
-
|
4850
4846
|
}
|
4851
4847
|
|
4852
4848
|
}
|
@@ -4898,7 +4894,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
4898
4894
|
|
4899
4895
|
|
4900
4896
|
|
4901
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (
|
4897
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (19/04/2025-21:22:55)»*/
|
4902
4898
|
/*-----------------------------------------------------------------------------*/
|
4903
4899
|
|
4904
4900
|
|
@@ -5044,7 +5040,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
|
|
5044
5040
|
|
5045
5041
|
|
5046
5042
|
|
5047
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
5043
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (19/04/2025-21:22:55)»*/
|
5048
5044
|
/*-----------------------------------------------------------------------------*/
|
5049
5045
|
|
5050
5046
|
|
aotrautils-srv/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "aotrautils-srv",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1399",
|
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)",
|