Skip to content

Commit 85cd2f4

Browse files
committed
bugs fixed!
1 parent dd63c48 commit 85cd2f4

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
import App from "./src/structures/App";
3+
import App from "./structures/App";
44
import colors from "colors";
55
import os from "os";
66
import readline from "readline";
@@ -15,7 +15,7 @@ process.on("unhandledRejection", (reason: any, p: any) => {
1515

1616
process.on("uncaughtException", (err: Error, origin: string) => {
1717
console.log(
18-
"\n\n\n\n\n\n=== uncaught Exception ===".toUpperCase().yellow.dim,
18+
"\n\n\n\n\n\n=== uncaught Exception ===".toUpperCase().yellow.dim
1919
);
2020
console.log("Exception: ", err.stack ? err.stack : err);
2121
console.log("=== uncaught Exception ===\n\n\n\n\n".toUpperCase().yellow.dim);
@@ -41,17 +41,17 @@ process.on(
4141
"multipleResolves",
4242
(type: string, promise: Promise<any>, reason: any) => {
4343
// Do something for multipleResolves event
44-
},
44+
}
4545
);
4646

4747
function getIPv4Addresses(): string | undefined {
4848
const networkInterfaces = os.networkInterfaces();
4949
let ipv4Address: string | undefined;
5050

5151
Object.keys(networkInterfaces).forEach((interfaceName) => {
52-
const interfaceInfo = networkInterfaces[interfaceName];
52+
const interfaceInfo: any = networkInterfaces[interfaceName];
5353

54-
interfaceInfo.forEach((info) => {
54+
interfaceInfo.forEach((info:any) => {
5555
if (info.family === "IPv4" && info.internal === false) {
5656
ipv4Address = info.address;
5757
}
@@ -80,8 +80,8 @@ new Promise<void>((resolve) => {
8080
value === "All"
8181
? `${value}`
8282
: `${value}:${client.config.website.port}`
83-
}`,
84-
),
83+
}`
84+
)
8585
);
8686
});
8787
console.log(colors.yellow.bold(`Or just press enter to go with env ips \n`));
@@ -103,7 +103,7 @@ new Promise<void>((resolve) => {
103103
}
104104
}
105105

106-
const allips = client.config.website.links.map((val) => {
106+
const allips = client.config.website.links.map((val:any) => {
107107
return (val = `${val}:${client.config.website.port}`);
108108
});
109109

src/structures/App.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Logger from "../utils/logger";
1616
// import { CompressionTypes, Partitioners } from "kafkajs";
1717

1818
class App {
19-
private config: any;
19+
config: any;
2020
private express: any;
2121
private routes: Map<string, any>;
2222
private logger: any;
@@ -37,7 +37,7 @@ class App {
3737
private set: any;
3838
private _router: any;
3939
private findUser: any;
40-
private connect: any;
40+
connect: any;
4141

4242
constructor() {
4343
// super();
@@ -223,4 +223,4 @@ class App {
223223
}
224224
}
225225

226-
export = App;
226+
export default App;

0 commit comments

Comments
 (0)