@trap_stevo/filetide 0.0.75 → 0.0.77
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.
package/dist/cjs/FileTide.js
CHANGED
|
@@ -58,6 +58,7 @@ class FileTide {
|
|
|
58
58
|
this.transferBarrier = false;
|
|
59
59
|
this.clientDetails = new Map();
|
|
60
60
|
this.clients = new Map();
|
|
61
|
+
this.currentChannel = "";
|
|
61
62
|
this.currentUserID = "";
|
|
62
63
|
this.runningOn = os.platform();
|
|
63
64
|
this.inDebugMode = debugMode;
|
|
@@ -151,6 +152,7 @@ class FileTide {
|
|
|
151
152
|
}
|
|
152
153
|
const newClient = new FileMessagerClient(clientOptions, transportOptions, messagerSettings);
|
|
153
154
|
const enterRoom = newClient.joinRoom(userID, roomName, connectionOptions, headers, onConnect, onDisconnect, authURL, authHeaders, useAuthentication, queryAuthToken);
|
|
155
|
+
this.currentChannel = roomName;
|
|
154
156
|
this.transferBarrier = enableTransferBarrier;
|
|
155
157
|
this.clientShorePolicies.set(userID, [FileUtilityManager.getTidePath(">Downloads"), FileUtilityManager.getTidePath(">Documents"), FileUtilityManager.getTidePath(">Desktop"), FileUtilityManager.getTidePath(">Photos"), FileUtilityManager.getTidePath(">Videos"), FileUtilityManager.getTidePath(">Music")]);
|
|
156
158
|
this.clients.set(userID, newClient);
|
|
@@ -502,11 +504,15 @@ function _setupFileEventListeners(userID, client, onTransferProgress, onIncoming
|
|
|
502
504
|
}
|
|
503
505
|
});
|
|
504
506
|
if (Object.keys(currentClients).length <= 0) {
|
|
507
|
+
_FileTide.outputGradient(`\n✨ No Clients Online in ${this.currentChannel} ✨`, significantMessageColors);
|
|
508
|
+
if (onCurrentOnlineClients) {
|
|
509
|
+
onCurrentOnlineClients(currentClients, true);
|
|
510
|
+
}
|
|
505
511
|
return;
|
|
506
512
|
}
|
|
507
|
-
cliTable.setTitle(`✨
|
|
513
|
+
cliTable.setTitle(`✨ >${Object.keys(currentClients).length}< Online in ${this.currentChannel} ✨`, 1);
|
|
508
514
|
cliTable.setData(currentClients);
|
|
509
|
-
console.log(
|
|
515
|
+
console.log("\n", cliTable.render(), "\n");
|
|
510
516
|
if (onCurrentOnlineClients) {
|
|
511
517
|
onCurrentOnlineClients(currentClients, true);
|
|
512
518
|
}
|
|
@@ -526,9 +532,10 @@ function _setupFileEventListeners(userID, client, onTransferProgress, onIncoming
|
|
|
526
532
|
if (Object.keys(currentClients).length <= 0) {
|
|
527
533
|
return;
|
|
528
534
|
}
|
|
529
|
-
_FileTide.outputGradient(`\n[FileTide ~ FileNet]\n\n✨ Current Clients >${Object.keys(currentClients).length}< ✨\n`, significantMessageColors);
|
|
530
535
|
if (onCurrentOnlineClients) {
|
|
531
|
-
onCurrentOnlineClients(currentClients, false)
|
|
536
|
+
onCurrentOnlineClients(currentClients, false, () => {
|
|
537
|
+
_FileTide.outputGradient(`\n✨ >${Object.keys(currentClients).length}< Current Clients ✨\n`, significantMessageColors);
|
|
538
|
+
});
|
|
532
539
|
}
|
|
533
540
|
});
|
|
534
541
|
client.clientTide.onEvent(userID, "current-client-id-already-online", clientID => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trap_stevo/filetide",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.77",
|
|
4
4
|
"description": "Revolutionizing real-time file transfer with seamless, instant communication across any device. Deliver files instantly, regardless of platform, and experience unparalleled speed and control in managing transfers. Elevate your file-sharing capabilities with a tool designed for precision, efficiency, and effortless connectivity.",
|
|
5
5
|
"main": "dist/cjs/FileTide.js",
|
|
6
6
|
"scripts": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"author": "Steven Compton",
|
|
36
36
|
"license": "See License in LICENSE.md",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@trap_stevo/iotide": "^0.0.
|
|
38
|
+
"@trap_stevo/iotide": "^0.0.46",
|
|
39
39
|
"@trap_stevo/iotide-client": "^0.0.26",
|
|
40
40
|
"@trap_stevo/legendarybuilderpronodejs-utilities": "^1.0.49",
|
|
41
41
|
"@trap_stevo/lockline": "^0.0.11",
|