aotrautils 0.0.462 → 0.0.464
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.
- aotrautils/aotrautils.build.js +14 -11
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
|
@@ -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 (29/01/2023-23:03:23)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4864,7 +4864,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4864
4864
|
|
|
4865
4865
|
|
|
4866
4866
|
|
|
4867
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (
|
|
4867
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (29/01/2023-23:03:23)»*/
|
|
4868
4868
|
/*-----------------------------------------------------------------------------*/
|
|
4869
4869
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
4870
4870
|
*
|
|
@@ -12986,7 +12986,7 @@ createOritaMicroClient=function(url, port, isNode=false){
|
|
|
12986
12986
|
};
|
|
12987
12987
|
|
|
12988
12988
|
|
|
12989
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (
|
|
12989
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (29/01/2023-23:03:23)»*/
|
|
12990
12990
|
/*-----------------------------------------------------------------------------*/
|
|
12991
12991
|
|
|
12992
12992
|
|
|
@@ -14214,7 +14214,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14214
14214
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14215
14215
|
|
|
14216
14216
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14217
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
|
14217
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (29/01/2023-23:03:23)»*/
|
|
14218
14218
|
/*-----------------------------------------------------------------------------*/
|
|
14219
14219
|
|
|
14220
14220
|
|
|
@@ -14278,23 +14278,23 @@ if(typeof(fs)==="undefined"){
|
|
|
14278
14278
|
}else{
|
|
14279
14279
|
|
|
14280
14280
|
|
|
14281
|
-
getPersister=function(dataDirPath,
|
|
14281
|
+
getPersister=function(dataDirPath,prefix=""){
|
|
14282
14282
|
|
|
14283
14283
|
let self={
|
|
14284
14284
|
|
|
14285
14285
|
dataDirPath:dataDirPath,
|
|
14286
|
-
|
|
14286
|
+
prefix:prefix,
|
|
14287
14287
|
|
|
14288
14288
|
//FILE_NAME_PATTERN:"data.clientId.repositoryName.json",
|
|
14289
|
-
/*private*/getPath:function(clientId,repositoryName){
|
|
14289
|
+
/*private*/getPath:function(clientId="noclient", repositoryName="norepository"){
|
|
14290
14290
|
// let path=self.FILE_NAME_PATTERN.replace(new RegExp("@clientId@","g"),clientId);
|
|
14291
14291
|
let path=`${self.dataDirPath}`
|
|
14292
|
-
+ (blank(self.
|
|
14292
|
+
+ (blank(self.prefix)?"":(self.prefix+"."))
|
|
14293
14293
|
+`${clientId}.${repositoryName}.json`;
|
|
14294
14294
|
return path;
|
|
14295
14295
|
},
|
|
14296
14296
|
|
|
14297
|
-
readTreeObjectFromFile:function(clientId, repositoryName, CLASSNAME_ATTR_NAME=DEFAULT_CLASSNAME_ATTR_NAME){
|
|
14297
|
+
readTreeObjectFromFile:function(clientId="noclient", repositoryName="norepository", CLASSNAME_ATTR_NAME=DEFAULT_CLASSNAME_ATTR_NAME){
|
|
14298
14298
|
|
|
14299
14299
|
let path=self.getPath(clientId,repositoryName);
|
|
14300
14300
|
|
|
@@ -15146,8 +15146,13 @@ WebsocketImplementation={
|
|
|
15146
15146
|
if(doOnIncomingMessage)
|
|
15147
15147
|
doOnIncomingMessage(dataWrapped.data, clientSocket);
|
|
15148
15148
|
|
|
15149
|
+
// We remove one-time usage listeners :
|
|
15149
15150
|
if(listenerConfig && listenerConfig.destroyListenerAfterReceiving)
|
|
15150
15151
|
remove(browserInstance.receptionEntryPoints,receptionEntryPoint);
|
|
15152
|
+
|
|
15153
|
+
// DBG
|
|
15154
|
+
lognow("browserInstance.receptionEntryPoints("+browserInstance.receptionEntryPoints.length+"):",browserInstance.receptionEntryPoints);
|
|
15155
|
+
|
|
15151
15156
|
}
|
|
15152
15157
|
};
|
|
15153
15158
|
|
|
@@ -15155,8 +15160,6 @@ WebsocketImplementation={
|
|
|
15155
15160
|
if(!contains(browserInstance.receptionEntryPoints,(l)=>(l.id && receptionEntryPoint.id && l.id===receptionEntryPoint.id)))
|
|
15156
15161
|
browserInstance.receptionEntryPoints.push(receptionEntryPoint);
|
|
15157
15162
|
|
|
15158
|
-
// DBG
|
|
15159
|
-
lognow("browserInstance.receptionEntryPoints("+browserInstance.receptionEntryPoints.length+"):",browserInstance.receptionEntryPoints);
|
|
15160
15163
|
|
|
15161
15164
|
return browserInstance;
|
|
15162
15165
|
},
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.464",
|
|
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)",
|