adminforth 2.17.0-next.40 → 2.17.0-next.42
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/commands/callTsProxy.js
CHANGED
|
@@ -39,7 +39,8 @@ export function callTsProxy(tsCode, silent=false) {
|
|
|
39
39
|
child.on("close", (code) => {
|
|
40
40
|
if (code === 0) {
|
|
41
41
|
try {
|
|
42
|
-
const
|
|
42
|
+
const preparedStdout = stdout.slice(stdout.indexOf("{"), stdout.lastIndexOf("}") + 1);
|
|
43
|
+
const parsed = JSON.parse(preparedStdout);
|
|
43
44
|
if (!silent) {
|
|
44
45
|
parsed.capturedLogs.forEach((log) => {
|
|
45
46
|
console.log(...log);
|
|
@@ -92,6 +92,6 @@ if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
|
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
admin.express.listen(port, () => {
|
|
95
|
-
logger.info(`\x1b[38;5;249m ⚡ AdminForth is available at\x1b[1m\x1b[38;5;46m http://localhost:${port}${ADMIN_BASE_URL}\n`);
|
|
95
|
+
logger.info(`\x1b[38;5;249m ⚡ AdminForth is available at\x1b[1m\x1b[38;5;46m http://localhost:${port}${ADMIN_BASE_URL}\x1b[0m\n`);
|
|
96
96
|
});
|
|
97
97
|
}
|