@trap_stevo/filetide 0.0.31 → 0.0.32
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 +1 -1
- package/package.json +1 -1
package/dist/cjs/FileTide.js
CHANGED
|
@@ -290,13 +290,13 @@ function _setupFileEventListeners(userID, client, onIncomingFile) {
|
|
|
290
290
|
}
|
|
291
291
|
});
|
|
292
292
|
client.clientTide.onEvent(userID, "transfer-complete", data => {
|
|
293
|
+
const savePath = FileUtilityManager.getTidePath(path.join(data.filePath, data.fileName));
|
|
293
294
|
try {
|
|
294
295
|
_FileTide.outputGradient(`[${userID}] File transfer complete : ${data.fileName}`, significantMessageColors);
|
|
295
296
|
const transferState = activeTransfers.get(data.fileName);
|
|
296
297
|
if (!transferState) {
|
|
297
298
|
return;
|
|
298
299
|
}
|
|
299
|
-
const savePath = FileUtilityManager.getTidePath(path.join(data.filePath, data.fileName));
|
|
300
300
|
const fullFile = Buffer.concat(transferState.receivedChunks);
|
|
301
301
|
fs.writeFileSync(savePath, fullFile);
|
|
302
302
|
_FileTide.outputGradient(`[${userID}] File saved at : ${savePath}`, significantMessageColors);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trap_stevo/filetide",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.32",
|
|
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": {
|