@sqlanvil/cli 1.29.1 → 1.30.0

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.
Files changed (2) hide show
  1. package/bundle.js +14 -8
  2. package/package.json +2 -2
package/bundle.js CHANGED
@@ -51079,8 +51079,8 @@ function collectEvaluationQueries(queryOrAction, concatenate, queryModifier = (q
51079
51079
  .filter(validationQuery => !!validationQuery.query);
51080
51080
  }
51081
51081
 
51082
- const version = "1.29.1";
51083
- const dataformVersion = "3.0.63";
51082
+ const version = "1.30.0";
51083
+ const dataformVersion = "3.0.64";
51084
51084
 
51085
51085
  async function build(compiledGraph, runConfig, dbadapter) {
51086
51086
  const prunedGraph = prune(compiledGraph, runConfig);
@@ -51338,7 +51338,7 @@ async function compile(compileConfig = {}) {
51338
51338
  const decodedResult = decode64(sqlanvil.CoreExecutionResponse, result);
51339
51339
  compiledGraph = sqlanvil.CompiledGraph.create(decodedResult.compile.compiledGraph);
51340
51340
  if (workflowSettingsSqlanvilCoreVersion) {
51341
- fs__namespace.rmSync(temporaryProjectPath, { recursive: true });
51341
+ fs__namespace.removeSync(temporaryProjectPath);
51342
51342
  }
51343
51343
  return compiledGraph;
51344
51344
  }
@@ -57709,11 +57709,17 @@ function dotRepresentation(graph, interactive) {
57709
57709
  return `digraph {\n${nodes.join(";\n")};\n${edges.join(";\n")};\n}`;
57710
57710
  }
57711
57711
  function printExecutedActionErrors(executedAction, executionAction) {
57712
- const failingTasks = executedAction.tasks.filter(task => task.status === sqlanvil.TaskResult.ExecutionStatus.FAILED);
57713
- failingTasks.forEach((task, i) => {
57714
- executionAction.tasks[i].statement.split("\n").forEach(line => {
57715
- writeStdErr(`${DEFAULT_PROMPT}${line}`, 1);
57716
- });
57712
+ executedAction.tasks.forEach((task, i) => {
57713
+ var _a;
57714
+ if (task.status !== sqlanvil.TaskResult.ExecutionStatus.FAILED) {
57715
+ return;
57716
+ }
57717
+ const statement = (_a = executionAction.tasks[i]) === null || _a === void 0 ? void 0 : _a.statement;
57718
+ if (statement) {
57719
+ statement.split("\n").forEach(line => {
57720
+ writeStdErr(`${DEFAULT_PROMPT}${line}`, 1);
57721
+ });
57722
+ }
57717
57723
  printError(task.errorMessage, 1);
57718
57724
  });
57719
57725
  }
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "pg": "^8.11.3",
18
18
  "pg-query-stream": "^4.5.3",
19
19
  "promise-pool-executor": "^1.1.1",
20
- "protobufjs": "^7.6.3",
20
+ "protobufjs": "^7.6.5",
21
21
  "readline-sync": "^1.4.9",
22
22
  "semver": "^7.5.2",
23
23
  "tarjan-graph": "^2.0.0",
@@ -73,7 +73,7 @@
73
73
  "bin": {
74
74
  "sqlanvil": "bundle.js"
75
75
  },
76
- "version": "1.29.1",
76
+ "version": "1.30.0",
77
77
  "name": "@sqlanvil/cli",
78
78
  "description": "sqlanvil command line interface.",
79
79
  "main": "bundle.js"