yamchart 0.5.3 → 0.5.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.
@@ -13748,9 +13748,25 @@ async function createServer(options) {
13748
13748
  version: VERSION,
13749
13749
  project: configLoader.getProject().name,
13750
13750
  environment: process.env.NODE_ENV || "development",
13751
- connection: currentConnection ? buildConnectionInfo(currentConnection) : void 0
13751
+ connection: currentConnection ? buildConnectionInfo(currentConnection) : void 0,
13752
+ connectionStatus: connector.isConnected() ? "connected" : "disconnected",
13753
+ authType: defaultConnection.type === "snowflake" && defaultConnection.auth ? defaultConnection.auth.type : void 0
13752
13754
  };
13753
13755
  });
13756
+ fastify.post("/api/connections/reconnect", async (_request2, reply) => {
13757
+ try {
13758
+ try {
13759
+ await connector.disconnect();
13760
+ } catch {
13761
+ }
13762
+ await connector.connect();
13763
+ return { success: true };
13764
+ } catch (err) {
13765
+ return reply.status(500).send({
13766
+ error: err instanceof Error ? err.message : "Reconnection failed"
13767
+ });
13768
+ }
13769
+ });
13754
13770
  if (authDb) {
13755
13771
  const secureCookies = process.env.NODE_ENV === "production";
13756
13772
  const sessionTtlMs = options.localAuth.sessionTtlMs;
@@ -14007,4 +14023,4 @@ async function runDevServer(projectDir, options) {
14007
14023
  export {
14008
14024
  runDevServer
14009
14025
  };
14010
- //# sourceMappingURL=dev-7SWSX2X7.js.map
14026
+ //# sourceMappingURL=dev-37GFXLDB.js.map