seyfert 2.2.1-dev-13381595851.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.
@@ -261,7 +261,14 @@ exports.ReplaceRegex = {
261
261
  },
262
262
  };
263
263
  async function magicImport(path) {
264
- return new Function('path', 'return import(`file:///${path}?update=${Date.now()}`)')(path);
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "2.2.1-dev-13381595851.0",
3
+ "version": "2.2.1-dev-13403103337.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",