sql-typechecker 0.0.126 → 0.0.128

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