@prisma/internals 7.7.0-integration-feat-bootstrap-ux-fixes.9 → 7.8.0-dev.1
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-Q75TMXCR.js → chunk-6I5EQPM7.js} +5 -5
- package/dist/{chunk-7EK353RU.js → chunk-6XQBRVMH.js} +8 -8
- package/dist/{chunk-AHOGKWU5.js → chunk-CU6IKZAM.js} +5 -5
- 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-LIYLUP5L.js → chunk-JDWCAICO.js} +5 -5
- package/dist/{chunk-YV4IFLW4.js → chunk-JPZYSRK3.js} +262 -15
- package/dist/{chunk-Z2CLJJOF.js → chunk-JZXH3QIN.js} +8 -8
- package/dist/{chunk-5BRXEOYH.js → chunk-K2EOOA2X.js} +5 -5
- package/dist/{chunk-2GPDFPDR.js → chunk-KARIQA23.js} +7 -7
- package/dist/{chunk-VC5AV2QX.js → chunk-KQ6JO757.js} +5 -5
- package/dist/{chunk-5SYO3KVT.js → chunk-NSREKV6Q.js} +7 -7
- package/dist/{chunk-T4AVPITC.js → chunk-O3SULBBI.js} +19 -19
- package/dist/{chunk-LGPSQVBD.js → chunk-P3JFPZPM.js} +4 -4
- package/dist/{chunk-BXIKQUP5.js → chunk-PTPRBA7K.js} +289 -93
- package/dist/{chunk-Q5XW7CMJ.js → chunk-QVJ2BXKF.js} +9 -9
- package/dist/{chunk-YJVCIN4F.js → chunk-T3R75LJS.js} +5 -5
- package/dist/{chunk-Q5VXE4PA.js → chunk-TR3HWOUP.js} +5 -5
- package/dist/{chunk-SC6UUXSQ.js → chunk-TVXKTGQS.js} +5 -5
- package/dist/{chunk-3TFDMTMW.js → chunk-VFNP7Q3Y.js} +481 -466
- 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,18 +16,18 @@ 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_6I5EQPM7_exports = {};
|
|
20
|
+
__export(chunk_6I5EQPM7_exports, {
|
|
21
21
|
getEngineVersion: () => getEngineVersion,
|
|
22
22
|
safeGetEngineVersion: () => safeGetEngineVersion
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
24
|
+
module.exports = __toCommonJS(chunk_6I5EQPM7_exports);
|
|
25
25
|
var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
|
|
26
|
-
var
|
|
26
|
+
var import_chunk_WMYLXKKD = require("./chunk-WMYLXKKD.js");
|
|
27
27
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
28
28
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
|
29
29
|
async function getEngineVersion(enginePath, binaryName) {
|
|
30
|
-
enginePath = await (0,
|
|
30
|
+
enginePath = await (0, import_chunk_WMYLXKKD.resolveBinary)(binaryName ?? import_fetch_engine.BinaryType.SchemaEngineBinary, enginePath);
|
|
31
31
|
const { stdout } = await (0, import_chunk_JOIHHXR6.execa)(enginePath, ["--version"]);
|
|
32
32
|
return stdout;
|
|
33
33
|
}
|
|
@@ -26,17 +26,17 @@ 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_6XQBRVMH_exports = {};
|
|
30
|
+
__export(chunk_6XQBRVMH_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_6XQBRVMH_exports);
|
|
35
35
|
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
|
36
36
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var import_chunk_CU6IKZAM = require("./chunk-CU6IKZAM.js");
|
|
39
|
+
var import_chunk_TVXKTGQS = require("./chunk-TVXKTGQS.js");
|
|
40
40
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
41
41
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
42
42
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
|
|
|
59
59
|
}).exhaustive();
|
|
60
60
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
61
61
|
[Context: validate]`;
|
|
62
|
-
super((0,
|
|
62
|
+
super((0, import_chunk_CU6IKZAM.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
63
63
|
this.name = "ValidateError";
|
|
64
64
|
}
|
|
65
65
|
};
|
|
@@ -71,13 +71,13 @@ function validate(options) {
|
|
|
71
71
|
() => {
|
|
72
72
|
if (process.env.FORCE_PANIC_GET_DMMF) {
|
|
73
73
|
debug("Triggering a Rust panic...");
|
|
74
|
-
|
|
74
|
+
import_chunk_TVXKTGQS.prismaSchemaWasm.debug_panic();
|
|
75
75
|
}
|
|
76
76
|
const params = JSON.stringify({
|
|
77
77
|
prismaSchema: options.schemas,
|
|
78
78
|
noColor: Boolean(process.env.NO_COLOR)
|
|
79
79
|
});
|
|
80
|
-
|
|
80
|
+
import_chunk_TVXKTGQS.prismaSchemaWasm.validate(params);
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|
|
83
83
|
type: "wasm-error",
|
|
@@ -16,15 +16,15 @@ 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_CU6IKZAM_exports = {};
|
|
20
|
+
__export(chunk_CU6IKZAM_exports, {
|
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_CU6IKZAM_exports);
|
|
24
|
+
var import_chunk_KQ6JO757 = require("./chunk-KQ6JO757.js");
|
|
25
25
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
|
26
26
|
function addVersionDetailsToErrorMessage(message) {
|
|
27
|
-
const rows = [["Prisma CLI Version",
|
|
27
|
+
const rows = [["Prisma CLI Version", import_chunk_KQ6JO757.version]];
|
|
28
28
|
return `${message}
|
|
29
29
|
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
|
@@ -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_DVMCRKSY_exports = {};
|
|
30
|
+
__export(chunk_DVMCRKSY_exports, {
|
|
31
31
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
|
32
32
|
forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
|
|
33
33
|
formatSchema: () => formatSchema,
|
|
@@ -40,9 +40,9 @@ __export(chunk_ZI7BX3VK_exports, {
|
|
|
40
40
|
processSchemaResult: () => processSchemaResult,
|
|
41
41
|
skipIndex: () => skipIndex
|
|
42
42
|
});
|
|
43
|
-
module.exports = __toCommonJS(
|
|
43
|
+
module.exports = __toCommonJS(chunk_DVMCRKSY_exports);
|
|
44
44
|
var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
|
|
45
|
-
var
|
|
45
|
+
var import_chunk_DZ4QWHTB = require("./chunk-DZ4QWHTB.js");
|
|
46
46
|
var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
|
|
47
47
|
var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
|
|
48
48
|
var import_chunk_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
|
|
@@ -63,7 +63,7 @@ var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
|
63
63
|
var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
|
|
64
64
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
|
65
65
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
66
|
-
var
|
|
66
|
+
var import_chunk_PTPRBA7K = require("./chunk-PTPRBA7K.js");
|
|
67
67
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
68
68
|
var import_node_path = __toESM(require("node:path"));
|
|
69
69
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
@@ -171,7 +171,7 @@ function getSchemaDatasourceProvider(schemaContext) {
|
|
|
171
171
|
}
|
|
172
172
|
return schemaContext.primaryDatasource.activeProvider;
|
|
173
173
|
}
|
|
174
|
-
var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
|
174
|
+
var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_PTPRBA7K.require_p_map)());
|
|
175
175
|
var debug2 = (0, import_debug2.default)("prisma:getGenerators");
|
|
176
176
|
async function getGenerators(options) {
|
|
177
177
|
if (options.registry === void 0 && options.providerAliases !== void 0) {
|
|
@@ -318,7 +318,7 @@ generator gen {
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
debug2("neededVersions", JSON.stringify(neededVersions, null, 2));
|
|
321
|
-
const { binaryPathsByVersion } = await (0,
|
|
321
|
+
const { binaryPathsByVersion } = await (0, import_chunk_DZ4QWHTB.getBinaryPathsByVersion)({
|
|
322
322
|
neededVersions,
|
|
323
323
|
// We're lazily computing the binary target here, to avoid printing the
|
|
324
324
|
// `Prisma failed to detect the libssl/openssl version to use` warning
|
|
@@ -26,21 +26,21 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_DZ4QWHTB_exports = {};
|
|
30
|
+
__export(chunk_DZ4QWHTB_exports, {
|
|
31
31
|
getBinaryPathsByVersion: () => getBinaryPathsByVersion
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_DZ4QWHTB_exports);
|
|
34
34
|
var import_chunk_5I4ERIIY = require("./chunk-5I4ERIIY.js");
|
|
35
35
|
var import_chunk_GJSFP4V4 = require("./chunk-GJSFP4V4.js");
|
|
36
36
|
var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
|
|
37
37
|
var import_chunk_7B5PXS6N = require("./chunk-7B5PXS6N.js");
|
|
38
|
-
var
|
|
38
|
+
var import_chunk_E476ARWS = require("./chunk-E476ARWS.js");
|
|
39
39
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
40
40
|
var import_engines = require("@prisma/engines");
|
|
41
41
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
|
42
42
|
var import_path = __toESM2(require("path"));
|
|
43
|
-
var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
|
43
|
+
var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_E476ARWS.require_lib)());
|
|
44
44
|
async function getBinaryPathsByVersion({
|
|
45
45
|
neededVersions,
|
|
46
46
|
detectBinaryTarget,
|
|
@@ -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_E476ARWS_exports = {};
|
|
20
|
+
__export(chunk_E476ARWS_exports, {
|
|
21
21
|
require_lib: () => require_lib
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_E476ARWS_exports);
|
|
24
24
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
25
25
|
var require_universalify = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
26
26
|
"../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports) {
|
|
@@ -1793,7 +1793,7 @@ var require_ensure = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
1793
1793
|
}
|
|
1794
1794
|
});
|
|
1795
1795
|
var require_utils2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
1796
|
-
"../../node_modules/.pnpm/jsonfile@6.
|
|
1796
|
+
"../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js"(exports, module2) {
|
|
1797
1797
|
"use strict";
|
|
1798
1798
|
function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
|
|
1799
1799
|
const EOF = finalEOL ? EOL : "";
|
|
@@ -1808,7 +1808,7 @@ var require_utils2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
1808
1808
|
}
|
|
1809
1809
|
});
|
|
1810
1810
|
var require_jsonfile = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
1811
|
-
"../../node_modules/.pnpm/jsonfile@6.
|
|
1811
|
+
"../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js"(exports, module2) {
|
|
1812
1812
|
"use strict";
|
|
1813
1813
|
var _fs;
|
|
1814
1814
|
try {
|
|
@@ -1870,13 +1870,12 @@ var require_jsonfile = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
1870
1870
|
const str = stringify(obj, options);
|
|
1871
1871
|
return fs.writeFileSync(file, str, options);
|
|
1872
1872
|
}
|
|
1873
|
-
|
|
1873
|
+
module2.exports = {
|
|
1874
1874
|
readFile,
|
|
1875
1875
|
readFileSync,
|
|
1876
1876
|
writeFile,
|
|
1877
1877
|
writeFileSync
|
|
1878
1878
|
};
|
|
1879
|
-
module2.exports = jsonfile;
|
|
1880
1879
|
}
|
|
1881
1880
|
});
|
|
1882
1881
|
var require_jsonfile2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
@@ -16,20 +16,20 @@ 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_JDWCAICO_exports = {};
|
|
20
|
+
__export(chunk_JDWCAICO_exports, {
|
|
21
21
|
getLintWarnings: () => getLintWarnings,
|
|
22
22
|
getLintWarningsAsText: () => getLintWarningsAsText,
|
|
23
23
|
handleLintPanic: () => handleLintPanic,
|
|
24
24
|
lintSchema: () => lintSchema,
|
|
25
25
|
warningToString: () => warningToString
|
|
26
26
|
});
|
|
27
|
-
module.exports = __toCommonJS(
|
|
28
|
-
var
|
|
27
|
+
module.exports = __toCommonJS(chunk_JDWCAICO_exports);
|
|
28
|
+
var import_chunk_TVXKTGQS = require("./chunk-TVXKTGQS.js");
|
|
29
29
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
30
30
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
31
31
|
function lintSchema({ schemas }) {
|
|
32
|
-
const lintResult =
|
|
32
|
+
const lintResult = import_chunk_TVXKTGQS.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
|
33
33
|
const lintDiagnostics = JSON.parse(lintResult);
|
|
34
34
|
return lintDiagnostics;
|
|
35
35
|
}
|
|
@@ -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;
|