@sqlanvil/cli 1.29.1 → 1.31.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.
- package/bundle.js +24 -11
- package/package.json +2 -2
package/bundle.js
CHANGED
|
@@ -49696,8 +49696,8 @@ function unknownToValueShallow(raw) {
|
|
|
49696
49696
|
|
|
49697
49697
|
const nativeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : require;
|
|
49698
49698
|
function globToRegExp(pattern) {
|
|
49699
|
-
const
|
|
49700
|
-
return new RegExp(`^${
|
|
49699
|
+
const escapeLiteral = (literal) => literal.replace(/[.+?^${}()|[\]\\]/g, "\\$&");
|
|
49700
|
+
return new RegExp(`^${pattern.split("*").map(escapeLiteral).join(".*")}$`);
|
|
49701
49701
|
}
|
|
49702
49702
|
function matchPatterns(patterns, values) {
|
|
49703
49703
|
const fullyQualifiedActions = [];
|
|
@@ -51079,8 +51079,8 @@ function collectEvaluationQueries(queryOrAction, concatenate, queryModifier = (q
|
|
|
51079
51079
|
.filter(validationQuery => !!validationQuery.query);
|
|
51080
51080
|
}
|
|
51081
51081
|
|
|
51082
|
-
const version = "1.
|
|
51083
|
-
const dataformVersion = "3.0.
|
|
51082
|
+
const version = "1.31.0";
|
|
51083
|
+
const dataformVersion = "3.0.65";
|
|
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.
|
|
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
|
-
|
|
57713
|
-
|
|
57714
|
-
|
|
57715
|
-
|
|
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
|
}
|
|
@@ -59455,6 +59461,7 @@ const verboseOptionName = "verbose";
|
|
|
59455
59461
|
const dryRunOptionName = "dry-run";
|
|
59456
59462
|
const runTestsOptionName = "run-tests";
|
|
59457
59463
|
const checkOptionName = "check";
|
|
59464
|
+
const ignoreJsFilesOptionName = "ignore-js-files";
|
|
59458
59465
|
const actionRetryLimitName = "action-retry-limit";
|
|
59459
59466
|
function getCredentialsPath(projectDir, credentialsPath) {
|
|
59460
59467
|
return actuallyResolve(projectDir, credentialsPath);
|
|
@@ -60221,10 +60228,16 @@ function runCli() {
|
|
|
60221
60228
|
describe: "Check if files are formatted correctly without modifying them.",
|
|
60222
60229
|
type: "boolean",
|
|
60223
60230
|
default: false
|
|
60231
|
+
}),
|
|
60232
|
+
option(ignoreJsFilesOptionName, {
|
|
60233
|
+
describe: "If set, the formatter will not consider javascript files (.js).",
|
|
60234
|
+
type: "boolean",
|
|
60235
|
+
default: false
|
|
60224
60236
|
})
|
|
60225
60237
|
],
|
|
60226
60238
|
processFn: async (argv) => {
|
|
60227
|
-
|
|
60239
|
+
const extensions = argv[ignoreJsFilesOptionName] ? "*.sqlx" : "*.{js,sqlx}";
|
|
60240
|
+
let actions = [`{definitions,includes}/**/${extensions}`];
|
|
60228
60241
|
if (actionsOption.name in argv && argv[actionsOption.name].length > 0) {
|
|
60229
60242
|
actions = argv[actionsOption.name];
|
|
60230
60243
|
}
|
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.
|
|
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.
|
|
76
|
+
"version": "1.31.0",
|
|
77
77
|
"name": "@sqlanvil/cli",
|
|
78
78
|
"description": "sqlanvil command line interface.",
|
|
79
79
|
"main": "bundle.js"
|