aotrautils 0.0.1939 → 0.0.1941

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:57:15)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (03/08/2026-01:18:22)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5473,7 +5473,7 @@ window.AOTRAUTILS_LIB_IS_LOADED=true;
5473
5473
 
5474
5474
 
5475
5475
 
5476
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (03/08/2026-00:57:15)»*/
5476
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (03/08/2026-01:18:22)»*/
5477
5477
  /*-----------------------------------------------------------------------------*/
5478
5478
  /* ## Utility global methods in a browser (htmljs) client environment.
5479
5479
  *
@@ -12988,7 +12988,7 @@ window.createOritaMicroClient=function(url, port, isNode=false, staticMicroClien
12988
12988
 
12989
12989
 
12990
12990
 
12991
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (03/08/2026-00:57:15)»*/
12991
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (03/08/2026-01:18:22)»*/
12992
12992
  /*-----------------------------------------------------------------------------*/
12993
12993
 
12994
12994
 
@@ -14050,10 +14050,10 @@ function rayVsUnitSphereClosestPoint(p, r) {
14050
14050
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14051
14051
 
14052
14052
  window.AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14053
- /*utils 3D library associated with aotra version : «1_29072022-2359 (03/08/2026-00:57:15)»*/
14053
+ /*utils 3D library associated with aotra version : «1_29072022-2359 (03/08/2026-01:18:22)»*/
14054
14054
  /*-----------------------------------------------------------------------------*/
14055
14055
 
14056
- /*utils AI library associated with aotra version : «1_29072022-2359 (03/08/2026-00:57:15)»*/
14056
+ /*utils AI library associated with aotra version : «1_29072022-2359 (03/08/2026-01:18:22)»*/
14057
14057
  /*-----------------------------------------------------------------------------*/
14058
14058
 
14059
14059
 
@@ -14313,7 +14313,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
14313
14313
 
14314
14314
 
14315
14315
 
14316
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (03/08/2026-00:57:15)»*/
14316
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (03/08/2026-01:18:22)»*/
14317
14317
  /*-----------------------------------------------------------------------------*/
14318
14318
 
14319
14319
 
@@ -16355,10 +16355,10 @@ window.Persister=class Persister{
16355
16355
  readTreeObjectFromFile(clientId="noclient", repositoryName="norepository", keepClassName=false){
16356
16356
  const self=this;
16357
16357
 
16358
+ this.createDirectoryIfNecessary(this.dataDirPath+"."+repositoryName);
16359
+
16358
16360
  let resultFlat=null;
16359
16361
  let path=self.getPath(clientId, repositoryName);
16360
- this.createDirectoryIfNecessary(path);
16361
-
16362
16362
 
16363
16363
  try{
16364
16364
 
@@ -16387,9 +16387,11 @@ window.Persister=class Persister{
16387
16387
  }
16388
16388
 
16389
16389
 
16390
- saveDataToFileForClient(clientId, repositoryName, dataFlatForClient, forceKeepUnflatten=false, doOnSuccess=null){
16390
+ saveDataToFileForClient(clientId="noclient", repositoryName="norepository", dataFlatForClient, forceKeepUnflatten=false, doOnSuccess=null){
16391
16391
  const self=this;
16392
16392
 
16393
+ this.createDirectoryIfNecessary(this.dataDirPath+"."+repositoryName);
16394
+
16393
16395
  if(!empty(dataFlatForClient) && !isFlatMap(dataFlatForClient) && !forceKeepUnflatten){
16394
16396
  dataFlatForClient=getAsFlatStructure(dataFlatForClient);
16395
16397
  }
@@ -16405,7 +16407,6 @@ window.Persister=class Persister{
16405
16407
 
16406
16408
 
16407
16409
  let path=self.getPath(clientId, repositoryName);
16408
- this.createDirectoryIfNecessary(path);
16409
16410
 
16410
16411
  window.fs.writeFile(path, dataFlatStr, FILE_ENCODING, (error) => {
16411
16412
  if(error){
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1939",
3
+ "version": "0.0.1941",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "aotrautils",
9
- "version": "0.0.1939",
9
+ "version": "0.0.1941",
10
10
  "license": "HGPL-1.0",
11
11
  "dependencies": {
12
12
  "atob": "^2.1.2",
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1939",
3
+ "version": "0.0.1941",
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)",