@prisma/migrate 6.18.0-dev.11 → 6.18.0-dev.12
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/dist/bin.js +3 -3
- package/dist/{chunk-H5CDIF7X.js → chunk-IVZSWYCG.js} +55 -31
- package/dist/chunk-Y5WDJ6P7.js +263 -0
- package/dist/commands/MigrateDiff.js +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/setupMSSQL.js +779 -775
- package/dist/utils/setupMongo.js +692 -164
- package/package.json +11 -11
- package/dist/chunk-OP2BDF75.js +0 -792
package/dist/bin.js
CHANGED
|
@@ -28,7 +28,7 @@ var import_chunk_M22W35EN = require("./chunk-M22W35EN.js");
|
|
|
28
28
|
var import_chunk_VSNIZVYG = require("./chunk-VSNIZVYG.js");
|
|
29
29
|
var import_chunk_C3722PDA = require("./chunk-C3722PDA.js");
|
|
30
30
|
var import_chunk_7CQBDP4H = require("./chunk-7CQBDP4H.js");
|
|
31
|
-
var
|
|
31
|
+
var import_chunk_IVZSWYCG = require("./chunk-IVZSWYCG.js");
|
|
32
32
|
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
|
33
33
|
var import_chunk_5ETYUPYJ = require("./chunk-5ETYUPYJ.js");
|
|
34
34
|
var import_chunk_KRQEFTDT = require("./chunk-KRQEFTDT.js");
|
|
@@ -72,7 +72,7 @@ var import_config = require("@prisma/config");
|
|
|
72
72
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
73
73
|
var import_engines_version = require("@prisma/engines-version");
|
|
74
74
|
var import_internals = require("@prisma/internals");
|
|
75
|
-
var version = "6.18.0-dev.
|
|
75
|
+
var version = "6.18.0-dev.12";
|
|
76
76
|
process.on("uncaughtException", (e) => {
|
|
77
77
|
console.log(e);
|
|
78
78
|
});
|
|
@@ -99,7 +99,7 @@ async function main() {
|
|
|
99
99
|
resolve: import_chunk_VDFDEQDX.MigrateResolve.new(),
|
|
100
100
|
reset: import_chunk_5ETYUPYJ.MigrateReset.new(),
|
|
101
101
|
deploy: import_chunk_M22W35EN.MigrateDeploy.new(),
|
|
102
|
-
diff:
|
|
102
|
+
diff: import_chunk_IVZSWYCG.MigrateDiff.new()
|
|
103
103
|
}),
|
|
104
104
|
db: import_chunk_EJG7GKM7.DbCommand.new({
|
|
105
105
|
execute: import_chunk_MCGCRK5I.DbExecute.new(),
|
|
@@ -26,11 +26,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_IVZSWYCG_exports = {};
|
|
30
|
+
__export(chunk_IVZSWYCG_exports, {
|
|
31
31
|
MigrateDiff: () => MigrateDiff
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_IVZSWYCG_exports);
|
|
34
34
|
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
|
35
35
|
var import_chunk_PSCP5S54 = require("./chunk-PSCP5S54.js");
|
|
36
36
|
var import_chunk_GGA2F64G = require("./chunk-GGA2F64G.js");
|
|
@@ -1117,7 +1117,7 @@ var require_tree_walker = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1117
1117
|
}
|
|
1118
1118
|
});
|
|
1119
1119
|
var require_path = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1120
|
-
"../../node_modules/.pnpm/minimatch@5.1.
|
|
1120
|
+
"../../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/lib/path.js"(exports, module2) {
|
|
1121
1121
|
"use strict";
|
|
1122
1122
|
var isWindows = typeof process === "object" && process && process.platform === "win32";
|
|
1123
1123
|
module2.exports = isWindows ? { sep: "\\" } : { sep: "/" };
|
|
@@ -1329,7 +1329,7 @@ var require_brace_expansion = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1329
1329
|
}
|
|
1330
1330
|
});
|
|
1331
1331
|
var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1332
|
-
"../../node_modules/.pnpm/minimatch@5.1.
|
|
1332
|
+
"../../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
1333
1333
|
"use strict";
|
|
1334
1334
|
var minimatch = module2.exports = (p, pattern, options = {}) => {
|
|
1335
1335
|
assertValidPattern(pattern);
|
|
@@ -1416,7 +1416,9 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1416
1416
|
return list;
|
|
1417
1417
|
};
|
|
1418
1418
|
var globUnescape = (s) => s.replace(/\\(.)/g, "$1");
|
|
1419
|
+
var charUnescape = (s) => s.replace(/\\([^-\]])/g, "$1");
|
|
1419
1420
|
var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
1421
|
+
var braExpEscape = (s) => s.replace(/[[\]\\]/g, "\\$&");
|
|
1420
1422
|
var Minimatch = class {
|
|
1421
1423
|
constructor(pattern, options) {
|
|
1422
1424
|
assertValidPattern(pattern);
|
|
@@ -1469,7 +1471,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1469
1471
|
negate = !negate;
|
|
1470
1472
|
negateOffset++;
|
|
1471
1473
|
}
|
|
1472
|
-
if (negateOffset) this.pattern = pattern.
|
|
1474
|
+
if (negateOffset) this.pattern = pattern.slice(negateOffset);
|
|
1473
1475
|
this.negate = negate;
|
|
1474
1476
|
}
|
|
1475
1477
|
// set partial to true to test if, for example,
|
|
@@ -1555,7 +1557,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1555
1557
|
}
|
|
1556
1558
|
if (pattern === "") return "";
|
|
1557
1559
|
let re = "";
|
|
1558
|
-
let hasMagic =
|
|
1560
|
+
let hasMagic = false;
|
|
1559
1561
|
let escaping = false;
|
|
1560
1562
|
const patternListStack = [];
|
|
1561
1563
|
const negativeLists = [];
|
|
@@ -1566,7 +1568,10 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1566
1568
|
let cs;
|
|
1567
1569
|
let pl;
|
|
1568
1570
|
let sp;
|
|
1569
|
-
|
|
1571
|
+
let dotTravAllowed = pattern.charAt(0) === ".";
|
|
1572
|
+
let dotFileAllowed = options.dot || dotTravAllowed;
|
|
1573
|
+
const patternStart = () => dotTravAllowed ? "" : dotFileAllowed ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
|
1574
|
+
const subPatternStart = (p) => p.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
|
1570
1575
|
const clearStateChar = () => {
|
|
1571
1576
|
if (stateChar) {
|
|
1572
1577
|
switch (stateChar) {
|
|
@@ -1605,6 +1610,10 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1605
1610
|
return false;
|
|
1606
1611
|
}
|
|
1607
1612
|
case "\\":
|
|
1613
|
+
if (inClass && pattern.charAt(i + 1) === "-") {
|
|
1614
|
+
re += c;
|
|
1615
|
+
continue;
|
|
1616
|
+
}
|
|
1608
1617
|
clearStateChar();
|
|
1609
1618
|
escaping = true;
|
|
1610
1619
|
continue;
|
|
@@ -1627,7 +1636,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1627
1636
|
stateChar = c;
|
|
1628
1637
|
if (options.noext) clearStateChar();
|
|
1629
1638
|
continue;
|
|
1630
|
-
case "(":
|
|
1639
|
+
case "(": {
|
|
1631
1640
|
if (inClass) {
|
|
1632
1641
|
re += "(";
|
|
1633
1642
|
continue;
|
|
@@ -1636,39 +1645,54 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1636
1645
|
re += "\\(";
|
|
1637
1646
|
continue;
|
|
1638
1647
|
}
|
|
1639
|
-
|
|
1648
|
+
const plEntry = {
|
|
1640
1649
|
type: stateChar,
|
|
1641
1650
|
start: i - 1,
|
|
1642
1651
|
reStart: re.length,
|
|
1643
1652
|
open: plTypes[stateChar].open,
|
|
1644
1653
|
close: plTypes[stateChar].close
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1654
|
+
};
|
|
1655
|
+
this.debug(this.pattern, " ", plEntry);
|
|
1656
|
+
patternListStack.push(plEntry);
|
|
1657
|
+
re += plEntry.open;
|
|
1658
|
+
if (plEntry.start === 0 && plEntry.type !== "!") {
|
|
1659
|
+
dotTravAllowed = true;
|
|
1660
|
+
re += subPatternStart(pattern.slice(i + 1));
|
|
1661
|
+
}
|
|
1647
1662
|
this.debug("plType %j %j", stateChar, re);
|
|
1648
1663
|
stateChar = false;
|
|
1649
1664
|
continue;
|
|
1650
|
-
|
|
1651
|
-
|
|
1665
|
+
}
|
|
1666
|
+
case ")": {
|
|
1667
|
+
const plEntry = patternListStack[patternListStack.length - 1];
|
|
1668
|
+
if (inClass || !plEntry) {
|
|
1652
1669
|
re += "\\)";
|
|
1653
1670
|
continue;
|
|
1654
1671
|
}
|
|
1672
|
+
patternListStack.pop();
|
|
1655
1673
|
clearStateChar();
|
|
1656
1674
|
hasMagic = true;
|
|
1657
|
-
pl =
|
|
1675
|
+
pl = plEntry;
|
|
1658
1676
|
re += pl.close;
|
|
1659
1677
|
if (pl.type === "!") {
|
|
1660
|
-
negativeLists.push(pl);
|
|
1678
|
+
negativeLists.push(Object.assign(pl, { reEnd: re.length }));
|
|
1661
1679
|
}
|
|
1662
|
-
pl.reEnd = re.length;
|
|
1663
1680
|
continue;
|
|
1664
|
-
|
|
1665
|
-
|
|
1681
|
+
}
|
|
1682
|
+
case "|": {
|
|
1683
|
+
const plEntry = patternListStack[patternListStack.length - 1];
|
|
1684
|
+
if (inClass || !plEntry) {
|
|
1666
1685
|
re += "\\|";
|
|
1667
1686
|
continue;
|
|
1668
1687
|
}
|
|
1669
1688
|
clearStateChar();
|
|
1670
1689
|
re += "|";
|
|
1690
|
+
if (plEntry.start === 0 && plEntry.type !== "!") {
|
|
1691
|
+
dotTravAllowed = true;
|
|
1692
|
+
re += subPatternStart(pattern.slice(i + 1));
|
|
1693
|
+
}
|
|
1671
1694
|
continue;
|
|
1695
|
+
}
|
|
1672
1696
|
// these are mostly the same in regexp and glob
|
|
1673
1697
|
case "[":
|
|
1674
1698
|
clearStateChar();
|
|
@@ -1688,17 +1712,13 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1688
1712
|
}
|
|
1689
1713
|
cs = pattern.substring(classStart + 1, i);
|
|
1690
1714
|
try {
|
|
1691
|
-
RegExp("[" + cs + "]");
|
|
1715
|
+
RegExp("[" + braExpEscape(charUnescape(cs)) + "]");
|
|
1716
|
+
re += c;
|
|
1692
1717
|
} catch (er) {
|
|
1693
|
-
|
|
1694
|
-
re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]";
|
|
1695
|
-
hasMagic = hasMagic || sp[1];
|
|
1696
|
-
inClass = false;
|
|
1697
|
-
continue;
|
|
1718
|
+
re = re.substring(0, reClassStart) + "(?:$.)";
|
|
1698
1719
|
}
|
|
1699
1720
|
hasMagic = true;
|
|
1700
1721
|
inClass = false;
|
|
1701
|
-
re += c;
|
|
1702
1722
|
continue;
|
|
1703
1723
|
default:
|
|
1704
1724
|
clearStateChar();
|
|
@@ -1710,9 +1730,9 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1710
1730
|
}
|
|
1711
1731
|
}
|
|
1712
1732
|
if (inClass) {
|
|
1713
|
-
cs = pattern.
|
|
1733
|
+
cs = pattern.slice(classStart + 1);
|
|
1714
1734
|
sp = this.parse(cs, SUBPARSE);
|
|
1715
|
-
re = re.
|
|
1735
|
+
re = re.substring(0, reClassStart) + "\\[" + sp[0];
|
|
1716
1736
|
hasMagic = hasMagic || sp[1];
|
|
1717
1737
|
}
|
|
1718
1738
|
for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
|
|
@@ -1741,24 +1761,28 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1741
1761
|
const nlFirst = re.slice(nl.reStart, nl.reEnd - 8);
|
|
1742
1762
|
let nlAfter = re.slice(nl.reEnd);
|
|
1743
1763
|
const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter;
|
|
1744
|
-
const
|
|
1764
|
+
const closeParensBefore = nlBefore.split(")").length;
|
|
1765
|
+
const openParensBefore = nlBefore.split("(").length - closeParensBefore;
|
|
1745
1766
|
let cleanAfter = nlAfter;
|
|
1746
1767
|
for (let i = 0; i < openParensBefore; i++) {
|
|
1747
1768
|
cleanAfter = cleanAfter.replace(/\)[+*?]?/, "");
|
|
1748
1769
|
}
|
|
1749
1770
|
nlAfter = cleanAfter;
|
|
1750
|
-
const dollar = nlAfter === "" && isSub !== SUBPARSE ? "
|
|
1771
|
+
const dollar = nlAfter === "" && isSub !== SUBPARSE ? "(?:$|\\/)" : "";
|
|
1751
1772
|
re = nlBefore + nlFirst + nlAfter + dollar + nlLast;
|
|
1752
1773
|
}
|
|
1753
1774
|
if (re !== "" && hasMagic) {
|
|
1754
1775
|
re = "(?=.)" + re;
|
|
1755
1776
|
}
|
|
1756
1777
|
if (addPatternStart) {
|
|
1757
|
-
re = patternStart + re;
|
|
1778
|
+
re = patternStart() + re;
|
|
1758
1779
|
}
|
|
1759
1780
|
if (isSub === SUBPARSE) {
|
|
1760
1781
|
return [re, hasMagic];
|
|
1761
1782
|
}
|
|
1783
|
+
if (options.nocase && !hasMagic) {
|
|
1784
|
+
hasMagic = pattern.toUpperCase() !== pattern.toLowerCase();
|
|
1785
|
+
}
|
|
1762
1786
|
if (!hasMagic) {
|
|
1763
1787
|
return globUnescape(pattern);
|
|
1764
1788
|
}
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var chunk_Y5WDJ6P7_exports = {};
|
|
20
|
+
__export(chunk_Y5WDJ6P7_exports, {
|
|
21
|
+
require_ms: () => require_ms,
|
|
22
|
+
require_supports_color: () => require_supports_color
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(chunk_Y5WDJ6P7_exports);
|
|
25
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
26
|
+
var require_ms = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
27
|
+
"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module2) {
|
|
28
|
+
"use strict";
|
|
29
|
+
var s = 1e3;
|
|
30
|
+
var m = s * 60;
|
|
31
|
+
var h = m * 60;
|
|
32
|
+
var d = h * 24;
|
|
33
|
+
var w = d * 7;
|
|
34
|
+
var y = d * 365.25;
|
|
35
|
+
module2.exports = function(val, options) {
|
|
36
|
+
options = options || {};
|
|
37
|
+
var type = typeof val;
|
|
38
|
+
if (type === "string" && val.length > 0) {
|
|
39
|
+
return parse(val);
|
|
40
|
+
} else if (type === "number" && isFinite(val)) {
|
|
41
|
+
return options.long ? fmtLong(val) : fmtShort(val);
|
|
42
|
+
}
|
|
43
|
+
throw new Error(
|
|
44
|
+
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
function parse(str) {
|
|
48
|
+
str = String(str);
|
|
49
|
+
if (str.length > 100) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
53
|
+
str
|
|
54
|
+
);
|
|
55
|
+
if (!match) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
var n = parseFloat(match[1]);
|
|
59
|
+
var type = (match[2] || "ms").toLowerCase();
|
|
60
|
+
switch (type) {
|
|
61
|
+
case "years":
|
|
62
|
+
case "year":
|
|
63
|
+
case "yrs":
|
|
64
|
+
case "yr":
|
|
65
|
+
case "y":
|
|
66
|
+
return n * y;
|
|
67
|
+
case "weeks":
|
|
68
|
+
case "week":
|
|
69
|
+
case "w":
|
|
70
|
+
return n * w;
|
|
71
|
+
case "days":
|
|
72
|
+
case "day":
|
|
73
|
+
case "d":
|
|
74
|
+
return n * d;
|
|
75
|
+
case "hours":
|
|
76
|
+
case "hour":
|
|
77
|
+
case "hrs":
|
|
78
|
+
case "hr":
|
|
79
|
+
case "h":
|
|
80
|
+
return n * h;
|
|
81
|
+
case "minutes":
|
|
82
|
+
case "minute":
|
|
83
|
+
case "mins":
|
|
84
|
+
case "min":
|
|
85
|
+
case "m":
|
|
86
|
+
return n * m;
|
|
87
|
+
case "seconds":
|
|
88
|
+
case "second":
|
|
89
|
+
case "secs":
|
|
90
|
+
case "sec":
|
|
91
|
+
case "s":
|
|
92
|
+
return n * s;
|
|
93
|
+
case "milliseconds":
|
|
94
|
+
case "millisecond":
|
|
95
|
+
case "msecs":
|
|
96
|
+
case "msec":
|
|
97
|
+
case "ms":
|
|
98
|
+
return n;
|
|
99
|
+
default:
|
|
100
|
+
return void 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function fmtShort(ms) {
|
|
104
|
+
var msAbs = Math.abs(ms);
|
|
105
|
+
if (msAbs >= d) {
|
|
106
|
+
return Math.round(ms / d) + "d";
|
|
107
|
+
}
|
|
108
|
+
if (msAbs >= h) {
|
|
109
|
+
return Math.round(ms / h) + "h";
|
|
110
|
+
}
|
|
111
|
+
if (msAbs >= m) {
|
|
112
|
+
return Math.round(ms / m) + "m";
|
|
113
|
+
}
|
|
114
|
+
if (msAbs >= s) {
|
|
115
|
+
return Math.round(ms / s) + "s";
|
|
116
|
+
}
|
|
117
|
+
return ms + "ms";
|
|
118
|
+
}
|
|
119
|
+
function fmtLong(ms) {
|
|
120
|
+
var msAbs = Math.abs(ms);
|
|
121
|
+
if (msAbs >= d) {
|
|
122
|
+
return plural(ms, msAbs, d, "day");
|
|
123
|
+
}
|
|
124
|
+
if (msAbs >= h) {
|
|
125
|
+
return plural(ms, msAbs, h, "hour");
|
|
126
|
+
}
|
|
127
|
+
if (msAbs >= m) {
|
|
128
|
+
return plural(ms, msAbs, m, "minute");
|
|
129
|
+
}
|
|
130
|
+
if (msAbs >= s) {
|
|
131
|
+
return plural(ms, msAbs, s, "second");
|
|
132
|
+
}
|
|
133
|
+
return ms + " ms";
|
|
134
|
+
}
|
|
135
|
+
function plural(ms, msAbs, n, name) {
|
|
136
|
+
var isPlural = msAbs >= n * 1.5;
|
|
137
|
+
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
var require_has_flag = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
142
|
+
"../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
|
143
|
+
"use strict";
|
|
144
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
145
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
146
|
+
const position = argv.indexOf(prefix + flag);
|
|
147
|
+
const terminatorPosition = argv.indexOf("--");
|
|
148
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
var require_supports_color = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
153
|
+
"../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports, module2) {
|
|
154
|
+
"use strict";
|
|
155
|
+
var os = (0, import_chunk_2ESYSVXG.__require)("os");
|
|
156
|
+
var tty = (0, import_chunk_2ESYSVXG.__require)("tty");
|
|
157
|
+
var hasFlag = require_has_flag();
|
|
158
|
+
var { env } = process;
|
|
159
|
+
var flagForceColor;
|
|
160
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
161
|
+
flagForceColor = 0;
|
|
162
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
163
|
+
flagForceColor = 1;
|
|
164
|
+
}
|
|
165
|
+
function envForceColor() {
|
|
166
|
+
if ("FORCE_COLOR" in env) {
|
|
167
|
+
if (env.FORCE_COLOR === "true") {
|
|
168
|
+
return 1;
|
|
169
|
+
}
|
|
170
|
+
if (env.FORCE_COLOR === "false") {
|
|
171
|
+
return 0;
|
|
172
|
+
}
|
|
173
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
function translateLevel(level) {
|
|
177
|
+
if (level === 0) {
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
return {
|
|
181
|
+
level,
|
|
182
|
+
hasBasic: true,
|
|
183
|
+
has256: level >= 2,
|
|
184
|
+
has16m: level >= 3
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
188
|
+
const noFlagForceColor = envForceColor();
|
|
189
|
+
if (noFlagForceColor !== void 0) {
|
|
190
|
+
flagForceColor = noFlagForceColor;
|
|
191
|
+
}
|
|
192
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
193
|
+
if (forceColor === 0) {
|
|
194
|
+
return 0;
|
|
195
|
+
}
|
|
196
|
+
if (sniffFlags) {
|
|
197
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
198
|
+
return 3;
|
|
199
|
+
}
|
|
200
|
+
if (hasFlag("color=256")) {
|
|
201
|
+
return 2;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
205
|
+
return 0;
|
|
206
|
+
}
|
|
207
|
+
const min = forceColor || 0;
|
|
208
|
+
if (env.TERM === "dumb") {
|
|
209
|
+
return min;
|
|
210
|
+
}
|
|
211
|
+
if (process.platform === "win32") {
|
|
212
|
+
const osRelease = os.release().split(".");
|
|
213
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
214
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
215
|
+
}
|
|
216
|
+
return 1;
|
|
217
|
+
}
|
|
218
|
+
if ("CI" in env) {
|
|
219
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
220
|
+
return 1;
|
|
221
|
+
}
|
|
222
|
+
return min;
|
|
223
|
+
}
|
|
224
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
225
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
226
|
+
}
|
|
227
|
+
if (env.COLORTERM === "truecolor") {
|
|
228
|
+
return 3;
|
|
229
|
+
}
|
|
230
|
+
if ("TERM_PROGRAM" in env) {
|
|
231
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
232
|
+
switch (env.TERM_PROGRAM) {
|
|
233
|
+
case "iTerm.app":
|
|
234
|
+
return version >= 3 ? 3 : 2;
|
|
235
|
+
case "Apple_Terminal":
|
|
236
|
+
return 2;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
240
|
+
return 2;
|
|
241
|
+
}
|
|
242
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
243
|
+
return 1;
|
|
244
|
+
}
|
|
245
|
+
if ("COLORTERM" in env) {
|
|
246
|
+
return 1;
|
|
247
|
+
}
|
|
248
|
+
return min;
|
|
249
|
+
}
|
|
250
|
+
function getSupportLevel(stream, options = {}) {
|
|
251
|
+
const level = supportsColor(stream, {
|
|
252
|
+
streamIsTTY: stream && stream.isTTY,
|
|
253
|
+
...options
|
|
254
|
+
});
|
|
255
|
+
return translateLevel(level);
|
|
256
|
+
}
|
|
257
|
+
module2.exports = {
|
|
258
|
+
supportsColor: getSupportLevel,
|
|
259
|
+
stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
|
|
260
|
+
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
});
|
|
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var MigrateDiff_exports = {};
|
|
20
20
|
__export(MigrateDiff_exports, {
|
|
21
|
-
MigrateDiff: () =>
|
|
21
|
+
MigrateDiff: () => import_chunk_IVZSWYCG.MigrateDiff
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(MigrateDiff_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_IVZSWYCG = require("../chunk-IVZSWYCG.js");
|
|
25
25
|
var import_chunk_VAJ4VX67 = require("../chunk-VAJ4VX67.js");
|
|
26
26
|
var import_chunk_PSCP5S54 = require("../chunk-PSCP5S54.js");
|
|
27
27
|
var import_chunk_PCTCQIOH = require("../chunk-PCTCQIOH.js");
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ __export(index_exports, {
|
|
|
29
29
|
MigrateCommand: () => import_chunk_LLO7YF56.MigrateCommand,
|
|
30
30
|
MigrateDeploy: () => import_chunk_M22W35EN.MigrateDeploy,
|
|
31
31
|
MigrateDev: () => import_chunk_VSNIZVYG.MigrateDev,
|
|
32
|
-
MigrateDiff: () =>
|
|
32
|
+
MigrateDiff: () => import_chunk_IVZSWYCG.MigrateDiff,
|
|
33
33
|
MigrateReset: () => import_chunk_5ETYUPYJ.MigrateReset,
|
|
34
34
|
MigrateResolve: () => import_chunk_VDFDEQDX.MigrateResolve,
|
|
35
35
|
MigrateStatus: () => import_chunk_DDD7GPGH.MigrateStatus,
|
|
@@ -49,7 +49,7 @@ var import_chunk_M22W35EN = require("./chunk-M22W35EN.js");
|
|
|
49
49
|
var import_chunk_VSNIZVYG = require("./chunk-VSNIZVYG.js");
|
|
50
50
|
var import_chunk_C3722PDA = require("./chunk-C3722PDA.js");
|
|
51
51
|
var import_chunk_7CQBDP4H = require("./chunk-7CQBDP4H.js");
|
|
52
|
-
var
|
|
52
|
+
var import_chunk_IVZSWYCG = require("./chunk-IVZSWYCG.js");
|
|
53
53
|
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
|
54
54
|
var import_chunk_5ETYUPYJ = require("./chunk-5ETYUPYJ.js");
|
|
55
55
|
var import_chunk_KRQEFTDT = require("./chunk-KRQEFTDT.js");
|