@trap_stevo/filetide-client 0.0.61 → 0.0.63
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 +80 -98
- package/package.json +2 -2
|
@@ -19,76 +19,6 @@ const gradients = {
|
|
|
19
19
|
critical: ["\x1b[38;5;203m", "\x1b[38;5;214m"],
|
|
20
20
|
neutral: ["\x1b[38;5;74m", "\x1b[38;5;81m", "\x1b[38;5;117m", "\x1b[38;5;153m"]
|
|
21
21
|
};
|
|
22
|
-
const shortcuts = {
|
|
23
|
-
">Downloads": {
|
|
24
|
-
description: "User's downloads folder.",
|
|
25
|
-
shortCut: ">Downloads"
|
|
26
|
-
},
|
|
27
|
-
">Documents": {
|
|
28
|
-
description: "User's documents folder.",
|
|
29
|
-
shortCut: ">Documents"
|
|
30
|
-
},
|
|
31
|
-
">Desktop": {
|
|
32
|
-
description: "User's desktop folder.",
|
|
33
|
-
shortCut: ">Desktop"
|
|
34
|
-
},
|
|
35
|
-
">AppData": {
|
|
36
|
-
description: "User's roaming application data folder.",
|
|
37
|
-
shortCut: ">AppData"
|
|
38
|
-
},
|
|
39
|
-
">LocalAppData": {
|
|
40
|
-
description: "User's local application data folder.",
|
|
41
|
-
shortCut: ">LocalAppData"
|
|
42
|
-
},
|
|
43
|
-
">Music": {
|
|
44
|
-
description: "User's music folder.",
|
|
45
|
-
shortCut: ">Music"
|
|
46
|
-
},
|
|
47
|
-
">Photos": {
|
|
48
|
-
description: "User's photos folder.",
|
|
49
|
-
shortCut: ">Photos"
|
|
50
|
-
},
|
|
51
|
-
">Videos": {
|
|
52
|
-
description: "User's videos folder.",
|
|
53
|
-
shortCut: ">Videos"
|
|
54
|
-
},
|
|
55
|
-
">Public": {
|
|
56
|
-
description: "User's public folder.",
|
|
57
|
-
shortCut: ">Public"
|
|
58
|
-
},
|
|
59
|
-
">Templates": {
|
|
60
|
-
description: "User's templates folder",
|
|
61
|
-
shortCut: ">Templates"
|
|
62
|
-
},
|
|
63
|
-
">Temp": {
|
|
64
|
-
description: "System's temp folder.",
|
|
65
|
-
shortCut: ">Temp"
|
|
66
|
-
},
|
|
67
|
-
">LogFiles": {
|
|
68
|
-
description: "System's logs folder.",
|
|
69
|
-
shortCut: ">LogFiles"
|
|
70
|
-
},
|
|
71
|
-
">SystemRoot": {
|
|
72
|
-
description: "System's root folder.",
|
|
73
|
-
shortCut: ">SystemRoot"
|
|
74
|
-
},
|
|
75
|
-
">Cache": {
|
|
76
|
-
description: "User's application cache folder.",
|
|
77
|
-
shortCut: ">Cache"
|
|
78
|
-
},
|
|
79
|
-
">Config": {
|
|
80
|
-
description: "User's application config folder.",
|
|
81
|
-
shortCut: ">Config"
|
|
82
|
-
},
|
|
83
|
-
">CurrentDirectory": {
|
|
84
|
-
description: "User's current folder.",
|
|
85
|
-
shortCut: ">CurrentDirectory"
|
|
86
|
-
},
|
|
87
|
-
">Home": {
|
|
88
|
-
description: "System's home folder.",
|
|
89
|
-
shortCut: ">Home"
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
22
|
const colorReset = "\x1b[0m";
|
|
93
23
|
var _FileTideClient_brand = /*#__PURE__*/new WeakSet();
|
|
94
24
|
class FileTideClient {
|
|
@@ -103,7 +33,6 @@ class FileTideClient {
|
|
|
103
33
|
this.currentRoom = inputCurrentRoom || currentRoom;
|
|
104
34
|
this.fileMessagerInstance = fileMessagerInstance;
|
|
105
35
|
this.clientDisconnected = false;
|
|
106
|
-
this.shortcuts = shortcuts;
|
|
107
36
|
this.connectionID = null;
|
|
108
37
|
_assertClassBrand(_FileTideClient_brand, this, _setupProcessEvents).call(this);
|
|
109
38
|
this.messagerSettings = {
|
|
@@ -326,38 +255,91 @@ class FileTideClient {
|
|
|
326
255
|
return fileTide.getTransferStatsOverview();
|
|
327
256
|
}
|
|
328
257
|
|
|
258
|
+
// --- FileTide Client Transfer History Management ---
|
|
259
|
+
|
|
260
|
+
async getTransferHistory(options = {}) {
|
|
261
|
+
return await fileTide.getTransferHistory(options);
|
|
262
|
+
}
|
|
263
|
+
async getTransferHistoryEntry(transferID, ownerClientID = this.deviceName) {
|
|
264
|
+
return await fileTide.getTransferHistoryEntry(transferID, ownerClientID);
|
|
265
|
+
}
|
|
266
|
+
async clearTransferHistory(options = {}) {
|
|
267
|
+
return await fileTide.clearTransferHistory(options);
|
|
268
|
+
}
|
|
269
|
+
async pruneTransferHistory(maxEntries, options = {}) {
|
|
270
|
+
return await fileTide.pruneTransferHistory(maxEntries, options);
|
|
271
|
+
}
|
|
272
|
+
|
|
329
273
|
// --- FileTide Client Shore Policy Management ---
|
|
330
274
|
|
|
331
|
-
clearShorePolicies(clientID
|
|
332
|
-
return fileTide.clearShorePolicies(clientID
|
|
333
|
-
}
|
|
334
|
-
addShorePolicies(clientID, shores = []) {
|
|
335
|
-
return fileTide.addShorePolicies(clientID, shores);
|
|
336
|
-
}
|
|
337
|
-
getShorePolicies(clientID) {
|
|
338
|
-
return fileTide.getShorePolicies(clientID);
|
|
339
|
-
}
|
|
340
|
-
addShortcuts(inputShortcuts) {
|
|
341
|
-
for (const [key, value] of Object.entries(inputShortcuts)) {
|
|
342
|
-
if (!shortcuts[key]) {
|
|
343
|
-
this.shortcuts[key] = {
|
|
344
|
-
description: value.description || "No description provided.",
|
|
345
|
-
shortCut: key
|
|
346
|
-
};
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
return shortcuts;
|
|
275
|
+
async clearShorePolicies(clientID = this.deviceName) {
|
|
276
|
+
return await fileTide.clearShorePolicies(clientID);
|
|
350
277
|
}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
278
|
+
async removeShorePolicies(shores = [], clientID = this.deviceName) {
|
|
279
|
+
return await fileTide.removeShorePolicies(clientID, shores);
|
|
280
|
+
}
|
|
281
|
+
async addShorePolicies(shores = [], clientID = this.deviceName) {
|
|
282
|
+
return await fileTide.addShorePolicies(clientID, shores);
|
|
283
|
+
}
|
|
284
|
+
async setShorePolicies(shores = [], clientID = this.deviceName) {
|
|
285
|
+
return await fileTide.setShorePolicies(clientID, shores);
|
|
286
|
+
}
|
|
287
|
+
async resetShorePolicies(clientID = this.deviceName) {
|
|
288
|
+
return await fileTide.resetShorePolicies(clientID);
|
|
289
|
+
}
|
|
290
|
+
async pathWithinShorePolicies(inputPath, clientID = this.deviceName) {
|
|
291
|
+
return await fileTide.pathWithinShorePolicies(clientID, inputPath);
|
|
292
|
+
}
|
|
293
|
+
async getShorePolicies(clientID = this.deviceName) {
|
|
294
|
+
return await fileTide.getShorePolicies(clientID);
|
|
295
|
+
}
|
|
296
|
+
getDefaultShorePolicies() {
|
|
297
|
+
return fileTide.getDefaultShorePolicies();
|
|
298
|
+
}
|
|
299
|
+
async getResolvedShorePolicies(clientID = this.deviceName) {
|
|
300
|
+
return await fileTide.getResolvedShorePolicies(clientID);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
// --- FileTide Client Shortcut Management ---
|
|
304
|
+
|
|
305
|
+
getDefaultShortcuts() {
|
|
306
|
+
return fileTide.getDefaultShortcuts();
|
|
358
307
|
}
|
|
359
308
|
getShortcuts() {
|
|
360
|
-
return
|
|
309
|
+
return fileTide.getShortcuts();
|
|
310
|
+
}
|
|
311
|
+
getShortcut(shortcut) {
|
|
312
|
+
return fileTide.getShortcut(shortcut);
|
|
313
|
+
}
|
|
314
|
+
hasShortcut(shortcut) {
|
|
315
|
+
return fileTide.hasShortcut(shortcut);
|
|
316
|
+
}
|
|
317
|
+
addShortcut(shortcut, targetPath) {
|
|
318
|
+
return fileTide.addShortcut(shortcut, targetPath);
|
|
319
|
+
}
|
|
320
|
+
setShortcut(shortcut, targetPath) {
|
|
321
|
+
return fileTide.setShortcut(shortcut, targetPath);
|
|
322
|
+
}
|
|
323
|
+
updateShortcut(shortcut, targetPath) {
|
|
324
|
+
return fileTide.updateShortcut(shortcut, targetPath);
|
|
325
|
+
}
|
|
326
|
+
renameShortcut(shortcut, nextShortcut) {
|
|
327
|
+
return fileTide.renameShortcut(shortcut, nextShortcut);
|
|
328
|
+
}
|
|
329
|
+
removeShortcut(shortcut) {
|
|
330
|
+
return fileTide.removeShortcut(shortcut);
|
|
331
|
+
}
|
|
332
|
+
setShortcuts(shortcuts = {}) {
|
|
333
|
+
return fileTide.setShortcuts(shortcuts);
|
|
334
|
+
}
|
|
335
|
+
clearShortcuts() {
|
|
336
|
+
return fileTide.clearShortcuts();
|
|
337
|
+
}
|
|
338
|
+
resetShortcut(shortcut) {
|
|
339
|
+
return fileTide.resetShortcut(shortcut);
|
|
340
|
+
}
|
|
341
|
+
resetShortcuts() {
|
|
342
|
+
return fileTide.resetShortcuts();
|
|
361
343
|
}
|
|
362
344
|
|
|
363
345
|
// --- FileTide Client Client Settings Management ---
|
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.63",
|
|
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,7 +37,7 @@
|
|
|
37
37
|
"author": "Steven Compton",
|
|
38
38
|
"license": "SCL-1.0-Universal",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@trap_stevo/filetide": "^0.0.
|
|
40
|
+
"@trap_stevo/filetide": "^0.0.96",
|
|
41
41
|
"@trap_stevo/iotide": "^0.0.46",
|
|
42
42
|
"@trap_stevo/legendarybuilderpronodejs-utilities": "^1.0.51",
|
|
43
43
|
"chalk": "^4.1.2"
|