drizzle-kit 1.0.0-beta.22-ec7b61d → 1.0.0-beta.22
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-postgres.mjs +43 -43
- package/bin.cjs +19 -11
- package/package.json +1 -1
package/api-postgres.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import fs, { existsSync, lstatSync, mkdirSync, readdirSync, writeFileSync } from
|
|
|
10
10
|
import m from "node:path";
|
|
11
11
|
import re, { promises } from "node:fs";
|
|
12
12
|
import Be from "os";
|
|
13
|
-
import
|
|
13
|
+
import Ie, { dirname, join, resolve } from "path";
|
|
14
14
|
import { parse, pathToFileURL } from "url";
|
|
15
15
|
import { fileURLToPath, format } from "node:url";
|
|
16
16
|
import { deprecate, promisify, types } from "node:util";
|
|
@@ -1825,7 +1825,7 @@ function Et(e) {
|
|
|
1825
1825
|
throw new RangeError(`invalid RFC 9557 time-only string ${e}; may need a T prefix`);
|
|
1826
1826
|
}
|
|
1827
1827
|
function It(e) {
|
|
1828
|
-
const t = Ie.exec(e);
|
|
1828
|
+
const t = Ie$1.exec(e);
|
|
1829
1829
|
let n, r, o, i;
|
|
1830
1830
|
if (t) {
|
|
1831
1831
|
o = Tt(t[3]);
|
|
@@ -4252,7 +4252,7 @@ function zi(e, t) {
|
|
|
4252
4252
|
function Ai(e, t) {
|
|
4253
4253
|
return vt(e, wt), Hi(e).time[t];
|
|
4254
4254
|
}
|
|
4255
|
-
var import_jsbi_cjs, t$4, n$3, r$4, o$3, i$5, a$4, s$5, c$3, d$4, h$6, u$4, l$3, w$4, v$4, b$3, D$1, T$1, M, E$3, I$3, C$2, O$2, $, Y$1, R$1, S$1, j$3, k$3, N$1, x$4, L, P$2, U, B$1, Z$2, F$2, H$2, z$1, A$3, q$4, W, _$1, J$2, G$2, K$1, V, X$1, Q$1, ee$1, te$1, ie$1, TimeDuration, me$1, fe$1, ye$1, pe$1, ge$1, we$1, ve$1, be$1, De$1, Te$1, Me$1, Ee, Ie, Ce$1, Oe$1, $e$1, Ye$1, Re$1, Se$1, je$1, ke$1, Ne$1, xe, Le$1, Pe$1, Ue$1, Be$1, Ze$1, Fe$1, He$1, ze$1, Qe$1, et, tt, nt, rt, ot, it, at, st, ct, dt, Ot, $t, qt, cr, dr, Po, Wo, _o, Xo, OneObjectCache, HelperBase, HebrewHelper, IslamicBaseHelper, IslamicHelper, IslamicUmalquraHelper, IslamicTblaHelper, IslamicCivilHelper, IslamicRgsaHelper, IslamicCcHelper, PersianHelper, IndianHelper, GregorianBaseHelperFixedEpoch, GregorianBaseHelper, SameMonthDayAsGregorianBaseHelper, ii, OrthodoxBaseHelperFixedEpoch, OrthodoxBaseHelper, EthioaaHelper, CopticHelper, EthiopicHelper, RocHelper, BuddhistHelper, GregoryHelper, JapaneseHelper, ChineseBaseHelper, ChineseHelper, DangiHelper, NonIsoCalendar, ai, DateTimeFormatImpl, di, Ri, Si, Instant, PlainDate, PlainDateTime, Duration, PlainMonthDay, Bi, PlainTime, PlainYearMonth, Fi, ZonedDateTime, qi, _i;
|
|
4255
|
+
var import_jsbi_cjs, t$4, n$3, r$4, o$3, i$5, a$4, s$5, c$3, d$4, h$6, u$4, l$3, w$4, v$4, b$3, D$1, T$1, M, E$3, I$3, C$2, O$2, $, Y$1, R$1, S$1, j$3, k$3, N$1, x$4, L, P$2, U, B$1, Z$2, F$2, H$2, z$1, A$3, q$4, W, _$1, J$2, G$2, K$1, V, X$1, Q$1, ee$1, te$1, ie$1, TimeDuration, me$1, fe$1, ye$1, pe$1, ge$1, we$1, ve$1, be$1, De$1, Te$1, Me$1, Ee, Ie$1, Ce$1, Oe$1, $e$1, Ye$1, Re$1, Se$1, je$1, ke$1, Ne$1, xe, Le$1, Pe$1, Ue$1, Be$1, Ze$1, Fe$1, He$1, ze$1, Qe$1, et, tt, nt, rt, ot, it, at, st, ct, dt, Ot, $t, qt, cr, dr, Po, Wo, _o, Xo, OneObjectCache, HelperBase, HebrewHelper, IslamicBaseHelper, IslamicHelper, IslamicUmalquraHelper, IslamicTblaHelper, IslamicCivilHelper, IslamicRgsaHelper, IslamicCcHelper, PersianHelper, IndianHelper, GregorianBaseHelperFixedEpoch, GregorianBaseHelper, SameMonthDayAsGregorianBaseHelper, ii, OrthodoxBaseHelperFixedEpoch, OrthodoxBaseHelper, EthioaaHelper, CopticHelper, EthiopicHelper, RocHelper, BuddhistHelper, GregoryHelper, JapaneseHelper, ChineseBaseHelper, ChineseHelper, DangiHelper, NonIsoCalendar, ai, DateTimeFormatImpl, di, Ri, Si, Instant, PlainDate, PlainDateTime, Duration, PlainMonthDay, Bi, PlainTime, PlainYearMonth, Fi, ZonedDateTime, qi, _i;
|
|
4256
4256
|
var init_index_esm = __esmMin((() => {
|
|
4257
4257
|
import_jsbi_cjs = /* @__PURE__ */ __toESM(require_jsbi_cjs(), 1);
|
|
4258
4258
|
t$4 = import_jsbi_cjs.default.BigInt(0), n$3 = import_jsbi_cjs.default.BigInt(1), r$4 = import_jsbi_cjs.default.BigInt(2), o$3 = import_jsbi_cjs.default.BigInt(10), i$5 = import_jsbi_cjs.default.BigInt(24), a$4 = import_jsbi_cjs.default.BigInt(60), s$5 = import_jsbi_cjs.default.BigInt(1e3), c$3 = import_jsbi_cjs.default.BigInt(1e6), d$4 = import_jsbi_cjs.default.BigInt(1e9), h$6 = import_jsbi_cjs.default.multiply(import_jsbi_cjs.default.BigInt(3600), d$4), u$4 = import_jsbi_cjs.default.multiply(a$4, d$4), l$3 = import_jsbi_cjs.default.multiply(h$6, i$5);
|
|
@@ -4339,7 +4339,7 @@ var init_index_esm = __esmMin((() => {
|
|
|
4339
4339
|
`(?:${De$1.source})?`,
|
|
4340
4340
|
`(?:\\[!?${fe$1.source}\\])?`,
|
|
4341
4341
|
`((?:${Te$1.source})*)$`
|
|
4342
|
-
].join("")), Ie = new RegExp(`^(${ye$1.source})-?(${pe$1.source})(?:\\[!?${fe$1.source}\\])?((?:${Te$1.source})*)$`), Ce$1 = new RegExp(`^(?:--)?(${pe$1.source})-?(${ge$1.source})(?:\\[!?${fe$1.source}\\])?((?:${Te$1.source})*)$`), Oe$1 = /(\d+)(?:[.,](\d{1,9}))?/, $e$1 = new RegExp(`(?:${Oe$1.source}H)?(?:${Oe$1.source}M)?(?:${Oe$1.source}S)?`), Ye$1 = new RegExp(`^([+-])?P${/(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?/.source}(?:T(?!$)${$e$1.source})?$`, "i"), Re$1 = 864e5, Se$1 = 1e6 * Re$1, je$1 = 6e10, ke$1 = 1e8 * Re$1, Ne$1 = xo(ke$1), xe = import_jsbi_cjs.default.unaryMinus(Ne$1), Le$1 = import_jsbi_cjs.default.add(import_jsbi_cjs.default.subtract(xe, l$3), n$3), Pe$1 = import_jsbi_cjs.default.subtract(import_jsbi_cjs.default.add(Ne$1, l$3), n$3), Ue$1 = 146097 * Re$1, Be$1 = -271821, Ze$1 = 275760, Fe$1 = Date.UTC(1847, 0, 1), He$1 = [
|
|
4342
|
+
].join("")), Ie$1 = new RegExp(`^(${ye$1.source})-?(${pe$1.source})(?:\\[!?${fe$1.source}\\])?((?:${Te$1.source})*)$`), Ce$1 = new RegExp(`^(?:--)?(${pe$1.source})-?(${ge$1.source})(?:\\[!?${fe$1.source}\\])?((?:${Te$1.source})*)$`), Oe$1 = /(\d+)(?:[.,](\d{1,9}))?/, $e$1 = new RegExp(`(?:${Oe$1.source}H)?(?:${Oe$1.source}M)?(?:${Oe$1.source}S)?`), Ye$1 = new RegExp(`^([+-])?P${/(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?/.source}(?:T(?!$)${$e$1.source})?$`, "i"), Re$1 = 864e5, Se$1 = 1e6 * Re$1, je$1 = 6e10, ke$1 = 1e8 * Re$1, Ne$1 = xo(ke$1), xe = import_jsbi_cjs.default.unaryMinus(Ne$1), Le$1 = import_jsbi_cjs.default.add(import_jsbi_cjs.default.subtract(xe, l$3), n$3), Pe$1 = import_jsbi_cjs.default.subtract(import_jsbi_cjs.default.add(Ne$1, l$3), n$3), Ue$1 = 146097 * Re$1, Be$1 = -271821, Ze$1 = 275760, Fe$1 = Date.UTC(1847, 0, 1), He$1 = [
|
|
4343
4343
|
"iso8601",
|
|
4344
4344
|
"hebrew",
|
|
4345
4345
|
"islamic",
|
|
@@ -17023,7 +17023,7 @@ var init_unescape = __esmMin((() => {
|
|
|
17023
17023
|
}));
|
|
17024
17024
|
//#endregion
|
|
17025
17025
|
//#region ../node_modules/.pnpm/minimatch@7.4.6/node_modules/minimatch/dist/mjs/index.js
|
|
17026
|
-
var import_brace_expansion, minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path$
|
|
17026
|
+
var import_brace_expansion, minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path$6, sep, GLOBSTAR, plTypes, qmark, star, twoStarDot, twoStarNoDot, charSet, reSpecials, addPatternStartSet, filter, ext, defaults$2, braceExpand, MAX_PATTERN_LENGTH, assertValidPattern, makeRe, match$1, globUnescape, globMagic, regExpEscape, Minimatch;
|
|
17027
17027
|
var init_mjs = __esmMin((() => {
|
|
17028
17028
|
import_brace_expansion = /* @__PURE__ */ __toESM(require_brace_expansion(), 1);
|
|
17029
17029
|
init_brace_expressions();
|
|
@@ -17083,11 +17083,11 @@ var init_mjs = __esmMin((() => {
|
|
|
17083
17083
|
return (f) => f.length === len && f !== "." && f !== "..";
|
|
17084
17084
|
};
|
|
17085
17085
|
defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
17086
|
-
path$
|
|
17086
|
+
path$6 = {
|
|
17087
17087
|
win32: { sep: "\\" },
|
|
17088
17088
|
posix: { sep: "/" }
|
|
17089
17089
|
};
|
|
17090
|
-
sep = defaultPlatform === "win32" ? path$
|
|
17090
|
+
sep = defaultPlatform === "win32" ? path$6.win32.sep : path$6.posix.sep;
|
|
17091
17091
|
minimatch.sep = sep;
|
|
17092
17092
|
GLOBSTAR = Symbol("globstar **");
|
|
17093
17093
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
@@ -25515,7 +25515,7 @@ var init_dist$3 = __esmMin((() => {
|
|
|
25515
25515
|
}
|
|
25516
25516
|
return t;
|
|
25517
25517
|
}, "invertCase"), le = /* @__PURE__ */ new Map(), _e$3 = X((e, t) => {
|
|
25518
|
-
const s =
|
|
25518
|
+
const s = Ie.join(e, `.is-fs-case-sensitive-test-${process.pid}`);
|
|
25519
25519
|
try {
|
|
25520
25520
|
return t.writeFileSync(s, ""), !t.existsSync(Ae(s));
|
|
25521
25521
|
} finally {
|
|
@@ -26360,7 +26360,7 @@ var require_common$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
26360
26360
|
return Object.prototype.hasOwnProperty.call(obj, field);
|
|
26361
26361
|
}
|
|
26362
26362
|
var fs$5 = __require("fs");
|
|
26363
|
-
var path$
|
|
26363
|
+
var path$5 = __require("path");
|
|
26364
26364
|
var minimatch = require_minimatch();
|
|
26365
26365
|
var isAbsolute$2 = __require("path").isAbsolute;
|
|
26366
26366
|
var Minimatch = minimatch.Minimatch;
|
|
@@ -26414,13 +26414,13 @@ var require_common$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
26414
26414
|
setupIgnores(self, options);
|
|
26415
26415
|
self.changedCwd = false;
|
|
26416
26416
|
var cwd = process.cwd();
|
|
26417
|
-
if (!ownProp(options, "cwd")) self.cwd = path$
|
|
26417
|
+
if (!ownProp(options, "cwd")) self.cwd = path$5.resolve(cwd);
|
|
26418
26418
|
else {
|
|
26419
|
-
self.cwd = path$
|
|
26419
|
+
self.cwd = path$5.resolve(options.cwd);
|
|
26420
26420
|
self.changedCwd = self.cwd !== cwd;
|
|
26421
26421
|
}
|
|
26422
|
-
self.root = options.root || path$
|
|
26423
|
-
self.root = path$
|
|
26422
|
+
self.root = options.root || path$5.resolve(self.cwd, "/");
|
|
26423
|
+
self.root = path$5.resolve(self.root);
|
|
26424
26424
|
self.cwdAbs = isAbsolute$2(self.cwd) ? self.cwd : makeAbs(self, self.cwd);
|
|
26425
26425
|
self.nomount = !!options.nomount;
|
|
26426
26426
|
if (process.platform === "win32") {
|
|
@@ -26487,10 +26487,10 @@ var require_common$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
26487
26487
|
}
|
|
26488
26488
|
function makeAbs(self, f) {
|
|
26489
26489
|
var abs = f;
|
|
26490
|
-
if (f.charAt(0) === "/") abs = path$
|
|
26490
|
+
if (f.charAt(0) === "/") abs = path$5.join(self.root, f);
|
|
26491
26491
|
else if (isAbsolute$2(f) || f === "") abs = f;
|
|
26492
|
-
else if (self.changedCwd) abs = path$
|
|
26493
|
-
else abs = path$
|
|
26492
|
+
else if (self.changedCwd) abs = path$5.resolve(self.cwd, f);
|
|
26493
|
+
else abs = path$5.resolve(f);
|
|
26494
26494
|
if (process.platform === "win32") abs = abs.replace(/\\/g, "/");
|
|
26495
26495
|
return abs;
|
|
26496
26496
|
}
|
|
@@ -26517,7 +26517,7 @@ var require_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
26517
26517
|
minimatch.Minimatch;
|
|
26518
26518
|
require_glob().Glob;
|
|
26519
26519
|
__require("util");
|
|
26520
|
-
var path$
|
|
26520
|
+
var path$4 = __require("path");
|
|
26521
26521
|
var assert$1 = __require("assert");
|
|
26522
26522
|
var isAbsolute$1 = __require("path").isAbsolute;
|
|
26523
26523
|
var common = require_common$1();
|
|
@@ -26613,7 +26613,7 @@ var require_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
26613
26613
|
var e = matchedEntries[i];
|
|
26614
26614
|
if (prefix) if (prefix.slice(-1) !== "/") e = prefix + "/" + e;
|
|
26615
26615
|
else e = prefix + e;
|
|
26616
|
-
if (e.charAt(0) === "/" && !this.nomount) e = path$
|
|
26616
|
+
if (e.charAt(0) === "/" && !this.nomount) e = path$4.join(this.root, e);
|
|
26617
26617
|
this._emitMatch(index, e);
|
|
26618
26618
|
}
|
|
26619
26619
|
return;
|
|
@@ -26728,9 +26728,9 @@ var require_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
26728
26728
|
if (!exists) return;
|
|
26729
26729
|
if (prefix && isAbsolute$1(prefix) && !this.nomount) {
|
|
26730
26730
|
var trail = /[\/\\]$/.test(prefix);
|
|
26731
|
-
if (prefix.charAt(0) === "/") prefix = path$
|
|
26731
|
+
if (prefix.charAt(0) === "/") prefix = path$4.join(this.root, prefix);
|
|
26732
26732
|
else {
|
|
26733
|
-
prefix = path$
|
|
26733
|
+
prefix = path$4.resolve(this.root, prefix);
|
|
26734
26734
|
if (trail) prefix += "/";
|
|
26735
26735
|
}
|
|
26736
26736
|
}
|
|
@@ -26891,7 +26891,7 @@ var require_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
26891
26891
|
minimatch.Minimatch;
|
|
26892
26892
|
var inherits = require_inherits();
|
|
26893
26893
|
var EE$3 = __require("events").EventEmitter;
|
|
26894
|
-
var path$
|
|
26894
|
+
var path$3 = __require("path");
|
|
26895
26895
|
var assert = __require("assert");
|
|
26896
26896
|
var isAbsolute = __require("path").isAbsolute;
|
|
26897
26897
|
var globSync = require_sync();
|
|
@@ -27122,7 +27122,7 @@ var require_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
27122
27122
|
var e = matchedEntries[i];
|
|
27123
27123
|
if (prefix) if (prefix !== "/") e = prefix + "/" + e;
|
|
27124
27124
|
else e = prefix + e;
|
|
27125
|
-
if (e.charAt(0) === "/" && !this.nomount) e = path$
|
|
27125
|
+
if (e.charAt(0) === "/" && !this.nomount) e = path$3.join(this.root, e);
|
|
27126
27126
|
this._emitMatch(index, e);
|
|
27127
27127
|
}
|
|
27128
27128
|
return cb();
|
|
@@ -27269,9 +27269,9 @@ var require_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
27269
27269
|
if (!exists) return cb();
|
|
27270
27270
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
27271
27271
|
var trail = /[\/\\]$/.test(prefix);
|
|
27272
|
-
if (prefix.charAt(0) === "/") prefix = path$
|
|
27272
|
+
if (prefix.charAt(0) === "/") prefix = path$3.join(this.root, prefix);
|
|
27273
27273
|
else {
|
|
27274
|
-
prefix = path$
|
|
27274
|
+
prefix = path$3.resolve(this.root, prefix);
|
|
27275
27275
|
if (trail) prefix += "/";
|
|
27276
27276
|
}
|
|
27277
27277
|
}
|
|
@@ -83652,7 +83652,7 @@ var require_constants$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
83652
83652
|
//#region ../node_modules/.pnpm/node-gyp-build@4.8.4/node_modules/node-gyp-build/node-gyp-build.js
|
|
83653
83653
|
var require_node_gyp_build$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
83654
83654
|
var fs$4 = __require("fs");
|
|
83655
|
-
var path$
|
|
83655
|
+
var path$2 = __require("path");
|
|
83656
83656
|
var os$3 = __require("os");
|
|
83657
83657
|
var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
|
|
83658
83658
|
var vars = process.config && process.config.variables || {};
|
|
@@ -83669,20 +83669,20 @@ var require_node_gyp_build$1 = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
83669
83669
|
return runtimeRequire(load.resolve(dir));
|
|
83670
83670
|
}
|
|
83671
83671
|
load.resolve = load.path = function(dir) {
|
|
83672
|
-
dir = path$
|
|
83672
|
+
dir = path$2.resolve(dir || ".");
|
|
83673
83673
|
try {
|
|
83674
|
-
var name = runtimeRequire(path$
|
|
83674
|
+
var name = runtimeRequire(path$2.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_");
|
|
83675
83675
|
if (process.env[name + "_PREBUILD"]) dir = process.env[name + "_PREBUILD"];
|
|
83676
83676
|
} catch (err) {}
|
|
83677
83677
|
if (!prebuildsOnly) {
|
|
83678
|
-
var release = getFirst(path$
|
|
83678
|
+
var release = getFirst(path$2.join(dir, "build/Release"), matchBuild);
|
|
83679
83679
|
if (release) return release;
|
|
83680
|
-
var debug = getFirst(path$
|
|
83680
|
+
var debug = getFirst(path$2.join(dir, "build/Debug"), matchBuild);
|
|
83681
83681
|
if (debug) return debug;
|
|
83682
83682
|
}
|
|
83683
83683
|
var prebuild = resolve(dir);
|
|
83684
83684
|
if (prebuild) return prebuild;
|
|
83685
|
-
var nearby = resolve(path$
|
|
83685
|
+
var nearby = resolve(path$2.dirname(process.execPath));
|
|
83686
83686
|
if (nearby) return nearby;
|
|
83687
83687
|
var target = [
|
|
83688
83688
|
"platform=" + platform,
|
|
@@ -83698,11 +83698,11 @@ var require_node_gyp_build$1 = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
83698
83698
|
].filter(Boolean).join(" ");
|
|
83699
83699
|
throw new Error("No native build was found for " + target + "\n loaded from: " + dir + "\n");
|
|
83700
83700
|
function resolve(dir) {
|
|
83701
|
-
var tuple = readdirSync(path$
|
|
83701
|
+
var tuple = readdirSync(path$2.join(dir, "prebuilds")).map(parseTuple).filter(matchTuple(platform, arch)).sort(compareTuples)[0];
|
|
83702
83702
|
if (!tuple) return;
|
|
83703
|
-
var prebuilds = path$
|
|
83703
|
+
var prebuilds = path$2.join(dir, "prebuilds", tuple.name);
|
|
83704
83704
|
var winner = readdirSync(prebuilds).map(parseTags).filter(matchTags(runtime, abi)).sort(compareTags(runtime))[0];
|
|
83705
|
-
if (winner) return path$
|
|
83705
|
+
if (winner) return path$2.join(prebuilds, winner.file);
|
|
83706
83706
|
}
|
|
83707
83707
|
};
|
|
83708
83708
|
function readdirSync(dir) {
|
|
@@ -83714,7 +83714,7 @@ var require_node_gyp_build$1 = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
83714
83714
|
}
|
|
83715
83715
|
function getFirst(dir, filter) {
|
|
83716
83716
|
var files = readdirSync(dir).filter(filter);
|
|
83717
|
-
return files[0] && path$
|
|
83717
|
+
return files[0] && path$2.join(dir, files[0]);
|
|
83718
83718
|
}
|
|
83719
83719
|
function matchBuild(name) {
|
|
83720
83720
|
return /\.node$/.test(name);
|
|
@@ -100022,7 +100022,7 @@ var require_dist_cjs$22 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
100022
100022
|
var getHomeDir = require_getHomeDir();
|
|
100023
100023
|
var getSSOTokenFilepath = require_getSSOTokenFilepath();
|
|
100024
100024
|
var getSSOTokenFromFile = require_getSSOTokenFromFile();
|
|
100025
|
-
var path$
|
|
100025
|
+
var path$1 = __require("path");
|
|
100026
100026
|
var types = require_dist_cjs$53();
|
|
100027
100027
|
var readFile = require_readFile();
|
|
100028
100028
|
const ENV_PROFILE = "AWS_PROFILE";
|
|
@@ -100040,9 +100040,9 @@ var require_dist_cjs$22 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
100040
100040
|
return acc;
|
|
100041
100041
|
}, { ...data.default && { default: data.default } });
|
|
100042
100042
|
const ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
|
|
100043
|
-
const getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || path$
|
|
100043
|
+
const getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || path$1.join(getHomeDir.getHomeDir(), ".aws", "config");
|
|
100044
100044
|
const ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
|
|
100045
|
-
const getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || path$
|
|
100045
|
+
const getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || path$1.join(getHomeDir.getHomeDir(), ".aws", "credentials");
|
|
100046
100046
|
const prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
|
|
100047
100047
|
const profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
100048
100048
|
const parseIni = (iniData) => {
|
|
@@ -100083,9 +100083,9 @@ var require_dist_cjs$22 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
100083
100083
|
const homeDir = getHomeDir.getHomeDir();
|
|
100084
100084
|
const relativeHomeDirPrefix = "~/";
|
|
100085
100085
|
let resolvedFilepath = filepath;
|
|
100086
|
-
if (filepath.startsWith(relativeHomeDirPrefix)) resolvedFilepath = path$
|
|
100086
|
+
if (filepath.startsWith(relativeHomeDirPrefix)) resolvedFilepath = path$1.join(homeDir, filepath.slice(2));
|
|
100087
100087
|
let resolvedConfigFilepath = configFilepath;
|
|
100088
|
-
if (configFilepath.startsWith(relativeHomeDirPrefix)) resolvedConfigFilepath = path$
|
|
100088
|
+
if (configFilepath.startsWith(relativeHomeDirPrefix)) resolvedConfigFilepath = path$1.join(homeDir, configFilepath.slice(2));
|
|
100089
100089
|
const parsedFiles = await Promise.all([readFile.readFile(resolvedConfigFilepath, { ignoreCache: init.ignoreCache }).then(parseIni).then(getConfigData).catch(swallowError$1), readFile.readFile(resolvedFilepath, { ignoreCache: init.ignoreCache }).then(parseIni).catch(swallowError$1)]);
|
|
100090
100090
|
return {
|
|
100091
100091
|
configFile: parsedFiles[0],
|
|
@@ -161381,7 +161381,7 @@ var require_msal_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
161381
161381
|
var msalCommon = require_lib$1();
|
|
161382
161382
|
var jwt = require_jsonwebtoken();
|
|
161383
161383
|
var fs$2 = __require("fs");
|
|
161384
|
-
var path
|
|
161384
|
+
var path = __require("path");
|
|
161385
161385
|
/**
|
|
161386
161386
|
* This class serializes cache entities to be saved into in-memory object types defined internally
|
|
161387
161387
|
* @internal
|
|
@@ -170764,7 +170764,7 @@ Content-Length: ${body.length}\r\n\r\n${body}`;
|
|
|
170764
170764
|
const secretFilePath = wwwAuthHeader.split("Basic realm=")[1];
|
|
170765
170765
|
if (!SUPPORTED_AZURE_ARC_PLATFORMS.hasOwnProperty(process.platform)) throw createManagedIdentityError(platformNotSupported);
|
|
170766
170766
|
const expectedSecretFilePath = SUPPORTED_AZURE_ARC_PLATFORMS[process.platform];
|
|
170767
|
-
const fileName = path
|
|
170767
|
+
const fileName = path.basename(secretFilePath);
|
|
170768
170768
|
if (!fileName.endsWith(".key")) throw createManagedIdentityError(invalidFileExtension);
|
|
170769
170769
|
if (expectedSecretFilePath + fileName !== secretFilePath) throw createManagedIdentityError(invalidFilePath);
|
|
170770
170770
|
let secretFileSize;
|
|
@@ -221682,13 +221682,13 @@ var init_generate_common = __esmMin((() => {
|
|
|
221682
221682
|
const js = embeddedMigrations([...snapshots || [], join(outFolder, `${tag}/snapshot.json`)], driver);
|
|
221683
221683
|
fs.writeFileSync(`${outFolder}/migrations.js`, js);
|
|
221684
221684
|
}
|
|
221685
|
-
(0, import_hanji$2.render)(`[${chalk.green("✓")}] Your SQL migration ➜ ${chalk.bold.underline.blue(
|
|
221685
|
+
(0, import_hanji$2.render)(`[${chalk.green("✓")}] Your SQL migration ➜ ${chalk.bold.underline.blue(Ie.join(`${outFolder}/${tag}/migration.sql`))} 🚀`);
|
|
221686
221686
|
};
|
|
221687
221687
|
embeddedMigrations = (snapshots, driver) => {
|
|
221688
221688
|
let content = driver === "expo" ? "// This file is required for Expo/React Native SQLite migrations - https://orm.drizzle.team/quick-sqlite/expo\n\n" : "";
|
|
221689
221689
|
const migrations = {};
|
|
221690
221690
|
snapshots.forEach((entry, idx) => {
|
|
221691
|
-
const prefix = entry.split(
|
|
221691
|
+
const prefix = entry.split(Ie.sep)[entry.split(Ie.sep).length - 2];
|
|
221692
221692
|
const importName = idx.toString().padStart(4, "0");
|
|
221693
221693
|
content += `import m${importName} from './${prefix}/migration.sql';\n`;
|
|
221694
221694
|
migrations[prefix] = importName;
|
package/bin.cjs
CHANGED
|
@@ -83791,26 +83791,34 @@ const checkHandler = async (out, dialect, ignoreConflicts, shouldExitOnConflict
|
|
|
83791
83791
|
process.exit(1);
|
|
83792
83792
|
break;
|
|
83793
83793
|
}
|
|
83794
|
-
if (ignoreConflicts) return emptyResult();
|
|
83795
83794
|
try {
|
|
83796
83795
|
const commutativity = getCommutativityDialect(dialect);
|
|
83797
83796
|
if (!commutativity) return emptyResult();
|
|
83798
83797
|
const response = await commutativity.detectNonCommutative(snapshots);
|
|
83799
83798
|
if (response.conflicts.length > 0) {
|
|
83800
83799
|
const nonCommutativityMessage = generateReportDirectory(response);
|
|
83801
|
-
|
|
83802
|
-
|
|
83803
|
-
|
|
83800
|
+
if (!ignoreConflicts) {
|
|
83801
|
+
console.log(nonCommutativityMessage);
|
|
83802
|
+
if (shouldExitOnConflict) process.exit(1);
|
|
83803
|
+
return emptyResult(nonCommutativityMessage);
|
|
83804
|
+
}
|
|
83804
83805
|
}
|
|
83805
83806
|
const selectedBranch = selectOpenCommutativeBranch(response);
|
|
83806
|
-
if (
|
|
83807
|
-
|
|
83808
|
-
|
|
83809
|
-
|
|
83810
|
-
|
|
83811
|
-
|
|
83812
|
-
|
|
83807
|
+
if (selectedBranch) {
|
|
83808
|
+
const sortedLeafs = [...selectedBranch.leafs].sort((left, right) => left.id.localeCompare(right.id));
|
|
83809
|
+
return {
|
|
83810
|
+
statements: sortedLeafs.flatMap((leaf) => leaf.statements),
|
|
83811
|
+
parentSnapshot: selectedBranch.parentSnapshot,
|
|
83812
|
+
parentId: selectedBranch.parentId,
|
|
83813
|
+
leafIds: sortedLeafs.map((leaf) => leaf.id)
|
|
83814
|
+
};
|
|
83815
|
+
}
|
|
83816
|
+
if (ignoreConflicts && response.leafNodes.length > 1) return {
|
|
83817
|
+
statements: [],
|
|
83818
|
+
parentSnapshot: null,
|
|
83819
|
+
leafIds: [...response.leafNodes].sort((left, right) => left.localeCompare(right))
|
|
83813
83820
|
};
|
|
83821
|
+
return emptyResult();
|
|
83814
83822
|
} catch (e) {
|
|
83815
83823
|
console.error(e);
|
|
83816
83824
|
return emptyResult();
|