@trap_stevo/filetide-client 0.0.48 → 0.0.50
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/FileTideClient.js +5 -11
- package/package.json +3 -3
|
@@ -148,11 +148,9 @@ class FileTideClient {
|
|
|
148
148
|
broadcastClientOffline(fileMessager, forceBroadcast = false) {
|
|
149
149
|
if (fileMessager && !this.clientDisconnected) {
|
|
150
150
|
this.clientDisconnected = true;
|
|
151
|
-
const transferStates = fileTide.getTidingTransferStates();
|
|
152
151
|
fileMessager.clientTide.emitEvent(this.deviceName, "client-offline", {
|
|
153
152
|
clientID: this.deviceName,
|
|
154
|
-
connectionID: this.connectionID
|
|
155
|
-
disconnectedDuringTransfer: transferStates.size > 0 ? true : false
|
|
153
|
+
connectionID: this.connectionID
|
|
156
154
|
});
|
|
157
155
|
FileTide.outputGradient(`[${this.deviceName}] Disconnected from the file net.`, ["#00C897", "#00E0FF"]);
|
|
158
156
|
return;
|
|
@@ -161,11 +159,9 @@ class FileTideClient {
|
|
|
161
159
|
return;
|
|
162
160
|
}
|
|
163
161
|
this.clientDisconnected = true;
|
|
164
|
-
const transferStates = fileTide.getTidingTransferStates();
|
|
165
162
|
fileMessager.clientTide.emitEvent(this.deviceName, "client-offline", {
|
|
166
163
|
clientID: this.deviceName,
|
|
167
|
-
connectionID: this.connectionID
|
|
168
|
-
disconnectedDuringTransfer: transferStates.size > 0 ? true : false
|
|
164
|
+
connectionID: this.connectionID
|
|
169
165
|
});
|
|
170
166
|
FileTide.outputGradient(`[${this.deviceName}] Disconnected from the file net.`, ["#00C897", "#00E0FF"]);
|
|
171
167
|
}
|
|
@@ -268,8 +264,8 @@ class FileTideClient {
|
|
|
268
264
|
this.fileMessagerInstance.requestTransfer(this.deviceName, senderID, filePath, destinationPath, filterContent, transferRequestExpirationTime);
|
|
269
265
|
return;
|
|
270
266
|
}
|
|
271
|
-
async transferFiles(recipientID, filePath, destinationPath, filterContent = [], tideSize = 200, tidalSize = 500, minTideSize = 10, maxTideSize = 2000, transferRequestExpirationTime = 30000) {
|
|
272
|
-
await fileTide.sendToDevice(recipientID, filePath, destinationPath, filterContent, tideSize, tidalSize, minTideSize, maxTideSize, transferRequestExpirationTime);
|
|
267
|
+
async transferFiles(recipientID, filePath, destinationPath, filterContent = [], tideSize = 200, tidalSize = 500, minTideSize = 10, maxTideSize = 2000, transferRequestExpirationTime = 30000, metadata = {}) {
|
|
268
|
+
await fileTide.sendToDevice(recipientID, filePath, destinationPath, filterContent, tideSize, tidalSize, minTideSize, maxTideSize, transferRequestExpirationTime, metadata);
|
|
273
269
|
return;
|
|
274
270
|
}
|
|
275
271
|
listFiles(recipientID, depth = 1) {
|
|
@@ -333,11 +329,9 @@ class FileTideClient {
|
|
|
333
329
|
const pDeviceName = this.deviceName;
|
|
334
330
|
this.currentDeviceName = pDeviceName;
|
|
335
331
|
this.clientDisconnected = true;
|
|
336
|
-
const transferStates = fileTide.getTidingTransferStates();
|
|
337
332
|
this.fileMessagerInstance.clientTide.emitEvent(pDeviceName, "client-offline", {
|
|
338
333
|
clientID: pDeviceName,
|
|
339
|
-
connectionID: this.connectionID
|
|
340
|
-
disconnectedDuringTransfer: transferStates.size > 0 ? true : false
|
|
334
|
+
connectionID: this.connectionID
|
|
341
335
|
});
|
|
342
336
|
this.fileMessagerInstance.clientTide.closeSocket(this.deviceName);
|
|
343
337
|
this.deviceName = clientID;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trap_stevo/filetide-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.50",
|
|
4
4
|
"description": "Seamless, real-time file transfers between devices with effortless connectivity. Allowing for powerful, instant, secure, and cross-platform file sharing, enabling efficient and reliable data transfers in any network environment.",
|
|
5
5
|
"main": "dist/cjs/FileTideClient.js",
|
|
6
6
|
"exports": {
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"author": "Steven Compton",
|
|
38
38
|
"license": "See License in LICENSE.md",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@trap_stevo/filetide": "^0.0.
|
|
40
|
+
"@trap_stevo/filetide": "^0.0.83",
|
|
41
41
|
"@trap_stevo/iotide": "^0.0.46",
|
|
42
|
-
"@trap_stevo/legendarybuilderpronodejs-utilities": "^1.0.
|
|
42
|
+
"@trap_stevo/legendarybuilderpronodejs-utilities": "^1.0.51",
|
|
43
43
|
"chalk": "^4.1.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|