@trap_stevo/filetide 0.0.74 → 0.0.75
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 +4 -4
- package/package.json +1 -1
package/dist/cjs/FileTide.js
CHANGED
|
@@ -131,9 +131,9 @@ class FileTide {
|
|
|
131
131
|
reconnectionAttempts: 15,
|
|
132
132
|
maxReconnectionDelay: 10000
|
|
133
133
|
}, roomName, userID, onLaunch, onIncomingFile, onIncomingTransfer, onTransferBarrier, onTransferProgress, enableTransferBarrier = true, options = {}, headers = {}, onConnect = null, onDisconnect = null, authURL = "", authHeaders = {}, useAuthentication = false, queryAuthToken = false) {
|
|
134
|
-
TideTokenEnforcer.protect(() => {
|
|
134
|
+
TideTokenEnforcer.protect(async () => {
|
|
135
135
|
if (this.clients.has(userID)) {
|
|
136
|
-
this.stopMessager(userID);
|
|
136
|
+
await this.stopMessager(userID);
|
|
137
137
|
}
|
|
138
138
|
const currentClientDetails = this.clientDetails.get(userID);
|
|
139
139
|
if (currentClientDetails && currentClientDetails.unauthorized) {
|
|
@@ -353,7 +353,7 @@ class FileTide {
|
|
|
353
353
|
* @param {Function} onCompletion - Executes upon messager disconnection completion
|
|
354
354
|
*/
|
|
355
355
|
async stopMessager(userID, onBeforeDisconnect, onDisconnect, onCompletion) {
|
|
356
|
-
TideTokenEnforcer.protect(async () => {
|
|
356
|
+
await TideTokenEnforcer.protect(async () => {
|
|
357
357
|
if (this.clients.has(userID)) {
|
|
358
358
|
FileTide.outputGradient(`Stopping messager for user ${userID}...`, significantMessageColors);
|
|
359
359
|
const connectionOrigin = this.clients.get(userID);
|
|
@@ -392,7 +392,7 @@ class FileTide {
|
|
|
392
392
|
* @param {Function} onCompletion - Executes upon all messager disconnection
|
|
393
393
|
*/
|
|
394
394
|
async stopAllMessagers(onBeforeClientDisconnect, onClientDisconnect, onCompletion) {
|
|
395
|
-
TideTokenEnforcer.protect(async () => {
|
|
395
|
+
await TideTokenEnforcer.protect(async () => {
|
|
396
396
|
FileTide.outputGradient("Stopping all messagers...", significantMessageColors);
|
|
397
397
|
const disconnectTasks = [];
|
|
398
398
|
for (let [userID, connectionOrigin] of this.clients.entries()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trap_stevo/filetide",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.75",
|
|
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": {
|