aotrautils 0.0.1942 → 0.0.1944

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-01:28:52)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (03/08/2026-01:38:35)»*/
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-01:28:52)»*/
5476
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (03/08/2026-01:38:35)»*/
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-01:28:52)»*/
12991
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (03/08/2026-01:38:35)»*/
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-01:28:52)»*/
14053
+ /*utils 3D library associated with aotra version : «1_29072022-2359 (03/08/2026-01:38:35)»*/
14054
14054
  /*-----------------------------------------------------------------------------*/
14055
14055
 
14056
- /*utils AI library associated with aotra version : «1_29072022-2359 (03/08/2026-01:28:52)»*/
14056
+ /*utils AI library associated with aotra version : «1_29072022-2359 (03/08/2026-01:38:35)»*/
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-01:28:52)»*/
14316
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (03/08/2026-01:38:35)»*/
14317
14317
  /*-----------------------------------------------------------------------------*/
14318
14318
 
14319
14319
 
@@ -16330,6 +16330,9 @@ window.Persister=class Persister{
16330
16330
  this.prefix=prefix;
16331
16331
  this.createDirectoryIfNotExists=createDirectoryIfNotExists;
16332
16332
 
16333
+ // Initial setup :
16334
+ this.createDirectoryIfNecessary(this.dataDirPath+"."+this.prefix);
16335
+
16333
16336
  }
16334
16337
 
16335
16338
  //FILE_NAME_PATTERN:"data.clientId.repositoryName.json",
@@ -16355,8 +16358,6 @@ window.Persister=class Persister{
16355
16358
  readTreeObjectFromFile(clientId="noclient", repositoryName="norepository", keepClassName=false){
16356
16359
  const self=this;
16357
16360
 
16358
- // this.createDirectoryIfNecessary(this.dataDirPath+"."+repositoryName);
16359
-
16360
16361
  let resultFlat=null;
16361
16362
  let path=self.getPath(clientId, repositoryName);
16362
16363
 
@@ -16390,8 +16391,6 @@ window.Persister=class Persister{
16390
16391
  saveDataToFileForClient(clientId="noclient", repositoryName="norepository", dataFlatForClient, forceKeepUnflatten=false, doOnSuccess=null){
16391
16392
  const self=this;
16392
16393
 
16393
- this.createDirectoryIfNecessary(this.dataDirPath+"."+repositoryName);
16394
-
16395
16394
  if(!empty(dataFlatForClient) && !isFlatMap(dataFlatForClient) && !forceKeepUnflatten){
16396
16395
  dataFlatForClient=getAsFlatStructure(dataFlatForClient);
16397
16396
  }
@@ -17105,7 +17104,7 @@ window.initNodeServerInfrastructureWrapper=function(doOnClientConnection=null, d
17105
17104
  // TRACE
17106
17105
  console.log("WARN : No key hash found. Generating one now.");
17107
17106
  globalKeyHashObject={keyHash:window.getUUID(), hashes:[]};
17108
- persister.saveDataToFileForClient(persisterClientId,persisterRepositoryName,globalKeyHashObject,false,()=>{
17107
+ persister.saveDataToFileForClient(persisterClientId, persisterRepositoryName, globalKeyHashObject, false, ()=>{
17109
17108
  // TRACE
17110
17109
  console.log("INFO : Key hash generated and saved successfully.");
17111
17110
  });
@@ -17118,7 +17117,7 @@ window.initNodeServerInfrastructureWrapper=function(doOnClientConnection=null, d
17118
17117
  globalKeyHashObject.hashes.push(generatedHash);
17119
17118
 
17120
17119
  // We update the repository :
17121
- persister.saveDataToFileForClient(persisterClientId,persisterRepositoryName,globalKeyHashObject,false,()=>{
17120
+ persister.saveDataToFileForClient(persisterClientId, persisterRepositoryName, globalKeyHashObject, false, ()=>{
17122
17121
  // TRACE
17123
17122
  console.log("INFO : Hash added to repository and saved successfully.");
17124
17123
  });
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1942",
3
+ "version": "0.0.1944",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "aotrautils",
9
- "version": "0.0.1942",
9
+ "version": "0.0.1944",
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.1942",
3
+ "version": "0.0.1944",
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)",