seyfert 2.1.1-dev-11638605397.0 → 2.1.1-dev-11640269273.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 +11 -4
- package/package.json +3 -3
package/lib/common/it/utils.js
CHANGED
|
@@ -258,10 +258,17 @@ exports.ReplaceRegex = {
|
|
|
258
258
|
},
|
|
259
259
|
};
|
|
260
260
|
async function magicImport(path) {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
261
|
+
try {
|
|
262
|
+
if ('Deno' in globalThis)
|
|
263
|
+
throw new Error('https://github.com/denoland/deno/issues/26136');
|
|
264
|
+
return require(path);
|
|
265
|
+
}
|
|
266
|
+
catch (e) {
|
|
267
|
+
// (bun)dows moment
|
|
268
|
+
if (!('Bun' in globalThis) || e.message.includes('is unsupported. use "await import()" instead.'))
|
|
269
|
+
return new Function('path', 'return import(`file:///${path}?update=${Date.now()}`)')(path.split('\\').join('\\\\'));
|
|
270
|
+
throw new Error(`Cannot import ${path}`, { cause: e });
|
|
271
|
+
}
|
|
265
272
|
}
|
|
266
273
|
function fakePromise(value) {
|
|
267
274
|
if (value instanceof Promise)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seyfert",
|
|
3
|
-
"version": "2.1.1-dev-
|
|
3
|
+
"version": "2.1.1-dev-11640269273.0",
|
|
4
4
|
"description": "The most advanced framework for discord bots",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"@biomejs/biome": "1.9.4",
|
|
25
25
|
"@commitlint/cli": "^19.5.0",
|
|
26
26
|
"@commitlint/config-conventional": "^19.5.0",
|
|
27
|
-
"@types/node": "^22.
|
|
27
|
+
"@types/node": "^22.8.6",
|
|
28
28
|
"husky": "^9.1.6",
|
|
29
29
|
"lint-staged": "^15.2.10",
|
|
30
30
|
"typescript": "^5.6.3",
|
|
31
|
-
"vitest": "^2.1.
|
|
31
|
+
"vitest": "^2.1.4"
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://seyfert.dev",
|
|
34
34
|
"repository": {
|