seedcord 0.19.3 → 0.19.4
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/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as SEEDCORD_CONFIG_FILENAMES, t as version } from "./src-
|
|
1
|
+
import { n as SEEDCORD_CONFIG_FILENAMES, t as version } from "./src-D64b48Ng.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { Command } from "@commander-js/extra-typings";
|
|
4
4
|
import { LEVEL_COLOR, Logger, LoggerChannelRegistry } from "@seedcord/logger";
|
|
@@ -813,13 +813,14 @@ var CodegenRunner = class CodegenRunner {
|
|
|
813
813
|
}
|
|
814
814
|
commandJsonOf(exported, sourceFile) {
|
|
815
815
|
if (!isCommandClass(exported)) return void 0;
|
|
816
|
+
const Command = exported;
|
|
816
817
|
let json;
|
|
817
818
|
try {
|
|
818
|
-
json = new
|
|
819
|
+
json = new Command().component.toJSON();
|
|
819
820
|
} catch (error) {
|
|
820
821
|
const reason = Error.isError(error) ? error.message : "Unknown error";
|
|
821
822
|
throw new SeedcordError(SeedcordErrorCode.CliCodegenCommandConstructorThrew, [
|
|
822
|
-
|
|
823
|
+
Command.name,
|
|
823
824
|
sourceFile,
|
|
824
825
|
reason
|
|
825
826
|
]);
|
|
@@ -3735,7 +3736,9 @@ var TunnelRouter = class {
|
|
|
3735
3736
|
stop() {
|
|
3736
3737
|
const running = this.coordinator;
|
|
3737
3738
|
this.coordinator = void 0;
|
|
3738
|
-
return running?.stop()
|
|
3739
|
+
return running?.stop().catch((error) => {
|
|
3740
|
+
this.logger.warn("Could not stop the tunnel", error);
|
|
3741
|
+
}) ?? Promise.resolve();
|
|
3739
3742
|
}
|
|
3740
3743
|
};
|
|
3741
3744
|
|