sql-typechecker 0.0.128 → 0.0.130

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/out/cli.js CHANGED
@@ -1,17 +1,12 @@
1
1
  #!/usr/bin/env node
2
+ "use strict";
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __getProtoOf = Object.getPrototypeOf;
7
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
- }) : x)(function(x) {
11
- if (typeof require !== "undefined") return require.apply(this, arguments);
12
- throw Error('Dynamic require of "' + x + '" is not supported');
13
- });
14
- var __commonJS = (cb, mod) => function __require2() {
9
+ var __commonJS = (cb, mod) => function __require() {
15
10
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
11
  };
17
12
  var __copyProps = (to, from, except, desc) => {
@@ -73,7 +68,7 @@ var require_doc = __commonJS({
73
68
  })(function() {
74
69
  "use strict";
75
70
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
76
- var __commonJS2 = (cb, mod) => function __require2() {
71
+ var __commonJS2 = (cb, mod) => function __require() {
77
72
  return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
78
73
  };
79
74
  var require_doc_js_umd = __commonJS2({
@@ -87,7 +82,7 @@ var require_doc = __commonJS({
87
82
  var __esm = (fn, res) => function __init() {
88
83
  return fn && (res = (0, fn[__getOwnPropNames22(fn)[0]])(fn = 0)), res;
89
84
  };
90
- var __commonJS22 = (cb, mod) => function __require2() {
85
+ var __commonJS22 = (cb, mod) => function __require() {
91
86
  return mod || (0, cb[__getOwnPropNames22(cb)[0]])((mod = {
92
87
  exports: {}
93
88
  }).exports, mod), mod.exports;
@@ -1452,7 +1447,7 @@ var require_third_party = __commonJS({
1452
1447
  "node_modules/prettier/third-party.js"(exports2, module2) {
1453
1448
  "use strict";
1454
1449
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
1455
- var __commonJS2 = (cb, mod) => function __require2() {
1450
+ var __commonJS2 = (cb, mod) => function __require() {
1456
1451
  return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = {
1457
1452
  exports: {}
1458
1453
  }).exports, mod), mod.exports;
@@ -1460,9 +1455,9 @@ var require_third_party = __commonJS({
1460
1455
  var require_resolve_from = __commonJS2({
1461
1456
  "node_modules/import-fresh/node_modules/resolve-from/index.js"(exports22, module22) {
1462
1457
  "use strict";
1463
- var path2 = __require("path");
1464
- var Module = __require("module");
1465
- var fs2 = __require("fs");
1458
+ var path2 = require("path");
1459
+ var Module = require("module");
1460
+ var fs2 = require("fs");
1466
1461
  var resolveFrom = (fromDir, moduleId, silent) => {
1467
1462
  if (typeof fromDir !== "string") {
1468
1463
  throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
@@ -1509,7 +1504,7 @@ var require_third_party = __commonJS({
1509
1504
  var require_import_fresh = __commonJS2({
1510
1505
  "node_modules/import-fresh/index.js"(exports22, module22) {
1511
1506
  "use strict";
1512
- var path2 = __require("path");
1507
+ var path2 = require("path");
1513
1508
  var resolveFrom = require_resolve_from();
1514
1509
  var parentModule = require_parent_module();
1515
1510
  module22.exports = (moduleId) => {
@@ -1519,7 +1514,7 @@ var require_third_party = __commonJS({
1519
1514
  const parentPath = parentModule(__filename);
1520
1515
  const cwd = parentPath ? path2.dirname(parentPath) : __dirname;
1521
1516
  const filePath = resolveFrom(cwd, moduleId);
1522
- const oldModule = __require.cache[filePath];
1517
+ const oldModule = require.cache[filePath];
1523
1518
  if (oldModule && oldModule.parent) {
1524
1519
  let i = oldModule.parent.children.length;
1525
1520
  while (i--) {
@@ -1528,9 +1523,9 @@ var require_third_party = __commonJS({
1528
1523
  }
1529
1524
  }
1530
1525
  }
1531
- delete __require.cache[filePath];
1532
- const parent = __require.cache[parentPath];
1533
- return parent === void 0 ? __require(filePath) : parent.require(filePath);
1526
+ delete require.cache[filePath];
1527
+ const parent = require.cache[parentPath];
1528
+ return parent === void 0 ? require(filePath) : parent.require(filePath);
1534
1529
  };
1535
1530
  }
1536
1531
  });
@@ -1548,7 +1543,7 @@ var require_third_party = __commonJS({
1548
1543
  var require_error_ex = __commonJS2({
1549
1544
  "node_modules/error-ex/index.js"(exports22, module22) {
1550
1545
  "use strict";
1551
- var util = __require("util");
1546
+ var util = require("util");
1552
1547
  var isArrayish = require_is_arrayish();
1553
1548
  var errorEx = function errorEx2(name, properties) {
1554
1549
  if (!name || name.constructor !== String) {
@@ -3217,7 +3212,7 @@ var require_third_party = __commonJS({
3217
3212
  var require_supports_color = __commonJS2({
3218
3213
  "node_modules/@babel/highlight/node_modules/supports-color/index.js"(exports22, module22) {
3219
3214
  "use strict";
3220
- var os = __require("os");
3215
+ var os = require("os");
3221
3216
  var hasFlag = require_has_flag();
3222
3217
  var env = process.env;
3223
3218
  var forceColor;
@@ -9567,7 +9562,7 @@ ${error.message}`;
9567
9562
  });
9568
9563
  exports22.getExtensionDescription = getExtensionDescription;
9569
9564
  exports22.ExplorerBase = void 0;
9570
- var _path = _interopRequireDefault(__require("path"));
9565
+ var _path = _interopRequireDefault(require("path"));
9571
9566
  var _loaders = require_loaders();
9572
9567
  var _getPropertyByPath = require_getPropertyByPath();
9573
9568
  function _interopRequireDefault(obj) {
@@ -9685,7 +9680,7 @@ ${error.message}`;
9685
9680
  });
9686
9681
  exports22.readFile = readFile2;
9687
9682
  exports22.readFileSync = readFileSync;
9688
- var _fs = _interopRequireDefault(__require("fs"));
9683
+ var _fs = _interopRequireDefault(require("fs"));
9689
9684
  function _interopRequireDefault(obj) {
9690
9685
  return obj && obj.__esModule ? obj : {
9691
9686
  default: obj
@@ -9761,8 +9756,8 @@ ${error.message}`;
9761
9756
  "use strict";
9762
9757
  var {
9763
9758
  promisify
9764
- } = __require("util");
9765
- var fs2 = __require("fs");
9759
+ } = require("util");
9760
+ var fs2 = require("fs");
9766
9761
  async function isType(fsStatType, statsMethodName, filePath) {
9767
9762
  if (typeof filePath !== "string") {
9768
9763
  throw new TypeError(`Expected a string, got ${typeof filePath}`);
@@ -9806,7 +9801,7 @@ ${error.message}`;
9806
9801
  });
9807
9802
  exports22.getDirectory = getDirectory;
9808
9803
  exports22.getDirectorySync = getDirectorySync;
9809
- var _path = _interopRequireDefault(__require("path"));
9804
+ var _path = _interopRequireDefault(require("path"));
9810
9805
  var _pathType = require_path_type();
9811
9806
  function _interopRequireDefault(obj) {
9812
9807
  return obj && obj.__esModule ? obj : {
@@ -9838,7 +9833,7 @@ ${error.message}`;
9838
9833
  value: true
9839
9834
  });
9840
9835
  exports22.Explorer = void 0;
9841
- var _path = _interopRequireDefault(__require("path"));
9836
+ var _path = _interopRequireDefault(require("path"));
9842
9837
  var _ExplorerBase = require_ExplorerBase();
9843
9838
  var _readFile = require_readFile();
9844
9839
  var _cacheWrapper = require_cacheWrapper();
@@ -9931,7 +9926,7 @@ ${error.message}`;
9931
9926
  value: true
9932
9927
  });
9933
9928
  exports22.ExplorerSync = void 0;
9934
- var _path = _interopRequireDefault(__require("path"));
9929
+ var _path = _interopRequireDefault(require("path"));
9935
9930
  var _ExplorerBase = require_ExplorerBase();
9936
9931
  var _readFile = require_readFile();
9937
9932
  var _cacheWrapper = require_cacheWrapper();
@@ -10034,7 +10029,7 @@ ${error.message}`;
10034
10029
  exports22.cosmiconfig = cosmiconfig;
10035
10030
  exports22.cosmiconfigSync = cosmiconfigSync;
10036
10031
  exports22.defaultLoaders = void 0;
10037
- var _os = _interopRequireDefault(__require("os"));
10032
+ var _os = _interopRequireDefault(require("os"));
10038
10033
  var _Explorer = require_Explorer();
10039
10034
  var _ExplorerSync = require_ExplorerSync();
10040
10035
  var _loaders = require_loaders();
@@ -10098,8 +10093,8 @@ ${error.message}`;
10098
10093
  var require_find_parent_dir = __commonJS2({
10099
10094
  "node_modules/find-parent-dir/index.js"(exports22, module22) {
10100
10095
  "use strict";
10101
- var path2 = __require("path");
10102
- var fs2 = __require("fs");
10096
+ var path2 = require("path");
10097
+ var fs2 = require("fs");
10103
10098
  var exists = fs2.exists || path2.exists;
10104
10099
  var existsSync = fs2.existsSync || path2.existsSync;
10105
10100
  function splitPath(path22) {
@@ -174395,7 +174390,7 @@ var require_prettier = __commonJS({
174395
174390
  "node_modules/prettier/index.js"(exports2, module2) {
174396
174391
  "use strict";
174397
174392
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
174398
- var __commonJS2 = (cb, mod) => function __require2() {
174393
+ var __commonJS2 = (cb, mod) => function __require() {
174399
174394
  return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
174400
174395
  };
174401
174396
  var require_global = __commonJS2({
@@ -175793,7 +175788,7 @@ var require_prettier = __commonJS({
175793
175788
  var __esm = (fn, res) => function __init() {
175794
175789
  return fn && (res = (0, fn[__getOwnPropNames22(fn)[0]])(fn = 0)), res;
175795
175790
  };
175796
- var __commonJS22 = (cb, mod) => function __require2() {
175791
+ var __commonJS22 = (cb, mod) => function __require() {
175797
175792
  return mod || (0, cb[__getOwnPropNames22(cb)[0]])((mod = {
175798
175793
  exports: {}
175799
175794
  }).exports, mod), mod.exports;
@@ -179214,7 +179209,7 @@ var require_prettier = __commonJS({
179214
179209
  var require_supports_color = __commonJS22({
179215
179210
  "node_modules/vnopts/node_modules/supports-color/index.js"(exports22, module22) {
179216
179211
  "use strict";
179217
- var os = __require("os");
179212
+ var os = require("os");
179218
179213
  var hasFlag = require_has_flag();
179219
179214
  var env = process.env;
179220
179215
  var forceColor;
@@ -180648,7 +180643,7 @@ var require_prettier = __commonJS({
180648
180643
  var require_load_parser = __commonJS22({
180649
180644
  "src/main/load-parser.js"(exports22, module22) {
180650
180645
  "use strict";
180651
- var path2 = __require("path");
180646
+ var path2 = require("path");
180652
180647
  var {
180653
180648
  ConfigError
180654
180649
  } = require_errors();
@@ -180659,7 +180654,7 @@ var require_prettier = __commonJS({
180659
180654
  function requireParser(parser) {
180660
180655
  try {
180661
180656
  return {
180662
- parse: __require(path2.resolve(process.cwd(), parser)),
180657
+ parse: require(path2.resolve(process.cwd(), parser)),
180663
180658
  astFormat: "estree",
180664
180659
  locStart,
180665
180660
  locEnd
@@ -180907,7 +180902,7 @@ var require_prettier = __commonJS({
180907
180902
  var require_supports_color2 = __commonJS22({
180908
180903
  "node_modules/@babel/highlight/node_modules/supports-color/index.js"(exports22, module22) {
180909
180904
  "use strict";
180910
- var os = __require("os");
180905
+ var os = require("os");
180911
180906
  var hasFlag = require_has_flag2();
180912
180907
  var env = process.env;
180913
180908
  var forceColor;
@@ -181592,7 +181587,7 @@ ${frame}`;
181592
181587
  var require_readlines = __commonJS22({
181593
181588
  "node_modules/n-readlines/readlines.js"(exports22, module22) {
181594
181589
  "use strict";
181595
- var fs2 = __require("fs");
181590
+ var fs2 = require("fs");
181596
181591
  var LineByLine = class {
181597
181592
  constructor(file, options) {
181598
181593
  options = options || {};
@@ -181713,7 +181708,7 @@ ${frame}`;
181713
181708
  var require_get_interpreter = __commonJS22({
181714
181709
  "src/utils/get-interpreter.js"(exports22, module22) {
181715
181710
  "use strict";
181716
- var fs2 = __require("fs");
181711
+ var fs2 = require("fs");
181717
181712
  var readlines = require_readlines();
181718
181713
  function getInterpreter(filepath) {
181719
181714
  if (typeof filepath !== "string") {
@@ -181752,7 +181747,7 @@ ${frame}`;
181752
181747
  var require_options = __commonJS22({
181753
181748
  "src/main/options.js"(exports22, module22) {
181754
181749
  "use strict";
181755
- var path2 = __require("path");
181750
+ var path2 = require("path");
181756
181751
  var {
181757
181752
  UndefinedParserError
181758
181753
  } = require_errors();
@@ -181886,7 +181881,7 @@ ${frame}`;
181886
181881
  var require_comments = __commonJS22({
181887
181882
  "src/main/comments.js"(exports22, module22) {
181888
181883
  "use strict";
181889
- var assert2 = __require("assert");
181884
+ var assert2 = require("assert");
181890
181885
  var {
181891
181886
  builders: {
181892
181887
  line,
@@ -182664,7 +182659,7 @@ ${frame}`;
182664
182659
  var require_range_util = __commonJS22({
182665
182660
  "src/main/range-util.js"(exports22, module22) {
182666
182661
  "use strict";
182667
- var assert2 = __require("assert");
182662
+ var assert2 = require("assert");
182668
182663
  var comments = require_comments();
182669
182664
  var isJsonParser = ({
182670
182665
  parser
@@ -183470,7 +183465,7 @@ ${frame}`;
183470
183465
  var require_fill_range = __commonJS22({
183471
183466
  "node_modules/fill-range/index.js"(exports22, module22) {
183472
183467
  "use strict";
183473
- var util = __require("util");
183468
+ var util = require("util");
183474
183469
  var toRegexRange = require_to_regex_range();
183475
183470
  var isObject2 = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
183476
183471
  var transform = (toNumber2) => {
@@ -184232,7 +184227,7 @@ ${frame}`;
184232
184227
  var require_constants3 = __commonJS22({
184233
184228
  "node_modules/picomatch/lib/constants.js"(exports22, module22) {
184234
184229
  "use strict";
184235
- var path2 = __require("path");
184230
+ var path2 = require("path");
184236
184231
  var WIN_SLASH = "\\\\/";
184237
184232
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
184238
184233
  var DOT_LITERAL = "\\.";
@@ -184392,7 +184387,7 @@ ${frame}`;
184392
184387
  var require_utils3 = __commonJS22({
184393
184388
  "node_modules/picomatch/lib/utils.js"(exports22) {
184394
184389
  "use strict";
184395
- var path2 = __require("path");
184390
+ var path2 = require("path");
184396
184391
  var win32 = process.platform === "win32";
184397
184392
  var {
184398
184393
  REGEX_BACKSLASH,
@@ -185699,7 +185694,7 @@ ${frame}`;
185699
185694
  var require_picomatch = __commonJS22({
185700
185695
  "node_modules/picomatch/lib/picomatch.js"(exports22, module22) {
185701
185696
  "use strict";
185702
- var path2 = __require("path");
185697
+ var path2 = require("path");
185703
185698
  var scan = require_scan();
185704
185699
  var parse4 = require_parse2();
185705
185700
  var utils = require_utils3();
@@ -185882,7 +185877,7 @@ ${frame}`;
185882
185877
  var require_micromatch = __commonJS22({
185883
185878
  "node_modules/micromatch/index.js"(exports22, module22) {
185884
185879
  "use strict";
185885
- var util = __require("util");
185880
+ var util = require("util");
185886
185881
  var braces = require_braces();
185887
185882
  var picomatch = require_picomatch2();
185888
185883
  var utils = require_utils3();
@@ -186452,7 +186447,7 @@ ${frame}`;
186452
186447
  }
186453
186448
  var _custom;
186454
186449
  try {
186455
- const utilInspect = __require("util").inspect;
186450
+ const utilInspect = require("util").inspect;
186456
186451
  _custom = utilInspect.custom;
186457
186452
  } catch (_) {
186458
186453
  }
@@ -188796,7 +188791,7 @@ ${error.message}`;
188796
188791
  var require_homedir = __commonJS22({
188797
188792
  "node_modules/resolve/lib/homedir.js"(exports22, module22) {
188798
188793
  "use strict";
188799
- var os = __require("os");
188794
+ var os = require("os");
188800
188795
  module22.exports = os.homedir || function homedir() {
188801
188796
  var home = process.env.HOME;
188802
188797
  var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME;
@@ -188882,7 +188877,7 @@ ${error.message}`;
188882
188877
  });
188883
188878
  var require_node_modules_paths = __commonJS22({
188884
188879
  "node_modules/resolve/lib/node-modules-paths.js"(exports22, module22) {
188885
- var path2 = __require("path");
188880
+ var path2 = require("path");
188886
188881
  var parse4 = path2.parse || require_path_parse();
188887
188882
  var getNodeModulesDirs = function getNodeModulesDirs2(absoluteStart, modules) {
188888
188883
  var prefix = "/";
@@ -189197,9 +189192,9 @@ ${error.message}`;
189197
189192
  });
189198
189193
  var require_async = __commonJS22({
189199
189194
  "node_modules/resolve/lib/async.js"(exports22, module22) {
189200
- var fs2 = __require("fs");
189195
+ var fs2 = require("fs");
189201
189196
  var getHomedir = require_homedir();
189202
- var path2 = __require("path");
189197
+ var path2 = require("path");
189203
189198
  var caller = require_caller();
189204
189199
  var nodeModulesPaths = require_node_modules_paths();
189205
189200
  var normalizeOptions = require_normalize_options();
@@ -189742,8 +189737,8 @@ ${error.message}`;
189742
189737
  var require_sync = __commonJS22({
189743
189738
  "node_modules/resolve/lib/sync.js"(exports22, module22) {
189744
189739
  var isCore = require_is_core_module();
189745
- var fs2 = __require("fs");
189746
- var path2 = __require("path");
189740
+ var fs2 = require("fs");
189741
+ var path2 = require("path");
189747
189742
  var getHomedir = require_homedir();
189748
189743
  var caller = require_caller();
189749
189744
  var nodeModulesPaths = require_node_modules_paths();
@@ -189951,7 +189946,7 @@ ${error.message}`;
189951
189946
  "use strict";
189952
189947
  var {
189953
189948
  resolve: resolve2
189954
- } = __require;
189949
+ } = require;
189955
189950
  if (resolve2.length === 1 || process.env.PRETTIER_FALLBACK_RESOLVE) {
189956
189951
  resolve2 = (id, options) => {
189957
189952
  let basedir;
@@ -190646,7 +190641,7 @@ ${fromBody}`;
190646
190641
  "use strict";
190647
190642
  module22.exports = LRUCache;
190648
190643
  var Map22 = require_map();
190649
- var util = __require("util");
190644
+ var util = require("util");
190650
190645
  var Yallist = require_yallist();
190651
190646
  var hasSymbol = typeof Symbol === "function" && process.env._nodeLRUCacheForceNoSymbol !== "1";
190652
190647
  var makeSymbol;
@@ -191090,7 +191085,7 @@ ${fromBody}`;
191090
191085
  });
191091
191086
  var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
191092
191087
  var sigmund = require_sigmund();
191093
- var path2 = __require("path");
191088
+ var path2 = require("path");
191094
191089
  var qmark = "[^/]";
191095
191090
  var star2 = qmark + "*?";
191096
191091
  var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
@@ -191832,7 +191827,7 @@ ${fromBody}`;
191832
191827
  Object.defineProperty(exports22, "__esModule", {
191833
191828
  value: true
191834
191829
  });
191835
- var fs2 = __importStar2(__require("fs"));
191830
+ var fs2 = __importStar2(require("fs"));
191836
191831
  var regex = {
191837
191832
  section: /^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$/,
191838
191833
  param: /^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$/,
@@ -192077,8 +192072,8 @@ ${fromBody}`;
192077
192072
  Object.defineProperty(exports22, "__esModule", {
192078
192073
  value: true
192079
192074
  });
192080
- var fs2 = __importStar2(__require("fs"));
192081
- var path2 = __importStar2(__require("path"));
192075
+ var fs2 = __importStar2(require("fs"));
192076
+ var path2 = __importStar2(require("path"));
192082
192077
  var semver = {
192083
192078
  gte: require_gte()
192084
192079
  };
@@ -192356,8 +192351,8 @@ ${fromBody}`;
192356
192351
  var require_find_project_root = __commonJS22({
192357
192352
  "src/config/find-project-root.js"(exports22, module22) {
192358
192353
  "use strict";
192359
- var fs2 = __require("fs");
192360
- var path2 = __require("path");
192354
+ var fs2 = require("fs");
192355
+ var path2 = require("path");
192361
192356
  var MARKERS = [".git", ".hg"];
192362
192357
  var markerExists = (directory) => MARKERS.some((mark) => fs2.existsSync(path2.join(directory, mark)));
192363
192358
  function findProjectRoot(directory) {
@@ -192376,7 +192371,7 @@ ${fromBody}`;
192376
192371
  var require_resolve_config_editorconfig = __commonJS22({
192377
192372
  "src/config/resolve-config-editorconfig.js"(exports22, module22) {
192378
192373
  "use strict";
192379
- var path2 = __require("path");
192374
+ var path2 = require("path");
192380
192375
  var editorconfig = require_src2();
192381
192376
  var editorConfigToPrettier = require_editorconfig_to_prettier();
192382
192377
  var {
@@ -192416,7 +192411,7 @@ ${fromBody}`;
192416
192411
  var require_resolve_config = __commonJS22({
192417
192412
  "src/config/resolve-config.js"(exports22, module22) {
192418
192413
  "use strict";
192419
- var path2 = __require("path");
192414
+ var path2 = require("path");
192420
192415
  var micromatch = require_micromatch();
192421
192416
  var thirdParty = require_third_party();
192422
192417
  var loadToml = require_load_toml();
@@ -192439,7 +192434,7 @@ ${fromBody}`;
192439
192434
  const modulePath = resolve2(result.config, {
192440
192435
  paths: [dir]
192441
192436
  });
192442
- result.config = __require(modulePath);
192437
+ result.config = require(modulePath);
192443
192438
  }
192444
192439
  if (typeof result.config !== "object") {
192445
192440
  throw new TypeError(`Config is only allowed to be an object, but received ${typeof result.config} in "${result.filepath}"`);
@@ -192751,7 +192746,7 @@ ${fromBody}`;
192751
192746
  var require_get_file_content_or_null = __commonJS22({
192752
192747
  "src/utils/get-file-content-or-null.js"(exports22, module22) {
192753
192748
  "use strict";
192754
- var fs2 = __require("fs");
192749
+ var fs2 = require("fs");
192755
192750
  var fsAsync = fs2.promises;
192756
192751
  async function getFileContentOrNull(filename) {
192757
192752
  try {
@@ -192779,7 +192774,7 @@ ${fromBody}`;
192779
192774
  var require_create_ignorer = __commonJS22({
192780
192775
  "src/common/create-ignorer.js"(exports22, module22) {
192781
192776
  "use strict";
192782
- var path2 = __require("path");
192777
+ var path2 = require("path");
192783
192778
  var ignore = require_ignore().default;
192784
192779
  var getFileContentOrNull = require_get_file_content_or_null();
192785
192780
  async function createIgnorer(ignorePath, withNodeModules) {
@@ -192805,7 +192800,7 @@ ${fromBody}`;
192805
192800
  var require_get_file_info = __commonJS22({
192806
192801
  "src/common/get-file-info.js"(exports22, module22) {
192807
192802
  "use strict";
192808
- var path2 = __require("path");
192803
+ var path2 = require("path");
192809
192804
  var options = require_options();
192810
192805
  var config2 = require_resolve_config();
192811
192806
  var createIgnorer = require_create_ignorer();
@@ -193010,7 +193005,7 @@ ${fromBody}`;
193010
193005
  value: true
193011
193006
  });
193012
193007
  exports22.removeLeadingDotSegment = exports22.escape = exports22.makeAbsolute = exports22.unixify = void 0;
193013
- var path2 = __require("path");
193008
+ var path2 = require("path");
193014
193009
  var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
193015
193010
  var UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
193016
193011
  function unixify(filepath) {
@@ -193190,8 +193185,8 @@ ${fromBody}`;
193190
193185
  "node_modules/glob-parent/index.js"(exports22, module22) {
193191
193186
  "use strict";
193192
193187
  var isGlob = require_is_glob();
193193
- var pathPosixDirname = __require("path").posix.dirname;
193194
- var isWin32 = __require("os").platform() === "win32";
193188
+ var pathPosixDirname = require("path").posix.dirname;
193189
+ var isWin32 = require("os").platform() === "win32";
193195
193190
  var slash = "/";
193196
193191
  var backslash = /\\/g;
193197
193192
  var enclosure = /[\{\[].*[\}\]]$/;
@@ -193222,7 +193217,7 @@ ${fromBody}`;
193222
193217
  value: true
193223
193218
  });
193224
193219
  exports22.matchAny = exports22.convertPatternsToRe = exports22.makeRe = exports22.getPatternParts = exports22.expandBraceExpansion = exports22.expandPatternsWithBraceExpansion = exports22.isAffectDepthOfReadingPattern = exports22.endsWithSlashGlobStar = exports22.hasGlobStar = exports22.getBaseDirectory = exports22.isPatternRelatedToParentDirectory = exports22.getPatternsOutsideCurrentDirectory = exports22.getPatternsInsideCurrentDirectory = exports22.getPositivePatterns = exports22.getNegativePatterns = exports22.isPositivePattern = exports22.isNegativePattern = exports22.convertToNegativePattern = exports22.convertToPositivePattern = exports22.isDynamicPattern = exports22.isStaticPattern = void 0;
193225
- var path2 = __require("path");
193220
+ var path2 = require("path");
193226
193221
  var globParent = require_glob_parent();
193227
193222
  var micromatch = require_micromatch();
193228
193223
  var GLOBSTAR = "**";
@@ -193368,7 +193363,7 @@ ${fromBody}`;
193368
193363
  var require_merge2 = __commonJS22({
193369
193364
  "node_modules/merge2/index.js"(exports22, module22) {
193370
193365
  "use strict";
193371
- var Stream = __require("stream");
193366
+ var Stream = require("stream");
193372
193367
  var PassThrough = Stream.PassThrough;
193373
193368
  var slice = Array.prototype.slice;
193374
193369
  module22.exports = merge2;
@@ -193716,7 +193711,7 @@ ${fromBody}`;
193716
193711
  value: true
193717
193712
  });
193718
193713
  exports22.createFileSystemAdapter = exports22.FILE_SYSTEM_ADAPTER = void 0;
193719
- var fs2 = __require("fs");
193714
+ var fs2 = require("fs");
193720
193715
  exports22.FILE_SYSTEM_ADAPTER = {
193721
193716
  lstat: fs2.lstat,
193722
193717
  stat: fs2.stat,
@@ -194097,7 +194092,7 @@ ${fromBody}`;
194097
194092
  value: true
194098
194093
  });
194099
194094
  exports22.createFileSystemAdapter = exports22.FILE_SYSTEM_ADAPTER = void 0;
194100
- var fs2 = __require("fs");
194095
+ var fs2 = require("fs");
194101
194096
  exports22.FILE_SYSTEM_ADAPTER = {
194102
194097
  lstat: fs2.lstat,
194103
194098
  stat: fs2.stat,
@@ -194121,7 +194116,7 @@ ${fromBody}`;
194121
194116
  Object.defineProperty(exports22, "__esModule", {
194122
194117
  value: true
194123
194118
  });
194124
- var path2 = __require("path");
194119
+ var path2 = require("path");
194125
194120
  var fsStat = require_out();
194126
194121
  var fs2 = require_fs4();
194127
194122
  var Settings = class {
@@ -194497,7 +194492,7 @@ ${fromBody}`;
194497
194492
  Object.defineProperty(exports22, "__esModule", {
194498
194493
  value: true
194499
194494
  });
194500
- var events_1 = __require("events");
194495
+ var events_1 = require("events");
194501
194496
  var fsScandir = require_out2();
194502
194497
  var fastq = require_queue();
194503
194498
  var common = require_common4();
@@ -194639,7 +194634,7 @@ ${fromBody}`;
194639
194634
  Object.defineProperty(exports22, "__esModule", {
194640
194635
  value: true
194641
194636
  });
194642
- var stream_1 = __require("stream");
194637
+ var stream_1 = require("stream");
194643
194638
  var async_1 = require_async4();
194644
194639
  var StreamProvider = class {
194645
194640
  constructor(_root, _settings) {
@@ -194767,7 +194762,7 @@ ${fromBody}`;
194767
194762
  Object.defineProperty(exports22, "__esModule", {
194768
194763
  value: true
194769
194764
  });
194770
- var path2 = __require("path");
194765
+ var path2 = require("path");
194771
194766
  var fsScandir = require_out2();
194772
194767
  var Settings = class {
194773
194768
  constructor(_options = {}) {
@@ -194839,7 +194834,7 @@ ${fromBody}`;
194839
194834
  Object.defineProperty(exports22, "__esModule", {
194840
194835
  value: true
194841
194836
  });
194842
- var path2 = __require("path");
194837
+ var path2 = require("path");
194843
194838
  var fsStat = require_out();
194844
194839
  var utils = require_utils4();
194845
194840
  var Reader = class {
@@ -194878,7 +194873,7 @@ ${fromBody}`;
194878
194873
  Object.defineProperty(exports22, "__esModule", {
194879
194874
  value: true
194880
194875
  });
194881
- var stream_1 = __require("stream");
194876
+ var stream_1 = require("stream");
194882
194877
  var fsStat = require_out();
194883
194878
  var fsWalk = require_out3();
194884
194879
  var reader_1 = require_reader2();
@@ -195208,7 +195203,7 @@ ${fromBody}`;
195208
195203
  Object.defineProperty(exports22, "__esModule", {
195209
195204
  value: true
195210
195205
  });
195211
- var path2 = __require("path");
195206
+ var path2 = require("path");
195212
195207
  var deep_1 = require_deep();
195213
195208
  var entry_1 = require_entry();
195214
195209
  var error_1 = require_error();
@@ -195296,7 +195291,7 @@ ${fromBody}`;
195296
195291
  Object.defineProperty(exports22, "__esModule", {
195297
195292
  value: true
195298
195293
  });
195299
- var stream_1 = __require("stream");
195294
+ var stream_1 = require("stream");
195300
195295
  var stream_2 = require_stream3();
195301
195296
  var provider_1 = require_provider();
195302
195297
  var ProviderStream = class extends provider_1.default {
@@ -195411,8 +195406,8 @@ ${fromBody}`;
195411
195406
  value: true
195412
195407
  });
195413
195408
  exports22.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
195414
- var fs2 = __require("fs");
195415
- var os = __require("os");
195409
+ var fs2 = require("fs");
195410
+ var os = require("os");
195416
195411
  var CPU_COUNT = Math.max(os.cpus().length, 1);
195417
195412
  exports22.DEFAULT_FILE_SYSTEM_ADAPTER = {
195418
195413
  lstat: fs2.lstat,
@@ -197197,7 +197192,7 @@ ${fromBody}`;
197197
197192
  exports22.print = print;
197198
197193
  exports22.strip = strip;
197199
197194
  function _os() {
197200
- const data = __require("os");
197195
+ const data = require("os");
197201
197196
  _os = function() {
197202
197197
  return data;
197203
197198
  };
@@ -200636,7 +200631,7 @@ ${fromBody}`;
200636
200631
  var require_function = __commonJS22({
200637
200632
  "src/language-js/print/function.js"(exports22, module22) {
200638
200633
  "use strict";
200639
- var assert2 = __require("assert");
200634
+ var assert2 = require("assert");
200640
200635
  var {
200641
200636
  printDanglingComments,
200642
200637
  printCommentsSeparately
@@ -201644,7 +201639,7 @@ ${fromBody}`;
201644
201639
  var require_flow = __commonJS22({
201645
201640
  "src/language-js/print/flow.js"(exports22, module22) {
201646
201641
  "use strict";
201647
- var assert2 = __require("assert");
201642
+ var assert2 = require("assert");
201648
201643
  var {
201649
201644
  printDanglingComments
201650
201645
  } = require_comments();
@@ -209220,7 +209215,7 @@ ${extracted.content}`;
209220
209215
  var require_tag = __commonJS22({
209221
209216
  "src/language-html/print/tag.js"(exports22, module22) {
209222
209217
  "use strict";
209223
- var assert2 = __require("assert");
209218
+ var assert2 = require("assert");
209224
209219
  var {
209225
209220
  isNonEmptyArray
209226
209221
  } = require_util();
@@ -211354,8 +211349,8 @@ ${text}`;
211354
211349
  var require_load_plugins = __commonJS22({
211355
211350
  "src/common/load-plugins.js"(exports22, module22) {
211356
211351
  "use strict";
211357
- var fs2 = __require("fs");
211358
- var path2 = __require("path");
211352
+ var fs2 = require("fs");
211353
+ var path2 = require("path");
211359
211354
  var fastGlob = require_out4();
211360
211355
  var partition = require_partition();
211361
211356
  var uniqByKey = require_uniq_by_key();
@@ -211419,7 +211414,7 @@ ${text}`;
211419
211414
  });
211420
211415
  const externalPlugins = [...uniqByKey([...externalManualLoadPluginInfos, ...externalAutoLoadPluginInfos], "requirePath").map((externalPluginInfo) => Object.assign({
211421
211416
  name: externalPluginInfo.name
211422
- }, __require(externalPluginInfo.requirePath))), ...externalPluginInstances];
211417
+ }, require(externalPluginInfo.requirePath))), ...externalPluginInstances];
211423
211418
  return [...internalPlugins, ...externalPlugins];
211424
211419
  }
211425
211420
  function findPluginsInNodeModules(nodeModulesDir) {
@@ -218628,7 +218623,7 @@ var require_lib = __commonJS({
218628
218623
  });
218629
218624
 
218630
218625
  // src/cli.ts
218631
- import * as fs from "fs/promises";
218626
+ var fs = __toESM(require("fs/promises"));
218632
218627
 
218633
218628
  // node_modules/lodash-es/_freeGlobal.js
218634
218629
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
@@ -220245,12 +220240,12 @@ function repeat(string2, n, guard) {
220245
220240
  var repeat_default = repeat;
220246
220241
 
220247
220242
  // src/cli.ts
220243
+ var path = __toESM(require("path"));
220248
220244
  var prettier = __toESM(require_prettier());
220249
220245
  var import_trader_pgsql_ast_parser2 = __toESM(require_lib());
220250
- import * as path from "path";
220251
220246
 
220252
220247
  // src/typecheck.ts
220253
- import assert from "assert";
220248
+ var import_assert = __toESM(require("assert"));
220254
220249
  var import_trader_pgsql_ast_parser = __toESM(require_lib());
220255
220250
 
220256
220251
  // src/normalize.ts
@@ -227409,7 +227404,7 @@ function elabRef(c, e) {
227409
227404
  }
227410
227405
  }
227411
227406
  function lookupRef(c, e) {
227412
- assert(e.name !== "*");
227407
+ (0, import_assert.default)(e.name !== "*");
227413
227408
  const tableName = e.table;
227414
227409
  if (tableName) {
227415
227410
  const table = c.froms.find((d) => eqQNames(d.name, tableName));