@prisma/internals 7.7.0-dev.2 → 7.7.0-dev.4
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/{chunk-MPKKUOYA.js → chunk-5NAMXNXR.js} +5 -5
- package/dist/{chunk-23FCYS36.js → chunk-6C5KJ77C.js} +5 -5
- package/dist/{chunk-Q75TMXCR.js → chunk-6I5EQPM7.js} +5 -5
- package/dist/{chunk-TMUYUMBB.js → chunk-B7OEBEDI.js} +5 -5
- package/dist/{chunk-EQ7XM232.js → chunk-CS4GLLZE.js} +8 -8
- package/dist/{chunk-ZI7BX3VK.js → chunk-DVMCRKSY.js} +7 -7
- package/dist/{chunk-PKOQQT7I.js → chunk-DZ4QWHTB.js} +5 -5
- package/dist/{chunk-IDINCQMN.js → chunk-E476ARWS.js} +6 -7
- package/dist/{chunk-B7X6GLGJ.js → chunk-ELN6OAOE.js} +7 -7
- package/dist/{chunk-QH3JKKFJ.js → chunk-F6IVH5VF.js} +5 -5
- package/dist/{chunk-N7SNWLKR.js → chunk-JKNVBKB2.js} +19 -19
- package/dist/{chunk-YV4IFLW4.js → chunk-JPZYSRK3.js} +262 -15
- package/dist/{chunk-5BRXEOYH.js → chunk-K2EOOA2X.js} +5 -5
- package/dist/{chunk-2GPDFPDR.js → chunk-KARIQA23.js} +7 -7
- package/dist/{chunk-VV6EBVZS.js → chunk-MZRGLTTB.js} +5 -5
- package/dist/{chunk-BXIKQUP5.js → chunk-PTPRBA7K.js} +289 -93
- package/dist/{chunk-Q5XW7CMJ.js → chunk-QVJ2BXKF.js} +9 -9
- package/dist/{chunk-YE3EKTIE.js → chunk-T2HXQT2I.js} +8 -8
- package/dist/{chunk-YJVCIN4F.js → chunk-T3R75LJS.js} +5 -5
- package/dist/{chunk-3TFDMTMW.js → chunk-VFNP7Q3Y.js} +481 -466
- package/dist/{chunk-JWTZIJ4N.js → chunk-WCRQJIEI.js} +4 -4
- package/dist/{chunk-DQWKFZPY.js → chunk-WMYLXKKD.js} +5 -5
- package/dist/cli/checkUnsupportedDataProxy.js +22 -22
- package/dist/cli/schemaContext.js +23 -23
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +21 -21
- package/dist/engine-commands/getConfig.js +7 -7
- package/dist/engine-commands/getDmmf.js +8 -8
- package/dist/engine-commands/getEngineVersion.js +5 -5
- package/dist/engine-commands/getEnginesInfo.js +6 -6
- package/dist/engine-commands/index.js +33 -33
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +7 -7
- package/dist/engine-commands/validate.js +7 -7
- package/dist/get-generators/getGenerators.js +24 -24
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -3
- package/dist/getPackedPackage.js +3 -3
- package/dist/index.js +52 -52
- package/dist/resolveBinary.js +7 -7
- package/dist/schemaEngineCommands.js +8 -8
- package/dist/utils/__tests__/isCi.test.js +16 -16
- package/dist/utils/__tests__/isInteractive.test.js +14 -14
- package/dist/utils/callOnce.test.js +17 -17
- package/dist/utils/fs-functional.js +10 -10
- package/dist/utils/fs-utils.js +8 -8
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/max.test.js +11 -11
- package/dist/utils/path.test.js +30 -30
- package/dist/utils/prismaPostgres.test.js +23 -23
- package/dist/wasm.js +5 -5
- package/package.json +12 -12
|
@@ -16,13 +16,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_JPZYSRK3_exports = {};
|
|
20
|
+
__export(chunk_JPZYSRK3_exports, {
|
|
21
21
|
require_globby: () => require_globby,
|
|
22
22
|
require_is_glob: () => require_is_glob,
|
|
23
23
|
require_slash: () => require_slash
|
|
24
24
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
25
|
+
module.exports = __toCommonJS(chunk_JPZYSRK3_exports);
|
|
26
26
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
27
27
|
var require_array_union = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
28
28
|
"../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module2) {
|
|
@@ -1495,11 +1495,12 @@ var require_braces = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
1495
1495
|
}
|
|
1496
1496
|
});
|
|
1497
1497
|
var require_constants2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
1498
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
1498
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module2) {
|
|
1499
1499
|
"use strict";
|
|
1500
1500
|
var path = (0, import_chunk_4VNS5WPM.__require)("path");
|
|
1501
1501
|
var WIN_SLASH = "\\\\/";
|
|
1502
1502
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
1503
|
+
var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
1503
1504
|
var DOT_LITERAL = "\\.";
|
|
1504
1505
|
var PLUS_LITERAL = "\\+";
|
|
1505
1506
|
var QMARK_LITERAL = "\\?";
|
|
@@ -1547,6 +1548,7 @@ var require_constants2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
1547
1548
|
END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
|
|
1548
1549
|
};
|
|
1549
1550
|
var POSIX_REGEX_SOURCE = {
|
|
1551
|
+
__proto__: null,
|
|
1550
1552
|
alnum: "a-zA-Z0-9",
|
|
1551
1553
|
alpha: "a-zA-Z",
|
|
1552
1554
|
ascii: "\\x00-\\x7F",
|
|
@@ -1563,6 +1565,7 @@ var require_constants2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
1563
1565
|
xdigit: "A-Fa-f0-9"
|
|
1564
1566
|
};
|
|
1565
1567
|
module2.exports = {
|
|
1568
|
+
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
1566
1569
|
MAX_LENGTH: 1024 * 64,
|
|
1567
1570
|
POSIX_REGEX_SOURCE,
|
|
1568
1571
|
// regular expressions
|
|
@@ -1574,6 +1577,7 @@ var require_constants2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
1574
1577
|
REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
|
|
1575
1578
|
// Replace globs with equivalent patterns to reduce parsing time.
|
|
1576
1579
|
REPLACEMENTS: {
|
|
1580
|
+
__proto__: null,
|
|
1577
1581
|
"***": "*",
|
|
1578
1582
|
"**/**": "**",
|
|
1579
1583
|
"**/**/**": "**"
|
|
@@ -1690,7 +1694,7 @@ var require_constants2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
1690
1694
|
}
|
|
1691
1695
|
});
|
|
1692
1696
|
var require_utils2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
1693
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
1697
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
|
|
1694
1698
|
"use strict";
|
|
1695
1699
|
var path = (0, import_chunk_4VNS5WPM.__require)("path");
|
|
1696
1700
|
var win32 = process.platform === "win32";
|
|
@@ -1749,7 +1753,7 @@ var require_utils2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
1749
1753
|
}
|
|
1750
1754
|
});
|
|
1751
1755
|
var require_scan = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
1752
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
1756
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module2) {
|
|
1753
1757
|
"use strict";
|
|
1754
1758
|
var utils = require_utils2();
|
|
1755
1759
|
var {
|
|
@@ -2077,7 +2081,7 @@ var require_scan = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
2077
2081
|
}
|
|
2078
2082
|
});
|
|
2079
2083
|
var require_parse2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
2080
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
2084
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module2) {
|
|
2081
2085
|
"use strict";
|
|
2082
2086
|
var constants = require_constants2();
|
|
2083
2087
|
var utils = require_utils2();
|
|
@@ -2104,6 +2108,213 @@ var require_parse2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
2104
2108
|
var syntaxError = (type, char) => {
|
|
2105
2109
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
2106
2110
|
};
|
|
2111
|
+
var splitTopLevel = (input) => {
|
|
2112
|
+
const parts = [];
|
|
2113
|
+
let bracket = 0;
|
|
2114
|
+
let paren = 0;
|
|
2115
|
+
let quote = 0;
|
|
2116
|
+
let value = "";
|
|
2117
|
+
let escaped = false;
|
|
2118
|
+
for (const ch of input) {
|
|
2119
|
+
if (escaped === true) {
|
|
2120
|
+
value += ch;
|
|
2121
|
+
escaped = false;
|
|
2122
|
+
continue;
|
|
2123
|
+
}
|
|
2124
|
+
if (ch === "\\") {
|
|
2125
|
+
value += ch;
|
|
2126
|
+
escaped = true;
|
|
2127
|
+
continue;
|
|
2128
|
+
}
|
|
2129
|
+
if (ch === '"') {
|
|
2130
|
+
quote = quote === 1 ? 0 : 1;
|
|
2131
|
+
value += ch;
|
|
2132
|
+
continue;
|
|
2133
|
+
}
|
|
2134
|
+
if (quote === 0) {
|
|
2135
|
+
if (ch === "[") {
|
|
2136
|
+
bracket++;
|
|
2137
|
+
} else if (ch === "]" && bracket > 0) {
|
|
2138
|
+
bracket--;
|
|
2139
|
+
} else if (bracket === 0) {
|
|
2140
|
+
if (ch === "(") {
|
|
2141
|
+
paren++;
|
|
2142
|
+
} else if (ch === ")" && paren > 0) {
|
|
2143
|
+
paren--;
|
|
2144
|
+
} else if (ch === "|" && paren === 0) {
|
|
2145
|
+
parts.push(value);
|
|
2146
|
+
value = "";
|
|
2147
|
+
continue;
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
value += ch;
|
|
2152
|
+
}
|
|
2153
|
+
parts.push(value);
|
|
2154
|
+
return parts;
|
|
2155
|
+
};
|
|
2156
|
+
var isPlainBranch = (branch) => {
|
|
2157
|
+
let escaped = false;
|
|
2158
|
+
for (const ch of branch) {
|
|
2159
|
+
if (escaped === true) {
|
|
2160
|
+
escaped = false;
|
|
2161
|
+
continue;
|
|
2162
|
+
}
|
|
2163
|
+
if (ch === "\\") {
|
|
2164
|
+
escaped = true;
|
|
2165
|
+
continue;
|
|
2166
|
+
}
|
|
2167
|
+
if (/[?*+@!()[\]{}]/.test(ch)) {
|
|
2168
|
+
return false;
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
return true;
|
|
2172
|
+
};
|
|
2173
|
+
var normalizeSimpleBranch = (branch) => {
|
|
2174
|
+
let value = branch.trim();
|
|
2175
|
+
let changed = true;
|
|
2176
|
+
while (changed === true) {
|
|
2177
|
+
changed = false;
|
|
2178
|
+
if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
|
|
2179
|
+
value = value.slice(2, -1);
|
|
2180
|
+
changed = true;
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
if (!isPlainBranch(value)) {
|
|
2184
|
+
return;
|
|
2185
|
+
}
|
|
2186
|
+
return value.replace(/\\(.)/g, "$1");
|
|
2187
|
+
};
|
|
2188
|
+
var hasRepeatedCharPrefixOverlap = (branches) => {
|
|
2189
|
+
const values = branches.map(normalizeSimpleBranch).filter(Boolean);
|
|
2190
|
+
for (let i = 0; i < values.length; i++) {
|
|
2191
|
+
for (let j = i + 1; j < values.length; j++) {
|
|
2192
|
+
const a = values[i];
|
|
2193
|
+
const b = values[j];
|
|
2194
|
+
const char = a[0];
|
|
2195
|
+
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
|
|
2196
|
+
continue;
|
|
2197
|
+
}
|
|
2198
|
+
if (a === b || a.startsWith(b) || b.startsWith(a)) {
|
|
2199
|
+
return true;
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
return false;
|
|
2204
|
+
};
|
|
2205
|
+
var parseRepeatedExtglob = (pattern, requireEnd = true) => {
|
|
2206
|
+
if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
|
|
2207
|
+
return;
|
|
2208
|
+
}
|
|
2209
|
+
let bracket = 0;
|
|
2210
|
+
let paren = 0;
|
|
2211
|
+
let quote = 0;
|
|
2212
|
+
let escaped = false;
|
|
2213
|
+
for (let i = 1; i < pattern.length; i++) {
|
|
2214
|
+
const ch = pattern[i];
|
|
2215
|
+
if (escaped === true) {
|
|
2216
|
+
escaped = false;
|
|
2217
|
+
continue;
|
|
2218
|
+
}
|
|
2219
|
+
if (ch === "\\") {
|
|
2220
|
+
escaped = true;
|
|
2221
|
+
continue;
|
|
2222
|
+
}
|
|
2223
|
+
if (ch === '"') {
|
|
2224
|
+
quote = quote === 1 ? 0 : 1;
|
|
2225
|
+
continue;
|
|
2226
|
+
}
|
|
2227
|
+
if (quote === 1) {
|
|
2228
|
+
continue;
|
|
2229
|
+
}
|
|
2230
|
+
if (ch === "[") {
|
|
2231
|
+
bracket++;
|
|
2232
|
+
continue;
|
|
2233
|
+
}
|
|
2234
|
+
if (ch === "]" && bracket > 0) {
|
|
2235
|
+
bracket--;
|
|
2236
|
+
continue;
|
|
2237
|
+
}
|
|
2238
|
+
if (bracket > 0) {
|
|
2239
|
+
continue;
|
|
2240
|
+
}
|
|
2241
|
+
if (ch === "(") {
|
|
2242
|
+
paren++;
|
|
2243
|
+
continue;
|
|
2244
|
+
}
|
|
2245
|
+
if (ch === ")") {
|
|
2246
|
+
paren--;
|
|
2247
|
+
if (paren === 0) {
|
|
2248
|
+
if (requireEnd === true && i !== pattern.length - 1) {
|
|
2249
|
+
return;
|
|
2250
|
+
}
|
|
2251
|
+
return {
|
|
2252
|
+
type: pattern[0],
|
|
2253
|
+
body: pattern.slice(2, i),
|
|
2254
|
+
end: i
|
|
2255
|
+
};
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
};
|
|
2260
|
+
var getStarExtglobSequenceOutput = (pattern) => {
|
|
2261
|
+
let index = 0;
|
|
2262
|
+
const chars = [];
|
|
2263
|
+
while (index < pattern.length) {
|
|
2264
|
+
const match = parseRepeatedExtglob(pattern.slice(index), false);
|
|
2265
|
+
if (!match || match.type !== "*") {
|
|
2266
|
+
return;
|
|
2267
|
+
}
|
|
2268
|
+
const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
|
|
2269
|
+
if (branches.length !== 1) {
|
|
2270
|
+
return;
|
|
2271
|
+
}
|
|
2272
|
+
const branch = normalizeSimpleBranch(branches[0]);
|
|
2273
|
+
if (!branch || branch.length !== 1) {
|
|
2274
|
+
return;
|
|
2275
|
+
}
|
|
2276
|
+
chars.push(branch);
|
|
2277
|
+
index += match.end + 1;
|
|
2278
|
+
}
|
|
2279
|
+
if (chars.length < 1) {
|
|
2280
|
+
return;
|
|
2281
|
+
}
|
|
2282
|
+
const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
|
|
2283
|
+
return `${source}*`;
|
|
2284
|
+
};
|
|
2285
|
+
var repeatedExtglobRecursion = (pattern) => {
|
|
2286
|
+
let depth = 0;
|
|
2287
|
+
let value = pattern.trim();
|
|
2288
|
+
let match = parseRepeatedExtglob(value);
|
|
2289
|
+
while (match) {
|
|
2290
|
+
depth++;
|
|
2291
|
+
value = match.body.trim();
|
|
2292
|
+
match = parseRepeatedExtglob(value);
|
|
2293
|
+
}
|
|
2294
|
+
return depth;
|
|
2295
|
+
};
|
|
2296
|
+
var analyzeRepeatedExtglob = (body, options) => {
|
|
2297
|
+
if (options.maxExtglobRecursion === false) {
|
|
2298
|
+
return { risky: false };
|
|
2299
|
+
}
|
|
2300
|
+
const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION;
|
|
2301
|
+
const branches = splitTopLevel(body).map((branch) => branch.trim());
|
|
2302
|
+
if (branches.length > 1) {
|
|
2303
|
+
if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
|
|
2304
|
+
return { risky: true };
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
for (const branch of branches) {
|
|
2308
|
+
const safeOutput = getStarExtglobSequenceOutput(branch);
|
|
2309
|
+
if (safeOutput) {
|
|
2310
|
+
return { risky: true, safeOutput };
|
|
2311
|
+
}
|
|
2312
|
+
if (repeatedExtglobRecursion(branch) > max) {
|
|
2313
|
+
return { risky: true };
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
return { risky: false };
|
|
2317
|
+
};
|
|
2107
2318
|
var parse = (input, options) => {
|
|
2108
2319
|
if (typeof input !== "string") {
|
|
2109
2320
|
throw new TypeError("Expected a string");
|
|
@@ -2235,6 +2446,8 @@ var require_parse2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
2235
2446
|
token.prev = prev;
|
|
2236
2447
|
token.parens = state.parens;
|
|
2237
2448
|
token.output = state.output;
|
|
2449
|
+
token.startIndex = state.index;
|
|
2450
|
+
token.tokensIndex = tokens.length;
|
|
2238
2451
|
const output = (opts.capture ? "(" : "") + token.open;
|
|
2239
2452
|
increment("parens");
|
|
2240
2453
|
push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
|
|
@@ -2242,6 +2455,26 @@ var require_parse2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
2242
2455
|
extglobs.push(token);
|
|
2243
2456
|
};
|
|
2244
2457
|
const extglobClose = (token) => {
|
|
2458
|
+
const literal = input.slice(token.startIndex, state.index + 1);
|
|
2459
|
+
const body = input.slice(token.startIndex + 2, state.index);
|
|
2460
|
+
const analysis = analyzeRepeatedExtglob(body, opts);
|
|
2461
|
+
if ((token.type === "plus" || token.type === "star") && analysis.risky) {
|
|
2462
|
+
const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
|
|
2463
|
+
const open = tokens[token.tokensIndex];
|
|
2464
|
+
open.type = "text";
|
|
2465
|
+
open.value = literal;
|
|
2466
|
+
open.output = safeOutput || utils.escapeRegex(literal);
|
|
2467
|
+
for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
|
|
2468
|
+
tokens[i].value = "";
|
|
2469
|
+
tokens[i].output = "";
|
|
2470
|
+
delete tokens[i].suffix;
|
|
2471
|
+
}
|
|
2472
|
+
state.output = token.output + open.output;
|
|
2473
|
+
state.backtrack = true;
|
|
2474
|
+
push({ type: "paren", extglob: true, value, output: "" });
|
|
2475
|
+
decrement("parens");
|
|
2476
|
+
return;
|
|
2477
|
+
}
|
|
2245
2478
|
let output = token.close + (opts.capture ? ")" : "");
|
|
2246
2479
|
let rest;
|
|
2247
2480
|
if (token.type === "negate") {
|
|
@@ -2848,7 +3081,7 @@ var require_parse2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
2848
3081
|
}
|
|
2849
3082
|
});
|
|
2850
3083
|
var require_picomatch = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
2851
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
3084
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module2) {
|
|
2852
3085
|
"use strict";
|
|
2853
3086
|
var path = (0, import_chunk_4VNS5WPM.__require)("path");
|
|
2854
3087
|
var scan = require_scan();
|
|
@@ -2987,7 +3220,7 @@ var require_picomatch = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
2987
3220
|
}
|
|
2988
3221
|
});
|
|
2989
3222
|
var require_picomatch2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
2990
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
3223
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module2) {
|
|
2991
3224
|
"use strict";
|
|
2992
3225
|
module2.exports = require_picomatch();
|
|
2993
3226
|
}
|
|
@@ -5460,7 +5693,7 @@ var require_dir_glob = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
5460
5693
|
}
|
|
5461
5694
|
});
|
|
5462
5695
|
var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
5463
|
-
"../../node_modules/.pnpm/ignore@5.2
|
|
5696
|
+
"../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js"(exports, module2) {
|
|
5464
5697
|
"use strict";
|
|
5465
5698
|
function makeArray(subject) {
|
|
5466
5699
|
return Array.isArray(subject) ? subject : [subject];
|
|
@@ -5492,18 +5725,32 @@ var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
5492
5725
|
return slashes.slice(0, length - length % 2);
|
|
5493
5726
|
};
|
|
5494
5727
|
var REPLACERS = [
|
|
5728
|
+
[
|
|
5729
|
+
// remove BOM
|
|
5730
|
+
// TODO:
|
|
5731
|
+
// Other similar zero-width characters?
|
|
5732
|
+
/^\uFEFF/,
|
|
5733
|
+
() => EMPTY
|
|
5734
|
+
],
|
|
5495
5735
|
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
5496
5736
|
[
|
|
5497
5737
|
// (a\ ) -> (a )
|
|
5498
5738
|
// (a ) -> (a)
|
|
5739
|
+
// (a ) -> (a)
|
|
5499
5740
|
// (a \ ) -> (a )
|
|
5500
|
-
|
|
5501
|
-
(
|
|
5741
|
+
/((?:\\\\)*?)(\\?\s+)$/,
|
|
5742
|
+
(_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
|
|
5502
5743
|
],
|
|
5503
5744
|
// replace (\ ) with ' '
|
|
5745
|
+
// (\ ) -> ' '
|
|
5746
|
+
// (\\ ) -> '\\ '
|
|
5747
|
+
// (\\\ ) -> '\\ '
|
|
5504
5748
|
[
|
|
5505
|
-
|
|
5506
|
-
() =>
|
|
5749
|
+
/(\\+?)\s/g,
|
|
5750
|
+
(_, m1) => {
|
|
5751
|
+
const { length } = m1;
|
|
5752
|
+
return m1.slice(0, length - length % 2) + SPACE;
|
|
5753
|
+
}
|
|
5507
5754
|
],
|
|
5508
5755
|
// Escape metacharacters
|
|
5509
5756
|
// which is written down by users but means special for regular expressions.
|
|
@@ -5638,7 +5885,7 @@ var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
5638
5885
|
let source = regexCache[pattern];
|
|
5639
5886
|
if (!source) {
|
|
5640
5887
|
source = REPLACERS.reduce(
|
|
5641
|
-
(prev,
|
|
5888
|
+
(prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)),
|
|
5642
5889
|
pattern
|
|
5643
5890
|
);
|
|
5644
5891
|
regexCache[pattern] = source;
|
|
@@ -26,8 +26,8 @@ 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_K2EOOA2X_exports = {};
|
|
30
|
+
__export(chunk_K2EOOA2X_exports, {
|
|
31
31
|
createDirIfNotExists: () => createDirIfNotExists,
|
|
32
32
|
fs_utils_exports: () => fs_utils_exports,
|
|
33
33
|
getFilesInDir: () => getFilesInDir,
|
|
@@ -36,9 +36,9 @@ __export(chunk_5BRXEOYH_exports, {
|
|
|
36
36
|
removeEmptyDirs: () => removeEmptyDirs,
|
|
37
37
|
writeFile: () => writeFile
|
|
38
38
|
});
|
|
39
|
-
module.exports = __toCommonJS(
|
|
39
|
+
module.exports = __toCommonJS(chunk_K2EOOA2X_exports);
|
|
40
40
|
var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_JPZYSRK3 = require("./chunk-JPZYSRK3.js");
|
|
42
42
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
43
43
|
var import_promises = __toESM(require("fs/promises"));
|
|
44
44
|
var import_path = __toESM(require("path"));
|
|
@@ -51,7 +51,7 @@ var fs_utils_exports = {};
|
|
|
51
51
|
removeEmptyDirs: () => removeEmptyDirs,
|
|
52
52
|
writeFile: () => writeFile
|
|
53
53
|
});
|
|
54
|
-
var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
|
54
|
+
var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JPZYSRK3.require_globby)());
|
|
55
55
|
function createDirIfNotExists(dir) {
|
|
56
56
|
return import_promises.default.mkdir(dir, { recursive: true });
|
|
57
57
|
}
|
|
@@ -26,15 +26,15 @@ 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_KARIQA23_exports = {};
|
|
30
|
+
__export(chunk_KARIQA23_exports, {
|
|
31
31
|
getEnginesInfo: () => getEnginesInfo,
|
|
32
32
|
resolveEngine: () => resolveEngine
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_KARIQA23_exports);
|
|
35
|
+
var import_chunk_6I5EQPM7 = require("./chunk-6I5EQPM7.js");
|
|
36
36
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
37
|
-
var
|
|
37
|
+
var import_chunk_WMYLXKKD = require("./chunk-WMYLXKKD.js");
|
|
38
38
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
39
39
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
40
40
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
@@ -131,7 +131,7 @@ async function resolveEngine(binaryName) {
|
|
|
131
131
|
const enginePathEither = await (0, import_function2.pipe)(
|
|
132
132
|
pathFromEnvOption,
|
|
133
133
|
fold(
|
|
134
|
-
() => (0,
|
|
134
|
+
() => (0, import_chunk_WMYLXKKD.safeResolveBinary)(binaryName),
|
|
135
135
|
(pathFromEnv) => (0, import_chunk_5DBOS77Y.right2)(pathFromEnv.path)
|
|
136
136
|
)
|
|
137
137
|
)();
|
|
@@ -139,7 +139,7 @@ async function resolveEngine(binaryName) {
|
|
|
139
139
|
enginePathEither,
|
|
140
140
|
import_chunk_5DBOS77Y.fromEither,
|
|
141
141
|
(0, import_chunk_5DBOS77Y.chain)((enginePath) => {
|
|
142
|
-
return (0,
|
|
142
|
+
return (0, import_chunk_6I5EQPM7.safeGetEngineVersion)(enginePath, binaryName);
|
|
143
143
|
})
|
|
144
144
|
)();
|
|
145
145
|
const engineInfo = {
|
|
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_MZRGLTTB_exports = {};
|
|
20
|
+
__export(chunk_MZRGLTTB_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_MZRGLTTB_exports);
|
|
24
|
+
var import_chunk_WCRQJIEI = require("./chunk-WCRQJIEI.js");
|
|
25
|
+
var packageJson = (0, import_chunk_WCRQJIEI.require_package)();
|
|
26
26
|
var version = packageJson.version;
|