drizzle-kit 0.12.8 → 0.12.9
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/index.js +821 -64
- package/package.json +3 -4
package/index.js
CHANGED
|
@@ -1776,9 +1776,753 @@ var require_commander = __commonJS({
|
|
|
1776
1776
|
}
|
|
1777
1777
|
});
|
|
1778
1778
|
|
|
1779
|
-
// node_modules/.pnpm/
|
|
1779
|
+
// node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js
|
|
1780
|
+
var require_ms = __commonJS({
|
|
1781
|
+
"node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js"(exports, module2) {
|
|
1782
|
+
var s = 1e3;
|
|
1783
|
+
var m = s * 60;
|
|
1784
|
+
var h = m * 60;
|
|
1785
|
+
var d = h * 24;
|
|
1786
|
+
var w = d * 7;
|
|
1787
|
+
var y = d * 365.25;
|
|
1788
|
+
module2.exports = function(val, options) {
|
|
1789
|
+
options = options || {};
|
|
1790
|
+
var type = typeof val;
|
|
1791
|
+
if (type === "string" && val.length > 0) {
|
|
1792
|
+
return parse(val);
|
|
1793
|
+
} else if (type === "number" && isFinite(val)) {
|
|
1794
|
+
return options.long ? fmtLong(val) : fmtShort(val);
|
|
1795
|
+
}
|
|
1796
|
+
throw new Error(
|
|
1797
|
+
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
|
1798
|
+
);
|
|
1799
|
+
};
|
|
1800
|
+
function parse(str) {
|
|
1801
|
+
str = String(str);
|
|
1802
|
+
if (str.length > 100) {
|
|
1803
|
+
return;
|
|
1804
|
+
}
|
|
1805
|
+
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(
|
|
1806
|
+
str
|
|
1807
|
+
);
|
|
1808
|
+
if (!match) {
|
|
1809
|
+
return;
|
|
1810
|
+
}
|
|
1811
|
+
var n = parseFloat(match[1]);
|
|
1812
|
+
var type = (match[2] || "ms").toLowerCase();
|
|
1813
|
+
switch (type) {
|
|
1814
|
+
case "years":
|
|
1815
|
+
case "year":
|
|
1816
|
+
case "yrs":
|
|
1817
|
+
case "yr":
|
|
1818
|
+
case "y":
|
|
1819
|
+
return n * y;
|
|
1820
|
+
case "weeks":
|
|
1821
|
+
case "week":
|
|
1822
|
+
case "w":
|
|
1823
|
+
return n * w;
|
|
1824
|
+
case "days":
|
|
1825
|
+
case "day":
|
|
1826
|
+
case "d":
|
|
1827
|
+
return n * d;
|
|
1828
|
+
case "hours":
|
|
1829
|
+
case "hour":
|
|
1830
|
+
case "hrs":
|
|
1831
|
+
case "hr":
|
|
1832
|
+
case "h":
|
|
1833
|
+
return n * h;
|
|
1834
|
+
case "minutes":
|
|
1835
|
+
case "minute":
|
|
1836
|
+
case "mins":
|
|
1837
|
+
case "min":
|
|
1838
|
+
case "m":
|
|
1839
|
+
return n * m;
|
|
1840
|
+
case "seconds":
|
|
1841
|
+
case "second":
|
|
1842
|
+
case "secs":
|
|
1843
|
+
case "sec":
|
|
1844
|
+
case "s":
|
|
1845
|
+
return n * s;
|
|
1846
|
+
case "milliseconds":
|
|
1847
|
+
case "millisecond":
|
|
1848
|
+
case "msecs":
|
|
1849
|
+
case "msec":
|
|
1850
|
+
case "ms":
|
|
1851
|
+
return n;
|
|
1852
|
+
default:
|
|
1853
|
+
return void 0;
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
function fmtShort(ms) {
|
|
1857
|
+
var msAbs = Math.abs(ms);
|
|
1858
|
+
if (msAbs >= d) {
|
|
1859
|
+
return Math.round(ms / d) + "d";
|
|
1860
|
+
}
|
|
1861
|
+
if (msAbs >= h) {
|
|
1862
|
+
return Math.round(ms / h) + "h";
|
|
1863
|
+
}
|
|
1864
|
+
if (msAbs >= m) {
|
|
1865
|
+
return Math.round(ms / m) + "m";
|
|
1866
|
+
}
|
|
1867
|
+
if (msAbs >= s) {
|
|
1868
|
+
return Math.round(ms / s) + "s";
|
|
1869
|
+
}
|
|
1870
|
+
return ms + "ms";
|
|
1871
|
+
}
|
|
1872
|
+
function fmtLong(ms) {
|
|
1873
|
+
var msAbs = Math.abs(ms);
|
|
1874
|
+
if (msAbs >= d) {
|
|
1875
|
+
return plural(ms, msAbs, d, "day");
|
|
1876
|
+
}
|
|
1877
|
+
if (msAbs >= h) {
|
|
1878
|
+
return plural(ms, msAbs, h, "hour");
|
|
1879
|
+
}
|
|
1880
|
+
if (msAbs >= m) {
|
|
1881
|
+
return plural(ms, msAbs, m, "minute");
|
|
1882
|
+
}
|
|
1883
|
+
if (msAbs >= s) {
|
|
1884
|
+
return plural(ms, msAbs, s, "second");
|
|
1885
|
+
}
|
|
1886
|
+
return ms + " ms";
|
|
1887
|
+
}
|
|
1888
|
+
function plural(ms, msAbs, n, name) {
|
|
1889
|
+
var isPlural = msAbs >= n * 1.5;
|
|
1890
|
+
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
});
|
|
1894
|
+
|
|
1895
|
+
// node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js
|
|
1896
|
+
var require_common = __commonJS({
|
|
1897
|
+
"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js"(exports, module2) {
|
|
1898
|
+
function setup(env2) {
|
|
1899
|
+
createDebug.debug = createDebug;
|
|
1900
|
+
createDebug.default = createDebug;
|
|
1901
|
+
createDebug.coerce = coerce;
|
|
1902
|
+
createDebug.disable = disable;
|
|
1903
|
+
createDebug.enable = enable;
|
|
1904
|
+
createDebug.enabled = enabled;
|
|
1905
|
+
createDebug.humanize = require_ms();
|
|
1906
|
+
createDebug.destroy = destroy;
|
|
1907
|
+
Object.keys(env2).forEach((key) => {
|
|
1908
|
+
createDebug[key] = env2[key];
|
|
1909
|
+
});
|
|
1910
|
+
createDebug.names = [];
|
|
1911
|
+
createDebug.skips = [];
|
|
1912
|
+
createDebug.formatters = {};
|
|
1913
|
+
function selectColor(namespace) {
|
|
1914
|
+
let hash = 0;
|
|
1915
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
1916
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
1917
|
+
hash |= 0;
|
|
1918
|
+
}
|
|
1919
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
1920
|
+
}
|
|
1921
|
+
createDebug.selectColor = selectColor;
|
|
1922
|
+
function createDebug(namespace) {
|
|
1923
|
+
let prevTime;
|
|
1924
|
+
let enableOverride = null;
|
|
1925
|
+
let namespacesCache;
|
|
1926
|
+
let enabledCache;
|
|
1927
|
+
function debug(...args) {
|
|
1928
|
+
if (!debug.enabled) {
|
|
1929
|
+
return;
|
|
1930
|
+
}
|
|
1931
|
+
const self2 = debug;
|
|
1932
|
+
const curr = Number(new Date());
|
|
1933
|
+
const ms = curr - (prevTime || curr);
|
|
1934
|
+
self2.diff = ms;
|
|
1935
|
+
self2.prev = prevTime;
|
|
1936
|
+
self2.curr = curr;
|
|
1937
|
+
prevTime = curr;
|
|
1938
|
+
args[0] = createDebug.coerce(args[0]);
|
|
1939
|
+
if (typeof args[0] !== "string") {
|
|
1940
|
+
args.unshift("%O");
|
|
1941
|
+
}
|
|
1942
|
+
let index3 = 0;
|
|
1943
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
1944
|
+
if (match === "%%") {
|
|
1945
|
+
return "%";
|
|
1946
|
+
}
|
|
1947
|
+
index3++;
|
|
1948
|
+
const formatter = createDebug.formatters[format];
|
|
1949
|
+
if (typeof formatter === "function") {
|
|
1950
|
+
const val = args[index3];
|
|
1951
|
+
match = formatter.call(self2, val);
|
|
1952
|
+
args.splice(index3, 1);
|
|
1953
|
+
index3--;
|
|
1954
|
+
}
|
|
1955
|
+
return match;
|
|
1956
|
+
});
|
|
1957
|
+
createDebug.formatArgs.call(self2, args);
|
|
1958
|
+
const logFn = self2.log || createDebug.log;
|
|
1959
|
+
logFn.apply(self2, args);
|
|
1960
|
+
}
|
|
1961
|
+
debug.namespace = namespace;
|
|
1962
|
+
debug.useColors = createDebug.useColors();
|
|
1963
|
+
debug.color = createDebug.selectColor(namespace);
|
|
1964
|
+
debug.extend = extend;
|
|
1965
|
+
debug.destroy = createDebug.destroy;
|
|
1966
|
+
Object.defineProperty(debug, "enabled", {
|
|
1967
|
+
enumerable: true,
|
|
1968
|
+
configurable: false,
|
|
1969
|
+
get: () => {
|
|
1970
|
+
if (enableOverride !== null) {
|
|
1971
|
+
return enableOverride;
|
|
1972
|
+
}
|
|
1973
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
1974
|
+
namespacesCache = createDebug.namespaces;
|
|
1975
|
+
enabledCache = createDebug.enabled(namespace);
|
|
1976
|
+
}
|
|
1977
|
+
return enabledCache;
|
|
1978
|
+
},
|
|
1979
|
+
set: (v) => {
|
|
1980
|
+
enableOverride = v;
|
|
1981
|
+
}
|
|
1982
|
+
});
|
|
1983
|
+
if (typeof createDebug.init === "function") {
|
|
1984
|
+
createDebug.init(debug);
|
|
1985
|
+
}
|
|
1986
|
+
return debug;
|
|
1987
|
+
}
|
|
1988
|
+
function extend(namespace, delimiter) {
|
|
1989
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
1990
|
+
newDebug.log = this.log;
|
|
1991
|
+
return newDebug;
|
|
1992
|
+
}
|
|
1993
|
+
function enable(namespaces) {
|
|
1994
|
+
createDebug.save(namespaces);
|
|
1995
|
+
createDebug.namespaces = namespaces;
|
|
1996
|
+
createDebug.names = [];
|
|
1997
|
+
createDebug.skips = [];
|
|
1998
|
+
let i;
|
|
1999
|
+
const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
|
|
2000
|
+
const len = split.length;
|
|
2001
|
+
for (i = 0; i < len; i++) {
|
|
2002
|
+
if (!split[i]) {
|
|
2003
|
+
continue;
|
|
2004
|
+
}
|
|
2005
|
+
namespaces = split[i].replace(/\*/g, ".*?");
|
|
2006
|
+
if (namespaces[0] === "-") {
|
|
2007
|
+
createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
|
|
2008
|
+
} else {
|
|
2009
|
+
createDebug.names.push(new RegExp("^" + namespaces + "$"));
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
function disable() {
|
|
2014
|
+
const namespaces = [
|
|
2015
|
+
...createDebug.names.map(toNamespace),
|
|
2016
|
+
...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
|
|
2017
|
+
].join(",");
|
|
2018
|
+
createDebug.enable("");
|
|
2019
|
+
return namespaces;
|
|
2020
|
+
}
|
|
2021
|
+
function enabled(name) {
|
|
2022
|
+
if (name[name.length - 1] === "*") {
|
|
2023
|
+
return true;
|
|
2024
|
+
}
|
|
2025
|
+
let i;
|
|
2026
|
+
let len;
|
|
2027
|
+
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
|
2028
|
+
if (createDebug.skips[i].test(name)) {
|
|
2029
|
+
return false;
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
for (i = 0, len = createDebug.names.length; i < len; i++) {
|
|
2033
|
+
if (createDebug.names[i].test(name)) {
|
|
2034
|
+
return true;
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
return false;
|
|
2038
|
+
}
|
|
2039
|
+
function toNamespace(regexp) {
|
|
2040
|
+
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
2041
|
+
}
|
|
2042
|
+
function coerce(val) {
|
|
2043
|
+
if (val instanceof Error) {
|
|
2044
|
+
return val.stack || val.message;
|
|
2045
|
+
}
|
|
2046
|
+
return val;
|
|
2047
|
+
}
|
|
2048
|
+
function destroy() {
|
|
2049
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
2050
|
+
}
|
|
2051
|
+
createDebug.enable(createDebug.load());
|
|
2052
|
+
return createDebug;
|
|
2053
|
+
}
|
|
2054
|
+
module2.exports = setup;
|
|
2055
|
+
}
|
|
2056
|
+
});
|
|
2057
|
+
|
|
2058
|
+
// node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js
|
|
2059
|
+
var require_browser = __commonJS({
|
|
2060
|
+
"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js"(exports, module2) {
|
|
2061
|
+
exports.formatArgs = formatArgs;
|
|
2062
|
+
exports.save = save;
|
|
2063
|
+
exports.load = load;
|
|
2064
|
+
exports.useColors = useColors;
|
|
2065
|
+
exports.storage = localstorage();
|
|
2066
|
+
exports.destroy = (() => {
|
|
2067
|
+
let warned = false;
|
|
2068
|
+
return () => {
|
|
2069
|
+
if (!warned) {
|
|
2070
|
+
warned = true;
|
|
2071
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
2072
|
+
}
|
|
2073
|
+
};
|
|
2074
|
+
})();
|
|
2075
|
+
exports.colors = [
|
|
2076
|
+
"#0000CC",
|
|
2077
|
+
"#0000FF",
|
|
2078
|
+
"#0033CC",
|
|
2079
|
+
"#0033FF",
|
|
2080
|
+
"#0066CC",
|
|
2081
|
+
"#0066FF",
|
|
2082
|
+
"#0099CC",
|
|
2083
|
+
"#0099FF",
|
|
2084
|
+
"#00CC00",
|
|
2085
|
+
"#00CC33",
|
|
2086
|
+
"#00CC66",
|
|
2087
|
+
"#00CC99",
|
|
2088
|
+
"#00CCCC",
|
|
2089
|
+
"#00CCFF",
|
|
2090
|
+
"#3300CC",
|
|
2091
|
+
"#3300FF",
|
|
2092
|
+
"#3333CC",
|
|
2093
|
+
"#3333FF",
|
|
2094
|
+
"#3366CC",
|
|
2095
|
+
"#3366FF",
|
|
2096
|
+
"#3399CC",
|
|
2097
|
+
"#3399FF",
|
|
2098
|
+
"#33CC00",
|
|
2099
|
+
"#33CC33",
|
|
2100
|
+
"#33CC66",
|
|
2101
|
+
"#33CC99",
|
|
2102
|
+
"#33CCCC",
|
|
2103
|
+
"#33CCFF",
|
|
2104
|
+
"#6600CC",
|
|
2105
|
+
"#6600FF",
|
|
2106
|
+
"#6633CC",
|
|
2107
|
+
"#6633FF",
|
|
2108
|
+
"#66CC00",
|
|
2109
|
+
"#66CC33",
|
|
2110
|
+
"#9900CC",
|
|
2111
|
+
"#9900FF",
|
|
2112
|
+
"#9933CC",
|
|
2113
|
+
"#9933FF",
|
|
2114
|
+
"#99CC00",
|
|
2115
|
+
"#99CC33",
|
|
2116
|
+
"#CC0000",
|
|
2117
|
+
"#CC0033",
|
|
2118
|
+
"#CC0066",
|
|
2119
|
+
"#CC0099",
|
|
2120
|
+
"#CC00CC",
|
|
2121
|
+
"#CC00FF",
|
|
2122
|
+
"#CC3300",
|
|
2123
|
+
"#CC3333",
|
|
2124
|
+
"#CC3366",
|
|
2125
|
+
"#CC3399",
|
|
2126
|
+
"#CC33CC",
|
|
2127
|
+
"#CC33FF",
|
|
2128
|
+
"#CC6600",
|
|
2129
|
+
"#CC6633",
|
|
2130
|
+
"#CC9900",
|
|
2131
|
+
"#CC9933",
|
|
2132
|
+
"#CCCC00",
|
|
2133
|
+
"#CCCC33",
|
|
2134
|
+
"#FF0000",
|
|
2135
|
+
"#FF0033",
|
|
2136
|
+
"#FF0066",
|
|
2137
|
+
"#FF0099",
|
|
2138
|
+
"#FF00CC",
|
|
2139
|
+
"#FF00FF",
|
|
2140
|
+
"#FF3300",
|
|
2141
|
+
"#FF3333",
|
|
2142
|
+
"#FF3366",
|
|
2143
|
+
"#FF3399",
|
|
2144
|
+
"#FF33CC",
|
|
2145
|
+
"#FF33FF",
|
|
2146
|
+
"#FF6600",
|
|
2147
|
+
"#FF6633",
|
|
2148
|
+
"#FF9900",
|
|
2149
|
+
"#FF9933",
|
|
2150
|
+
"#FFCC00",
|
|
2151
|
+
"#FFCC33"
|
|
2152
|
+
];
|
|
2153
|
+
function useColors() {
|
|
2154
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
2155
|
+
return true;
|
|
2156
|
+
}
|
|
2157
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
2158
|
+
return false;
|
|
2159
|
+
}
|
|
2160
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
2161
|
+
}
|
|
2162
|
+
function formatArgs(args) {
|
|
2163
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
2164
|
+
if (!this.useColors) {
|
|
2165
|
+
return;
|
|
2166
|
+
}
|
|
2167
|
+
const c = "color: " + this.color;
|
|
2168
|
+
args.splice(1, 0, c, "color: inherit");
|
|
2169
|
+
let index3 = 0;
|
|
2170
|
+
let lastC = 0;
|
|
2171
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
2172
|
+
if (match === "%%") {
|
|
2173
|
+
return;
|
|
2174
|
+
}
|
|
2175
|
+
index3++;
|
|
2176
|
+
if (match === "%c") {
|
|
2177
|
+
lastC = index3;
|
|
2178
|
+
}
|
|
2179
|
+
});
|
|
2180
|
+
args.splice(lastC, 0, c);
|
|
2181
|
+
}
|
|
2182
|
+
exports.log = console.debug || console.log || (() => {
|
|
2183
|
+
});
|
|
2184
|
+
function save(namespaces) {
|
|
2185
|
+
try {
|
|
2186
|
+
if (namespaces) {
|
|
2187
|
+
exports.storage.setItem("debug", namespaces);
|
|
2188
|
+
} else {
|
|
2189
|
+
exports.storage.removeItem("debug");
|
|
2190
|
+
}
|
|
2191
|
+
} catch (error2) {
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
function load() {
|
|
2195
|
+
let r;
|
|
2196
|
+
try {
|
|
2197
|
+
r = exports.storage.getItem("debug");
|
|
2198
|
+
} catch (error2) {
|
|
2199
|
+
}
|
|
2200
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
2201
|
+
r = process.env.DEBUG;
|
|
2202
|
+
}
|
|
2203
|
+
return r;
|
|
2204
|
+
}
|
|
2205
|
+
function localstorage() {
|
|
2206
|
+
try {
|
|
2207
|
+
return localStorage;
|
|
2208
|
+
} catch (error2) {
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
module2.exports = require_common()(exports);
|
|
2212
|
+
var { formatters } = module2.exports;
|
|
2213
|
+
formatters.j = function(v) {
|
|
2214
|
+
try {
|
|
2215
|
+
return JSON.stringify(v);
|
|
2216
|
+
} catch (error2) {
|
|
2217
|
+
return "[UnexpectedJSONParseError]: " + error2.message;
|
|
2218
|
+
}
|
|
2219
|
+
};
|
|
2220
|
+
}
|
|
2221
|
+
});
|
|
2222
|
+
|
|
2223
|
+
// node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
|
|
2224
|
+
var require_has_flag = __commonJS({
|
|
2225
|
+
"node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
|
2226
|
+
"use strict";
|
|
2227
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
2228
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
2229
|
+
const position = argv.indexOf(prefix + flag);
|
|
2230
|
+
const terminatorPosition = argv.indexOf("--");
|
|
2231
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
2232
|
+
};
|
|
2233
|
+
}
|
|
2234
|
+
});
|
|
2235
|
+
|
|
2236
|
+
// node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js
|
|
2237
|
+
var require_supports_color = __commonJS({
|
|
2238
|
+
"node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
2239
|
+
"use strict";
|
|
2240
|
+
var os2 = require("os");
|
|
2241
|
+
var tty2 = require("tty");
|
|
2242
|
+
var hasFlag2 = require_has_flag();
|
|
2243
|
+
var { env: env2 } = process;
|
|
2244
|
+
var forceColor;
|
|
2245
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
2246
|
+
forceColor = 0;
|
|
2247
|
+
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
2248
|
+
forceColor = 1;
|
|
2249
|
+
}
|
|
2250
|
+
if ("FORCE_COLOR" in env2) {
|
|
2251
|
+
if (env2.FORCE_COLOR === "true") {
|
|
2252
|
+
forceColor = 1;
|
|
2253
|
+
} else if (env2.FORCE_COLOR === "false") {
|
|
2254
|
+
forceColor = 0;
|
|
2255
|
+
} else {
|
|
2256
|
+
forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
function translateLevel2(level) {
|
|
2260
|
+
if (level === 0) {
|
|
2261
|
+
return false;
|
|
2262
|
+
}
|
|
2263
|
+
return {
|
|
2264
|
+
level,
|
|
2265
|
+
hasBasic: true,
|
|
2266
|
+
has256: level >= 2,
|
|
2267
|
+
has16m: level >= 3
|
|
2268
|
+
};
|
|
2269
|
+
}
|
|
2270
|
+
function supportsColor2(haveStream, streamIsTTY) {
|
|
2271
|
+
if (forceColor === 0) {
|
|
2272
|
+
return 0;
|
|
2273
|
+
}
|
|
2274
|
+
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
2275
|
+
return 3;
|
|
2276
|
+
}
|
|
2277
|
+
if (hasFlag2("color=256")) {
|
|
2278
|
+
return 2;
|
|
2279
|
+
}
|
|
2280
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
2281
|
+
return 0;
|
|
2282
|
+
}
|
|
2283
|
+
const min = forceColor || 0;
|
|
2284
|
+
if (env2.TERM === "dumb") {
|
|
2285
|
+
return min;
|
|
2286
|
+
}
|
|
2287
|
+
if (process.platform === "win32") {
|
|
2288
|
+
const osRelease = os2.release().split(".");
|
|
2289
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
2290
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
2291
|
+
}
|
|
2292
|
+
return 1;
|
|
2293
|
+
}
|
|
2294
|
+
if ("CI" in env2) {
|
|
2295
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
2296
|
+
return 1;
|
|
2297
|
+
}
|
|
2298
|
+
return min;
|
|
2299
|
+
}
|
|
2300
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
2301
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
2302
|
+
}
|
|
2303
|
+
if (env2.COLORTERM === "truecolor") {
|
|
2304
|
+
return 3;
|
|
2305
|
+
}
|
|
2306
|
+
if ("TERM_PROGRAM" in env2) {
|
|
2307
|
+
const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
2308
|
+
switch (env2.TERM_PROGRAM) {
|
|
2309
|
+
case "iTerm.app":
|
|
2310
|
+
return version >= 3 ? 3 : 2;
|
|
2311
|
+
case "Apple_Terminal":
|
|
2312
|
+
return 2;
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
2316
|
+
return 2;
|
|
2317
|
+
}
|
|
2318
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
2319
|
+
return 1;
|
|
2320
|
+
}
|
|
2321
|
+
if ("COLORTERM" in env2) {
|
|
2322
|
+
return 1;
|
|
2323
|
+
}
|
|
2324
|
+
return min;
|
|
2325
|
+
}
|
|
2326
|
+
function getSupportLevel(stream) {
|
|
2327
|
+
const level = supportsColor2(stream, stream && stream.isTTY);
|
|
2328
|
+
return translateLevel2(level);
|
|
2329
|
+
}
|
|
2330
|
+
module2.exports = {
|
|
2331
|
+
supportsColor: getSupportLevel,
|
|
2332
|
+
stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
|
|
2333
|
+
stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
|
|
2334
|
+
};
|
|
2335
|
+
}
|
|
2336
|
+
});
|
|
2337
|
+
|
|
2338
|
+
// node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js
|
|
1780
2339
|
var require_node = __commonJS({
|
|
1781
|
-
"node_modules/.pnpm/
|
|
2340
|
+
"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js"(exports, module2) {
|
|
2341
|
+
var tty2 = require("tty");
|
|
2342
|
+
var util2 = require("util");
|
|
2343
|
+
exports.init = init;
|
|
2344
|
+
exports.log = log;
|
|
2345
|
+
exports.formatArgs = formatArgs;
|
|
2346
|
+
exports.save = save;
|
|
2347
|
+
exports.load = load;
|
|
2348
|
+
exports.useColors = useColors;
|
|
2349
|
+
exports.destroy = util2.deprecate(
|
|
2350
|
+
() => {
|
|
2351
|
+
},
|
|
2352
|
+
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
2353
|
+
);
|
|
2354
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
2355
|
+
try {
|
|
2356
|
+
const supportsColor2 = require_supports_color();
|
|
2357
|
+
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
2358
|
+
exports.colors = [
|
|
2359
|
+
20,
|
|
2360
|
+
21,
|
|
2361
|
+
26,
|
|
2362
|
+
27,
|
|
2363
|
+
32,
|
|
2364
|
+
33,
|
|
2365
|
+
38,
|
|
2366
|
+
39,
|
|
2367
|
+
40,
|
|
2368
|
+
41,
|
|
2369
|
+
42,
|
|
2370
|
+
43,
|
|
2371
|
+
44,
|
|
2372
|
+
45,
|
|
2373
|
+
56,
|
|
2374
|
+
57,
|
|
2375
|
+
62,
|
|
2376
|
+
63,
|
|
2377
|
+
68,
|
|
2378
|
+
69,
|
|
2379
|
+
74,
|
|
2380
|
+
75,
|
|
2381
|
+
76,
|
|
2382
|
+
77,
|
|
2383
|
+
78,
|
|
2384
|
+
79,
|
|
2385
|
+
80,
|
|
2386
|
+
81,
|
|
2387
|
+
92,
|
|
2388
|
+
93,
|
|
2389
|
+
98,
|
|
2390
|
+
99,
|
|
2391
|
+
112,
|
|
2392
|
+
113,
|
|
2393
|
+
128,
|
|
2394
|
+
129,
|
|
2395
|
+
134,
|
|
2396
|
+
135,
|
|
2397
|
+
148,
|
|
2398
|
+
149,
|
|
2399
|
+
160,
|
|
2400
|
+
161,
|
|
2401
|
+
162,
|
|
2402
|
+
163,
|
|
2403
|
+
164,
|
|
2404
|
+
165,
|
|
2405
|
+
166,
|
|
2406
|
+
167,
|
|
2407
|
+
168,
|
|
2408
|
+
169,
|
|
2409
|
+
170,
|
|
2410
|
+
171,
|
|
2411
|
+
172,
|
|
2412
|
+
173,
|
|
2413
|
+
178,
|
|
2414
|
+
179,
|
|
2415
|
+
184,
|
|
2416
|
+
185,
|
|
2417
|
+
196,
|
|
2418
|
+
197,
|
|
2419
|
+
198,
|
|
2420
|
+
199,
|
|
2421
|
+
200,
|
|
2422
|
+
201,
|
|
2423
|
+
202,
|
|
2424
|
+
203,
|
|
2425
|
+
204,
|
|
2426
|
+
205,
|
|
2427
|
+
206,
|
|
2428
|
+
207,
|
|
2429
|
+
208,
|
|
2430
|
+
209,
|
|
2431
|
+
214,
|
|
2432
|
+
215,
|
|
2433
|
+
220,
|
|
2434
|
+
221
|
|
2435
|
+
];
|
|
2436
|
+
}
|
|
2437
|
+
} catch (error2) {
|
|
2438
|
+
}
|
|
2439
|
+
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
2440
|
+
return /^debug_/i.test(key);
|
|
2441
|
+
}).reduce((obj, key) => {
|
|
2442
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
2443
|
+
return k.toUpperCase();
|
|
2444
|
+
});
|
|
2445
|
+
let val = process.env[key];
|
|
2446
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
2447
|
+
val = true;
|
|
2448
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
2449
|
+
val = false;
|
|
2450
|
+
} else if (val === "null") {
|
|
2451
|
+
val = null;
|
|
2452
|
+
} else {
|
|
2453
|
+
val = Number(val);
|
|
2454
|
+
}
|
|
2455
|
+
obj[prop] = val;
|
|
2456
|
+
return obj;
|
|
2457
|
+
}, {});
|
|
2458
|
+
function useColors() {
|
|
2459
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
|
|
2460
|
+
}
|
|
2461
|
+
function formatArgs(args) {
|
|
2462
|
+
const { namespace: name, useColors: useColors2 } = this;
|
|
2463
|
+
if (useColors2) {
|
|
2464
|
+
const c = this.color;
|
|
2465
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
2466
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
2467
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
2468
|
+
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
2469
|
+
} else {
|
|
2470
|
+
args[0] = getDate() + name + " " + args[0];
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
function getDate() {
|
|
2474
|
+
if (exports.inspectOpts.hideDate) {
|
|
2475
|
+
return "";
|
|
2476
|
+
}
|
|
2477
|
+
return new Date().toISOString() + " ";
|
|
2478
|
+
}
|
|
2479
|
+
function log(...args) {
|
|
2480
|
+
return process.stderr.write(util2.format(...args) + "\n");
|
|
2481
|
+
}
|
|
2482
|
+
function save(namespaces) {
|
|
2483
|
+
if (namespaces) {
|
|
2484
|
+
process.env.DEBUG = namespaces;
|
|
2485
|
+
} else {
|
|
2486
|
+
delete process.env.DEBUG;
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
function load() {
|
|
2490
|
+
return process.env.DEBUG;
|
|
2491
|
+
}
|
|
2492
|
+
function init(debug) {
|
|
2493
|
+
debug.inspectOpts = {};
|
|
2494
|
+
const keys = Object.keys(exports.inspectOpts);
|
|
2495
|
+
for (let i = 0; i < keys.length; i++) {
|
|
2496
|
+
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
module2.exports = require_common()(exports);
|
|
2500
|
+
var { formatters } = module2.exports;
|
|
2501
|
+
formatters.o = function(v) {
|
|
2502
|
+
this.inspectOpts.colors = this.useColors;
|
|
2503
|
+
return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
2504
|
+
};
|
|
2505
|
+
formatters.O = function(v) {
|
|
2506
|
+
this.inspectOpts.colors = this.useColors;
|
|
2507
|
+
return util2.inspect(v, this.inspectOpts);
|
|
2508
|
+
};
|
|
2509
|
+
}
|
|
2510
|
+
});
|
|
2511
|
+
|
|
2512
|
+
// node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js
|
|
2513
|
+
var require_src = __commonJS({
|
|
2514
|
+
"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js"(exports, module2) {
|
|
2515
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
2516
|
+
module2.exports = require_browser();
|
|
2517
|
+
} else {
|
|
2518
|
+
module2.exports = require_node();
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
});
|
|
2522
|
+
|
|
2523
|
+
// node_modules/.pnpm/esbuild-register@3.4.1_esbuild@0.15.15/node_modules/esbuild-register/dist/node.js
|
|
2524
|
+
var require_node2 = __commonJS({
|
|
2525
|
+
"node_modules/.pnpm/esbuild-register@3.4.1_esbuild@0.15.15/node_modules/esbuild-register/dist/node.js"(exports) {
|
|
1782
2526
|
"use strict";
|
|
1783
2527
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1784
2528
|
function _interopRequireDefault2(obj) {
|
|
@@ -1982,7 +2726,7 @@ var require_node = __commonJS({
|
|
|
1982
2726
|
return path3;
|
|
1983
2727
|
}
|
|
1984
2728
|
exports2.normalize = normalize;
|
|
1985
|
-
function
|
|
2729
|
+
function join2(aRoot, aPath) {
|
|
1986
2730
|
if (aRoot === "") {
|
|
1987
2731
|
aRoot = ".";
|
|
1988
2732
|
}
|
|
@@ -2014,7 +2758,7 @@ var require_node = __commonJS({
|
|
|
2014
2758
|
}
|
|
2015
2759
|
return joined;
|
|
2016
2760
|
}
|
|
2017
|
-
exports2.join =
|
|
2761
|
+
exports2.join = join2;
|
|
2018
2762
|
exports2.isAbsolute = function(aPath) {
|
|
2019
2763
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
2020
2764
|
};
|
|
@@ -2187,7 +2931,7 @@ var require_node = __commonJS({
|
|
|
2187
2931
|
parsed.path = parsed.path.substring(0, index3 + 1);
|
|
2188
2932
|
}
|
|
2189
2933
|
}
|
|
2190
|
-
sourceURL =
|
|
2934
|
+
sourceURL = join2(urlGenerate(parsed), sourceURL);
|
|
2191
2935
|
}
|
|
2192
2936
|
return normalize(sourceURL);
|
|
2193
2937
|
}
|
|
@@ -6434,7 +7178,7 @@ var require_node = __commonJS({
|
|
|
6434
7178
|
});
|
|
6435
7179
|
var getOptions = (cwd) => {
|
|
6436
7180
|
var _a, _b, _c, _d;
|
|
6437
|
-
const { data, path: path3 } = joycon.loadSync(["tsconfig.json"], cwd);
|
|
7181
|
+
const { data, path: path3 } = joycon.loadSync(["tsconfig.json", "jsconfig.json"], cwd);
|
|
6438
7182
|
if (path3 && data) {
|
|
6439
7183
|
return {
|
|
6440
7184
|
jsxFactory: (_a = data.compilerOptions) == null ? void 0 : _a.jsxFactory,
|
|
@@ -6480,9 +7224,14 @@ var require_node = __commonJS({
|
|
|
6480
7224
|
Module._resolveFilename = originalResolveFilename;
|
|
6481
7225
|
};
|
|
6482
7226
|
}
|
|
7227
|
+
var _debug = require_src();
|
|
7228
|
+
var _debug2 = _interopRequireDefault2(_debug);
|
|
7229
|
+
var debug = _debug2.default.call(void 0, "esbuild-register");
|
|
7230
|
+
var IMPORT_META_URL_VARIABLE_NAME = "__esbuild_register_import_meta_url__";
|
|
6483
7231
|
var map = {};
|
|
6484
7232
|
function installSourceMapSupport() {
|
|
6485
7233
|
if (_process2.default.setSourceMapsEnabled) {
|
|
7234
|
+
;
|
|
6486
7235
|
_process2.default.setSourceMapsEnabled(true);
|
|
6487
7236
|
} else {
|
|
6488
7237
|
import_source_map_support.default.install({
|
|
@@ -6515,13 +7264,18 @@ var require_node = __commonJS({
|
|
|
6515
7264
|
module22._compile(content, filename);
|
|
6516
7265
|
}
|
|
6517
7266
|
};
|
|
7267
|
+
return () => {
|
|
7268
|
+
extensions[".js"] = jsHandler;
|
|
7269
|
+
};
|
|
6518
7270
|
}
|
|
6519
7271
|
var FILE_LOADERS = {
|
|
6520
7272
|
".js": "js",
|
|
6521
7273
|
".jsx": "jsx",
|
|
6522
7274
|
".ts": "ts",
|
|
6523
7275
|
".tsx": "tsx",
|
|
6524
|
-
".mjs": "js"
|
|
7276
|
+
".mjs": "js",
|
|
7277
|
+
".mts": "ts",
|
|
7278
|
+
".cts": "ts"
|
|
6525
7279
|
};
|
|
6526
7280
|
var DEFAULT_EXTENSIONS = Object.keys(FILE_LOADERS);
|
|
6527
7281
|
var getLoader = (filename) => FILE_LOADERS[_path2.extname.call(void 0, filename)];
|
|
@@ -6536,21 +7290,25 @@ var require_node = __commonJS({
|
|
|
6536
7290
|
const dir = _path2.dirname.call(void 0, filename);
|
|
6537
7291
|
const options = getOptions(dir);
|
|
6538
7292
|
format = format != null ? format : inferPackageFormat(dir, filename);
|
|
6539
|
-
const {
|
|
6540
|
-
code: js,
|
|
6541
|
-
warnings,
|
|
6542
|
-
map: jsSourceMap
|
|
6543
|
-
} = _esbuild.transformSync.call(void 0, code, {
|
|
7293
|
+
const result = _esbuild.transformSync.call(void 0, code, {
|
|
6544
7294
|
sourcefile: filename,
|
|
6545
|
-
sourcemap: "both",
|
|
6546
7295
|
loader: getLoader(filename),
|
|
7296
|
+
sourcemap: "both",
|
|
6547
7297
|
target: options.target,
|
|
6548
7298
|
jsxFactory: options.jsxFactory,
|
|
6549
7299
|
jsxFragment: options.jsxFragment,
|
|
6550
7300
|
format,
|
|
7301
|
+
define: {
|
|
7302
|
+
"import.meta.url": IMPORT_META_URL_VARIABLE_NAME,
|
|
7303
|
+
...overrides.define
|
|
7304
|
+
},
|
|
7305
|
+
banner: `const ${IMPORT_META_URL_VARIABLE_NAME} = require('url').pathToFileURL(__filename).href;${overrides.banner || ""}`,
|
|
6551
7306
|
...overrides
|
|
6552
7307
|
});
|
|
6553
|
-
|
|
7308
|
+
const js = result.code;
|
|
7309
|
+
debug("compiled %s", filename);
|
|
7310
|
+
debug("%s", js);
|
|
7311
|
+
const warnings = result.warnings;
|
|
6554
7312
|
if (warnings && warnings.length > 0) {
|
|
6555
7313
|
for (const warning of warnings) {
|
|
6556
7314
|
console.log(warning.location);
|
|
@@ -6567,11 +7325,12 @@ var require_node = __commonJS({
|
|
|
6567
7325
|
matcher: hookMatcher
|
|
6568
7326
|
});
|
|
6569
7327
|
installSourceMapSupport();
|
|
6570
|
-
patchCommonJsLoader(compile);
|
|
7328
|
+
const unpatchCommonJsLoader = patchCommonJsLoader(compile);
|
|
6571
7329
|
const unregisterTsconfigPaths = registerTsconfigPaths();
|
|
6572
7330
|
return {
|
|
6573
7331
|
unregister() {
|
|
6574
7332
|
revert();
|
|
7333
|
+
unpatchCommonJsLoader();
|
|
6575
7334
|
unregisterTsconfigPaths();
|
|
6576
7335
|
}
|
|
6577
7336
|
};
|
|
@@ -6724,7 +7483,7 @@ var require_foreign_keys = __commonJS({
|
|
|
6724
7483
|
});
|
|
6725
7484
|
|
|
6726
7485
|
// node_modules/.pnpm/drizzle-orm-mysql@0.12.0-beta.10_drizzle-orm@0.12.0-beta.3/node_modules/drizzle-orm-mysql/columns/common.js
|
|
6727
|
-
var
|
|
7486
|
+
var require_common2 = __commonJS({
|
|
6728
7487
|
"node_modules/.pnpm/drizzle-orm-mysql@0.12.0-beta.10_drizzle-orm@0.12.0-beta.3/node_modules/drizzle-orm-mysql/columns/common.js"(exports) {
|
|
6729
7488
|
"use strict";
|
|
6730
7489
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6812,7 +7571,7 @@ var require_bigint = __commonJS({
|
|
|
6812
7571
|
"use strict";
|
|
6813
7572
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6814
7573
|
exports.bigint = exports.MySqlBigInt64 = exports.MySqlBigInt64Builder = exports.MySqlBigInt53 = exports.MySqlBigInt53Builder = void 0;
|
|
6815
|
-
var common_1 =
|
|
7574
|
+
var common_1 = require_common2();
|
|
6816
7575
|
var MySqlBigInt53Builder = class extends common_1.MySqlColumnBuilderWithAutoincrement {
|
|
6817
7576
|
build(table3) {
|
|
6818
7577
|
return new MySqlBigInt53(table3, this);
|
|
@@ -6868,7 +7627,7 @@ var require_binary = __commonJS({
|
|
|
6868
7627
|
"use strict";
|
|
6869
7628
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6870
7629
|
exports.binary = exports.MySqlBinary = exports.MySqlBinaryBuilder = void 0;
|
|
6871
|
-
var common_1 =
|
|
7630
|
+
var common_1 = require_common2();
|
|
6872
7631
|
var MySqlBinaryBuilder = class extends common_1.MySqlColumnBuilder {
|
|
6873
7632
|
constructor(name, length) {
|
|
6874
7633
|
super(name);
|
|
@@ -6902,7 +7661,7 @@ var require_char = __commonJS({
|
|
|
6902
7661
|
"use strict";
|
|
6903
7662
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6904
7663
|
exports.char = exports.MySqlChar = exports.MySqlCharBuilder = void 0;
|
|
6905
|
-
var common_1 =
|
|
7664
|
+
var common_1 = require_common2();
|
|
6906
7665
|
var MySqlCharBuilder = class extends common_1.MySqlColumnBuilder {
|
|
6907
7666
|
constructor(name, length) {
|
|
6908
7667
|
super(name);
|
|
@@ -6936,7 +7695,7 @@ var require_decimal = __commonJS({
|
|
|
6936
7695
|
"use strict";
|
|
6937
7696
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6938
7697
|
exports.decimal = exports.MySqlDecimal = exports.MySqlDecimalBuilder = void 0;
|
|
6939
|
-
var common_1 =
|
|
7698
|
+
var common_1 = require_common2();
|
|
6940
7699
|
var MySqlDecimalBuilder = class extends common_1.MySqlColumnBuilder {
|
|
6941
7700
|
constructor(name, precision, scale) {
|
|
6942
7701
|
super(name);
|
|
@@ -6978,7 +7737,7 @@ var require_double = __commonJS({
|
|
|
6978
7737
|
"use strict";
|
|
6979
7738
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6980
7739
|
exports.double = exports.MySqlDouble = exports.MySqlDoubleBuilder = void 0;
|
|
6981
|
-
var common_1 =
|
|
7740
|
+
var common_1 = require_common2();
|
|
6982
7741
|
var MySqlDoubleBuilder = class extends common_1.MySqlColumnBuilder {
|
|
6983
7742
|
constructor(name, precision, scale) {
|
|
6984
7743
|
super(name);
|
|
@@ -7014,7 +7773,7 @@ var require_enum = __commonJS({
|
|
|
7014
7773
|
"use strict";
|
|
7015
7774
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7016
7775
|
exports.mysqlEnum = exports.MySqlEnumColumn = exports.MySqlEnumBuilder = void 0;
|
|
7017
|
-
var common_1 =
|
|
7776
|
+
var common_1 = require_common2();
|
|
7018
7777
|
var MySqlEnumBuilder = class extends common_1.MySqlColumnBuilder {
|
|
7019
7778
|
constructor(name, values) {
|
|
7020
7779
|
super(name);
|
|
@@ -7048,7 +7807,7 @@ var require_float = __commonJS({
|
|
|
7048
7807
|
"use strict";
|
|
7049
7808
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7050
7809
|
exports.float = exports.MySqlFloat = exports.MySqlFloatBuilder = void 0;
|
|
7051
|
-
var common_1 =
|
|
7810
|
+
var common_1 = require_common2();
|
|
7052
7811
|
var MySqlFloatBuilder = class extends common_1.MySqlColumnBuilder {
|
|
7053
7812
|
constructor(name, precision, scale) {
|
|
7054
7813
|
super(name);
|
|
@@ -7084,7 +7843,7 @@ var require_int = __commonJS({
|
|
|
7084
7843
|
"use strict";
|
|
7085
7844
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7086
7845
|
exports.int = exports.MySqlInteger = exports.MySqlIntegerBuilder = void 0;
|
|
7087
|
-
var common_1 =
|
|
7846
|
+
var common_1 = require_common2();
|
|
7088
7847
|
var MySqlIntegerBuilder = class extends common_1.MySqlColumnBuilderWithAutoincrement {
|
|
7089
7848
|
build(table3) {
|
|
7090
7849
|
return new MySqlInteger(table3, this);
|
|
@@ -7119,7 +7878,7 @@ var require_mediumint = __commonJS({
|
|
|
7119
7878
|
"use strict";
|
|
7120
7879
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7121
7880
|
exports.mediumint = exports.MySqlMediumInt = exports.MySqlMediumIntBuilder = void 0;
|
|
7122
|
-
var common_1 =
|
|
7881
|
+
var common_1 = require_common2();
|
|
7123
7882
|
var MySqlMediumIntBuilder = class extends common_1.MySqlColumnBuilderWithAutoincrement {
|
|
7124
7883
|
build(table3) {
|
|
7125
7884
|
return new MySqlMediumInt(table3, this);
|
|
@@ -7154,7 +7913,7 @@ var require_real = __commonJS({
|
|
|
7154
7913
|
"use strict";
|
|
7155
7914
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7156
7915
|
exports.real = exports.MySqlReal = exports.MySqlRealBuilder = void 0;
|
|
7157
|
-
var common_1 =
|
|
7916
|
+
var common_1 = require_common2();
|
|
7158
7917
|
var MySqlRealBuilder = class extends common_1.MySqlColumnBuilder {
|
|
7159
7918
|
constructor(name, precision, scale) {
|
|
7160
7919
|
super(name);
|
|
@@ -7196,7 +7955,7 @@ var require_serial = __commonJS({
|
|
|
7196
7955
|
"use strict";
|
|
7197
7956
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7198
7957
|
exports.serial = exports.MySqlSerial = exports.MySqlSerialBuilder = void 0;
|
|
7199
|
-
var common_1 =
|
|
7958
|
+
var common_1 = require_common2();
|
|
7200
7959
|
var MySqlSerialBuilder = class extends common_1.MySqlColumnBuilder {
|
|
7201
7960
|
build(table3) {
|
|
7202
7961
|
return new MySqlSerial(table3, this);
|
|
@@ -7231,7 +7990,7 @@ var require_smallint = __commonJS({
|
|
|
7231
7990
|
"use strict";
|
|
7232
7991
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7233
7992
|
exports.smallint = exports.MySqlSmallInt = exports.MySqlSmallIntBuilder = void 0;
|
|
7234
|
-
var common_1 =
|
|
7993
|
+
var common_1 = require_common2();
|
|
7235
7994
|
var MySqlSmallIntBuilder = class extends common_1.MySqlColumnBuilderWithAutoincrement {
|
|
7236
7995
|
build(table3) {
|
|
7237
7996
|
return new MySqlSmallInt(table3, this);
|
|
@@ -7266,7 +8025,7 @@ var require_text = __commonJS({
|
|
|
7266
8025
|
"use strict";
|
|
7267
8026
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7268
8027
|
exports.longtext = exports.mediumtext = exports.tinytext = exports.text = exports.MySqlLongText = exports.MySqlLongTextBuilder = exports.MySqlMediumText = exports.MySqlMediumTextBuilder = exports.MySqlTinyText = exports.MySqlTinyTextBuilder = exports.MySqlText = exports.MySqlTextBuilder = void 0;
|
|
7269
|
-
var common_1 =
|
|
8028
|
+
var common_1 = require_common2();
|
|
7270
8029
|
var MySqlTextBuilder = class extends common_1.MySqlColumnBuilder {
|
|
7271
8030
|
build(table3) {
|
|
7272
8031
|
return new MySqlText(table3, this);
|
|
@@ -7340,7 +8099,7 @@ var require_timestamp = __commonJS({
|
|
|
7340
8099
|
"use strict";
|
|
7341
8100
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7342
8101
|
exports.timestamp = exports.MySqlTimestampString = exports.MySqlTimestampStringBuilder = exports.MySqlTimestamp = exports.MySqlTimestampBuilder = void 0;
|
|
7343
|
-
var common_1 =
|
|
8102
|
+
var common_1 = require_common2();
|
|
7344
8103
|
var MySqlTimestampBuilder = class extends common_1.MySqlColumnBuilder {
|
|
7345
8104
|
constructor(name, fsp) {
|
|
7346
8105
|
super(name);
|
|
@@ -7402,7 +8161,7 @@ var require_tinyint = __commonJS({
|
|
|
7402
8161
|
"use strict";
|
|
7403
8162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7404
8163
|
exports.tinyint = exports.MySqlTinyInt = exports.MySqlTinyIntBuilder = void 0;
|
|
7405
|
-
var common_1 =
|
|
8164
|
+
var common_1 = require_common2();
|
|
7406
8165
|
var MySqlTinyIntBuilder = class extends common_1.MySqlColumnBuilder {
|
|
7407
8166
|
build(table3) {
|
|
7408
8167
|
return new MySqlTinyInt(table3, this);
|
|
@@ -7437,7 +8196,7 @@ var require_varbinary = __commonJS({
|
|
|
7437
8196
|
"use strict";
|
|
7438
8197
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7439
8198
|
exports.varbinary = exports.MySqlVarBinary = exports.MySqlVarBinaryBuilder = void 0;
|
|
7440
|
-
var common_1 =
|
|
8199
|
+
var common_1 = require_common2();
|
|
7441
8200
|
var MySqlVarBinaryBuilder = class extends common_1.MySqlColumnBuilder {
|
|
7442
8201
|
constructor(name, length) {
|
|
7443
8202
|
super(name);
|
|
@@ -7471,7 +8230,7 @@ var require_varchar = __commonJS({
|
|
|
7471
8230
|
"use strict";
|
|
7472
8231
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7473
8232
|
exports.varchar = exports.MySqlVarChar = exports.MySqlVarCharBuilder = void 0;
|
|
7474
|
-
var common_1 =
|
|
8233
|
+
var common_1 = require_common2();
|
|
7475
8234
|
var MySqlVarCharBuilder = class extends common_1.MySqlColumnBuilder {
|
|
7476
8235
|
constructor(name, length) {
|
|
7477
8236
|
super(name);
|
|
@@ -7528,7 +8287,7 @@ var require_columns = __commonJS({
|
|
|
7528
8287
|
__exportStar(require_bigint(), exports);
|
|
7529
8288
|
__exportStar(require_binary(), exports);
|
|
7530
8289
|
__exportStar(require_char(), exports);
|
|
7531
|
-
var common_1 =
|
|
8290
|
+
var common_1 = require_common2();
|
|
7532
8291
|
Object.defineProperty(exports, "MySqlColumn", { enumerable: true, get: function() {
|
|
7533
8292
|
return common_1.MySqlColumn;
|
|
7534
8293
|
} });
|
|
@@ -8201,7 +8960,7 @@ var require_connection = __commonJS({
|
|
|
8201
8960
|
var drizzle_orm_1 = require("drizzle-orm");
|
|
8202
8961
|
var sql_1 = require("drizzle-orm/sql");
|
|
8203
8962
|
var utils_1 = require("drizzle-orm/utils");
|
|
8204
|
-
var common_1 =
|
|
8963
|
+
var common_1 = require_common2();
|
|
8205
8964
|
var operations_1 = require_operations();
|
|
8206
8965
|
var MySqlSessionDefault = class {
|
|
8207
8966
|
constructor(client) {
|
|
@@ -12762,7 +13521,7 @@ var require_sgr = __commonJS({
|
|
|
12762
13521
|
});
|
|
12763
13522
|
|
|
12764
13523
|
// node_modules/.pnpm/cli-color@2.0.3/node_modules/cli-color/lib/supports-color.js
|
|
12765
|
-
var
|
|
13524
|
+
var require_supports_color2 = __commonJS({
|
|
12766
13525
|
"node_modules/.pnpm/cli-color@2.0.3/node_modules/cli-color/lib/supports-color.js"(exports, module2) {
|
|
12767
13526
|
"use strict";
|
|
12768
13527
|
var state = null;
|
|
@@ -13118,7 +13877,7 @@ var require_bare = __commonJS({
|
|
|
13118
13877
|
var memoize = require_memoizee();
|
|
13119
13878
|
var memoizeMethods = require_methods2();
|
|
13120
13879
|
var sgr = require_sgr();
|
|
13121
|
-
var supportsColor2 =
|
|
13880
|
+
var supportsColor2 = require_supports_color2();
|
|
13122
13881
|
var mods = sgr.mods;
|
|
13123
13882
|
var join = Array.prototype.join;
|
|
13124
13883
|
var defineProperty = Object.defineProperty;
|
|
@@ -14614,7 +15373,7 @@ var require_readline = __commonJS({
|
|
|
14614
15373
|
});
|
|
14615
15374
|
|
|
14616
15375
|
// node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
|
|
14617
|
-
var
|
|
15376
|
+
var require_src2 = __commonJS({
|
|
14618
15377
|
"node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module2) {
|
|
14619
15378
|
"use strict";
|
|
14620
15379
|
var ESC = "\x1B";
|
|
@@ -14680,7 +15439,7 @@ var require_utils2 = __commonJS({
|
|
|
14680
15439
|
"use strict";
|
|
14681
15440
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14682
15441
|
exports.clear = void 0;
|
|
14683
|
-
var sisteransi_1 =
|
|
15442
|
+
var sisteransi_1 = require_src2();
|
|
14684
15443
|
var strip = (str) => {
|
|
14685
15444
|
const pattern = [
|
|
14686
15445
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
@@ -14862,7 +15621,7 @@ var require_hanji = __commonJS({
|
|
|
14862
15621
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14863
15622
|
exports.onTerminate = exports.render = exports.Terminal = exports.deferred = exports.SelectState = exports.Prompt = void 0;
|
|
14864
15623
|
var readline_1 = require_readline();
|
|
14865
|
-
var sisteransi_1 =
|
|
15624
|
+
var sisteransi_1 = require_src2();
|
|
14866
15625
|
var utils_1 = require_utils2();
|
|
14867
15626
|
var lodash_throttle_1 = __importDefault(require_lodash());
|
|
14868
15627
|
var Prompt2 = class {
|
|
@@ -15059,10 +15818,10 @@ var {
|
|
|
15059
15818
|
} = import_index.default;
|
|
15060
15819
|
|
|
15061
15820
|
// src/cli/commands/migrate.ts
|
|
15062
|
-
var
|
|
15821
|
+
var import_fs3 = __toESM(require("fs"));
|
|
15063
15822
|
|
|
15064
15823
|
// src/migrationPreparator.ts
|
|
15065
|
-
var
|
|
15824
|
+
var import_fs2 = __toESM(require("fs"));
|
|
15066
15825
|
|
|
15067
15826
|
// node_modules/.pnpm/zod@3.19.1/node_modules/zod/lib/index.mjs
|
|
15068
15827
|
var util;
|
|
@@ -18010,7 +18769,7 @@ var import_crypto = require("crypto");
|
|
|
18010
18769
|
|
|
18011
18770
|
// src/serializer/index.ts
|
|
18012
18771
|
var import_fs = __toESM(require("fs"));
|
|
18013
|
-
var import_node = __toESM(
|
|
18772
|
+
var import_node = __toESM(require_node2());
|
|
18014
18773
|
|
|
18015
18774
|
// src/serializer/pgSerializer.ts
|
|
18016
18775
|
var import_utils = require("drizzle-orm-pg/utils");
|
|
@@ -19047,7 +19806,6 @@ var MySqlSquasher = {
|
|
|
19047
19806
|
};
|
|
19048
19807
|
|
|
19049
19808
|
// src/snapshotsDiffer.ts
|
|
19050
|
-
var import_fs2 = require("fs");
|
|
19051
19809
|
var originUUID = "00000000-0000-0000-0000-000000000000";
|
|
19052
19810
|
var dryPg = schema.parse({
|
|
19053
19811
|
version: "3",
|
|
@@ -19191,7 +19949,6 @@ var applySnapshotsDiff = async (json1, json2, tablesResolver, columnsResolver, d
|
|
|
19191
19949
|
if (Object.keys(diffResult).length === 0) {
|
|
19192
19950
|
return "";
|
|
19193
19951
|
}
|
|
19194
|
-
(0, import_fs2.writeFileSync)("oleksi.json", JSON.stringify(diffResult));
|
|
19195
19952
|
const typedResult = diffResultScheme.parse(diffResult);
|
|
19196
19953
|
const { created, deleted, renamed } = await tablesResolver({
|
|
19197
19954
|
created: typedResult.addedTables,
|
|
@@ -19906,7 +20663,7 @@ var validateWithReport = (root, migrationFolders) => {
|
|
|
19906
20663
|
var _a;
|
|
19907
20664
|
const snapshotName = `${folder}/snapshot.json`;
|
|
19908
20665
|
const raw = JSON.parse(
|
|
19909
|
-
|
|
20666
|
+
import_fs2.default.readFileSync(`./${root}/${folder}/snapshot.json`).toString()
|
|
19910
20667
|
);
|
|
19911
20668
|
accum.rawMap[folder] = raw;
|
|
19912
20669
|
if (raw["version"] && Number(raw["version"]) > 3) {
|
|
@@ -19943,11 +20700,11 @@ var validateWithReport = (root, migrationFolders) => {
|
|
|
19943
20700
|
};
|
|
19944
20701
|
var prepareMigration = (outFolder = "drizzle", schemaPath) => {
|
|
19945
20702
|
const root = outFolder;
|
|
19946
|
-
const outFolderExists =
|
|
20703
|
+
const outFolderExists = import_fs2.default.existsSync(outFolder);
|
|
19947
20704
|
if (!outFolderExists) {
|
|
19948
|
-
|
|
20705
|
+
import_fs2.default.mkdirSync(root);
|
|
19949
20706
|
}
|
|
19950
|
-
const migrationFolders =
|
|
20707
|
+
const migrationFolders = import_fs2.default.readdirSync(root).filter((it) => it.length === 14 && /^\d+$/.test(it));
|
|
19951
20708
|
migrationFolders.sort();
|
|
19952
20709
|
const report = validateWithReport(root, migrationFolders);
|
|
19953
20710
|
if (report.nonLatest.length > 0) {
|
|
@@ -19986,7 +20743,7 @@ var prepareMigration = (outFolder = "drizzle", schemaPath) => {
|
|
|
19986
20743
|
} else {
|
|
19987
20744
|
const lastSnapshotFolder = migrationFolders[migrationFolders.length - 1];
|
|
19988
20745
|
prevSnapshot = JSON.parse(
|
|
19989
|
-
|
|
20746
|
+
import_fs2.default.readFileSync(`${root}/${lastSnapshotFolder}/snapshot.json`).toString()
|
|
19990
20747
|
);
|
|
19991
20748
|
}
|
|
19992
20749
|
const serialized = serializer_default(schemaPath);
|
|
@@ -20022,12 +20779,12 @@ var prepareAndMigrate = async (config) => {
|
|
|
20022
20779
|
}
|
|
20023
20780
|
const folderName = prepareSnapshotFolderName();
|
|
20024
20781
|
const migrationFolderPath = `./${outFolder}/${folderName}`;
|
|
20025
|
-
|
|
20026
|
-
|
|
20782
|
+
import_fs3.default.mkdirSync(migrationFolderPath);
|
|
20783
|
+
import_fs3.default.writeFileSync(
|
|
20027
20784
|
`${migrationFolderPath}/snapshot.json`,
|
|
20028
20785
|
JSON.stringify(toSave, null, 2)
|
|
20029
20786
|
);
|
|
20030
|
-
|
|
20787
|
+
import_fs3.default.writeFileSync(`${migrationFolderPath}/migration.sql`, sql);
|
|
20031
20788
|
console.log(
|
|
20032
20789
|
source_default.bold.green("Done:"),
|
|
20033
20790
|
import_path2.default.join(
|
|
@@ -20174,17 +20931,17 @@ var two = (input) => {
|
|
|
20174
20931
|
};
|
|
20175
20932
|
|
|
20176
20933
|
// src/cli/index.ts
|
|
20177
|
-
var
|
|
20934
|
+
var import_fs6 = __toESM(require("fs"));
|
|
20178
20935
|
|
|
20179
20936
|
// src/cli/commands/check.ts
|
|
20180
|
-
var
|
|
20937
|
+
var import_fs4 = __toESM(require("fs"));
|
|
20181
20938
|
var checkHandler = (config) => {
|
|
20182
20939
|
const { dialect: dialect3, out } = config;
|
|
20183
|
-
const outFolderExists =
|
|
20940
|
+
const outFolderExists = import_fs4.default.existsSync(out);
|
|
20184
20941
|
if (!outFolderExists) {
|
|
20185
|
-
|
|
20942
|
+
import_fs4.default.mkdirSync(out);
|
|
20186
20943
|
}
|
|
20187
|
-
const migrationFolders =
|
|
20944
|
+
const migrationFolders = import_fs4.default.readdirSync(out).filter((it) => it.length === 14 && /^\d+$/.test(it));
|
|
20188
20945
|
migrationFolders.sort();
|
|
20189
20946
|
const report = validateWithReport(out, migrationFolders);
|
|
20190
20947
|
if (report.nonLatest.length > 0) {
|
|
@@ -20220,15 +20977,15 @@ var checkHandler = (config) => {
|
|
|
20220
20977
|
|
|
20221
20978
|
// src/cli/commands/up.ts
|
|
20222
20979
|
var import_crypto2 = require("crypto");
|
|
20223
|
-
var
|
|
20980
|
+
var import_fs5 = __toESM(require("fs"));
|
|
20224
20981
|
var import_path3 = __toESM(require("path"));
|
|
20225
20982
|
var upHandler = (config) => {
|
|
20226
20983
|
const { dialect: dialect3, out } = config;
|
|
20227
|
-
const outFolderExists =
|
|
20984
|
+
const outFolderExists = import_fs5.default.existsSync(out);
|
|
20228
20985
|
if (!outFolderExists) {
|
|
20229
|
-
|
|
20986
|
+
import_fs5.default.mkdirSync(out);
|
|
20230
20987
|
}
|
|
20231
|
-
const migrationFolders =
|
|
20988
|
+
const migrationFolders = import_fs5.default.readdirSync(out).filter((it) => it.length === 14 && /^\d+$/.test(it));
|
|
20232
20989
|
migrationFolders.sort();
|
|
20233
20990
|
const report = validateWithReport(out, migrationFolders);
|
|
20234
20991
|
let prevId = originUUID;
|
|
@@ -20240,7 +20997,7 @@ var upHandler = (config) => {
|
|
|
20240
20997
|
const result = updateToLatest(it.raw, prevId);
|
|
20241
20998
|
prevId = result.id;
|
|
20242
20999
|
console.log(import_path3.default.join(out, folder, "snapshot.json"), "updated");
|
|
20243
|
-
|
|
21000
|
+
import_fs5.default.writeFileSync(
|
|
20244
21001
|
import_path3.default.join(out, folder, "snapshot.json"),
|
|
20245
21002
|
JSON.stringify(result, null, 2)
|
|
20246
21003
|
);
|
|
@@ -20391,7 +21148,7 @@ var prepareGenerateConfig = (options) => {
|
|
|
20391
21148
|
if (!(schema4 || out)) {
|
|
20392
21149
|
const path3 = config != null ? config : "drizzle.config.json";
|
|
20393
21150
|
const drizzleConfig = JSON.parse(
|
|
20394
|
-
|
|
21151
|
+
import_fs6.default.readFileSync(path3).toString()
|
|
20395
21152
|
);
|
|
20396
21153
|
return drizzleConfig;
|
|
20397
21154
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drizzle-kit",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.9",
|
|
4
4
|
"repository": "https://github.com/lambda-direct/drizzle-kit",
|
|
5
5
|
"author": "Alex Blokh <aleksandrblokh@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"chalk": "^5.0.1",
|
|
12
12
|
"commander": "^9.4.0",
|
|
13
|
+
"esbuild": "^0.15.15",
|
|
14
|
+
"esbuild-register": "^3.4.1",
|
|
13
15
|
"hanji": "^0.0.3",
|
|
14
16
|
"json-diff": "0.9.0",
|
|
15
17
|
"zod": "^3.18.0"
|
|
@@ -22,8 +24,6 @@
|
|
|
22
24
|
"drizzle-orm": "0.12.0-beta.3",
|
|
23
25
|
"drizzle-orm-mysql": "0.12.0-beta.10",
|
|
24
26
|
"drizzle-orm-pg": "0.12.0-beta.10",
|
|
25
|
-
"esbuild": "^0.15.7",
|
|
26
|
-
"esbuild-register": "^3.3.3",
|
|
27
27
|
"eslint": "^8.23.0",
|
|
28
28
|
"eslint-config-prettier": "^8.5.0",
|
|
29
29
|
"eslint-plugin-prettier": "^4.2.1",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"start:pg": "node -r esbuild-register ./src/cli/index.ts generate --out ./dev/migrations --dialect pg --schema ./dev/data",
|
|
37
|
-
"start:oleksi": "node -r esbuild-register ./src/cli/index.ts generate --out ./dev/oleksi --dialect pg --schema ./dev/data/tables",
|
|
38
37
|
"check:pg": "node -r esbuild-register ./src/cli/index.ts check --out ./dev/migrations --dialect pg",
|
|
39
38
|
"up:pg": "node -r esbuild-register ./src/cli/index.ts up --out ./dev/equedi --dialect pg",
|
|
40
39
|
"check:equedi": "node -r esbuild-register ./src/cli/index.ts check --out ./dev/equedi --dialect pg",
|