aotrautils-srv 0.0.1938 → 0.0.1940

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 (03/08/2026-00:58:14)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (03/08/2026-01:29:32)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5473,7 +5473,7 @@ window.AOTRAUTILS_LIB_IS_LOADED=true;
5473
5473
 
5474
5474
 
5475
5475
 
5476
- /*utils AI library associated with aotra version : «1_29072022-2359 (03/08/2026-00:58:14)»*/
5476
+ /*utils AI library associated with aotra version : «1_29072022-2359 (03/08/2026-01:29:32)»*/
5477
5477
  /*-----------------------------------------------------------------------------*/
5478
5478
 
5479
5479
 
@@ -5733,7 +5733,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
5733
5733
 
5734
5734
 
5735
5735
 
5736
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (03/08/2026-00:58:14)»*/
5736
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (03/08/2026-01:29:32)»*/
5737
5737
  /*-----------------------------------------------------------------------------*/
5738
5738
 
5739
5739
 
@@ -7775,10 +7775,10 @@ window.Persister=class Persister{
7775
7775
  readTreeObjectFromFile(clientId="noclient", repositoryName="norepository", keepClassName=false){
7776
7776
  const self=this;
7777
7777
 
7778
+ // this.createDirectoryIfNecessary(this.dataDirPath+"."+repositoryName);
7779
+
7778
7780
  let resultFlat=null;
7779
7781
  let path=self.getPath(clientId, repositoryName);
7780
- this.createDirectoryIfNecessary(path);
7781
-
7782
7782
 
7783
7783
  try{
7784
7784
 
@@ -7807,9 +7807,11 @@ window.Persister=class Persister{
7807
7807
  }
7808
7808
 
7809
7809
 
7810
- saveDataToFileForClient(clientId, repositoryName, dataFlatForClient, forceKeepUnflatten=false, doOnSuccess=null){
7810
+ saveDataToFileForClient(clientId="noclient", repositoryName="norepository", dataFlatForClient, forceKeepUnflatten=false, doOnSuccess=null){
7811
7811
  const self=this;
7812
7812
 
7813
+ this.createDirectoryIfNecessary(this.dataDirPath+"."+repositoryName);
7814
+
7813
7815
  if(!empty(dataFlatForClient) && !isFlatMap(dataFlatForClient) && !forceKeepUnflatten){
7814
7816
  dataFlatForClient=getAsFlatStructure(dataFlatForClient);
7815
7817
  }
@@ -7825,7 +7827,6 @@ window.Persister=class Persister{
7825
7827
 
7826
7828
 
7827
7829
  let path=self.getPath(clientId, repositoryName);
7828
- this.createDirectoryIfNecessary(path);
7829
7830
 
7830
7831
  window.fs.writeFile(path, dataFlatStr, FILE_ENCODING, (error) => {
7831
7832
  if(error){
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.1938",
3
+ "version": "0.0.1940",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "aotrautils-srv",
9
- "version": "0.0.1938",
9
+ "version": "0.0.1940",
10
10
  "license": "HGPL-1.0",
11
11
  "dependencies": {
12
12
  "atob": "^2.1.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.1938",
3
+ "version": "0.0.1940",
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)",