seyfert 2.2.1-dev-13217777411.0 → 2.2.1-dev-13331323582.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/deps/mixer.js CHANGED
@@ -52,7 +52,7 @@ function Mixin(...args) {
52
52
  for (const key in desc) {
53
53
  if (key === 'constructor')
54
54
  continue;
55
- if (key in mixin.prototype)
55
+ if (key in MixedClass.prototype)
56
56
  continue;
57
57
  const descriptor = desc[key];
58
58
  if (descriptor.value) {
@@ -20,13 +20,13 @@ export declare class LangsHandler extends BaseHandler {
20
20
  locale: string;
21
21
  } | null>;
22
22
  reloadAll(stopIfFail?: boolean): Promise<void>;
23
- onFile(locale: string, file: FileLoaded<Record<string, any>>): {
23
+ onFile(locale: string, { file }: LangInstance): {
24
24
  file: Record<string, any>;
25
25
  locale: string;
26
26
  } | false;
27
27
  }
28
28
  export type LangInstance = {
29
29
  name: string;
30
- file: Record<string, any>;
30
+ file: FileLoaded<Record<string, any>>;
31
31
  path: string;
32
32
  };
@@ -39,7 +39,7 @@ class LangsHandler extends common_1.BaseHandler {
39
39
  }
40
40
  parse(file) {
41
41
  const oldLocale = file.name.split('.').slice(0, -1).join('.') || file.name;
42
- const result = this.onFile(oldLocale, file.file);
42
+ const result = this.onFile(oldLocale, file);
43
43
  if (!result)
44
44
  return;
45
45
  if ('path' in file)
@@ -72,7 +72,7 @@ class LangsHandler extends common_1.BaseHandler {
72
72
  }
73
73
  }
74
74
  }
75
- onFile(locale, file) {
75
+ onFile(locale, { file }) {
76
76
  return file.default
77
77
  ? {
78
78
  file: file.default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "2.2.1-dev-13217777411.0",
3
+ "version": "2.2.1-dev-13331323582.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",