drizzle-kit 0.30.1 → 0.30.2-8e428d1
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/api.js +156 -85
- package/api.mjs +156 -85
- package/bin.cjs +311 -303
- package/package.json +1 -1
package/bin.cjs
CHANGED
@@ -1628,10 +1628,10 @@ function custom(check2, params = {}, fatal) {
|
|
1628
1628
|
return ZodAny.create().superRefine((data, ctx) => {
|
1629
1629
|
var _a, _b;
|
1630
1630
|
if (!check2(data)) {
|
1631
|
-
const
|
1632
|
-
const _fatal = (_b = (_a =
|
1633
|
-
const
|
1634
|
-
ctx.addIssue({ code: "custom", ...
|
1631
|
+
const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
|
1632
|
+
const _fatal = (_b = (_a = p.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
|
1633
|
+
const p2 = typeof p === "string" ? { message: p } : p;
|
1634
|
+
ctx.addIssue({ code: "custom", ...p2, fatal: _fatal });
|
1635
1635
|
}
|
1636
1636
|
});
|
1637
1637
|
return ZodAny.create();
|
@@ -7829,8 +7829,8 @@ var require_windows = __commonJS({
|
|
7829
7829
|
return true;
|
7830
7830
|
}
|
7831
7831
|
for (var i2 = 0; i2 < pathext.length; i2++) {
|
7832
|
-
var
|
7833
|
-
if (
|
7832
|
+
var p = pathext[i2].toLowerCase();
|
7833
|
+
if (p && path5.substr(-p.length).toLowerCase() === p) {
|
7834
7834
|
return true;
|
7835
7835
|
}
|
7836
7836
|
}
|
@@ -7984,9 +7984,9 @@ var require_lib = __commonJS({
|
|
7984
7984
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
7985
7985
|
const found = [];
|
7986
7986
|
for (const envPart of pathEnv) {
|
7987
|
-
const
|
7987
|
+
const p = getPathPart(envPart, cmd);
|
7988
7988
|
for (const ext2 of pathExt) {
|
7989
|
-
const withExt =
|
7989
|
+
const withExt = p + ext2;
|
7990
7990
|
const is11 = await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: true });
|
7991
7991
|
if (is11) {
|
7992
7992
|
if (!opt.all) {
|
@@ -8008,9 +8008,9 @@ var require_lib = __commonJS({
|
|
8008
8008
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
8009
8009
|
const found = [];
|
8010
8010
|
for (const pathEnvPart of pathEnv) {
|
8011
|
-
const
|
8011
|
+
const p = getPathPart(pathEnvPart, cmd);
|
8012
8012
|
for (const ext2 of pathExt) {
|
8013
|
-
const withExt =
|
8013
|
+
const withExt = p + ext2;
|
8014
8014
|
const is11 = isexe.sync(withExt, { pathExt: pathExtExe, ignoreErrors: true });
|
8015
8015
|
if (is11) {
|
8016
8016
|
if (!opt.all) {
|
@@ -9815,11 +9815,11 @@ var require_expand = __commonJS({
|
|
9815
9815
|
const rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
|
9816
9816
|
const walk = (node, parent = {}) => {
|
9817
9817
|
node.queue = [];
|
9818
|
-
let
|
9818
|
+
let p = parent;
|
9819
9819
|
let q = parent.queue;
|
9820
|
-
while (
|
9821
|
-
|
9822
|
-
q =
|
9820
|
+
while (p.type !== "brace" && p.type !== "root" && p.parent) {
|
9821
|
+
p = p.parent;
|
9822
|
+
q = p.queue;
|
9823
9823
|
}
|
9824
9824
|
if (node.invalid || node.dollar) {
|
9825
9825
|
q.push(append(q.pop(), stringify3(node, options)));
|
@@ -11752,7 +11752,7 @@ var require_picomatch = __commonJS({
|
|
11752
11752
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
11753
11753
|
picomatch.parse = (pattern, options) => {
|
11754
11754
|
if (Array.isArray(pattern))
|
11755
|
-
return pattern.map((
|
11755
|
+
return pattern.map((p) => picomatch.parse(p, options));
|
11756
11756
|
return parse5(pattern, { ...options, fastpaths: false });
|
11757
11757
|
};
|
11758
11758
|
picomatch.scan = (input, options) => scan(input, options);
|
@@ -11856,7 +11856,7 @@ var require_micromatch = __commonJS({
|
|
11856
11856
|
throw new Error(`No matches found for "${patterns.join(", ")}"`);
|
11857
11857
|
}
|
11858
11858
|
if (options.nonull === true || options.nullglob === true) {
|
11859
|
-
return options.unescape ? patterns.map((
|
11859
|
+
return options.unescape ? patterns.map((p) => p.replace(/\\/g, "")) : patterns;
|
11860
11860
|
}
|
11861
11861
|
}
|
11862
11862
|
return matches;
|
@@ -11887,7 +11887,7 @@ var require_micromatch = __commonJS({
|
|
11887
11887
|
throw new TypeError(`Expected a string: "${util2.inspect(str)}"`);
|
11888
11888
|
}
|
11889
11889
|
if (Array.isArray(pattern)) {
|
11890
|
-
return pattern.some((
|
11890
|
+
return pattern.some((p) => micromatch.contains(str, p, options));
|
11891
11891
|
}
|
11892
11892
|
if (typeof pattern === "string") {
|
11893
11893
|
if (isEmptyString(str) || isEmptyString(pattern)) {
|
@@ -11933,7 +11933,7 @@ var require_micromatch = __commonJS({
|
|
11933
11933
|
if (typeof str !== "string") {
|
11934
11934
|
throw new TypeError(`Expected a string: "${util2.inspect(str)}"`);
|
11935
11935
|
}
|
11936
|
-
return [].concat(patterns).every((
|
11936
|
+
return [].concat(patterns).every((p) => picomatch(p, options)(str));
|
11937
11937
|
};
|
11938
11938
|
micromatch.capture = (glob2, input, options) => {
|
11939
11939
|
let posix = utils.isWindows(options);
|
@@ -13042,7 +13042,7 @@ var require_queue = __commonJS({
|
|
13042
13042
|
queue.drained = drained;
|
13043
13043
|
return queue;
|
13044
13044
|
function push2(value) {
|
13045
|
-
var
|
13045
|
+
var p = new Promise(function(resolve2, reject) {
|
13046
13046
|
pushCb(value, function(err2, result) {
|
13047
13047
|
if (err2) {
|
13048
13048
|
reject(err2);
|
@@ -13051,11 +13051,11 @@ var require_queue = __commonJS({
|
|
13051
13051
|
resolve2(result);
|
13052
13052
|
});
|
13053
13053
|
});
|
13054
|
-
|
13055
|
-
return
|
13054
|
+
p.catch(noop3);
|
13055
|
+
return p;
|
13056
13056
|
}
|
13057
13057
|
function unshift(value) {
|
13058
|
-
var
|
13058
|
+
var p = new Promise(function(resolve2, reject) {
|
13059
13059
|
unshiftCb(value, function(err2, result) {
|
13060
13060
|
if (err2) {
|
13061
13061
|
reject(err2);
|
@@ -13064,8 +13064,8 @@ var require_queue = __commonJS({
|
|
13064
13064
|
resolve2(result);
|
13065
13065
|
});
|
13066
13066
|
});
|
13067
|
-
|
13068
|
-
return
|
13067
|
+
p.catch(noop3);
|
13068
|
+
return p;
|
13069
13069
|
}
|
13070
13070
|
function drained() {
|
13071
13071
|
if (queue.idle()) {
|
@@ -13074,13 +13074,13 @@ var require_queue = __commonJS({
|
|
13074
13074
|
});
|
13075
13075
|
}
|
13076
13076
|
var previousDrain = queue.drain;
|
13077
|
-
var
|
13077
|
+
var p = new Promise(function(resolve2) {
|
13078
13078
|
queue.drain = function() {
|
13079
13079
|
previousDrain();
|
13080
13080
|
resolve2();
|
13081
13081
|
};
|
13082
13082
|
});
|
13083
|
-
return
|
13083
|
+
return p;
|
13084
13084
|
}
|
13085
13085
|
}
|
13086
13086
|
module2.exports = fastqueue;
|
@@ -14586,7 +14586,7 @@ var require_ignore = __commonJS({
|
|
14586
14586
|
};
|
14587
14587
|
var isNotRelative = (path5) => REGEX_TEST_INVALID_PATH.test(path5);
|
14588
14588
|
checkPath.isNotRelative = isNotRelative;
|
14589
|
-
checkPath.convert = (
|
14589
|
+
checkPath.convert = (p) => p;
|
14590
14590
|
var Ignore = class {
|
14591
14591
|
constructor({
|
14592
14592
|
ignorecase = true,
|
@@ -19100,12 +19100,12 @@ var init_file = __esm({
|
|
19100
19100
|
|
19101
19101
|
// ../node_modules/.pnpm/formdata-polyfill@4.0.10/node_modules/formdata-polyfill/esm.min.js
|
19102
19102
|
function formDataToBlob(F2, B = fetch_blob_default) {
|
19103
|
-
var b = `${r()}${r()}`.replace(/\./g, "").slice(-28).padStart(32, "-"), c = [],
|
19103
|
+
var b = `${r()}${r()}`.replace(/\./g, "").slice(-28).padStart(32, "-"), c = [], p = `--${b}\r
|
19104
19104
|
Content-Disposition: form-data; name="`;
|
19105
|
-
F2.forEach((v, n) => typeof v == "string" ? c.push(
|
19105
|
+
F2.forEach((v, n) => typeof v == "string" ? c.push(p + e(n) + `"\r
|
19106
19106
|
\r
|
19107
19107
|
${v.replace(/\r(?!\n)|(?<!\r)\n/g, "\r\n")}\r
|
19108
|
-
`) : c.push(
|
19108
|
+
`) : c.push(p + e(n) + `"; filename="${e(v.name, 1)}"\r
|
19109
19109
|
Content-Type: ${v.type || "application/octet-stream"}\r
|
19110
19110
|
\r
|
19111
19111
|
`, v, "\r\n"));
|
@@ -22205,7 +22205,7 @@ var require_timestamp = __commonJS({
|
|
22205
22205
|
const sign = str[0];
|
22206
22206
|
const parts = sign === "-" || sign === "+" ? str.substring(1) : str;
|
22207
22207
|
const num = (n) => asBigInt ? BigInt(n) : Number(n);
|
22208
|
-
const res = parts.replace(/_/g, "").split(":").reduce((res2,
|
22208
|
+
const res = parts.replace(/_/g, "").split(":").reduce((res2, p) => res2 * num(60) + num(p), num(0));
|
22209
22209
|
return sign === "-" ? num(-1) * res : res;
|
22210
22210
|
}
|
22211
22211
|
function stringifySexagesimal(node) {
|
@@ -26438,19 +26438,19 @@ var require_old = __commonJS({
|
|
26438
26438
|
splitRootRe = /^[\/]*/;
|
26439
26439
|
}
|
26440
26440
|
var splitRootRe;
|
26441
|
-
exports2.realpathSync = function realpathSync(
|
26442
|
-
|
26443
|
-
if (cache && Object.prototype.hasOwnProperty.call(cache,
|
26444
|
-
return cache[
|
26441
|
+
exports2.realpathSync = function realpathSync(p, cache) {
|
26442
|
+
p = pathModule.resolve(p);
|
26443
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
|
26444
|
+
return cache[p];
|
26445
26445
|
}
|
26446
|
-
var original =
|
26446
|
+
var original = p, seenLinks = {}, knownHard = {};
|
26447
26447
|
var pos;
|
26448
26448
|
var current;
|
26449
26449
|
var base;
|
26450
26450
|
var previous;
|
26451
26451
|
start();
|
26452
26452
|
function start() {
|
26453
|
-
var m2 = splitRootRe.exec(
|
26453
|
+
var m2 = splitRootRe.exec(p);
|
26454
26454
|
pos = m2[0].length;
|
26455
26455
|
current = m2[0];
|
26456
26456
|
base = m2[0];
|
@@ -26460,9 +26460,9 @@ var require_old = __commonJS({
|
|
26460
26460
|
knownHard[base] = true;
|
26461
26461
|
}
|
26462
26462
|
}
|
26463
|
-
while (pos <
|
26463
|
+
while (pos < p.length) {
|
26464
26464
|
nextPartRe.lastIndex = pos;
|
26465
|
-
var result = nextPartRe.exec(
|
26465
|
+
var result = nextPartRe.exec(p);
|
26466
26466
|
previous = current;
|
26467
26467
|
current += result[0];
|
26468
26468
|
base = previous + result[1];
|
@@ -26498,30 +26498,30 @@ var require_old = __commonJS({
|
|
26498
26498
|
if (!isWindows)
|
26499
26499
|
seenLinks[id] = linkTarget;
|
26500
26500
|
}
|
26501
|
-
|
26501
|
+
p = pathModule.resolve(resolvedLink, p.slice(pos));
|
26502
26502
|
start();
|
26503
26503
|
}
|
26504
26504
|
if (cache)
|
26505
|
-
cache[original] =
|
26506
|
-
return
|
26505
|
+
cache[original] = p;
|
26506
|
+
return p;
|
26507
26507
|
};
|
26508
|
-
exports2.realpath = function realpath(
|
26508
|
+
exports2.realpath = function realpath(p, cache, cb) {
|
26509
26509
|
if (typeof cb !== "function") {
|
26510
26510
|
cb = maybeCallback(cache);
|
26511
26511
|
cache = null;
|
26512
26512
|
}
|
26513
|
-
|
26514
|
-
if (cache && Object.prototype.hasOwnProperty.call(cache,
|
26515
|
-
return process.nextTick(cb.bind(null, null, cache[
|
26513
|
+
p = pathModule.resolve(p);
|
26514
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
|
26515
|
+
return process.nextTick(cb.bind(null, null, cache[p]));
|
26516
26516
|
}
|
26517
|
-
var original =
|
26517
|
+
var original = p, seenLinks = {}, knownHard = {};
|
26518
26518
|
var pos;
|
26519
26519
|
var current;
|
26520
26520
|
var base;
|
26521
26521
|
var previous;
|
26522
26522
|
start();
|
26523
26523
|
function start() {
|
26524
|
-
var m2 = splitRootRe.exec(
|
26524
|
+
var m2 = splitRootRe.exec(p);
|
26525
26525
|
pos = m2[0].length;
|
26526
26526
|
current = m2[0];
|
26527
26527
|
base = m2[0];
|
@@ -26538,13 +26538,13 @@ var require_old = __commonJS({
|
|
26538
26538
|
}
|
26539
26539
|
}
|
26540
26540
|
function LOOP() {
|
26541
|
-
if (pos >=
|
26541
|
+
if (pos >= p.length) {
|
26542
26542
|
if (cache)
|
26543
|
-
cache[original] =
|
26544
|
-
return cb(null,
|
26543
|
+
cache[original] = p;
|
26544
|
+
return cb(null, p);
|
26545
26545
|
}
|
26546
26546
|
nextPartRe.lastIndex = pos;
|
26547
|
-
var result = nextPartRe.exec(
|
26547
|
+
var result = nextPartRe.exec(p);
|
26548
26548
|
previous = current;
|
26549
26549
|
current += result[0];
|
26550
26550
|
base = previous + result[1];
|
@@ -26591,7 +26591,7 @@ var require_old = __commonJS({
|
|
26591
26591
|
gotResolvedLink(resolvedLink);
|
26592
26592
|
}
|
26593
26593
|
function gotResolvedLink(resolvedLink) {
|
26594
|
-
|
26594
|
+
p = pathModule.resolve(resolvedLink, p.slice(pos));
|
26595
26595
|
start();
|
26596
26596
|
}
|
26597
26597
|
};
|
@@ -26616,31 +26616,31 @@ var require_fs5 = __commonJS({
|
|
26616
26616
|
function newError(er) {
|
26617
26617
|
return er && er.syscall === "realpath" && (er.code === "ELOOP" || er.code === "ENOMEM" || er.code === "ENAMETOOLONG");
|
26618
26618
|
}
|
26619
|
-
function realpath(
|
26619
|
+
function realpath(p, cache, cb) {
|
26620
26620
|
if (ok) {
|
26621
|
-
return origRealpath(
|
26621
|
+
return origRealpath(p, cache, cb);
|
26622
26622
|
}
|
26623
26623
|
if (typeof cache === "function") {
|
26624
26624
|
cb = cache;
|
26625
26625
|
cache = null;
|
26626
26626
|
}
|
26627
|
-
origRealpath(
|
26627
|
+
origRealpath(p, cache, function(er, result) {
|
26628
26628
|
if (newError(er)) {
|
26629
|
-
old.realpath(
|
26629
|
+
old.realpath(p, cache, cb);
|
26630
26630
|
} else {
|
26631
26631
|
cb(er, result);
|
26632
26632
|
}
|
26633
26633
|
});
|
26634
26634
|
}
|
26635
|
-
function realpathSync(
|
26635
|
+
function realpathSync(p, cache) {
|
26636
26636
|
if (ok) {
|
26637
|
-
return origRealpathSync(
|
26637
|
+
return origRealpathSync(p, cache);
|
26638
26638
|
}
|
26639
26639
|
try {
|
26640
|
-
return origRealpathSync(
|
26640
|
+
return origRealpathSync(p, cache);
|
26641
26641
|
} catch (er) {
|
26642
26642
|
if (newError(er)) {
|
26643
|
-
return old.realpathSync(
|
26643
|
+
return old.realpathSync(p, cache);
|
26644
26644
|
} else {
|
26645
26645
|
throw er;
|
26646
26646
|
}
|
@@ -26754,14 +26754,14 @@ var require_brace_expansion = __commonJS({
|
|
26754
26754
|
var pre = m2.pre;
|
26755
26755
|
var body = m2.body;
|
26756
26756
|
var post = m2.post;
|
26757
|
-
var
|
26758
|
-
|
26757
|
+
var p = pre.split(",");
|
26758
|
+
p[p.length - 1] += "{" + body + "}";
|
26759
26759
|
var postParts = parseCommaParts(post);
|
26760
26760
|
if (post.length) {
|
26761
|
-
|
26762
|
-
|
26761
|
+
p[p.length - 1] += postParts.shift();
|
26762
|
+
p.push.apply(p, postParts);
|
26763
26763
|
}
|
26764
|
-
parts.push.apply(parts,
|
26764
|
+
parts.push.apply(parts, p);
|
26765
26765
|
return parts;
|
26766
26766
|
}
|
26767
26767
|
function expandTop(str) {
|
@@ -26816,8 +26816,8 @@ var require_brace_expansion = __commonJS({
|
|
26816
26816
|
if (n.length === 1) {
|
26817
26817
|
n = expand2(n[0], false).map(embrace);
|
26818
26818
|
if (n.length === 1) {
|
26819
|
-
return post.map(function(
|
26820
|
-
return m2.pre + n[0] +
|
26819
|
+
return post.map(function(p) {
|
26820
|
+
return m2.pre + n[0] + p;
|
26821
26821
|
});
|
26822
26822
|
}
|
26823
26823
|
}
|
@@ -26879,12 +26879,12 @@ var require_brace_expansion = __commonJS({
|
|
26879
26879
|
// ../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/minimatch.js
|
26880
26880
|
var require_minimatch = __commonJS({
|
26881
26881
|
"../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/minimatch.js"(exports2, module2) {
|
26882
|
-
var minimatch2 = module2.exports = (
|
26882
|
+
var minimatch2 = module2.exports = (p, pattern, options = {}) => {
|
26883
26883
|
assertValidPattern2(pattern);
|
26884
26884
|
if (!options.nocomment && pattern.charAt(0) === "#") {
|
26885
26885
|
return false;
|
26886
26886
|
}
|
26887
|
-
return new Minimatch2(pattern, options).match(
|
26887
|
+
return new Minimatch2(pattern, options).match(p);
|
26888
26888
|
};
|
26889
26889
|
module2.exports = minimatch2;
|
26890
26890
|
var path5 = require_path2();
|
@@ -26910,7 +26910,7 @@ var require_minimatch = __commonJS({
|
|
26910
26910
|
var reSpecials2 = charSet2("().*{}+?[]^$\\!");
|
26911
26911
|
var addPatternStartSet2 = charSet2("[.(");
|
26912
26912
|
var slashSplit = /\/+/;
|
26913
|
-
minimatch2.filter = (pattern, options = {}) => (
|
26913
|
+
minimatch2.filter = (pattern, options = {}) => (p, i2, list) => minimatch2(p, pattern, options);
|
26914
26914
|
var ext2 = (a, b = {}) => {
|
26915
26915
|
const t2 = {};
|
26916
26916
|
Object.keys(a).forEach((k) => t2[k] = a[k]);
|
@@ -26922,7 +26922,7 @@ var require_minimatch = __commonJS({
|
|
26922
26922
|
return minimatch2;
|
26923
26923
|
}
|
26924
26924
|
const orig = minimatch2;
|
26925
|
-
const m2 = (
|
26925
|
+
const m2 = (p, pattern, options) => orig(p, pattern, ext2(def, options));
|
26926
26926
|
m2.Minimatch = class Minimatch extends orig.Minimatch {
|
26927
26927
|
constructor(pattern, options) {
|
26928
26928
|
super(pattern, ext2(def, options));
|
@@ -27040,13 +27040,13 @@ var require_minimatch = __commonJS({
|
|
27040
27040
|
this.debug("matchOne", file.length, pattern.length);
|
27041
27041
|
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
27042
27042
|
this.debug("matchOne loop");
|
27043
|
-
var
|
27043
|
+
var p = pattern[pi];
|
27044
27044
|
var f3 = file[fi];
|
27045
|
-
this.debug(pattern,
|
27046
|
-
if (
|
27045
|
+
this.debug(pattern, p, f3);
|
27046
|
+
if (p === false)
|
27047
27047
|
return false;
|
27048
|
-
if (
|
27049
|
-
this.debug("GLOBSTAR", [pattern,
|
27048
|
+
if (p === GLOBSTAR2) {
|
27049
|
+
this.debug("GLOBSTAR", [pattern, p, f3]);
|
27050
27050
|
var fr = fi;
|
27051
27051
|
var pr = pi + 1;
|
27052
27052
|
if (pr === pl) {
|
@@ -27080,12 +27080,12 @@ var require_minimatch = __commonJS({
|
|
27080
27080
|
return false;
|
27081
27081
|
}
|
27082
27082
|
var hit;
|
27083
|
-
if (typeof
|
27084
|
-
hit = f3 ===
|
27085
|
-
this.debug("string match",
|
27083
|
+
if (typeof p === "string") {
|
27084
|
+
hit = f3 === p;
|
27085
|
+
this.debug("string match", p, f3, hit);
|
27086
27086
|
} else {
|
27087
|
-
hit = f3.match(
|
27088
|
-
this.debug("pattern match",
|
27087
|
+
hit = f3.match(p);
|
27088
|
+
this.debug("pattern match", p, f3, hit);
|
27089
27089
|
}
|
27090
27090
|
if (!hit)
|
27091
27091
|
return false;
|
@@ -27128,7 +27128,7 @@ var require_minimatch = __commonJS({
|
|
27128
27128
|
let dotTravAllowed = pattern.charAt(0) === ".";
|
27129
27129
|
let dotFileAllowed = options.dot || dotTravAllowed;
|
27130
27130
|
const patternStart = () => dotTravAllowed ? "" : dotFileAllowed ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
27131
|
-
const subPatternStart = (
|
27131
|
+
const subPatternStart = (p) => p.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
27132
27132
|
const clearStateChar = () => {
|
27133
27133
|
if (stateChar) {
|
27134
27134
|
switch (stateChar) {
|
@@ -27364,15 +27364,15 @@ var require_minimatch = __commonJS({
|
|
27364
27364
|
const flags = options.nocase ? "i" : "";
|
27365
27365
|
let re = set.map((pattern) => {
|
27366
27366
|
pattern = pattern.map(
|
27367
|
-
(
|
27368
|
-
).reduce((set2,
|
27369
|
-
if (!(set2[set2.length - 1] === GLOBSTAR2 &&
|
27370
|
-
set2.push(
|
27367
|
+
(p) => typeof p === "string" ? regExpEscape2(p) : p === GLOBSTAR2 ? GLOBSTAR2 : p._src
|
27368
|
+
).reduce((set2, p) => {
|
27369
|
+
if (!(set2[set2.length - 1] === GLOBSTAR2 && p === GLOBSTAR2)) {
|
27370
|
+
set2.push(p);
|
27371
27371
|
}
|
27372
27372
|
return set2;
|
27373
27373
|
}, []);
|
27374
|
-
pattern.forEach((
|
27375
|
-
if (
|
27374
|
+
pattern.forEach((p, i2) => {
|
27375
|
+
if (p !== GLOBSTAR2 || pattern[i2 - 1] === GLOBSTAR2) {
|
27376
27376
|
return;
|
27377
27377
|
}
|
27378
27378
|
if (i2 === 0) {
|
@@ -27388,7 +27388,7 @@ var require_minimatch = __commonJS({
|
|
27388
27388
|
pattern[i2 + 1] = GLOBSTAR2;
|
27389
27389
|
}
|
27390
27390
|
});
|
27391
|
-
return pattern.filter((
|
27391
|
+
return pattern.filter((p) => p !== GLOBSTAR2).join("/");
|
27392
27392
|
}).join("|");
|
27393
27393
|
re = "^(?:" + re + ")$";
|
27394
27394
|
if (this.negate)
|
@@ -27641,18 +27641,18 @@ var require_common3 = __commonJS({
|
|
27641
27641
|
});
|
27642
27642
|
self2.found = all;
|
27643
27643
|
}
|
27644
|
-
function mark(self2,
|
27645
|
-
var abs = makeAbs(self2,
|
27644
|
+
function mark(self2, p) {
|
27645
|
+
var abs = makeAbs(self2, p);
|
27646
27646
|
var c = self2.cache[abs];
|
27647
|
-
var m2 =
|
27647
|
+
var m2 = p;
|
27648
27648
|
if (c) {
|
27649
27649
|
var isDir = c === "DIR" || Array.isArray(c);
|
27650
|
-
var slash2 =
|
27650
|
+
var slash2 = p.slice(-1) === "/";
|
27651
27651
|
if (isDir && !slash2)
|
27652
27652
|
m2 += "/";
|
27653
27653
|
else if (!isDir && slash2)
|
27654
27654
|
m2 = m2.slice(0, -1);
|
27655
|
-
if (m2 !==
|
27655
|
+
if (m2 !== p) {
|
27656
27656
|
var mabs = makeAbs(self2, m2);
|
27657
27657
|
self2.statCache[mabs] = self2.statCache[abs];
|
27658
27658
|
self2.cache[mabs] = self2.cache[abs];
|
@@ -27738,14 +27738,14 @@ var require_sync7 = __commonJS({
|
|
27738
27738
|
var self2 = this;
|
27739
27739
|
this.matches.forEach(function(matchset, index5) {
|
27740
27740
|
var set = self2.matches[index5] = /* @__PURE__ */ Object.create(null);
|
27741
|
-
for (var
|
27741
|
+
for (var p in matchset) {
|
27742
27742
|
try {
|
27743
|
-
|
27744
|
-
var real = rp.realpathSync(
|
27743
|
+
p = self2._makeAbs(p);
|
27744
|
+
var real = rp.realpathSync(p, self2.realpathCache);
|
27745
27745
|
set[real] = true;
|
27746
27746
|
} catch (er) {
|
27747
27747
|
if (er.syscall === "stat")
|
27748
|
-
set[self2._makeAbs(
|
27748
|
+
set[self2._makeAbs(p)] = true;
|
27749
27749
|
else
|
27750
27750
|
throw er;
|
27751
27751
|
}
|
@@ -27776,8 +27776,8 @@ var require_sync7 = __commonJS({
|
|
27776
27776
|
var read;
|
27777
27777
|
if (prefix2 === null)
|
27778
27778
|
read = ".";
|
27779
|
-
else if (isAbsolute(prefix2) || isAbsolute(pattern.map(function(
|
27780
|
-
return typeof
|
27779
|
+
else if (isAbsolute(prefix2) || isAbsolute(pattern.map(function(p) {
|
27780
|
+
return typeof p === "string" ? p : "[*]";
|
27781
27781
|
}).join("/"))) {
|
27782
27782
|
if (!prefix2 || !isAbsolute(prefix2))
|
27783
27783
|
prefix2 = "/" + prefix2;
|
@@ -28035,8 +28035,8 @@ var require_sync7 = __commonJS({
|
|
28035
28035
|
return false;
|
28036
28036
|
return c;
|
28037
28037
|
};
|
28038
|
-
GlobSync.prototype._mark = function(
|
28039
|
-
return common.mark(this,
|
28038
|
+
GlobSync.prototype._mark = function(p) {
|
28039
|
+
return common.mark(this, p);
|
28040
28040
|
};
|
28041
28041
|
GlobSync.prototype._makeAbs = function(f3) {
|
28042
28042
|
return common.makeAbs(this, f3);
|
@@ -28315,13 +28315,13 @@ var require_glob = __commonJS({
|
|
28315
28315
|
if (n === 0)
|
28316
28316
|
return cb();
|
28317
28317
|
var set = this.matches[index5] = /* @__PURE__ */ Object.create(null);
|
28318
|
-
found.forEach(function(
|
28319
|
-
|
28320
|
-
rp.realpath(
|
28318
|
+
found.forEach(function(p, i2) {
|
28319
|
+
p = self2._makeAbs(p);
|
28320
|
+
rp.realpath(p, self2.realpathCache, function(er, real) {
|
28321
28321
|
if (!er)
|
28322
28322
|
set[real] = true;
|
28323
28323
|
else if (er.syscall === "stat")
|
28324
|
-
set[
|
28324
|
+
set[p] = true;
|
28325
28325
|
else
|
28326
28326
|
self2.emit("error", er);
|
28327
28327
|
if (--n === 0) {
|
@@ -28331,8 +28331,8 @@ var require_glob = __commonJS({
|
|
28331
28331
|
});
|
28332
28332
|
});
|
28333
28333
|
};
|
28334
|
-
Glob.prototype._mark = function(
|
28335
|
-
return common.mark(this,
|
28334
|
+
Glob.prototype._mark = function(p) {
|
28335
|
+
return common.mark(this, p);
|
28336
28336
|
};
|
28337
28337
|
Glob.prototype._makeAbs = function(f3) {
|
28338
28338
|
return common.makeAbs(this, f3);
|
@@ -28363,9 +28363,9 @@ var require_glob = __commonJS({
|
|
28363
28363
|
var pq = this._processQueue.slice(0);
|
28364
28364
|
this._processQueue.length = 0;
|
28365
28365
|
for (var i2 = 0; i2 < pq.length; i2++) {
|
28366
|
-
var
|
28366
|
+
var p = pq[i2];
|
28367
28367
|
this._processing--;
|
28368
|
-
this._process(
|
28368
|
+
this._process(p[0], p[1], p[2], p[3]);
|
28369
28369
|
}
|
28370
28370
|
}
|
28371
28371
|
}
|
@@ -28400,8 +28400,8 @@ var require_glob = __commonJS({
|
|
28400
28400
|
var read;
|
28401
28401
|
if (prefix2 === null)
|
28402
28402
|
read = ".";
|
28403
|
-
else if (isAbsolute(prefix2) || isAbsolute(pattern.map(function(
|
28404
|
-
return typeof
|
28403
|
+
else if (isAbsolute(prefix2) || isAbsolute(pattern.map(function(p) {
|
28404
|
+
return typeof p === "string" ? p : "[*]";
|
28405
28405
|
}).join("/"))) {
|
28406
28406
|
if (!prefix2 || !isAbsolute(prefix2))
|
28407
28407
|
prefix2 = "/" + prefix2;
|
@@ -30978,13 +30978,13 @@ var require_node2 = __commonJS({
|
|
30978
30978
|
function randomIntInRange(low, high) {
|
30979
30979
|
return Math.round(low + Math.random() * (high - low));
|
30980
30980
|
}
|
30981
|
-
function doQuickSort(ary, comparator,
|
30982
|
-
if (
|
30983
|
-
var pivotIndex = randomIntInRange(
|
30984
|
-
var i2 =
|
30981
|
+
function doQuickSort(ary, comparator, p, r2) {
|
30982
|
+
if (p < r2) {
|
30983
|
+
var pivotIndex = randomIntInRange(p, r2);
|
30984
|
+
var i2 = p - 1;
|
30985
30985
|
swap(ary, pivotIndex, r2);
|
30986
30986
|
var pivot = ary[r2];
|
30987
|
-
for (var j =
|
30987
|
+
for (var j = p; j < r2; j++) {
|
30988
30988
|
if (comparator(ary[j], pivot) <= 0) {
|
30989
30989
|
i2 += 1;
|
30990
30990
|
swap(ary, i2, j);
|
@@ -30992,7 +30992,7 @@ var require_node2 = __commonJS({
|
|
30992
30992
|
}
|
30993
30993
|
swap(ary, i2 + 1, j);
|
30994
30994
|
var q = i2 + 1;
|
30995
|
-
doQuickSort(ary, comparator,
|
30995
|
+
doQuickSort(ary, comparator, p, q - 1);
|
30996
30996
|
doQuickSort(ary, comparator, q + 1, r2);
|
30997
30997
|
}
|
30998
30998
|
}
|
@@ -33689,8 +33689,8 @@ var require_node2 = __commonJS({
|
|
33689
33689
|
}
|
33690
33690
|
function literal(s2) {
|
33691
33691
|
for (const c2 of s2) {
|
33692
|
-
const
|
33693
|
-
if (
|
33692
|
+
const p = peek();
|
33693
|
+
if (p !== c2) {
|
33694
33694
|
throw invalidChar(read());
|
33695
33695
|
}
|
33696
33696
|
read();
|
@@ -34204,9 +34204,9 @@ var require_node2 = __commonJS({
|
|
34204
34204
|
__assign3 = Object.assign || function(t2) {
|
34205
34205
|
for (var s2, i2 = 1, n = arguments.length; i2 < n; i2++) {
|
34206
34206
|
s2 = arguments[i2];
|
34207
|
-
for (var
|
34208
|
-
if (Object.prototype.hasOwnProperty.call(s2,
|
34209
|
-
t2[
|
34207
|
+
for (var p in s2)
|
34208
|
+
if (Object.prototype.hasOwnProperty.call(s2, p))
|
34209
|
+
t2[p] = s2[p];
|
34210
34210
|
}
|
34211
34211
|
return t2;
|
34212
34212
|
};
|
@@ -39042,7 +39042,7 @@ ${withStyle.errorWarning(`We've found duplicated unique constraint names in ${so
|
|
39042
39042
|
if (typeof column9.default === "string") {
|
39043
39043
|
columnToSet.default = `'${column9.default}'`;
|
39044
39044
|
} else {
|
39045
|
-
if (sqlTypeLowered === "json") {
|
39045
|
+
if (sqlTypeLowered === "json" || Array.isArray(column9.default)) {
|
39046
39046
|
columnToSet.default = `'${JSON.stringify(column9.default)}'`;
|
39047
39047
|
} else if (column9.default instanceof Date) {
|
39048
39048
|
if (sqlTypeLowered === "date") {
|
@@ -40468,7 +40468,7 @@ var require_difflib = __commonJS({
|
|
40468
40468
|
return lines;
|
40469
40469
|
}
|
40470
40470
|
_fancyReplace(a, alo, ahi, b, blo, bhi) {
|
40471
|
-
var aelt, ai, ai1, ai2, atags, belt, bestRatio, besti, bestj, bj, bj1, bj2, btags, cruncher, cutoff, eqi, eqj, i2, j, l, la, lb, len, len1, len2, len3, len4, line, lines, m2, o,
|
40471
|
+
var aelt, ai, ai1, ai2, atags, belt, bestRatio, besti, bestj, bj, bj1, bj2, btags, cruncher, cutoff, eqi, eqj, i2, j, l, la, lb, len, len1, len2, len3, len4, line, lines, m2, o, p, q, r2, ref, ref1, ref2, ref3, ref4, ref5, ref6, ref7, ref8, t2, tag;
|
40472
40472
|
[bestRatio, cutoff] = [0.74, 0.75];
|
40473
40473
|
cruncher = new SequenceMatcher(this.charjunk);
|
40474
40474
|
[eqi, eqj] = [
|
@@ -40508,8 +40508,8 @@ var require_difflib = __commonJS({
|
|
40508
40508
|
eqi = null;
|
40509
40509
|
}
|
40510
40510
|
ref5 = this._fancyHelper(a, alo, besti, b, blo, bestj);
|
40511
|
-
for (
|
40512
|
-
line = ref5[
|
40511
|
+
for (p = 0, len1 = ref5.length; p < len1; p++) {
|
40512
|
+
line = ref5[p];
|
40513
40513
|
lines.push(line);
|
40514
40514
|
}
|
40515
40515
|
[aelt, belt] = [a[besti], b[bestj]];
|
@@ -40608,7 +40608,7 @@ var require_difflib = __commonJS({
|
|
40608
40608
|
return `${beginning},${length}`;
|
40609
40609
|
};
|
40610
40610
|
unifiedDiff = function(a, b, { fromfile, tofile, fromfiledate, tofiledate, n, lineterm } = {}) {
|
40611
|
-
var file1Range, file2Range, first, fromdate, group, i1, i2, j1, j2, l, last, len, len1, len2, len3, len4, line, lines, m2, o,
|
40611
|
+
var file1Range, file2Range, first, fromdate, group, i1, i2, j1, j2, l, last, len, len1, len2, len3, len4, line, lines, m2, o, p, q, ref, ref1, ref2, ref3, started, tag, todate;
|
40612
40612
|
if (fromfile == null) {
|
40613
40613
|
fromfile = "";
|
40614
40614
|
}
|
@@ -40655,8 +40655,8 @@ var require_difflib = __commonJS({
|
|
40655
40655
|
}
|
40656
40656
|
if (tag === "replace" || tag === "delete") {
|
40657
40657
|
ref2 = a.slice(i1, i2);
|
40658
|
-
for (
|
40659
|
-
line = ref2[
|
40658
|
+
for (p = 0, len3 = ref2.length; p < len3; p++) {
|
40659
|
+
line = ref2[p];
|
40660
40660
|
lines.push("-" + line);
|
40661
40661
|
}
|
40662
40662
|
}
|
@@ -40684,7 +40684,7 @@ var require_difflib = __commonJS({
|
|
40684
40684
|
return `${beginning},${beginning + length - 1}`;
|
40685
40685
|
};
|
40686
40686
|
contextDiff = function(a, b, { fromfile, tofile, fromfiledate, tofiledate, n, lineterm } = {}) {
|
40687
|
-
var _2, file1Range, file2Range, first, fromdate, group, i1, i2, j1, j2, l, last, len, len1, len2, len3, len4, line, lines, m2, o,
|
40687
|
+
var _2, file1Range, file2Range, first, fromdate, group, i1, i2, j1, j2, l, last, len, len1, len2, len3, len4, line, lines, m2, o, p, prefix2, q, ref, ref1, ref2, started, tag, todate;
|
40688
40688
|
if (fromfile == null) {
|
40689
40689
|
fromfile = "";
|
40690
40690
|
}
|
@@ -40747,16 +40747,16 @@ var require_difflib = __commonJS({
|
|
40747
40747
|
file2Range = _formatRangeContext(first[3], last[4]);
|
40748
40748
|
lines.push(`--- ${file2Range} ----${lineterm}`);
|
40749
40749
|
if (_any(function() {
|
40750
|
-
var len32,
|
40750
|
+
var len32, p2, results;
|
40751
40751
|
results = [];
|
40752
|
-
for (
|
40753
|
-
[tag, _2, _2, _2, _2] = group[
|
40752
|
+
for (p2 = 0, len32 = group.length; p2 < len32; p2++) {
|
40753
|
+
[tag, _2, _2, _2, _2] = group[p2];
|
40754
40754
|
results.push(tag === "replace" || tag === "insert");
|
40755
40755
|
}
|
40756
40756
|
return results;
|
40757
40757
|
}())) {
|
40758
|
-
for (
|
40759
|
-
[tag, _2, _2, j1, j2] = group[
|
40758
|
+
for (p = 0, len3 = group.length; p < len3; p++) {
|
40759
|
+
[tag, _2, _2, j1, j2] = group[p];
|
40760
40760
|
if (tag !== "delete") {
|
40761
40761
|
ref2 = b.slice(j1, j2);
|
40762
40762
|
for (q = 0, len4 = ref2.length; q < len4; q++) {
|
@@ -43532,11 +43532,11 @@ WITH ${withCheckOption} CHECK OPTION` : "";
|
|
43532
43532
|
const { tableName, schema: schema6, policies } = statement;
|
43533
43533
|
const tableNameWithSchema = schema6 ? `"${schema6}"."${tableName}"` : `"${tableName}"`;
|
43534
43534
|
const dropPolicyConvertor = new PgDropPolicyConvertor();
|
43535
|
-
const droppedPolicies = (policies == null ? void 0 : policies.map((
|
43535
|
+
const droppedPolicies = (policies == null ? void 0 : policies.map((p) => {
|
43536
43536
|
return dropPolicyConvertor.convert({
|
43537
43537
|
type: "drop_policy",
|
43538
43538
|
tableName,
|
43539
|
-
data: action === "push" ? PgSquasher.unsquashPolicyPush(
|
43539
|
+
data: action === "push" ? PgSquasher.unsquashPolicyPush(p) : PgSquasher.unsquashPolicy(p),
|
43540
43540
|
schema: schema6
|
43541
43541
|
});
|
43542
43542
|
})) ?? [];
|
@@ -44764,8 +44764,10 @@ ${BREAKPOINT}ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT "${statement.newC
|
|
44764
44764
|
return statement.type === "drop_index" && dialect6 === "postgresql";
|
44765
44765
|
}
|
44766
44766
|
convert(statement) {
|
44767
|
+
const { schema: schema6 } = statement;
|
44767
44768
|
const { name } = PgSquasher.unsquashIdx(statement.data);
|
44768
|
-
|
44769
|
+
const indexNameWithSchema = schema6 ? `"${schema6}"."${name}"` : `"${name}"`;
|
44770
|
+
return `DROP INDEX ${indexNameWithSchema};`;
|
44769
44771
|
}
|
44770
44772
|
};
|
44771
44773
|
PgCreateSchemaConvertor = class extends Convertor {
|
@@ -53472,20 +53474,20 @@ var require_range = __commonJS({
|
|
53472
53474
|
};
|
53473
53475
|
var replaceTilde = (comp, options) => {
|
53474
53476
|
const r2 = options.loose ? re[t2.TILDELOOSE] : re[t2.TILDE];
|
53475
|
-
return comp.replace(r2, (_2, M, m2,
|
53476
|
-
debug("tilde", comp, _2, M, m2,
|
53477
|
+
return comp.replace(r2, (_2, M, m2, p, pr) => {
|
53478
|
+
debug("tilde", comp, _2, M, m2, p, pr);
|
53477
53479
|
let ret;
|
53478
53480
|
if (isX(M)) {
|
53479
53481
|
ret = "";
|
53480
53482
|
} else if (isX(m2)) {
|
53481
53483
|
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
53482
|
-
} else if (isX(
|
53484
|
+
} else if (isX(p)) {
|
53483
53485
|
ret = `>=${M}.${m2}.0 <${M}.${+m2 + 1}.0-0`;
|
53484
53486
|
} else if (pr) {
|
53485
53487
|
debug("replaceTilde pr", pr);
|
53486
|
-
ret = `>=${M}.${m2}.${
|
53488
|
+
ret = `>=${M}.${m2}.${p}-${pr} <${M}.${+m2 + 1}.0-0`;
|
53487
53489
|
} else {
|
53488
|
-
ret = `>=${M}.${m2}.${
|
53490
|
+
ret = `>=${M}.${m2}.${p} <${M}.${+m2 + 1}.0-0`;
|
53489
53491
|
}
|
53490
53492
|
debug("tilde return", ret);
|
53491
53493
|
return ret;
|
@@ -53498,14 +53500,14 @@ var require_range = __commonJS({
|
|
53498
53500
|
debug("caret", comp, options);
|
53499
53501
|
const r2 = options.loose ? re[t2.CARETLOOSE] : re[t2.CARET];
|
53500
53502
|
const z2 = options.includePrerelease ? "-0" : "";
|
53501
|
-
return comp.replace(r2, (_2, M, m2,
|
53502
|
-
debug("caret", comp, _2, M, m2,
|
53503
|
+
return comp.replace(r2, (_2, M, m2, p, pr) => {
|
53504
|
+
debug("caret", comp, _2, M, m2, p, pr);
|
53503
53505
|
let ret;
|
53504
53506
|
if (isX(M)) {
|
53505
53507
|
ret = "";
|
53506
53508
|
} else if (isX(m2)) {
|
53507
53509
|
ret = `>=${M}.0.0${z2} <${+M + 1}.0.0-0`;
|
53508
|
-
} else if (isX(
|
53510
|
+
} else if (isX(p)) {
|
53509
53511
|
if (M === "0") {
|
53510
53512
|
ret = `>=${M}.${m2}.0${z2} <${M}.${+m2 + 1}.0-0`;
|
53511
53513
|
} else {
|
@@ -53515,23 +53517,23 @@ var require_range = __commonJS({
|
|
53515
53517
|
debug("replaceCaret pr", pr);
|
53516
53518
|
if (M === "0") {
|
53517
53519
|
if (m2 === "0") {
|
53518
|
-
ret = `>=${M}.${m2}.${
|
53520
|
+
ret = `>=${M}.${m2}.${p}-${pr} <${M}.${m2}.${+p + 1}-0`;
|
53519
53521
|
} else {
|
53520
|
-
ret = `>=${M}.${m2}.${
|
53522
|
+
ret = `>=${M}.${m2}.${p}-${pr} <${M}.${+m2 + 1}.0-0`;
|
53521
53523
|
}
|
53522
53524
|
} else {
|
53523
|
-
ret = `>=${M}.${m2}.${
|
53525
|
+
ret = `>=${M}.${m2}.${p}-${pr} <${+M + 1}.0.0-0`;
|
53524
53526
|
}
|
53525
53527
|
} else {
|
53526
53528
|
debug("no pr");
|
53527
53529
|
if (M === "0") {
|
53528
53530
|
if (m2 === "0") {
|
53529
|
-
ret = `>=${M}.${m2}.${
|
53531
|
+
ret = `>=${M}.${m2}.${p}${z2} <${M}.${m2}.${+p + 1}-0`;
|
53530
53532
|
} else {
|
53531
|
-
ret = `>=${M}.${m2}.${
|
53533
|
+
ret = `>=${M}.${m2}.${p}${z2} <${M}.${+m2 + 1}.0-0`;
|
53532
53534
|
}
|
53533
53535
|
} else {
|
53534
|
-
ret = `>=${M}.${m2}.${
|
53536
|
+
ret = `>=${M}.${m2}.${p} <${+M + 1}.0.0-0`;
|
53535
53537
|
}
|
53536
53538
|
}
|
53537
53539
|
debug("caret return", ret);
|
@@ -53545,11 +53547,11 @@ var require_range = __commonJS({
|
|
53545
53547
|
var replaceXRange = (comp, options) => {
|
53546
53548
|
comp = comp.trim();
|
53547
53549
|
const r2 = options.loose ? re[t2.XRANGELOOSE] : re[t2.XRANGE];
|
53548
|
-
return comp.replace(r2, (ret, gtlt, M, m2,
|
53549
|
-
debug("xRange", comp, ret, gtlt, M, m2,
|
53550
|
+
return comp.replace(r2, (ret, gtlt, M, m2, p, pr) => {
|
53551
|
+
debug("xRange", comp, ret, gtlt, M, m2, p, pr);
|
53550
53552
|
const xM = isX(M);
|
53551
53553
|
const xm = xM || isX(m2);
|
53552
|
-
const xp = xm || isX(
|
53554
|
+
const xp = xm || isX(p);
|
53553
53555
|
const anyX = xp;
|
53554
53556
|
if (gtlt === "=" && anyX) {
|
53555
53557
|
gtlt = "";
|
@@ -53565,16 +53567,16 @@ var require_range = __commonJS({
|
|
53565
53567
|
if (xm) {
|
53566
53568
|
m2 = 0;
|
53567
53569
|
}
|
53568
|
-
|
53570
|
+
p = 0;
|
53569
53571
|
if (gtlt === ">") {
|
53570
53572
|
gtlt = ">=";
|
53571
53573
|
if (xm) {
|
53572
53574
|
M = +M + 1;
|
53573
53575
|
m2 = 0;
|
53574
|
-
|
53576
|
+
p = 0;
|
53575
53577
|
} else {
|
53576
53578
|
m2 = +m2 + 1;
|
53577
|
-
|
53579
|
+
p = 0;
|
53578
53580
|
}
|
53579
53581
|
} else if (gtlt === "<=") {
|
53580
53582
|
gtlt = "<";
|
@@ -53587,7 +53589,7 @@ var require_range = __commonJS({
|
|
53587
53589
|
if (gtlt === "<") {
|
53588
53590
|
pr = "-0";
|
53589
53591
|
}
|
53590
|
-
ret = `${gtlt + M}.${m2}.${
|
53592
|
+
ret = `${gtlt + M}.${m2}.${p}${pr}`;
|
53591
53593
|
} else if (xm) {
|
53592
53594
|
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
53593
53595
|
} else if (xp) {
|
@@ -55169,14 +55171,14 @@ var init_headers = __esm({
|
|
55169
55171
|
}) : void 0;
|
55170
55172
|
super(result);
|
55171
55173
|
return new Proxy(this, {
|
55172
|
-
get(target,
|
55173
|
-
switch (
|
55174
|
+
get(target, p, receiver) {
|
55175
|
+
switch (p) {
|
55174
55176
|
case "append":
|
55175
55177
|
case "set":
|
55176
55178
|
return (name, value) => {
|
55177
55179
|
validateHeaderName(name);
|
55178
55180
|
validateHeaderValue(name, String(value));
|
55179
|
-
return URLSearchParams.prototype[
|
55181
|
+
return URLSearchParams.prototype[p].call(
|
55180
55182
|
target,
|
55181
55183
|
String(name).toLowerCase(),
|
55182
55184
|
String(value)
|
@@ -55187,7 +55189,7 @@ var init_headers = __esm({
|
|
55187
55189
|
case "getAll":
|
55188
55190
|
return (name) => {
|
55189
55191
|
validateHeaderName(name);
|
55190
|
-
return URLSearchParams.prototype[
|
55192
|
+
return URLSearchParams.prototype[p].call(
|
55191
55193
|
target,
|
55192
55194
|
String(name).toLowerCase()
|
55193
55195
|
);
|
@@ -55198,7 +55200,7 @@ var init_headers = __esm({
|
|
55198
55200
|
return new Set(URLSearchParams.prototype.keys.call(target)).keys();
|
55199
55201
|
};
|
55200
55202
|
default:
|
55201
|
-
return Reflect.get(target,
|
55203
|
+
return Reflect.get(target, p, receiver);
|
55202
55204
|
}
|
55203
55205
|
}
|
55204
55206
|
});
|
@@ -67209,13 +67211,13 @@ function __extends(d, b) {
|
|
67209
67211
|
}
|
67210
67212
|
function __rest(s2, e2) {
|
67211
67213
|
var t2 = {};
|
67212
|
-
for (var
|
67213
|
-
if (Object.prototype.hasOwnProperty.call(s2,
|
67214
|
-
t2[
|
67214
|
+
for (var p in s2)
|
67215
|
+
if (Object.prototype.hasOwnProperty.call(s2, p) && e2.indexOf(p) < 0)
|
67216
|
+
t2[p] = s2[p];
|
67215
67217
|
if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
|
67216
|
-
for (var i2 = 0,
|
67217
|
-
if (e2.indexOf(
|
67218
|
-
t2[
|
67218
|
+
for (var i2 = 0, p = Object.getOwnPropertySymbols(s2); i2 < p.length; i2++) {
|
67219
|
+
if (e2.indexOf(p[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p[i2]))
|
67220
|
+
t2[p[i2]] = s2[p[i2]];
|
67219
67221
|
}
|
67220
67222
|
return t2;
|
67221
67223
|
}
|
@@ -67246,10 +67248,10 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
|
67246
67248
|
var _2, done = false;
|
67247
67249
|
for (var i2 = decorators.length - 1; i2 >= 0; i2--) {
|
67248
67250
|
var context = {};
|
67249
|
-
for (var
|
67250
|
-
context[
|
67251
|
-
for (var
|
67252
|
-
context.access[
|
67251
|
+
for (var p in contextIn)
|
67252
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
67253
|
+
for (var p in contextIn.access)
|
67254
|
+
context.access[p] = contextIn.access[p];
|
67253
67255
|
context.addInitializer = function(f3) {
|
67254
67256
|
if (done)
|
67255
67257
|
throw new TypeError("Cannot add initializers after decoration has completed");
|
@@ -67401,9 +67403,9 @@ function __generator(thisArg, body) {
|
|
67401
67403
|
}
|
67402
67404
|
}
|
67403
67405
|
function __exportStar(m2, o) {
|
67404
|
-
for (var
|
67405
|
-
if (
|
67406
|
-
__createBinding(o, m2,
|
67406
|
+
for (var p in m2)
|
67407
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
67408
|
+
__createBinding(o, m2, p);
|
67407
67409
|
}
|
67408
67410
|
function __values(o) {
|
67409
67411
|
var s2 = typeof Symbol === "function" && Symbol.iterator, m2 = s2 && o[s2], i2 = 0;
|
@@ -67512,7 +67514,7 @@ function __asyncGenerator(thisArg, _arguments, generator) {
|
|
67512
67514
|
}
|
67513
67515
|
}
|
67514
67516
|
function __asyncDelegator(o) {
|
67515
|
-
var i2,
|
67517
|
+
var i2, p;
|
67516
67518
|
return i2 = {}, verb("next"), verb("throw", function(e2) {
|
67517
67519
|
throw e2;
|
67518
67520
|
}), verb("return"), i2[Symbol.iterator] = function() {
|
@@ -67520,7 +67522,7 @@ function __asyncDelegator(o) {
|
|
67520
67522
|
}, i2;
|
67521
67523
|
function verb(n, f3) {
|
67522
67524
|
i2[n] = o[n] ? function(v) {
|
67523
|
-
return (
|
67525
|
+
return (p = !p) ? { value: __await(o[n](v)), done: false } : f3 ? f3(v) : v;
|
67524
67526
|
} : f3;
|
67525
67527
|
}
|
67526
67528
|
}
|
@@ -67667,9 +67669,9 @@ var init_tslib_es6 = __esm({
|
|
67667
67669
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
67668
67670
|
d2.__proto__ = b2;
|
67669
67671
|
} || function(d2, b2) {
|
67670
|
-
for (var
|
67671
|
-
if (Object.prototype.hasOwnProperty.call(b2,
|
67672
|
-
d2[
|
67672
|
+
for (var p in b2)
|
67673
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
67674
|
+
d2[p] = b2[p];
|
67673
67675
|
};
|
67674
67676
|
return extendStatics(d, b);
|
67675
67677
|
};
|
@@ -67677,9 +67679,9 @@ var init_tslib_es6 = __esm({
|
|
67677
67679
|
__assign = Object.assign || function __assign3(t2) {
|
67678
67680
|
for (var s2, i2 = 1, n = arguments.length; i2 < n; i2++) {
|
67679
67681
|
s2 = arguments[i2];
|
67680
|
-
for (var
|
67681
|
-
if (Object.prototype.hasOwnProperty.call(s2,
|
67682
|
-
t2[
|
67682
|
+
for (var p in s2)
|
67683
|
+
if (Object.prototype.hasOwnProperty.call(s2, p))
|
67684
|
+
t2[p] = s2[p];
|
67683
67685
|
}
|
67684
67686
|
return t2;
|
67685
67687
|
};
|
@@ -70568,13 +70570,13 @@ function __extends2(d, b) {
|
|
70568
70570
|
}
|
70569
70571
|
function __rest2(s2, e2) {
|
70570
70572
|
var t2 = {};
|
70571
|
-
for (var
|
70572
|
-
if (Object.prototype.hasOwnProperty.call(s2,
|
70573
|
-
t2[
|
70573
|
+
for (var p in s2)
|
70574
|
+
if (Object.prototype.hasOwnProperty.call(s2, p) && e2.indexOf(p) < 0)
|
70575
|
+
t2[p] = s2[p];
|
70574
70576
|
if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
|
70575
|
-
for (var i2 = 0,
|
70576
|
-
if (e2.indexOf(
|
70577
|
-
t2[
|
70577
|
+
for (var i2 = 0, p = Object.getOwnPropertySymbols(s2); i2 < p.length; i2++) {
|
70578
|
+
if (e2.indexOf(p[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p[i2]))
|
70579
|
+
t2[p[i2]] = s2[p[i2]];
|
70578
70580
|
}
|
70579
70581
|
return t2;
|
70580
70582
|
}
|
@@ -70605,10 +70607,10 @@ function __esDecorate2(ctor, descriptorIn, decorators, contextIn, initializers,
|
|
70605
70607
|
var _2, done = false;
|
70606
70608
|
for (var i2 = decorators.length - 1; i2 >= 0; i2--) {
|
70607
70609
|
var context = {};
|
70608
|
-
for (var
|
70609
|
-
context[
|
70610
|
-
for (var
|
70611
|
-
context.access[
|
70610
|
+
for (var p in contextIn)
|
70611
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
70612
|
+
for (var p in contextIn.access)
|
70613
|
+
context.access[p] = contextIn.access[p];
|
70612
70614
|
context.addInitializer = function(f3) {
|
70613
70615
|
if (done)
|
70614
70616
|
throw new TypeError("Cannot add initializers after decoration has completed");
|
@@ -70760,9 +70762,9 @@ function __generator2(thisArg, body) {
|
|
70760
70762
|
}
|
70761
70763
|
}
|
70762
70764
|
function __exportStar2(m2, o) {
|
70763
|
-
for (var
|
70764
|
-
if (
|
70765
|
-
__createBinding2(o, m2,
|
70765
|
+
for (var p in m2)
|
70766
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
70767
|
+
__createBinding2(o, m2, p);
|
70766
70768
|
}
|
70767
70769
|
function __values2(o) {
|
70768
70770
|
var s2 = typeof Symbol === "function" && Symbol.iterator, m2 = s2 && o[s2], i2 = 0;
|
@@ -70863,7 +70865,7 @@ function __asyncGenerator2(thisArg, _arguments, generator) {
|
|
70863
70865
|
}
|
70864
70866
|
}
|
70865
70867
|
function __asyncDelegator2(o) {
|
70866
|
-
var i2,
|
70868
|
+
var i2, p;
|
70867
70869
|
return i2 = {}, verb("next"), verb("throw", function(e2) {
|
70868
70870
|
throw e2;
|
70869
70871
|
}), verb("return"), i2[Symbol.iterator] = function() {
|
@@ -70871,7 +70873,7 @@ function __asyncDelegator2(o) {
|
|
70871
70873
|
}, i2;
|
70872
70874
|
function verb(n, f3) {
|
70873
70875
|
i2[n] = o[n] ? function(v) {
|
70874
|
-
return (
|
70876
|
+
return (p = !p) ? { value: __await2(o[n](v)), done: false } : f3 ? f3(v) : v;
|
70875
70877
|
} : f3;
|
70876
70878
|
}
|
70877
70879
|
}
|
@@ -70993,9 +70995,9 @@ var init_tslib_es62 = __esm({
|
|
70993
70995
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
70994
70996
|
d2.__proto__ = b2;
|
70995
70997
|
} || function(d2, b2) {
|
70996
|
-
for (var
|
70997
|
-
if (Object.prototype.hasOwnProperty.call(b2,
|
70998
|
-
d2[
|
70998
|
+
for (var p in b2)
|
70999
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
71000
|
+
d2[p] = b2[p];
|
70999
71001
|
};
|
71000
71002
|
return extendStatics2(d, b);
|
71001
71003
|
};
|
@@ -71003,9 +71005,9 @@ var init_tslib_es62 = __esm({
|
|
71003
71005
|
__assign2 = Object.assign || function __assign3(t2) {
|
71004
71006
|
for (var s2, i2 = 1, n = arguments.length; i2 < n; i2++) {
|
71005
71007
|
s2 = arguments[i2];
|
71006
|
-
for (var
|
71007
|
-
if (Object.prototype.hasOwnProperty.call(s2,
|
71008
|
-
t2[
|
71008
|
+
for (var p in s2)
|
71009
|
+
if (Object.prototype.hasOwnProperty.call(s2, p))
|
71010
|
+
t2[p] = s2[p];
|
71009
71011
|
}
|
71010
71012
|
return t2;
|
71011
71013
|
};
|
@@ -72226,12 +72228,12 @@ var require_ruleset = __commonJS({
|
|
72226
72228
|
var m2 = { [v]: c, [w]: [{ [x2]: "UseDualStack" }, true] };
|
72227
72229
|
var n = {};
|
72228
72230
|
var o = { [v]: h2, [w]: [{ [x2]: g }, "supportsFIPS"] };
|
72229
|
-
var
|
72230
|
-
var q = { [v]: c, [w]: [true, { [v]: h2, [w]: [
|
72231
|
+
var p = { [x2]: g };
|
72232
|
+
var q = { [v]: c, [w]: [true, { [v]: h2, [w]: [p, "supportsDualStack"] }] };
|
72231
72233
|
var r2 = [l];
|
72232
72234
|
var s2 = [m2];
|
72233
72235
|
var t2 = [{ [x2]: "Region" }];
|
72234
|
-
var _data = { version: "1.0", parameters: { Region: i2, UseDualStack: j, UseFIPS: j, Endpoint: i2 }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r2, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s2, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e2 }], type: f3 }, { conditions: [{ [v]: b, [w]: t2 }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t2, assign: g }], rules: [{ conditions: [l, m2], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e2 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f3 }, { conditions: r2, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h2, [w]: [
|
72236
|
+
var _data = { version: "1.0", parameters: { Region: i2, UseDualStack: j, UseFIPS: j, Endpoint: i2 }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r2, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s2, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e2 }], type: f3 }, { conditions: [{ [v]: b, [w]: t2 }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t2, assign: g }], rules: [{ conditions: [l, m2], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e2 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f3 }, { conditions: r2, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h2, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n }, type: e2 }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e2 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f3 }, { conditions: s2, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e2 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f3 }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e2 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
72235
72237
|
exports2.ruleSet = _data;
|
72236
72238
|
}
|
72237
72239
|
});
|
@@ -73306,12 +73308,12 @@ var require_ruleset2 = __commonJS({
|
|
73306
73308
|
var m2 = { [v]: c, [w]: [{ [x2]: "UseDualStack" }, true] };
|
73307
73309
|
var n = {};
|
73308
73310
|
var o = { [v]: h2, [w]: [{ [x2]: g }, "supportsFIPS"] };
|
73309
|
-
var
|
73310
|
-
var q = { [v]: c, [w]: [true, { [v]: h2, [w]: [
|
73311
|
+
var p = { [x2]: g };
|
73312
|
+
var q = { [v]: c, [w]: [true, { [v]: h2, [w]: [p, "supportsDualStack"] }] };
|
73311
73313
|
var r2 = [l];
|
73312
73314
|
var s2 = [m2];
|
73313
73315
|
var t2 = [{ [x2]: "Region" }];
|
73314
|
-
var _data = { version: "1.0", parameters: { Region: i2, UseDualStack: j, UseFIPS: j, Endpoint: i2 }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r2, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s2, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e2 }], type: f3 }, { conditions: [{ [v]: b, [w]: t2 }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t2, assign: g }], rules: [{ conditions: [l, m2], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e2 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f3 }, { conditions: r2, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h2, [w]: [
|
73316
|
+
var _data = { version: "1.0", parameters: { Region: i2, UseDualStack: j, UseFIPS: j, Endpoint: i2 }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r2, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s2, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e2 }], type: f3 }, { conditions: [{ [v]: b, [w]: t2 }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t2, assign: g }], rules: [{ conditions: [l, m2], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e2 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f3 }, { conditions: r2, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h2, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n }, type: e2 }, { endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e2 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f3 }, { conditions: s2, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e2 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f3 }, { endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e2 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
73315
73317
|
exports2.ruleSet = _data;
|
73316
73318
|
}
|
73317
73319
|
});
|
@@ -75015,7 +75017,7 @@ var require_ruleset3 = __commonJS({
|
|
75015
75017
|
var m2 = { [F2]: false, [G]: "String" };
|
75016
75018
|
var n = { [F2]: true, "default": false, [G]: "Boolean" };
|
75017
75019
|
var o = { [J]: "Endpoint" };
|
75018
|
-
var
|
75020
|
+
var p = { [H]: "isSet", [I]: [{ [J]: "Region" }] };
|
75019
75021
|
var q = { [J]: "Region" };
|
75020
75022
|
var r2 = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" };
|
75021
75023
|
var s2 = { [J]: "UseFIPS" };
|
@@ -75031,7 +75033,7 @@ var require_ruleset3 = __commonJS({
|
|
75031
75033
|
var C = [{ [H]: "isSet", [I]: [o] }];
|
75032
75034
|
var D = [x2];
|
75033
75035
|
var E = [y];
|
75034
|
-
var _data = { version: "1.0", parameters: { Region: m2, UseDualStack: n, UseFIPS: n, Endpoint: m2, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C },
|
75036
|
+
var _data = { version: "1.0", parameters: { Region: m2, UseDualStack: n, UseFIPS: n, Endpoint: m2, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r2, { [H]: c, [I]: [s2, a] }, { [H]: c, [I]: [t2, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h2 }, w, { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h2 }, { endpoint: { url: i2, properties: { authSchemes: [{ name: e2, signingName: f3, signingRegion: "{Region}" }] }, headers: v }, [G]: h2 }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h2 }], [G]: j }, { conditions: [p], rules: [{ conditions: [r2], rules: [{ conditions: [x2, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z2] }, B], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h2 }], [G]: j }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z2, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A2, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: h2 }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: h2 }], [G]: j }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h2 }], [G]: j }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }], [G]: j }, w, { endpoint: { url: i2, properties: v, headers: v }, [G]: h2 }], [G]: j }], [G]: j }, { error: "Invalid Configuration: Missing Region", [G]: k }] };
|
75035
75037
|
exports2.ruleSet = _data;
|
75036
75038
|
}
|
75037
75039
|
});
|
@@ -77186,10 +77188,10 @@ var require_ruleset4 = __commonJS({
|
|
77186
77188
|
var m2 = {};
|
77187
77189
|
var n = { [t2]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] };
|
77188
77190
|
var o = { [t2]: c, [u]: [true, { [t2]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] };
|
77189
|
-
var
|
77191
|
+
var p = [k];
|
77190
77192
|
var q = [l];
|
77191
77193
|
var r2 = [{ [v]: "Region" }];
|
77192
|
-
var _data = { version: "1.0", parameters: { Region: h2, UseDualStack: i2, UseFIPS: i2, Endpoint: h2 }, rules: [{ conditions: [{ [t2]: b, [u]: [j] }], rules: [{ conditions:
|
77194
|
+
var _data = { version: "1.0", parameters: { Region: h2, UseDualStack: i2, UseFIPS: i2, Endpoint: h2 }, rules: [{ conditions: [{ [t2]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m2, headers: m2 }, type: e2 }], type: f3 }, { conditions: [{ [t2]: b, [u]: r2 }], rules: [{ conditions: [{ [t2]: "aws.partition", [u]: r2, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t2]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://rds-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m2, headers: m2 }, type: e2 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f3 }, { conditions: p, rules: [{ conditions: [{ [t2]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://rds-data-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m2, headers: m2 }, type: e2 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f3 }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://rds-data.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m2, headers: m2 }, type: e2 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f3 }, { endpoint: { url: "https://rds-data.{Region}.{PartitionResult#dnsSuffix}", properties: m2, headers: m2 }, type: e2 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
77193
77195
|
exports2.ruleSet = _data;
|
77194
77196
|
}
|
77195
77197
|
});
|
@@ -80407,12 +80409,12 @@ var init_mjs = __esm({
|
|
80407
80409
|
init_unescape();
|
80408
80410
|
init_escape();
|
80409
80411
|
init_unescape();
|
80410
|
-
minimatch = (
|
80412
|
+
minimatch = (p, pattern, options = {}) => {
|
80411
80413
|
assertValidPattern(pattern);
|
80412
80414
|
if (!options.nocomment && pattern.charAt(0) === "#") {
|
80413
80415
|
return false;
|
80414
80416
|
}
|
80415
|
-
return new Minimatch(pattern, options).match(
|
80417
|
+
return new Minimatch(pattern, options).match(p);
|
80416
80418
|
};
|
80417
80419
|
starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
|
80418
80420
|
starDotExtTest = (ext2) => (f3) => !f3.startsWith(".") && f3.endsWith(ext2);
|
@@ -80490,7 +80492,7 @@ var init_mjs = __esm({
|
|
80490
80492
|
}, {});
|
80491
80493
|
reSpecials = charSet("().*{}+?[]^$\\!");
|
80492
80494
|
addPatternStartSet = charSet("[.(");
|
80493
|
-
filter = (pattern, options = {}) => (
|
80495
|
+
filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
|
80494
80496
|
minimatch.filter = filter;
|
80495
80497
|
ext = (a, b = {}) => Object.assign({}, a, b);
|
80496
80498
|
defaults2 = (def) => {
|
@@ -80498,7 +80500,7 @@ var init_mjs = __esm({
|
|
80498
80500
|
return minimatch;
|
80499
80501
|
}
|
80500
80502
|
const orig = minimatch;
|
80501
|
-
const m2 = (
|
80503
|
+
const m2 = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
|
80502
80504
|
return Object.assign(m2, {
|
80503
80505
|
Minimatch: class Minimatch extends orig.Minimatch {
|
80504
80506
|
constructor(pattern, options = {}) {
|
@@ -80644,9 +80646,9 @@ var init_mjs = __esm({
|
|
80644
80646
|
this.set = set.filter((s2) => s2.indexOf(false) === -1);
|
80645
80647
|
if (this.isWindows) {
|
80646
80648
|
for (let i2 = 0; i2 < this.set.length; i2++) {
|
80647
|
-
const
|
80648
|
-
if (
|
80649
|
-
|
80649
|
+
const p = this.set[i2];
|
80650
|
+
if (p[0] === "" && p[1] === "" && this.globParts[i2][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) {
|
80651
|
+
p[2] = "?";
|
80650
80652
|
}
|
80651
80653
|
}
|
80652
80654
|
}
|
@@ -80723,10 +80725,10 @@ var init_mjs = __esm({
|
|
80723
80725
|
didSomething = false;
|
80724
80726
|
if (!this.preserveMultipleSlashes) {
|
80725
80727
|
for (let i2 = 1; i2 < parts.length - 1; i2++) {
|
80726
|
-
const
|
80727
|
-
if (i2 === 1 &&
|
80728
|
+
const p = parts[i2];
|
80729
|
+
if (i2 === 1 && p === "" && parts[0] === "")
|
80728
80730
|
continue;
|
80729
|
-
if (
|
80731
|
+
if (p === "." || p === "") {
|
80730
80732
|
didSomething = true;
|
80731
80733
|
parts.splice(i2, 1);
|
80732
80734
|
i2--;
|
@@ -80739,8 +80741,8 @@ var init_mjs = __esm({
|
|
80739
80741
|
}
|
80740
80742
|
let dd = 0;
|
80741
80743
|
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
80742
|
-
const
|
80743
|
-
if (
|
80744
|
+
const p = parts[dd - 1];
|
80745
|
+
if (p && p !== "." && p !== ".." && p !== "**") {
|
80744
80746
|
didSomething = true;
|
80745
80747
|
parts.splice(dd - 1, 2);
|
80746
80748
|
dd -= 2;
|
@@ -80782,11 +80784,11 @@ var init_mjs = __esm({
|
|
80782
80784
|
parts.splice(gs + 1, gss - gs);
|
80783
80785
|
}
|
80784
80786
|
let next = parts[gs + 1];
|
80785
|
-
const
|
80786
|
-
const
|
80787
|
+
const p = parts[gs + 2];
|
80788
|
+
const p2 = parts[gs + 3];
|
80787
80789
|
if (next !== "..")
|
80788
80790
|
continue;
|
80789
|
-
if (!
|
80791
|
+
if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
|
80790
80792
|
continue;
|
80791
80793
|
}
|
80792
80794
|
didSomething = true;
|
@@ -80798,10 +80800,10 @@ var init_mjs = __esm({
|
|
80798
80800
|
}
|
80799
80801
|
if (!this.preserveMultipleSlashes) {
|
80800
80802
|
for (let i2 = 1; i2 < parts.length - 1; i2++) {
|
80801
|
-
const
|
80802
|
-
if (i2 === 1 &&
|
80803
|
+
const p = parts[i2];
|
80804
|
+
if (i2 === 1 && p === "" && parts[0] === "")
|
80803
80805
|
continue;
|
80804
|
-
if (
|
80806
|
+
if (p === "." || p === "") {
|
80805
80807
|
didSomething = true;
|
80806
80808
|
parts.splice(i2, 1);
|
80807
80809
|
i2--;
|
@@ -80814,8 +80816,8 @@ var init_mjs = __esm({
|
|
80814
80816
|
}
|
80815
80817
|
let dd = 0;
|
80816
80818
|
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
80817
|
-
const
|
80818
|
-
if (
|
80819
|
+
const p = parts[dd - 1];
|
80820
|
+
if (p && p !== "." && p !== ".." && p !== "**") {
|
80819
80821
|
didSomething = true;
|
80820
80822
|
const needDot = dd === 1 && parts[dd + 1] === "**";
|
80821
80823
|
const splin = needDot ? ["."] : [];
|
@@ -80937,14 +80939,14 @@ var init_mjs = __esm({
|
|
80937
80939
|
this.debug("matchOne", file.length, pattern.length);
|
80938
80940
|
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
80939
80941
|
this.debug("matchOne loop");
|
80940
|
-
var
|
80942
|
+
var p = pattern[pi];
|
80941
80943
|
var f3 = file[fi];
|
80942
|
-
this.debug(pattern,
|
80943
|
-
if (
|
80944
|
+
this.debug(pattern, p, f3);
|
80945
|
+
if (p === false) {
|
80944
80946
|
return false;
|
80945
80947
|
}
|
80946
|
-
if (
|
80947
|
-
this.debug("GLOBSTAR", [pattern,
|
80948
|
+
if (p === GLOBSTAR) {
|
80949
|
+
this.debug("GLOBSTAR", [pattern, p, f3]);
|
80948
80950
|
var fr = fi;
|
80949
80951
|
var pr = pi + 1;
|
80950
80952
|
if (pr === pl) {
|
@@ -80979,12 +80981,12 @@ var init_mjs = __esm({
|
|
80979
80981
|
return false;
|
80980
80982
|
}
|
80981
80983
|
let hit;
|
80982
|
-
if (typeof
|
80983
|
-
hit = f3 ===
|
80984
|
-
this.debug("string match",
|
80984
|
+
if (typeof p === "string") {
|
80985
|
+
hit = f3 === p;
|
80986
|
+
this.debug("string match", p, f3, hit);
|
80985
80987
|
} else {
|
80986
|
-
hit =
|
80987
|
-
this.debug("pattern match",
|
80988
|
+
hit = p.test(f3);
|
80989
|
+
this.debug("pattern match", p, f3, hit);
|
80988
80990
|
}
|
80989
80991
|
if (!hit)
|
80990
80992
|
return false;
|
@@ -81033,7 +81035,7 @@ var init_mjs = __esm({
|
|
81033
81035
|
let dotTravAllowed = pattern.charAt(0) === ".";
|
81034
81036
|
let dotFileAllowed = options.dot || dotTravAllowed;
|
81035
81037
|
const patternStart = () => dotTravAllowed ? "" : dotFileAllowed ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
81036
|
-
const subPatternStart = (
|
81038
|
+
const subPatternStart = (p) => p.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
81037
81039
|
const clearStateChar = () => {
|
81038
81040
|
if (stateChar) {
|
81039
81041
|
switch (stateChar) {
|
@@ -81236,11 +81238,11 @@ var init_mjs = __esm({
|
|
81236
81238
|
const twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot;
|
81237
81239
|
const flags = options.nocase ? "i" : "";
|
81238
81240
|
let re = set.map((pattern) => {
|
81239
|
-
const pp = pattern.map((
|
81240
|
-
pp.forEach((
|
81241
|
+
const pp = pattern.map((p) => typeof p === "string" ? regExpEscape(p) : p === GLOBSTAR ? GLOBSTAR : p._src);
|
81242
|
+
pp.forEach((p, i2) => {
|
81241
81243
|
const next = pp[i2 + 1];
|
81242
81244
|
const prev = pp[i2 - 1];
|
81243
|
-
if (
|
81245
|
+
if (p !== GLOBSTAR || prev === GLOBSTAR) {
|
81244
81246
|
return;
|
81245
81247
|
}
|
81246
81248
|
if (prev === void 0) {
|
@@ -81256,7 +81258,7 @@ var init_mjs = __esm({
|
|
81256
81258
|
pp[i2 + 1] = GLOBSTAR;
|
81257
81259
|
}
|
81258
81260
|
});
|
81259
|
-
return pp.filter((
|
81261
|
+
return pp.filter((p) => p !== GLOBSTAR).join("/");
|
81260
81262
|
}).join("|");
|
81261
81263
|
re = "^(?:" + re + ")$";
|
81262
81264
|
if (this.negate)
|
@@ -81268,13 +81270,13 @@ var init_mjs = __esm({
|
|
81268
81270
|
}
|
81269
81271
|
return this.regexp;
|
81270
81272
|
}
|
81271
|
-
slashSplit(
|
81273
|
+
slashSplit(p) {
|
81272
81274
|
if (this.preserveMultipleSlashes) {
|
81273
|
-
return
|
81274
|
-
} else if (this.isWindows && /^\/\/[^\/]+/.test(
|
81275
|
-
return ["", ...
|
81275
|
+
return p.split("/");
|
81276
|
+
} else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
|
81277
|
+
return ["", ...p.split(/\/+/)];
|
81276
81278
|
} else {
|
81277
|
-
return
|
81279
|
+
return p.split(/\/+/);
|
81278
81280
|
}
|
81279
81281
|
}
|
81280
81282
|
match(f3, partial = this.partial) {
|
@@ -84343,6 +84345,7 @@ var init_introspect_singlestore = __esm({
|
|
84343
84345
|
"tinyint",
|
84344
84346
|
"varbinary",
|
84345
84347
|
"varchar",
|
84348
|
+
"vector",
|
84346
84349
|
"year",
|
84347
84350
|
"enum"
|
84348
84351
|
]);
|
@@ -84740,6 +84743,12 @@ import { sql } from "drizzle-orm"
|
|
84740
84743
|
out += defaultValue;
|
84741
84744
|
return out;
|
84742
84745
|
}
|
84746
|
+
if (lowered.startsWith("vector")) {
|
84747
|
+
const [dimensions, elementType] = lowered.substring("vector".length + 1, lowered.length - 1).split(",");
|
84748
|
+
let out = `${casing2(name)}: vector(${dbColumnName4({ name, casing: rawCasing, withMode: true })}{ dimensions: ${dimensions}, elementType: ${elementType} })`;
|
84749
|
+
out += defaultValue ? `.default(${mapColumnDefault4(defaultValue, isExpression)})` : "";
|
84750
|
+
return out;
|
84751
|
+
}
|
84743
84752
|
console.log("uknown", type);
|
84744
84753
|
return `// Warning: Can't parse ${type} from database
|
84745
84754
|
// ${type}Type: ${type}("${name}")`;
|
@@ -85901,26 +85910,26 @@ var init_url = __esm({
|
|
85901
85910
|
return result.length > 1 && result[result.length - 1] === "/" ? result.slice(0, -1) : result;
|
85902
85911
|
};
|
85903
85912
|
mergePath = (...paths) => {
|
85904
|
-
let
|
85913
|
+
let p = "";
|
85905
85914
|
let endsWithSlash = false;
|
85906
85915
|
for (let path5 of paths) {
|
85907
|
-
if (
|
85908
|
-
|
85916
|
+
if (p[p.length - 1] === "/") {
|
85917
|
+
p = p.slice(0, -1);
|
85909
85918
|
endsWithSlash = true;
|
85910
85919
|
}
|
85911
85920
|
if (path5[0] !== "/") {
|
85912
85921
|
path5 = `/${path5}`;
|
85913
85922
|
}
|
85914
85923
|
if (path5 === "/" && endsWithSlash) {
|
85915
|
-
|
85924
|
+
p = `${p}/`;
|
85916
85925
|
} else if (path5 !== "/") {
|
85917
|
-
|
85926
|
+
p = `${p}${path5}`;
|
85918
85927
|
}
|
85919
|
-
if (path5 === "/" &&
|
85920
|
-
|
85928
|
+
if (path5 === "/" && p === "") {
|
85929
|
+
p = "/";
|
85921
85930
|
}
|
85922
85931
|
}
|
85923
|
-
return
|
85932
|
+
return p;
|
85924
85933
|
};
|
85925
85934
|
checkOptionalParameter = (path5) => {
|
85926
85935
|
if (!path5.match(/\:.+\?$/)) {
|
@@ -86848,8 +86857,8 @@ var init_hono_base = __esm({
|
|
86848
86857
|
};
|
86849
86858
|
});
|
86850
86859
|
this.on = (method, path5, ...handlers) => {
|
86851
|
-
for (const
|
86852
|
-
this.#path =
|
86860
|
+
for (const p of [path5].flat()) {
|
86861
|
+
this.#path = p;
|
86853
86862
|
for (const m2 of [method].flat()) {
|
86854
86863
|
handlers.map((handler) => {
|
86855
86864
|
this.addRoute(m2.toUpperCase(), this.#path, handler);
|
@@ -87314,8 +87323,8 @@ var init_router2 = __esm({
|
|
87314
87323
|
;
|
87315
87324
|
[middleware, routes].forEach((handlerMap) => {
|
87316
87325
|
handlerMap[method] = /* @__PURE__ */ Object.create(null);
|
87317
|
-
Object.keys(handlerMap[METHOD_NAME_ALL]).forEach((
|
87318
|
-
handlerMap[method][
|
87326
|
+
Object.keys(handlerMap[METHOD_NAME_ALL]).forEach((p) => {
|
87327
|
+
handlerMap[method][p] = [...handlerMap[METHOD_NAME_ALL][p]];
|
87319
87328
|
});
|
87320
87329
|
});
|
87321
87330
|
}
|
@@ -87334,15 +87343,15 @@ var init_router2 = __esm({
|
|
87334
87343
|
}
|
87335
87344
|
Object.keys(middleware).forEach((m2) => {
|
87336
87345
|
if (method === METHOD_NAME_ALL || method === m2) {
|
87337
|
-
Object.keys(middleware[m2]).forEach((
|
87338
|
-
re.test(
|
87346
|
+
Object.keys(middleware[m2]).forEach((p) => {
|
87347
|
+
re.test(p) && middleware[m2][p].push([handler, paramCount]);
|
87339
87348
|
});
|
87340
87349
|
}
|
87341
87350
|
});
|
87342
87351
|
Object.keys(routes).forEach((m2) => {
|
87343
87352
|
if (method === METHOD_NAME_ALL || method === m2) {
|
87344
87353
|
Object.keys(routes[m2]).forEach(
|
87345
|
-
(
|
87354
|
+
(p) => re.test(p) && routes[m2][p].push([handler, paramCount])
|
87346
87355
|
);
|
87347
87356
|
}
|
87348
87357
|
});
|
@@ -87516,22 +87525,22 @@ var init_node2 = __esm({
|
|
87516
87525
|
const parts = splitRoutingPath(path5);
|
87517
87526
|
const possibleKeys = [];
|
87518
87527
|
for (let i2 = 0, len = parts.length; i2 < len; i2++) {
|
87519
|
-
const
|
87520
|
-
if (Object.keys(curNode.children).includes(
|
87521
|
-
curNode = curNode.children[
|
87522
|
-
const pattern2 = getPattern(
|
87528
|
+
const p = parts[i2];
|
87529
|
+
if (Object.keys(curNode.children).includes(p)) {
|
87530
|
+
curNode = curNode.children[p];
|
87531
|
+
const pattern2 = getPattern(p);
|
87523
87532
|
if (pattern2) {
|
87524
87533
|
possibleKeys.push(pattern2[1]);
|
87525
87534
|
}
|
87526
87535
|
continue;
|
87527
87536
|
}
|
87528
|
-
curNode.children[
|
87529
|
-
const pattern = getPattern(
|
87537
|
+
curNode.children[p] = new Node2();
|
87538
|
+
const pattern = getPattern(p);
|
87530
87539
|
if (pattern) {
|
87531
87540
|
curNode.patterns.push(pattern);
|
87532
87541
|
possibleKeys.push(pattern[1]);
|
87533
87542
|
}
|
87534
|
-
curNode = curNode.children[
|
87543
|
+
curNode = curNode.children[p];
|
87535
87544
|
}
|
87536
87545
|
if (!curNode.methods.length) {
|
87537
87546
|
curNode.methods = [];
|
@@ -87655,8 +87664,8 @@ var init_router4 = __esm({
|
|
87655
87664
|
add(method, path5, handler) {
|
87656
87665
|
const results = checkOptionalParameter(path5);
|
87657
87666
|
if (results) {
|
87658
|
-
for (const
|
87659
|
-
this.node.insert(method,
|
87667
|
+
for (const p of results) {
|
87668
|
+
this.node.insert(method, p, handler);
|
87660
87669
|
}
|
87661
87670
|
return;
|
87662
87671
|
}
|
@@ -89688,7 +89697,7 @@ ${desc}`);
|
|
89688
89697
|
console.log("\nUsage:");
|
89689
89698
|
if (command3.handler) {
|
89690
89699
|
console.log(
|
89691
|
-
` ${cliName ? cliName + " " : ""}${commandName}${positionals.length ? " " + positionals.map(({ config:
|
89700
|
+
` ${cliName ? cliName + " " : ""}${commandName}${positionals.length ? " " + positionals.map(({ config: p }) => getOptionTypeText(p)).join(" ") : ""} [flags]`
|
89692
89701
|
);
|
89693
89702
|
} else
|
89694
89703
|
console.log(` ${cliName ? cliName + " " : ""}${commandName} [command]`);
|
@@ -89700,7 +89709,7 @@ Aliases:`);
|
|
89700
89709
|
if (subcommands) {
|
89701
89710
|
console.log("\nAvailable Commands:");
|
89702
89711
|
const padding = 3;
|
89703
|
-
const maxLength = subcommands.reduce((
|
89712
|
+
const maxLength = subcommands.reduce((p, e2) => e2.name.length > p ? e2.name.length : p, 0);
|
89704
89713
|
const paddedLength = maxLength + padding;
|
89705
89714
|
const preDescPad = 2 + paddedLength;
|
89706
89715
|
const data = subcommands.map(
|
@@ -89717,15 +89726,15 @@ Aliases:`);
|
|
89717
89726
|
console.log(data);
|
89718
89727
|
}
|
89719
89728
|
if (options.length) {
|
89720
|
-
const aliasLength = options.reduce((
|
89729
|
+
const aliasLength = options.reduce((p, e2) => {
|
89721
89730
|
const currentLength = e2.config.aliases.reduce((pa, a) => pa + a.length, 0) + (e2.config.aliases.length - 1) * 2 + 1;
|
89722
|
-
return currentLength >
|
89731
|
+
return currentLength > p ? currentLength : p;
|
89723
89732
|
}, 0);
|
89724
89733
|
const paddedAliasLength = aliasLength > 0 ? aliasLength + 1 : 0;
|
89725
|
-
const nameLength = options.reduce((
|
89734
|
+
const nameLength = options.reduce((p, e2) => {
|
89726
89735
|
const typeLen = getOptionTypeText(e2.config).length;
|
89727
89736
|
const length = typeLen > 0 ? e2.config.name.length + 1 + typeLen : e2.config.name.length;
|
89728
|
-
return length >
|
89737
|
+
return length > p ? length : p;
|
89729
89738
|
}, 0) + 3;
|
89730
89739
|
const preDescPad = paddedAliasLength + nameLength + 2;
|
89731
89740
|
const data = options.map(
|
@@ -89772,7 +89781,7 @@ Use "${cliName ? cliName + " " : ""}${commandName} [command] --help" for more in
|
|
89772
89781
|
if (commands.length) {
|
89773
89782
|
console.log("\nAvailable Commands:");
|
89774
89783
|
const padding = 3;
|
89775
|
-
const maxLength = commands.reduce((
|
89784
|
+
const maxLength = commands.reduce((p, e2) => e2.name.length > p ? e2.name.length : p, 0);
|
89776
89785
|
const paddedLength = maxLength + padding;
|
89777
89786
|
const data = commands.map(
|
89778
89787
|
(c) => ` ${c.name.padEnd(paddedLength)}${(() => {
|
@@ -91079,7 +91088,7 @@ function getStore() {
|
|
91079
91088
|
}
|
91080
91089
|
var $ = new Proxy(function(pieces, ...args) {
|
91081
91090
|
const from = new Error().stack.split(/^\s*at\s/m)[2].trim();
|
91082
|
-
if (pieces.some((
|
91091
|
+
if (pieces.some((p) => p == void 0)) {
|
91083
91092
|
throw new Error(`Malformed command at ${from}`);
|
91084
91093
|
}
|
91085
91094
|
let resolve2, reject;
|
@@ -91227,7 +91236,7 @@ var ProcessPromise = class _ProcessPromise extends Promise {
|
|
91227
91236
|
return this.child.stderr;
|
91228
91237
|
}
|
91229
91238
|
get exitCode() {
|
91230
|
-
return this.then((
|
91239
|
+
return this.then((p) => p.exitCode, (p) => p.exitCode);
|
91231
91240
|
}
|
91232
91241
|
then(onfulfilled, onrejected) {
|
91233
91242
|
if (this.isHalted && !this.child) {
|
@@ -91267,9 +91276,9 @@ var ProcessPromise = class _ProcessPromise extends Promise {
|
|
91267
91276
|
if (!this.child.pid)
|
91268
91277
|
throw new Error("The process pid is undefined.");
|
91269
91278
|
let children = await psTree(this.child.pid);
|
91270
|
-
for (const
|
91279
|
+
for (const p of children) {
|
91271
91280
|
try {
|
91272
|
-
process.kill(+
|
91281
|
+
process.kill(+p.PID, signal);
|
91273
91282
|
} catch (e2) {
|
91274
91283
|
}
|
91275
91284
|
}
|
@@ -91666,17 +91675,17 @@ var globby2 = Object.assign(function globby3(patterns, options) {
|
|
91666
91675
|
}, globby_exports);
|
91667
91676
|
|
91668
91677
|
// src/utils/certs.ts
|
91669
|
-
var p = envPaths("drizzle-studio", {
|
91670
|
-
suffix: ""
|
91671
|
-
});
|
91672
|
-
$.verbose = false;
|
91673
|
-
$.cwd = p.data;
|
91674
|
-
(0, import_fs2.mkdirSync)(p.data, { recursive: true });
|
91675
91678
|
var certs = async () => {
|
91679
|
+
$.verbose = false;
|
91676
91680
|
const res = await $`mkcert --help`.nothrow();
|
91677
|
-
const keyPath = (0, import_path2.join)(p.data, "localhost-key.pem");
|
91678
|
-
const certPath = (0, import_path2.join)(p.data, "localhost.pem");
|
91679
91681
|
if (res.exitCode === 0) {
|
91682
|
+
const p = envPaths("drizzle-studio", {
|
91683
|
+
suffix: ""
|
91684
|
+
});
|
91685
|
+
$.cwd = p.data;
|
91686
|
+
(0, import_fs2.mkdirSync)(p.data, { recursive: true });
|
91687
|
+
const keyPath = (0, import_path2.join)(p.data, "localhost-key.pem");
|
91688
|
+
const certPath = (0, import_path2.join)(p.data, "localhost.pem");
|
91680
91689
|
try {
|
91681
91690
|
await Promise.all([(0, import_promises.access)(keyPath), (0, import_promises.access)(certPath)]);
|
91682
91691
|
} catch (e2) {
|
@@ -91690,7 +91699,6 @@ var certs = async () => {
|
|
91690
91699
|
}
|
91691
91700
|
return null;
|
91692
91701
|
};
|
91693
|
-
certs();
|
91694
91702
|
|
91695
91703
|
// src/cli/commands/check.ts
|
91696
91704
|
init_utils2();
|
@@ -92609,7 +92617,7 @@ init_utils5();
|
|
92609
92617
|
var version2 = async () => {
|
92610
92618
|
const { npmVersion } = await ormCoreVersions();
|
92611
92619
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
92612
|
-
const envVersion = "0.30.
|
92620
|
+
const envVersion = "0.30.2-8e428d1";
|
92613
92621
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
92614
92622
|
const versions = `drizzle-kit: ${kitVersion}
|
92615
92623
|
${ormVersion}`;
|