@dbx-app/cli 0.4.4 → 0.4.5
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.js +2 -3
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { readFile } from "node:fs/promises";
|
|
3
|
-
import {
|
|
4
|
-
import { buildSchemaContext, createBackend, DIRECT_QUERY_TYPES, BRIDGE_REQUIRED_TYPES, evaluateSqlSafety, formatSchemaContext, getDbxDiagnostics, postBridge, sqlSafetyFromEnv, } from "@dbx-app/node-core";
|
|
3
|
+
import { buildSchemaContext, createBackend, DIRECT_QUERY_TYPES, BRIDGE_REQUIRED_TYPES, evaluateSqlSafety, formatSchemaContext, getDbxDiagnostics, isMainModule, postBridge, sqlSafetyFromEnv, } from "@dbx-app/node-core";
|
|
5
4
|
import { connectionSummary, csvTable, errorPayload, formatCell, formatErrorMessage, mdTable } from "./cli-format.js";
|
|
6
5
|
class CliError extends Error {
|
|
7
6
|
code;
|
|
@@ -342,7 +341,7 @@ async function main() {
|
|
|
342
341
|
process.stderr.write(result.stderr);
|
|
343
342
|
process.exitCode = result.exitCode;
|
|
344
343
|
}
|
|
345
|
-
if (
|
|
344
|
+
if (isMainModule(import.meta.url, process.argv[1])) {
|
|
346
345
|
main().catch((error) => {
|
|
347
346
|
console.error(error instanceof Error ? error.message : String(error));
|
|
348
347
|
process.exitCode = 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dbx-app/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Command line interface for DBX database connections, schema, and safe queries",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/t8y2/dbx/tree/main/packages/cli",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@dbx-app/node-core": "^0.4.
|
|
34
|
+
"@dbx-app/node-core": "^0.4.5"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^22.15.21",
|