@trap_stevo/filetide 0.0.64 → 0.0.66
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
CHANGED
|
@@ -159,6 +159,42 @@ class FileMessager {
|
|
|
159
159
|
});
|
|
160
160
|
return result;
|
|
161
161
|
}
|
|
162
|
+
kickClient(clientID, options = {
|
|
163
|
+
category: "kick",
|
|
164
|
+
duration: "30s"
|
|
165
|
+
}) {
|
|
166
|
+
const {
|
|
167
|
+
category = "kick",
|
|
168
|
+
duration = "30s",
|
|
169
|
+
...optionsConfigurations
|
|
170
|
+
} = options;
|
|
171
|
+
const result = this.tideSentinel.banClient(clientID, {
|
|
172
|
+
category,
|
|
173
|
+
duration,
|
|
174
|
+
...optionsConfigurations
|
|
175
|
+
});
|
|
176
|
+
tidalytics.track("tider:kicked", {
|
|
177
|
+
value: 1,
|
|
178
|
+
tags: {
|
|
179
|
+
"tider:kicked": "tider:kicked",
|
|
180
|
+
"tider": "tider",
|
|
181
|
+
clientID
|
|
182
|
+
},
|
|
183
|
+
metadata: {
|
|
184
|
+
clientID,
|
|
185
|
+
options
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
this.onTideAction({
|
|
189
|
+
tideActionID: "kick-client-activated",
|
|
190
|
+
tideActionDate: Date.now(),
|
|
191
|
+
tideActionDetails: {
|
|
192
|
+
clientID,
|
|
193
|
+
options
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
return result;
|
|
197
|
+
}
|
|
162
198
|
unbanClient(clientID) {
|
|
163
199
|
const result = this.tideSentinel.unbanClient(clientID);
|
|
164
200
|
tidalytics.track("tider:unbanned", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trap_stevo/filetide",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.66",
|
|
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": {
|