@trap_stevo/filetide 0.0.83 → 0.0.84
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/FileMessager.js +1 -1
- package/dist/cjs/FileTide.js +1 -1
- package/package.json +1 -1
package/dist/cjs/FileMessager.js
CHANGED
|
@@ -1887,7 +1887,7 @@ class FileMessager {
|
|
|
1887
1887
|
...data,
|
|
1888
1888
|
transferType: "send"
|
|
1889
1889
|
});
|
|
1890
|
-
this.transferQueue.waitForData(data.transferID, () => this.currentTransferBarrierTransfers.get(data.transferID), [true, false], 100, data.transferExpirationTime ? data.transferExpirationTime :
|
|
1890
|
+
this.transferQueue.waitForData(data.transferID, () => this.currentTransferBarrierTransfers.get(data.transferID), [true, false], 100, data.transferExpirationTime && typeof data.transferExpirationTime === "number" ? data.transferExpirationTime : 30000).then(accepted => {
|
|
1891
1891
|
console.log(`[FileTide ~ Net Barrier] ~ Transfer ${accepted ? "accepted!" : "denied."}`);
|
|
1892
1892
|
this.fileNet.emitToTide(senderClient.tideID, "transfer-barrier-response", accepted);
|
|
1893
1893
|
this.currentTransferBarrierTransfers.delete(data.transferID);
|
package/dist/cjs/FileTide.js
CHANGED
|
@@ -299,7 +299,7 @@ class FileTide {
|
|
|
299
299
|
}
|
|
300
300
|
if (fileDetails.type === "directory") {
|
|
301
301
|
FileTide.outputGradient(`[${clientID}] Sending ${fileDetails.content.length} files in directory ~ ${path.basename(filePath)} to client ~ ${recipientID}...`, significantMessageColors);
|
|
302
|
-
await clientMessager.sendDirectoryFiles(clientID, recipientID, fileDetails.content, this.getTidePath(filePath), destinationPath, tideSize, minTideSize, maxTideSize,
|
|
302
|
+
await clientMessager.sendDirectoryFiles(clientID, recipientID, fileDetails.content, this.getTidePath(filePath), destinationPath, tideSize, minTideSize, maxTideSize, transferRequestExpirationTime, transferMetadata);
|
|
303
303
|
return true;
|
|
304
304
|
}
|
|
305
305
|
FileTide.outputGradient(`[FileTide] ~ No active client ~ ${recipientID} found.`, errorMessageColors);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trap_stevo/filetide",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.84",
|
|
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": {
|