@dbml/cli 8.0.0-alpha.1 → 8.0.0-alpha.2

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/lib/index.js CHANGED
@@ -36,7 +36,7 @@ let __dbml_parse = require("@dbml/parse");
36
36
  let node_fs = require("node:fs");
37
37
  const $schema = "https://json.schemastore.org/package";
38
38
  const name = "@dbml/cli";
39
- const version = "8.0.0-alpha.1";
39
+ const version = "8.0.0-alpha.2";
40
40
  const description = "";
41
41
  const main = "lib/index.js";
42
42
  const license = "Apache-2.0";
@@ -75,7 +75,7 @@ const dependencies = {
75
75
  "strip-ansi": "^5.2.0",
76
76
  "winston": "^3.2.1"
77
77
  };
78
- const gitHead = "9c741ec1eb685be6f319c263a9a86628b241b2c4";
78
+ const gitHead = "7cc75b05117e6de49330daa327e86f2b32e28978";
79
79
  const engines = { "node": ">=18" };
80
80
  var package_default = {
81
81
  $schema,
@@ -104,7 +104,7 @@ var consoleFormat = printf((info) => {
104
104
  });
105
105
  var fileFormat = printf((info) => {
106
106
  const { timestamp: ts, stack, rootError } = info;
107
- let logContent = `${ts}\n${stack}\n`;
107
+ let logContent = `${ts}\n${stack ?? info}\n`;
108
108
  if (rootError) {
109
109
  logContent += "\nROOT_ERROR:";
110
110
  logContent += `\n${rootError.stack}`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@dbml/cli",
4
- "version": "8.0.0-alpha.1",
4
+ "version": "8.0.0-alpha.2",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "license": "Apache-2.0",
@@ -45,7 +45,7 @@
45
45
  "strip-ansi": "^5.2.0",
46
46
  "winston": "^3.2.1"
47
47
  },
48
- "gitHead": "9c741ec1eb685be6f319c263a9a86628b241b2c4",
48
+ "gitHead": "7cc75b05117e6de49330daa327e86f2b32e28978",
49
49
  "engines": {
50
50
  "node": ">=18"
51
51
  }
@@ -37,6 +37,6 @@ export default async function connectionHandler (program: Command) {
37
37
  console.log(` ${chalk.green(figures.main.tick)} Generated DBML file from database's connection: ${path.basename(opts.outFile)}`);
38
38
  }
39
39
  } catch (error) {
40
- logger.error(error);
40
+ logger.error(error as Error | string);
41
41
  }
42
42
  }
@@ -22,7 +22,7 @@ const fileFormat = printf((info) => {
22
22
  const {
23
23
  timestamp: ts, stack, rootError,
24
24
  } = info as any;
25
- let logContent = `${ts}\n${stack}\n`;
25
+ let logContent = `${ts}\n${stack ?? info}\n`;
26
26
  if (rootError) {
27
27
  logContent += '\nROOT_ERROR:';
28
28
  logContent += `\n${rootError.stack}`;
@@ -69,7 +69,7 @@ const logger = {
69
69
  consoleLogger.warn(msg);
70
70
  },
71
71
 
72
- error (msg: any) {
72
+ error (msg: Error | string) {
73
73
  consoleLogger.error(msg);
74
74
  fileLogger.error(msg);
75
75
  },