@prisma/get-platform 7.7.0-integration-feat-bootstrap-ux-fixes.8 → 7.7.0
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-3UEKS5W6.js → chunk-IL63DMPY.js} +403 -57
- package/dist/{chunk-YZ6MGXMO.js → chunk-WFCM4MDC.js} +7 -7
- package/dist/index.js +6 -6
- package/dist/test-utils/index.js +6 -6
- package/dist/test-utils/jestContext.js +6 -6
- package/dist/test-utils/vitestContext.js +483 -468
- package/package.json +2 -2
|
@@ -26,13 +26,13 @@ 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_IL63DMPY_exports = {};
|
|
30
|
+
__export(chunk_IL63DMPY_exports, {
|
|
31
31
|
execaNode: () => execaNode,
|
|
32
32
|
require_main: () => require_main,
|
|
33
33
|
require_tempy: () => require_tempy
|
|
34
34
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
35
|
+
module.exports = __toCommonJS(chunk_IL63DMPY_exports);
|
|
36
36
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
37
37
|
var import_node_buffer = require("node:buffer");
|
|
38
38
|
var import_node_path = __toESM(require("node:path"));
|
|
@@ -5205,11 +5205,12 @@ var require_braces = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
5205
5205
|
}
|
|
5206
5206
|
});
|
|
5207
5207
|
var require_constants2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5208
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
5208
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module2) {
|
|
5209
5209
|
"use strict";
|
|
5210
5210
|
var path3 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
5211
5211
|
var WIN_SLASH = "\\\\/";
|
|
5212
5212
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
5213
|
+
var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
5213
5214
|
var DOT_LITERAL = "\\.";
|
|
5214
5215
|
var PLUS_LITERAL = "\\+";
|
|
5215
5216
|
var QMARK_LITERAL = "\\?";
|
|
@@ -5257,6 +5258,7 @@ var require_constants2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
5257
5258
|
END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
|
|
5258
5259
|
};
|
|
5259
5260
|
var POSIX_REGEX_SOURCE = {
|
|
5261
|
+
__proto__: null,
|
|
5260
5262
|
alnum: "a-zA-Z0-9",
|
|
5261
5263
|
alpha: "a-zA-Z",
|
|
5262
5264
|
ascii: "\\x00-\\x7F",
|
|
@@ -5273,6 +5275,7 @@ var require_constants2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
5273
5275
|
xdigit: "A-Fa-f0-9"
|
|
5274
5276
|
};
|
|
5275
5277
|
module2.exports = {
|
|
5278
|
+
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
5276
5279
|
MAX_LENGTH: 1024 * 64,
|
|
5277
5280
|
POSIX_REGEX_SOURCE,
|
|
5278
5281
|
// regular expressions
|
|
@@ -5284,6 +5287,7 @@ var require_constants2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
5284
5287
|
REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
|
|
5285
5288
|
// Replace globs with equivalent patterns to reduce parsing time.
|
|
5286
5289
|
REPLACEMENTS: {
|
|
5290
|
+
__proto__: null,
|
|
5287
5291
|
"***": "*",
|
|
5288
5292
|
"**/**": "**",
|
|
5289
5293
|
"**/**/**": "**"
|
|
@@ -5400,7 +5404,7 @@ var require_constants2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
5400
5404
|
}
|
|
5401
5405
|
});
|
|
5402
5406
|
var require_utils2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5403
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
5407
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
|
|
5404
5408
|
"use strict";
|
|
5405
5409
|
var path3 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
5406
5410
|
var win32 = process.platform === "win32";
|
|
@@ -5459,7 +5463,7 @@ var require_utils2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
5459
5463
|
}
|
|
5460
5464
|
});
|
|
5461
5465
|
var require_scan = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5462
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
5466
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module2) {
|
|
5463
5467
|
"use strict";
|
|
5464
5468
|
var utils = require_utils2();
|
|
5465
5469
|
var {
|
|
@@ -5787,7 +5791,7 @@ var require_scan = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
5787
5791
|
}
|
|
5788
5792
|
});
|
|
5789
5793
|
var require_parse3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
5790
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
5794
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module2) {
|
|
5791
5795
|
"use strict";
|
|
5792
5796
|
var constants3 = require_constants2();
|
|
5793
5797
|
var utils = require_utils2();
|
|
@@ -5814,6 +5818,213 @@ var require_parse3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
5814
5818
|
var syntaxError = (type, char) => {
|
|
5815
5819
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
5816
5820
|
};
|
|
5821
|
+
var splitTopLevel = (input) => {
|
|
5822
|
+
const parts = [];
|
|
5823
|
+
let bracket = 0;
|
|
5824
|
+
let paren = 0;
|
|
5825
|
+
let quote = 0;
|
|
5826
|
+
let value = "";
|
|
5827
|
+
let escaped = false;
|
|
5828
|
+
for (const ch of input) {
|
|
5829
|
+
if (escaped === true) {
|
|
5830
|
+
value += ch;
|
|
5831
|
+
escaped = false;
|
|
5832
|
+
continue;
|
|
5833
|
+
}
|
|
5834
|
+
if (ch === "\\") {
|
|
5835
|
+
value += ch;
|
|
5836
|
+
escaped = true;
|
|
5837
|
+
continue;
|
|
5838
|
+
}
|
|
5839
|
+
if (ch === '"') {
|
|
5840
|
+
quote = quote === 1 ? 0 : 1;
|
|
5841
|
+
value += ch;
|
|
5842
|
+
continue;
|
|
5843
|
+
}
|
|
5844
|
+
if (quote === 0) {
|
|
5845
|
+
if (ch === "[") {
|
|
5846
|
+
bracket++;
|
|
5847
|
+
} else if (ch === "]" && bracket > 0) {
|
|
5848
|
+
bracket--;
|
|
5849
|
+
} else if (bracket === 0) {
|
|
5850
|
+
if (ch === "(") {
|
|
5851
|
+
paren++;
|
|
5852
|
+
} else if (ch === ")" && paren > 0) {
|
|
5853
|
+
paren--;
|
|
5854
|
+
} else if (ch === "|" && paren === 0) {
|
|
5855
|
+
parts.push(value);
|
|
5856
|
+
value = "";
|
|
5857
|
+
continue;
|
|
5858
|
+
}
|
|
5859
|
+
}
|
|
5860
|
+
}
|
|
5861
|
+
value += ch;
|
|
5862
|
+
}
|
|
5863
|
+
parts.push(value);
|
|
5864
|
+
return parts;
|
|
5865
|
+
};
|
|
5866
|
+
var isPlainBranch = (branch) => {
|
|
5867
|
+
let escaped = false;
|
|
5868
|
+
for (const ch of branch) {
|
|
5869
|
+
if (escaped === true) {
|
|
5870
|
+
escaped = false;
|
|
5871
|
+
continue;
|
|
5872
|
+
}
|
|
5873
|
+
if (ch === "\\") {
|
|
5874
|
+
escaped = true;
|
|
5875
|
+
continue;
|
|
5876
|
+
}
|
|
5877
|
+
if (/[?*+@!()[\]{}]/.test(ch)) {
|
|
5878
|
+
return false;
|
|
5879
|
+
}
|
|
5880
|
+
}
|
|
5881
|
+
return true;
|
|
5882
|
+
};
|
|
5883
|
+
var normalizeSimpleBranch = (branch) => {
|
|
5884
|
+
let value = branch.trim();
|
|
5885
|
+
let changed = true;
|
|
5886
|
+
while (changed === true) {
|
|
5887
|
+
changed = false;
|
|
5888
|
+
if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
|
|
5889
|
+
value = value.slice(2, -1);
|
|
5890
|
+
changed = true;
|
|
5891
|
+
}
|
|
5892
|
+
}
|
|
5893
|
+
if (!isPlainBranch(value)) {
|
|
5894
|
+
return;
|
|
5895
|
+
}
|
|
5896
|
+
return value.replace(/\\(.)/g, "$1");
|
|
5897
|
+
};
|
|
5898
|
+
var hasRepeatedCharPrefixOverlap = (branches) => {
|
|
5899
|
+
const values = branches.map(normalizeSimpleBranch).filter(Boolean);
|
|
5900
|
+
for (let i = 0; i < values.length; i++) {
|
|
5901
|
+
for (let j = i + 1; j < values.length; j++) {
|
|
5902
|
+
const a = values[i];
|
|
5903
|
+
const b = values[j];
|
|
5904
|
+
const char = a[0];
|
|
5905
|
+
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
|
|
5906
|
+
continue;
|
|
5907
|
+
}
|
|
5908
|
+
if (a === b || a.startsWith(b) || b.startsWith(a)) {
|
|
5909
|
+
return true;
|
|
5910
|
+
}
|
|
5911
|
+
}
|
|
5912
|
+
}
|
|
5913
|
+
return false;
|
|
5914
|
+
};
|
|
5915
|
+
var parseRepeatedExtglob = (pattern, requireEnd = true) => {
|
|
5916
|
+
if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
|
|
5917
|
+
return;
|
|
5918
|
+
}
|
|
5919
|
+
let bracket = 0;
|
|
5920
|
+
let paren = 0;
|
|
5921
|
+
let quote = 0;
|
|
5922
|
+
let escaped = false;
|
|
5923
|
+
for (let i = 1; i < pattern.length; i++) {
|
|
5924
|
+
const ch = pattern[i];
|
|
5925
|
+
if (escaped === true) {
|
|
5926
|
+
escaped = false;
|
|
5927
|
+
continue;
|
|
5928
|
+
}
|
|
5929
|
+
if (ch === "\\") {
|
|
5930
|
+
escaped = true;
|
|
5931
|
+
continue;
|
|
5932
|
+
}
|
|
5933
|
+
if (ch === '"') {
|
|
5934
|
+
quote = quote === 1 ? 0 : 1;
|
|
5935
|
+
continue;
|
|
5936
|
+
}
|
|
5937
|
+
if (quote === 1) {
|
|
5938
|
+
continue;
|
|
5939
|
+
}
|
|
5940
|
+
if (ch === "[") {
|
|
5941
|
+
bracket++;
|
|
5942
|
+
continue;
|
|
5943
|
+
}
|
|
5944
|
+
if (ch === "]" && bracket > 0) {
|
|
5945
|
+
bracket--;
|
|
5946
|
+
continue;
|
|
5947
|
+
}
|
|
5948
|
+
if (bracket > 0) {
|
|
5949
|
+
continue;
|
|
5950
|
+
}
|
|
5951
|
+
if (ch === "(") {
|
|
5952
|
+
paren++;
|
|
5953
|
+
continue;
|
|
5954
|
+
}
|
|
5955
|
+
if (ch === ")") {
|
|
5956
|
+
paren--;
|
|
5957
|
+
if (paren === 0) {
|
|
5958
|
+
if (requireEnd === true && i !== pattern.length - 1) {
|
|
5959
|
+
return;
|
|
5960
|
+
}
|
|
5961
|
+
return {
|
|
5962
|
+
type: pattern[0],
|
|
5963
|
+
body: pattern.slice(2, i),
|
|
5964
|
+
end: i
|
|
5965
|
+
};
|
|
5966
|
+
}
|
|
5967
|
+
}
|
|
5968
|
+
}
|
|
5969
|
+
};
|
|
5970
|
+
var getStarExtglobSequenceOutput = (pattern) => {
|
|
5971
|
+
let index = 0;
|
|
5972
|
+
const chars = [];
|
|
5973
|
+
while (index < pattern.length) {
|
|
5974
|
+
const match = parseRepeatedExtglob(pattern.slice(index), false);
|
|
5975
|
+
if (!match || match.type !== "*") {
|
|
5976
|
+
return;
|
|
5977
|
+
}
|
|
5978
|
+
const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
|
|
5979
|
+
if (branches.length !== 1) {
|
|
5980
|
+
return;
|
|
5981
|
+
}
|
|
5982
|
+
const branch = normalizeSimpleBranch(branches[0]);
|
|
5983
|
+
if (!branch || branch.length !== 1) {
|
|
5984
|
+
return;
|
|
5985
|
+
}
|
|
5986
|
+
chars.push(branch);
|
|
5987
|
+
index += match.end + 1;
|
|
5988
|
+
}
|
|
5989
|
+
if (chars.length < 1) {
|
|
5990
|
+
return;
|
|
5991
|
+
}
|
|
5992
|
+
const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
|
|
5993
|
+
return `${source}*`;
|
|
5994
|
+
};
|
|
5995
|
+
var repeatedExtglobRecursion = (pattern) => {
|
|
5996
|
+
let depth = 0;
|
|
5997
|
+
let value = pattern.trim();
|
|
5998
|
+
let match = parseRepeatedExtglob(value);
|
|
5999
|
+
while (match) {
|
|
6000
|
+
depth++;
|
|
6001
|
+
value = match.body.trim();
|
|
6002
|
+
match = parseRepeatedExtglob(value);
|
|
6003
|
+
}
|
|
6004
|
+
return depth;
|
|
6005
|
+
};
|
|
6006
|
+
var analyzeRepeatedExtglob = (body, options) => {
|
|
6007
|
+
if (options.maxExtglobRecursion === false) {
|
|
6008
|
+
return { risky: false };
|
|
6009
|
+
}
|
|
6010
|
+
const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants3.DEFAULT_MAX_EXTGLOB_RECURSION;
|
|
6011
|
+
const branches = splitTopLevel(body).map((branch) => branch.trim());
|
|
6012
|
+
if (branches.length > 1) {
|
|
6013
|
+
if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
|
|
6014
|
+
return { risky: true };
|
|
6015
|
+
}
|
|
6016
|
+
}
|
|
6017
|
+
for (const branch of branches) {
|
|
6018
|
+
const safeOutput = getStarExtglobSequenceOutput(branch);
|
|
6019
|
+
if (safeOutput) {
|
|
6020
|
+
return { risky: true, safeOutput };
|
|
6021
|
+
}
|
|
6022
|
+
if (repeatedExtglobRecursion(branch) > max) {
|
|
6023
|
+
return { risky: true };
|
|
6024
|
+
}
|
|
6025
|
+
}
|
|
6026
|
+
return { risky: false };
|
|
6027
|
+
};
|
|
5817
6028
|
var parse = (input, options) => {
|
|
5818
6029
|
if (typeof input !== "string") {
|
|
5819
6030
|
throw new TypeError("Expected a string");
|
|
@@ -5945,6 +6156,8 @@ var require_parse3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
5945
6156
|
token.prev = prev;
|
|
5946
6157
|
token.parens = state.parens;
|
|
5947
6158
|
token.output = state.output;
|
|
6159
|
+
token.startIndex = state.index;
|
|
6160
|
+
token.tokensIndex = tokens.length;
|
|
5948
6161
|
const output = (opts.capture ? "(" : "") + token.open;
|
|
5949
6162
|
increment("parens");
|
|
5950
6163
|
push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
|
|
@@ -5952,6 +6165,26 @@ var require_parse3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
5952
6165
|
extglobs.push(token);
|
|
5953
6166
|
};
|
|
5954
6167
|
const extglobClose = (token) => {
|
|
6168
|
+
const literal = input.slice(token.startIndex, state.index + 1);
|
|
6169
|
+
const body = input.slice(token.startIndex + 2, state.index);
|
|
6170
|
+
const analysis = analyzeRepeatedExtglob(body, opts);
|
|
6171
|
+
if ((token.type === "plus" || token.type === "star") && analysis.risky) {
|
|
6172
|
+
const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
|
|
6173
|
+
const open = tokens[token.tokensIndex];
|
|
6174
|
+
open.type = "text";
|
|
6175
|
+
open.value = literal;
|
|
6176
|
+
open.output = safeOutput || utils.escapeRegex(literal);
|
|
6177
|
+
for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
|
|
6178
|
+
tokens[i].value = "";
|
|
6179
|
+
tokens[i].output = "";
|
|
6180
|
+
delete tokens[i].suffix;
|
|
6181
|
+
}
|
|
6182
|
+
state.output = token.output + open.output;
|
|
6183
|
+
state.backtrack = true;
|
|
6184
|
+
push({ type: "paren", extglob: true, value, output: "" });
|
|
6185
|
+
decrement("parens");
|
|
6186
|
+
return;
|
|
6187
|
+
}
|
|
5955
6188
|
let output = token.close + (opts.capture ? ")" : "");
|
|
5956
6189
|
let rest;
|
|
5957
6190
|
if (token.type === "negate") {
|
|
@@ -6558,7 +6791,7 @@ var require_parse3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
6558
6791
|
}
|
|
6559
6792
|
});
|
|
6560
6793
|
var require_picomatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
6561
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
6794
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module2) {
|
|
6562
6795
|
"use strict";
|
|
6563
6796
|
var path3 = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
6564
6797
|
var scan = require_scan();
|
|
@@ -6697,7 +6930,7 @@ var require_picomatch = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
6697
6930
|
}
|
|
6698
6931
|
});
|
|
6699
6932
|
var require_picomatch2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
6700
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
6933
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module2) {
|
|
6701
6934
|
"use strict";
|
|
6702
6935
|
module2.exports = require_picomatch();
|
|
6703
6936
|
}
|
|
@@ -9170,7 +9403,7 @@ var require_dir_glob = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
9170
9403
|
}
|
|
9171
9404
|
});
|
|
9172
9405
|
var require_ignore = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
9173
|
-
"../../node_modules/.pnpm/ignore@5.2
|
|
9406
|
+
"../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js"(exports, module2) {
|
|
9174
9407
|
"use strict";
|
|
9175
9408
|
function makeArray(subject) {
|
|
9176
9409
|
return Array.isArray(subject) ? subject : [subject];
|
|
@@ -9202,18 +9435,32 @@ var require_ignore = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
9202
9435
|
return slashes.slice(0, length - length % 2);
|
|
9203
9436
|
};
|
|
9204
9437
|
var REPLACERS = [
|
|
9438
|
+
[
|
|
9439
|
+
// remove BOM
|
|
9440
|
+
// TODO:
|
|
9441
|
+
// Other similar zero-width characters?
|
|
9442
|
+
/^\uFEFF/,
|
|
9443
|
+
() => EMPTY
|
|
9444
|
+
],
|
|
9205
9445
|
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
9206
9446
|
[
|
|
9207
9447
|
// (a\ ) -> (a )
|
|
9208
9448
|
// (a ) -> (a)
|
|
9449
|
+
// (a ) -> (a)
|
|
9209
9450
|
// (a \ ) -> (a )
|
|
9210
|
-
|
|
9211
|
-
(
|
|
9451
|
+
/((?:\\\\)*?)(\\?\s+)$/,
|
|
9452
|
+
(_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
|
|
9212
9453
|
],
|
|
9213
9454
|
// replace (\ ) with ' '
|
|
9455
|
+
// (\ ) -> ' '
|
|
9456
|
+
// (\\ ) -> '\\ '
|
|
9457
|
+
// (\\\ ) -> '\\ '
|
|
9214
9458
|
[
|
|
9215
|
-
|
|
9216
|
-
() =>
|
|
9459
|
+
/(\\+?)\s/g,
|
|
9460
|
+
(_, m1) => {
|
|
9461
|
+
const { length } = m1;
|
|
9462
|
+
return m1.slice(0, length - length % 2) + SPACE;
|
|
9463
|
+
}
|
|
9217
9464
|
],
|
|
9218
9465
|
// Escape metacharacters
|
|
9219
9466
|
// which is written down by users but means special for regular expressions.
|
|
@@ -9348,7 +9595,7 @@ var require_ignore = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
9348
9595
|
let source = regexCache[pattern];
|
|
9349
9596
|
if (!source) {
|
|
9350
9597
|
source = REPLACERS.reduce(
|
|
9351
|
-
(prev,
|
|
9598
|
+
(prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)),
|
|
9352
9599
|
pattern
|
|
9353
9600
|
);
|
|
9354
9601
|
regexCache[pattern] = source;
|
|
@@ -10899,7 +11146,7 @@ var require_concat_map = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
10899
11146
|
}
|
|
10900
11147
|
});
|
|
10901
11148
|
var require_brace_expansion2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
10902
|
-
"../../node_modules/.pnpm/brace-expansion@1.1.
|
|
11149
|
+
"../../node_modules/.pnpm/brace-expansion@1.1.12/node_modules/brace-expansion/index.js"(exports, module2) {
|
|
10903
11150
|
"use strict";
|
|
10904
11151
|
var concatMap = require_concat_map();
|
|
10905
11152
|
var balanced = require_balanced_match();
|
|
@@ -10967,7 +11214,7 @@ var require_brace_expansion2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
10967
11214
|
var isSequence = isNumericSequence || isAlphaSequence;
|
|
10968
11215
|
var isOptions = m.body.indexOf(",") >= 0;
|
|
10969
11216
|
if (!isSequence && !isOptions) {
|
|
10970
|
-
if (m.post.match(
|
|
11217
|
+
if (m.post.match(/,(?!,).*\}/)) {
|
|
10971
11218
|
str = m.pre + "{" + m.body + escClose + m.post;
|
|
10972
11219
|
return expand(str);
|
|
10973
11220
|
}
|
|
@@ -11042,7 +11289,7 @@ var require_brace_expansion2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
11042
11289
|
}
|
|
11043
11290
|
});
|
|
11044
11291
|
var require_minimatch2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
11045
|
-
"../../node_modules/.pnpm/minimatch@3.1.
|
|
11292
|
+
"../../node_modules/.pnpm/minimatch@3.1.5/node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
11046
11293
|
"use strict";
|
|
11047
11294
|
module2.exports = minimatch;
|
|
11048
11295
|
minimatch.Minimatch = Minimatch;
|
|
@@ -11147,6 +11394,7 @@ var require_minimatch2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
11147
11394
|
pattern = pattern.split(path3.sep).join("/");
|
|
11148
11395
|
}
|
|
11149
11396
|
this.options = options;
|
|
11397
|
+
this.maxGlobstarRecursion = options.maxGlobstarRecursion !== void 0 ? options.maxGlobstarRecursion : 200;
|
|
11150
11398
|
this.set = [];
|
|
11151
11399
|
this.pattern = pattern;
|
|
11152
11400
|
this.regexp = null;
|
|
@@ -11304,6 +11552,7 @@ var require_minimatch2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
11304
11552
|
re += c;
|
|
11305
11553
|
continue;
|
|
11306
11554
|
}
|
|
11555
|
+
if (c === "*" && stateChar === "*") continue;
|
|
11307
11556
|
self.debug("call clearStateChar %j", stateChar);
|
|
11308
11557
|
clearStateChar();
|
|
11309
11558
|
stateChar = c;
|
|
@@ -11542,50 +11791,147 @@ var require_minimatch2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
11542
11791
|
return this.negate;
|
|
11543
11792
|
};
|
|
11544
11793
|
Minimatch.prototype.matchOne = function(file, pattern, partial) {
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
|
|
11551
|
-
|
|
11552
|
-
|
|
11553
|
-
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
11560
|
-
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11566
|
-
|
|
11794
|
+
if (pattern.indexOf(GLOBSTAR) !== -1) {
|
|
11795
|
+
return this._matchGlobstar(file, pattern, partial, 0, 0);
|
|
11796
|
+
}
|
|
11797
|
+
return this._matchOne(file, pattern, partial, 0, 0);
|
|
11798
|
+
};
|
|
11799
|
+
Minimatch.prototype._matchGlobstar = function(file, pattern, partial, fileIndex, patternIndex) {
|
|
11800
|
+
var i;
|
|
11801
|
+
var firstgs = -1;
|
|
11802
|
+
for (i = patternIndex; i < pattern.length; i++) {
|
|
11803
|
+
if (pattern[i] === GLOBSTAR) {
|
|
11804
|
+
firstgs = i;
|
|
11805
|
+
break;
|
|
11806
|
+
}
|
|
11807
|
+
}
|
|
11808
|
+
var lastgs = -1;
|
|
11809
|
+
for (i = pattern.length - 1; i >= 0; i--) {
|
|
11810
|
+
if (pattern[i] === GLOBSTAR) {
|
|
11811
|
+
lastgs = i;
|
|
11812
|
+
break;
|
|
11813
|
+
}
|
|
11814
|
+
}
|
|
11815
|
+
var head = pattern.slice(patternIndex, firstgs);
|
|
11816
|
+
var body = partial ? pattern.slice(firstgs + 1) : pattern.slice(firstgs + 1, lastgs);
|
|
11817
|
+
var tail = partial ? [] : pattern.slice(lastgs + 1);
|
|
11818
|
+
if (head.length) {
|
|
11819
|
+
var fileHead = file.slice(fileIndex, fileIndex + head.length);
|
|
11820
|
+
if (!this._matchOne(fileHead, head, partial, 0, 0)) {
|
|
11821
|
+
return false;
|
|
11822
|
+
}
|
|
11823
|
+
fileIndex += head.length;
|
|
11824
|
+
}
|
|
11825
|
+
var fileTailMatch = 0;
|
|
11826
|
+
if (tail.length) {
|
|
11827
|
+
if (tail.length + fileIndex > file.length) return false;
|
|
11828
|
+
var tailStart = file.length - tail.length;
|
|
11829
|
+
if (this._matchOne(file, tail, partial, tailStart, 0)) {
|
|
11830
|
+
fileTailMatch = tail.length;
|
|
11831
|
+
} else {
|
|
11832
|
+
if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
|
|
11833
|
+
return false;
|
|
11567
11834
|
}
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
-
|
|
11571
|
-
if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
|
|
11572
|
-
this.debug("globstar found match!", fr, fl, swallowee);
|
|
11573
|
-
return true;
|
|
11574
|
-
} else {
|
|
11575
|
-
if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
|
|
11576
|
-
this.debug("dot detected!", file, fr, pattern, pr);
|
|
11577
|
-
break;
|
|
11578
|
-
}
|
|
11579
|
-
this.debug("globstar swallow a segment, and continue");
|
|
11580
|
-
fr++;
|
|
11581
|
-
}
|
|
11835
|
+
tailStart--;
|
|
11836
|
+
if (!this._matchOne(file, tail, partial, tailStart, 0)) {
|
|
11837
|
+
return false;
|
|
11582
11838
|
}
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11839
|
+
fileTailMatch = tail.length + 1;
|
|
11840
|
+
}
|
|
11841
|
+
}
|
|
11842
|
+
if (!body.length) {
|
|
11843
|
+
var sawSome = !!fileTailMatch;
|
|
11844
|
+
for (i = fileIndex; i < file.length - fileTailMatch; i++) {
|
|
11845
|
+
var f = String(file[i]);
|
|
11846
|
+
sawSome = true;
|
|
11847
|
+
if (f === "." || f === ".." || !this.options.dot && f.charAt(0) === ".") {
|
|
11848
|
+
return false;
|
|
11586
11849
|
}
|
|
11850
|
+
}
|
|
11851
|
+
return partial || sawSome;
|
|
11852
|
+
}
|
|
11853
|
+
var bodySegments = [[[], 0]];
|
|
11854
|
+
var currentBody = bodySegments[0];
|
|
11855
|
+
var nonGsParts = 0;
|
|
11856
|
+
var nonGsPartsSums = [0];
|
|
11857
|
+
for (var bi = 0; bi < body.length; bi++) {
|
|
11858
|
+
var b = body[bi];
|
|
11859
|
+
if (b === GLOBSTAR) {
|
|
11860
|
+
nonGsPartsSums.push(nonGsParts);
|
|
11861
|
+
currentBody = [[], 0];
|
|
11862
|
+
bodySegments.push(currentBody);
|
|
11863
|
+
} else {
|
|
11864
|
+
currentBody[0].push(b);
|
|
11865
|
+
nonGsParts++;
|
|
11866
|
+
}
|
|
11867
|
+
}
|
|
11868
|
+
var idx = bodySegments.length - 1;
|
|
11869
|
+
var fileLength = file.length - fileTailMatch;
|
|
11870
|
+
for (var si = 0; si < bodySegments.length; si++) {
|
|
11871
|
+
bodySegments[si][1] = fileLength - (nonGsPartsSums[idx--] + bodySegments[si][0].length);
|
|
11872
|
+
}
|
|
11873
|
+
return !!this._matchGlobStarBodySections(
|
|
11874
|
+
file,
|
|
11875
|
+
bodySegments,
|
|
11876
|
+
fileIndex,
|
|
11877
|
+
0,
|
|
11878
|
+
partial,
|
|
11879
|
+
0,
|
|
11880
|
+
!!fileTailMatch
|
|
11881
|
+
);
|
|
11882
|
+
};
|
|
11883
|
+
Minimatch.prototype._matchGlobStarBodySections = function(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
|
|
11884
|
+
var bs = bodySegments[bodyIndex];
|
|
11885
|
+
if (!bs) {
|
|
11886
|
+
for (var i = fileIndex; i < file.length; i++) {
|
|
11887
|
+
sawTail = true;
|
|
11888
|
+
var f = file[i];
|
|
11889
|
+
if (f === "." || f === ".." || !this.options.dot && f.charAt(0) === ".") {
|
|
11890
|
+
return false;
|
|
11891
|
+
}
|
|
11892
|
+
}
|
|
11893
|
+
return sawTail;
|
|
11894
|
+
}
|
|
11895
|
+
var body = bs[0];
|
|
11896
|
+
var after = bs[1];
|
|
11897
|
+
while (fileIndex <= after) {
|
|
11898
|
+
var m = this._matchOne(
|
|
11899
|
+
file.slice(0, fileIndex + body.length),
|
|
11900
|
+
body,
|
|
11901
|
+
partial,
|
|
11902
|
+
fileIndex,
|
|
11903
|
+
0
|
|
11904
|
+
);
|
|
11905
|
+
if (m && globStarDepth < this.maxGlobstarRecursion) {
|
|
11906
|
+
var sub = this._matchGlobStarBodySections(
|
|
11907
|
+
file,
|
|
11908
|
+
bodySegments,
|
|
11909
|
+
fileIndex + body.length,
|
|
11910
|
+
bodyIndex + 1,
|
|
11911
|
+
partial,
|
|
11912
|
+
globStarDepth + 1,
|
|
11913
|
+
sawTail
|
|
11914
|
+
);
|
|
11915
|
+
if (sub !== false) {
|
|
11916
|
+
return sub;
|
|
11917
|
+
}
|
|
11918
|
+
}
|
|
11919
|
+
var f = file[fileIndex];
|
|
11920
|
+
if (f === "." || f === ".." || !this.options.dot && f.charAt(0) === ".") {
|
|
11587
11921
|
return false;
|
|
11588
11922
|
}
|
|
11923
|
+
fileIndex++;
|
|
11924
|
+
}
|
|
11925
|
+
return partial || null;
|
|
11926
|
+
};
|
|
11927
|
+
Minimatch.prototype._matchOne = function(file, pattern, partial, fileIndex, patternIndex) {
|
|
11928
|
+
var fi, pi, fl, pl;
|
|
11929
|
+
for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
11930
|
+
this.debug("matchOne loop");
|
|
11931
|
+
var p = pattern[pi];
|
|
11932
|
+
var f = file[fi];
|
|
11933
|
+
this.debug(pattern, p, f);
|
|
11934
|
+
if (p === false || p === GLOBSTAR) return false;
|
|
11589
11935
|
var hit;
|
|
11590
11936
|
if (typeof p === "string") {
|
|
11591
11937
|
hit = f === p;
|
|
@@ -26,19 +26,19 @@ 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_WFCM4MDC_exports = {};
|
|
30
|
+
__export(chunk_WFCM4MDC_exports, {
|
|
31
31
|
jestConsoleContext: () => jestConsoleContext,
|
|
32
32
|
jestContext: () => jestContext,
|
|
33
33
|
jestStdoutContext: () => jestStdoutContext,
|
|
34
34
|
processExitContext: () => processExitContext
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
37
|
-
var
|
|
36
|
+
module.exports = __toCommonJS(chunk_WFCM4MDC_exports);
|
|
37
|
+
var import_chunk_IL63DMPY = require("./chunk-IL63DMPY.js");
|
|
38
38
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
39
39
|
var import_node_path = __toESM(require("node:path"));
|
|
40
|
-
var import_fs_jetpack = (0, import_chunk_2ESYSVXG.__toESM)((0,
|
|
41
|
-
var import_tempy = (0, import_chunk_2ESYSVXG.__toESM)((0,
|
|
40
|
+
var import_fs_jetpack = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_IL63DMPY.require_main)());
|
|
41
|
+
var import_tempy = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_IL63DMPY.require_tempy)());
|
|
42
42
|
var test = typeof jest !== "undefined" ? jest : globalThis.vi;
|
|
43
43
|
var jestContext = {
|
|
44
44
|
new: function(ctx = {}) {
|
|
@@ -79,7 +79,7 @@ ${[...generateDirectoryTree(children, indent)].join("\n")}
|
|
|
79
79
|
c.fs.symlink(import_node_path.default.join(originalCwd, "..", "config"), import_node_path.default.join(c.fs.cwd(), "node_modules", "@prisma", "config"));
|
|
80
80
|
};
|
|
81
81
|
c.cli = (...input) => {
|
|
82
|
-
return (0,
|
|
82
|
+
return (0, import_chunk_IL63DMPY.execaNode)(import_node_path.default.join(originalCwd, "../cli/build/index.js"), input, {
|
|
83
83
|
cwd: c.fs.cwd(),
|
|
84
84
|
stdio: "pipe",
|
|
85
85
|
all: true
|