seyfert 2.2.1-dev-13380910405.0 → 2.2.1-dev-13403103337.0
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/lib/common/it/utils.js
CHANGED
|
@@ -261,7 +261,14 @@ exports.ReplaceRegex = {
|
|
|
261
261
|
},
|
|
262
262
|
};
|
|
263
263
|
async function magicImport(path) {
|
|
264
|
-
|
|
264
|
+
try {
|
|
265
|
+
if ('Deno' in globalThis)
|
|
266
|
+
throw new Error('https://github.com/denoland/deno/issues/26136');
|
|
267
|
+
return require(path);
|
|
268
|
+
}
|
|
269
|
+
catch {
|
|
270
|
+
return new Function('path', 'return import(`file:///${path}?update=${Date.now()}`)')(path);
|
|
271
|
+
}
|
|
265
272
|
}
|
|
266
273
|
function fakePromise(value) {
|
|
267
274
|
if (value instanceof Promise)
|
|
@@ -10,11 +10,12 @@ class ComponentCommand {
|
|
|
10
10
|
type = exports.InteractionCommandType.COMPONENT;
|
|
11
11
|
customId;
|
|
12
12
|
/** @internal */
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
_filter(context) {
|
|
14
|
+
if (this.customId && this.customId !== context.customId)
|
|
15
|
+
return false;
|
|
16
|
+
if (this.filter)
|
|
17
|
+
return this.filter(context);
|
|
18
|
+
return true;
|
|
18
19
|
}
|
|
19
20
|
middlewares = [];
|
|
20
21
|
props;
|
|
@@ -6,11 +6,12 @@ class ModalCommand {
|
|
|
6
6
|
type = componentcommand_1.InteractionCommandType.MODAL;
|
|
7
7
|
customId;
|
|
8
8
|
/** @internal */
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
_filter(context) {
|
|
10
|
+
if (this.customId && this.customId !== context.customId)
|
|
11
|
+
return false;
|
|
12
|
+
if (this.filter)
|
|
13
|
+
return this.filter(context);
|
|
14
|
+
return true;
|
|
14
15
|
}
|
|
15
16
|
middlewares = [];
|
|
16
17
|
props;
|