@sqlanvil/cli 1.30.0 → 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.
Files changed (2) hide show
  1. package/bundle.js +12 -5
  2. package/package.json +1 -1
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 escaped = pattern.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").replace(/\\\*/g, ".*");
49700
- return new RegExp(`^${escaped}$`);
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.30.0";
51083
- const dataformVersion = "3.0.64";
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);
@@ -59461,6 +59461,7 @@ const verboseOptionName = "verbose";
59461
59461
  const dryRunOptionName = "dry-run";
59462
59462
  const runTestsOptionName = "run-tests";
59463
59463
  const checkOptionName = "check";
59464
+ const ignoreJsFilesOptionName = "ignore-js-files";
59464
59465
  const actionRetryLimitName = "action-retry-limit";
59465
59466
  function getCredentialsPath(projectDir, credentialsPath) {
59466
59467
  return actuallyResolve(projectDir, credentialsPath);
@@ -60227,10 +60228,16 @@ function runCli() {
60227
60228
  describe: "Check if files are formatted correctly without modifying them.",
60228
60229
  type: "boolean",
60229
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
60230
60236
  })
60231
60237
  ],
60232
60238
  processFn: async (argv) => {
60233
- let actions = ["{definitions,includes}/**/*.{js,sqlx}"];
60239
+ const extensions = argv[ignoreJsFilesOptionName] ? "*.sqlx" : "*.{js,sqlx}";
60240
+ let actions = [`{definitions,includes}/**/${extensions}`];
60234
60241
  if (actionsOption.name in argv && argv[actionsOption.name].length > 0) {
60235
60242
  actions = argv[actionsOption.name];
60236
60243
  }
package/package.json CHANGED
@@ -73,7 +73,7 @@
73
73
  "bin": {
74
74
  "sqlanvil": "bundle.js"
75
75
  },
76
- "version": "1.30.0",
76
+ "version": "1.31.0",
77
77
  "name": "@sqlanvil/cli",
78
78
  "description": "sqlanvil command line interface.",
79
79
  "main": "bundle.js"