xernerx 4.0.0 → 4.0.1
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import XernerxExtensionBuilder from 'xernerx-extension-builder';
|
|
2
|
-
import XernerxClient from '../
|
|
2
|
+
import XernerxClient from '../client/XernerxClient.js';
|
|
3
3
|
import Handler from './Handler.js';
|
|
4
4
|
export default class ExtensionHandler extends Handler {
|
|
5
5
|
constructor(client: XernerxClient);
|
|
@@ -7,8 +7,8 @@ export default class ExtensionHandler extends Handler {
|
|
|
7
7
|
loadExtensions(...extensions) {
|
|
8
8
|
const active = extensions.map((extension) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
extension.main(this.client);
|
|
11
|
+
extension.await(this.client);
|
|
12
12
|
return extension.name;
|
|
13
13
|
} catch (error) {
|
|
14
14
|
new XernerxLog(this.client).error(`An error occurred while loading ${extension.name}`);
|
package/dist/tools/package.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare const _default: {
|
|
|
3
3
|
version: string;
|
|
4
4
|
description: string;
|
|
5
5
|
main: string;
|
|
6
|
-
|
|
6
|
+
type: string;
|
|
7
7
|
keywords: string[];
|
|
8
8
|
author: string;
|
|
9
9
|
license: string;
|
|
@@ -19,8 +19,6 @@ declare const _default: {
|
|
|
19
19
|
write: string;
|
|
20
20
|
format: string;
|
|
21
21
|
build: string;
|
|
22
|
-
'build:esm': string;
|
|
23
|
-
'build:cjs': string;
|
|
24
22
|
};
|
|
25
23
|
repository: {
|
|
26
24
|
type: string;
|
|
@@ -30,8 +28,6 @@ declare const _default: {
|
|
|
30
28
|
url: string;
|
|
31
29
|
};
|
|
32
30
|
dependencies: {
|
|
33
|
-
'@sapphire/shapeshift': string;
|
|
34
|
-
'dbl-sdk': string;
|
|
35
31
|
'discord.js': string;
|
|
36
32
|
dumfunctions: string;
|
|
37
33
|
'xernerx-extension-builder': string;
|
package/dist/tools/package.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
name: 'xernerx',
|
|
3
|
-
version: '
|
|
3
|
+
version: '4.0.0',
|
|
4
4
|
description: 'A bot framework for discord.js.',
|
|
5
|
-
main: 'dist/
|
|
6
|
-
|
|
5
|
+
main: 'dist/main.js',
|
|
6
|
+
type: 'module',
|
|
7
7
|
keywords: ['discord.js', 'discord', 'framework', 'mjs', 'esm', 'cjs', 'ts'],
|
|
8
8
|
author: 'Dummi',
|
|
9
9
|
license: 'MIT',
|
|
10
|
-
homepage: 'https://xernerx.github.io/xernerx
|
|
10
|
+
homepage: 'https://xernerx.github.io/xernerx',
|
|
11
11
|
packageManager: 'npm@8.5.5',
|
|
12
12
|
scripts: {
|
|
13
13
|
start: 'npm i && npm fund && npm audit fix --force && npm link && tsc -w',
|
|
@@ -18,9 +18,7 @@ export default {
|
|
|
18
18
|
commit: 'node ../.scripts/commit.js',
|
|
19
19
|
write: 'npm run build && npm run format && node ../.scripts/rewritePackage.js ',
|
|
20
20
|
format: 'npx prettier --write src dist',
|
|
21
|
-
build: '
|
|
22
|
-
'build:esm': 'tsc',
|
|
23
|
-
'build:cjs': 'tsc --module CommonJS --outDir dist/cjs',
|
|
21
|
+
build: 'tsc && npm run format',
|
|
24
22
|
},
|
|
25
23
|
repository: {
|
|
26
24
|
type: 'git',
|
|
@@ -30,15 +28,13 @@ export default {
|
|
|
30
28
|
url: 'https://github.com/xernerx/xernerx/issues',
|
|
31
29
|
},
|
|
32
30
|
dependencies: {
|
|
33
|
-
'
|
|
34
|
-
'dbl-sdk': '^1.2.0',
|
|
35
|
-
'discord.js': '^14.7.1',
|
|
31
|
+
'discord.js': '^14.9.0',
|
|
36
32
|
dumfunctions: '^2.1.2',
|
|
37
|
-
'xernerx-extension-builder': '^0.0.
|
|
38
|
-
zod: '^3.
|
|
33
|
+
'xernerx-extension-builder': '^0.0.9',
|
|
34
|
+
zod: '^3.21.4',
|
|
39
35
|
},
|
|
40
36
|
devDependencies: {
|
|
41
|
-
prettier: '^2.8.
|
|
42
|
-
typescript: '^
|
|
37
|
+
prettier: '^2.8.7',
|
|
38
|
+
typescript: '^5.0.3',
|
|
43
39
|
},
|
|
44
40
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xernerx",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "A bot framework for discord.js.",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -36,9 +36,10 @@
|
|
|
36
36
|
"url": "https://github.com/xernerx/xernerx/issues"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
+
"dbl-sdk": "^1.2.0",
|
|
39
40
|
"discord.js": "^14.9.0",
|
|
40
41
|
"dumfunctions": "^2.1.2",
|
|
41
|
-
"xernerx-extension-builder": "^0.0.
|
|
42
|
+
"xernerx-extension-builder": "^0.0.12",
|
|
42
43
|
"zod": "^3.21.4"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|