aotrautils 0.0.326 → 0.0.327

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 (04/12/2022-02:34:17)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (04/12/2022-02:54:41)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4827,7 +4827,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4827
4827
 
4828
4828
 
4829
4829
 
4830
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (04/12/2022-02:34:17)»*/
4830
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (04/12/2022-02:54:41)»*/
4831
4831
  /*-----------------------------------------------------------------------------*/
4832
4832
  /* ## Utility global methods in a browser (htmljs) client environment.
4833
4833
  *
@@ -12949,7 +12949,7 @@ createOritaMicroClient=function(url, port, isNode=false){
12949
12949
  };
12950
12950
 
12951
12951
 
12952
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (04/12/2022-02:34:17)»*/
12952
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (04/12/2022-02:54:41)»*/
12953
12953
  /*-----------------------------------------------------------------------------*/
12954
12954
 
12955
12955
 
@@ -14177,7 +14177,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14177
14177
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14178
14178
 
14179
14179
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14180
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (04/12/2022-02:34:17)»*/
14180
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (04/12/2022-02:54:41)»*/
14181
14181
  /*-----------------------------------------------------------------------------*/
14182
14182
 
14183
14183
 
@@ -14536,14 +14536,14 @@ WebsocketImplementation={
14536
14536
  serverSocket:serverSocket,
14537
14537
  receptionEntryPoints:[],
14538
14538
 
14539
- receive:(channelName, doOnIncomingMessage, clientsRoomsTag=null)=>{
14539
+ receive:(channelNameParam, doOnIncomingMessage, clientsRoomsTag=null)=>{
14540
14540
 
14541
14541
  // DBG
14542
- lognow("(SERVER) Registering receive for «"+channelName+"»...",doOnIncomingMessage);
14542
+ lognow("(SERVER) Registering receive for «"+channelNameParam+"»...",doOnIncomingMessage);
14543
14543
 
14544
14544
 
14545
14545
  const receptionEntryPoint={
14546
- channelName:channelName,
14546
+ channelName:channelNameParam,
14547
14547
  clientsRoomsTag:clientsRoomsTag,
14548
14548
  execute:(eventOrMessage, clientSocketParam)=>{
14549
14549
 
@@ -14569,7 +14569,7 @@ WebsocketImplementation={
14569
14569
 
14570
14570
 
14571
14571
  // DBG
14572
- lognow("(SERVER) ENTRY POINT IS OF THE RIGHT CHANNEL:", channelName);
14572
+ lognow("(SERVER) ENTRY POINT IS OF THE RIGHT CHANNEL:", receptionEntryPoint.channelName);
14573
14573
 
14574
14574
 
14575
14575
 
@@ -14890,10 +14890,10 @@ WebsocketImplementation={
14890
14890
 
14891
14891
  receptionEntryPoints:[],
14892
14892
 
14893
- receive:(channelName, doOnIncomingMessage, clientsRoomsTag=null)=>{
14893
+ receive:(channelNameParam, doOnIncomingMessage, clientsRoomsTag=null)=>{
14894
14894
 
14895
14895
  const receptionEntryPoint={
14896
- channelName:channelName,
14896
+ channelName:channelNameParam,
14897
14897
  clientsRoomsTag:clientsRoomsTag,
14898
14898
  execute:(eventOrMessage)=>{
14899
14899
 
@@ -14904,7 +14904,7 @@ WebsocketImplementation={
14904
14904
  const dataWrapped=WebsocketImplementation.getMessageDataBothImplementations(eventOrMessage);
14905
14905
 
14906
14906
  // Channel information is stored in exchanged data :
14907
- if(dataWrapped.channelName && dataWrapped.channelName!==channelName) return;
14907
+ if(dataWrapped.channelName && dataWrapped.channelName!==channelNameParam) return;
14908
14908
 
14909
14909
  const clientSocket=nodeClientInstance.clientSocket;
14910
14910
 
@@ -14924,7 +14924,7 @@ WebsocketImplementation={
14924
14924
  },
14925
14925
 
14926
14926
 
14927
- send:(channelName, data, clientsRoomsTag=null)=>{
14927
+ send:(channelNameParam, data, clientsRoomsTag=null)=>{
14928
14928
 
14929
14929
  const clientSocket=nodeClientInstance.clientSocket;
14930
14930
 
@@ -14941,7 +14941,7 @@ WebsocketImplementation={
14941
14941
  if(!WebsocketImplementation.isInRoom(clientSocket,clientsRoomsTag)) return;
14942
14942
 
14943
14943
  // Channel information is stored in exchanged data :
14944
- let dataWrapped={channelName:channelName, data:data};
14944
+ let dataWrapped={channelName:channelNameParam, data:data};
14945
14945
 
14946
14946
 
14947
14947
  // // DBG
@@ -14952,12 +14952,12 @@ WebsocketImplementation={
14952
14952
 
14953
14953
 
14954
14954
  // // DBG
14955
- // console.log("(NODE CLIENT) SENDING DATA ! channelName:«"+channelName+"» ; clientsRoomsTag:«"+clientsRoomsTag+"»");
14955
+ // console.log("(NODE CLIENT) SENDING DATA ! channelNameParam:«"+channelNameParam+"» ; clientsRoomsTag:«"+clientsRoomsTag+"»");
14956
14956
  // console.log("(NODE CLIENT) SENDING DATA ! dataWrapped:",dataWrapped);
14957
14957
 
14958
14958
  // TODO : FIXME : Use one single interface !
14959
14959
  if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.send(dataWrapped);
14960
- else clientSocket.emit(channelName,dataWrapped);
14960
+ else clientSocket.emit(channelNameParam,dataWrapped);
14961
14961
 
14962
14962
  return nodeClientInstance;
14963
14963
  },
@@ -14995,7 +14995,7 @@ WebsocketImplementation={
14995
14995
 
14996
14996
  const clientSocket=nodeClientInstance.clientSocket;
14997
14997
  if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.addEventListener("message", doOnMessage);
14998
- else clientSocket.on(channelName, doOnMessage);
14998
+ else clientSocket.on(channelNameParam, doOnMessage);
14999
14999
 
15000
15000
  doOnConnection(nodeClientInstance, clientSocket);
15001
15001
 
@@ -15061,10 +15061,10 @@ WebsocketImplementation={
15061
15061
  const browserInstance={
15062
15062
  clientSocket:clientSocket,
15063
15063
 
15064
- receive:(channelName, doOnIncomingMessage, clientsRoomsTag=null)=>{
15064
+ receive:(channelNameParam, doOnIncomingMessage, clientsRoomsTag=null)=>{
15065
15065
 
15066
15066
  // DBG
15067
- lognow("INFO : (CLIENT-BROWSER) SETTING UP RECEIVE for :",channelName);
15067
+ lognow("INFO : (CLIENT-BROWSER) SETTING UP RECEIVE for :",channelNameParam);
15068
15068
 
15069
15069
 
15070
15070
  const doOnMessage=(eventOrMessage)=>{
@@ -15076,7 +15076,7 @@ WebsocketImplementation={
15076
15076
 
15077
15077
 
15078
15078
  // Channel information is stored in exchanged data :
15079
- if(dataWrapped.channelName && dataWrapped.channelName!==channelName) return;
15079
+ if(dataWrapped.channelName && dataWrapped.channelName!==channelNameParam) return;
15080
15080
 
15081
15081
  const clientSocket=browserInstance.clientSocket;
15082
15082
 
@@ -15089,14 +15089,14 @@ WebsocketImplementation={
15089
15089
 
15090
15090
 
15091
15091
  if(!WebsocketImplementation.useSocketIOImplementation) browserInstance.clientSocket.addEventListener("message", doOnMessage);
15092
- else browserInstance.clientSocket.on(channelName, doOnMessage);
15092
+ else browserInstance.clientSocket.on(channelNameParam, doOnMessage);
15093
15093
 
15094
15094
 
15095
15095
  return browserInstance;
15096
15096
  },
15097
15097
 
15098
15098
 
15099
- send:(channelName, data, clientsRoomsTag=null)=>{
15099
+ send:(channelNameParam, data, clientsRoomsTag=null)=>{
15100
15100
 
15101
15101
  const clientSocket=browserInstance.clientSocket;
15102
15102
 
@@ -15113,7 +15113,7 @@ WebsocketImplementation={
15113
15113
  if(!WebsocketImplementation.isInRoom(clientSocket,clientsRoomsTag)) return;
15114
15114
 
15115
15115
  // Channel information is stored in exchanged data :
15116
- let dataWrapped={channelName:channelName, data:data};
15116
+ let dataWrapped={channelName:channelNameParam, data:data};
15117
15117
 
15118
15118
 
15119
15119
  // DBG
@@ -15126,7 +15126,7 @@ WebsocketImplementation={
15126
15126
 
15127
15127
  // TODO : FIXME : Use one single interface !
15128
15128
  if(!WebsocketImplementation.useSocketIOImplementation) clientSocket.send(dataWrapped);
15129
- else clientSocket.emit(channelName,dataWrapped);
15129
+ else clientSocket.emit(channelNameParam,dataWrapped);
15130
15130
 
15131
15131
 
15132
15132
  return browserInstance;
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.326",
3
+ "version": "0.0.327",
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)",