@prisma/internals 6.20.0-integration-next.17 → 6.20.0-integration-next.19
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-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
- package/dist/{chunk-MLFKBBDL.js → chunk-5BRXEOYH.js} +5 -5
- package/dist/{chunk-HXBJ4MHN.js → chunk-63BLJTNP.js} +8 -8
- package/dist/{chunk-XHZ4TZUD.js → chunk-6XDWK3XF.js} +8 -8
- package/dist/{chunk-QWXKO4HW.js → chunk-AYH4F3GT.js} +5 -5
- package/dist/{chunk-7SF6QSKE.js → chunk-BGMZPA2F.js} +5 -5
- package/dist/{chunk-QSVWJ2S2.js → chunk-BXIKQUP5.js} +784 -13
- package/dist/{chunk-HNRMSI3R.js → chunk-FASYSGWP.js} +5 -5
- package/dist/{chunk-LHTJCI5U.js → chunk-GZLJZGHX.js} +7 -7
- package/dist/{chunk-3XC6WKUH.js → chunk-HHG4DGHC.js} +12 -11
- package/dist/{chunk-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
- package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
- package/dist/{chunk-CIGXHXCG.js → chunk-K4IC7NPI.js} +7 -7
- package/dist/{chunk-ENUYHMMW.js → chunk-KV5M6BWD.js} +8 -8
- package/dist/{chunk-R7L5ID34.js → chunk-L3CA44J3.js} +8 -8
- package/dist/{chunk-6WBK35XU.js → chunk-LC7WGKF4.js} +8 -8
- package/dist/{chunk-H5STSTVK.js → chunk-MNP6VO5F.js} +5 -5
- package/dist/{chunk-HQDG2BBX.js → chunk-NHM75P2J.js} +5 -5
- package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
- package/dist/{chunk-OV3PWX3C.js → chunk-PHCC4RQK.js} +7 -7
- package/dist/{chunk-5MHUYAV3.js → chunk-PKOQQT7I.js} +5 -5
- package/dist/{chunk-SMJRM3EM.js → chunk-Q5XW7CMJ.js} +9 -9
- package/dist/{chunk-4A2LG57T.js → chunk-QIVZBMOD.js} +5 -5
- package/dist/{chunk-XIYRAW5R.js → chunk-TRAG7WPX.js} +5 -5
- package/dist/{chunk-2Z7PH5WX.js → chunk-UHJM7SPW.js} +5 -5
- package/dist/{chunk-T25QWW23.js → chunk-UIA6QRTF.js} +5 -5
- package/dist/{chunk-NIWSB6VY.js → chunk-UJ4FJEBF.js} +6 -6
- package/dist/{chunk-P4A4AFL3.js → chunk-UUZVVTOP.js} +5 -5
- package/dist/{chunk-6HFR43OW.js → chunk-UWRMCDMU.js} +26 -26
- package/dist/{chunk-PGLQ2MLS.js → chunk-UYMUOW4P.js} +26 -26
- package/dist/{chunk-22HIO2UL.js → chunk-V6DWK6TN.js} +7 -7
- package/dist/{chunk-7VXI23OO.js → chunk-VEEF3RT5.js} +5 -5
- package/dist/{chunk-ZVTZPH6V.js → chunk-X7AYETVS.js} +8 -8
- package/dist/{chunk-IGBVJLCK.js → chunk-XKNMUP66.js} +5 -5
- package/dist/{chunk-D4EKBLXK.js → chunk-XV3WHAKH.js} +5 -5
- package/dist/{chunk-HQVQ5MI5.js → chunk-XZDSAQEV.js} +7 -7
- package/dist/{chunk-QOZ7USPD.js → chunk-YV4IFLW4.js} +33 -68
- package/dist/{chunk-4B7YT7EE.js → chunk-YXCPS3WU.js} +6 -6
- package/dist/cli/checkUnsupportedDataProxy.js +30 -31
- package/dist/cli/schemaContext.js +31 -32
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +29 -30
- package/dist/engine-commands/getConfig.js +7 -7
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/getEngineVersion.js +5 -6
- package/dist/engine-commands/getEnginesInfo.js +6 -7
- package/dist/engine-commands/index.js +39 -40
- 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/errorReporting.js +6 -6
- package/dist/get-generators/getGenerators.js +32 -33
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -4
- package/dist/getPackedPackage.js +3 -4
- package/dist/index.js +63 -64
- package/dist/{multipart-parser-UV3WZSWW.js → multipart-parser-3AFJFP6K.js} +6 -6
- package/dist/resolveBinary.js +7 -8
- package/dist/schemaEngineCommands.js +8 -9
- package/dist/sendPanic.js +4 -4
- package/dist/utils/drawBox.js +2 -2
- 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/handlePanic.js +6 -6
- package/dist/utils/link.js +2 -2
- package/dist/utils/missingDatasource.js +3 -3
- package/dist/utils/missingGeneratorMessage.js +5 -5
- package/dist/wasm.js +5 -5
- package/package.json +13 -13
- package/dist/chunk-DYV47NUW.js +0 -796
|
@@ -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_PHCC4RQK_exports = {};
|
|
30
|
+
__export(chunk_PHCC4RQK_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_PHCC4RQK_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_UUZVVTOP = require("./chunk-UUZVVTOP.js");
|
|
39
|
+
var import_chunk_XV3WHAKH = require("./chunk-XV3WHAKH.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: mergeSchemas]`;
|
|
62
|
-
super((0,
|
|
62
|
+
super((0, import_chunk_UUZVVTOP.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
63
63
|
this.name = "MergeSchemasError";
|
|
64
64
|
}
|
|
65
65
|
};
|
|
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
|
|
|
72
72
|
const params = JSON.stringify({
|
|
73
73
|
schema: options.schemas
|
|
74
74
|
});
|
|
75
|
-
return
|
|
75
|
+
return import_chunk_XV3WHAKH.prismaSchemaWasm.merge_schemas(params);
|
|
76
76
|
},
|
|
77
77
|
(e) => ({
|
|
78
78
|
type: "wasm-error",
|
|
@@ -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_PKOQQT7I_exports = {};
|
|
30
|
+
__export(chunk_PKOQQT7I_exports, {
|
|
31
31
|
getBinaryPathsByVersion: () => getBinaryPathsByVersion
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_PKOQQT7I_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_IDINCQMN = require("./chunk-IDINCQMN.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_IDINCQMN.require_lib)());
|
|
44
44
|
async function getBinaryPathsByVersion({
|
|
45
45
|
neededVersions,
|
|
46
46
|
detectBinaryTarget,
|
|
@@ -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_Q5XW7CMJ_exports = {};
|
|
30
|
+
__export(chunk_Q5XW7CMJ_exports, {
|
|
31
31
|
createDirIfNotExists: () => createDirIfNotExists2,
|
|
32
32
|
fs_functional_exports: () => fs_functional_exports,
|
|
33
33
|
getFilesInDir: () => getFilesInDir2,
|
|
@@ -37,8 +37,8 @@ __export(chunk_SMJRM3EM_exports, {
|
|
|
37
37
|
removeFile: () => removeFile,
|
|
38
38
|
writeFile: () => writeFile2
|
|
39
39
|
});
|
|
40
|
-
module.exports = __toCommonJS(
|
|
41
|
-
var
|
|
40
|
+
module.exports = __toCommonJS(chunk_Q5XW7CMJ_exports);
|
|
41
|
+
var import_chunk_5BRXEOYH = require("./chunk-5BRXEOYH.js");
|
|
42
42
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
43
43
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
44
44
|
var import_promises = __toESM(require("fs/promises"));
|
|
@@ -3981,13 +3981,13 @@ var fs_functional_exports = {};
|
|
|
3981
3981
|
});
|
|
3982
3982
|
var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57HZ.require_function)());
|
|
3983
3983
|
var TE = (0, import_chunk_4VNS5WPM.__toESM)(require_TaskEither());
|
|
3984
|
-
var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0,
|
|
3985
|
-
var writeFile2 = (params) => TE.tryCatch(() => (0,
|
|
3986
|
-
var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0,
|
|
3984
|
+
var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_5BRXEOYH.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
|
|
3985
|
+
var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_5BRXEOYH.writeFile)(params), createTaggedSystemError("fs-write-file", params));
|
|
3986
|
+
var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_5BRXEOYH.removeEmptyDirs)(dir), createTaggedSystemError("fs-remove-empty-dirs", { dir }));
|
|
3987
3987
|
var removeDir = (dir) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.rm(dir, { recursive: true }), createTaggedSystemError("fs-remove-dir", { dir })));
|
|
3988
3988
|
var removeFile = (filePath) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.unlink(filePath), createTaggedSystemError("fs-remove-file", { filePath })));
|
|
3989
|
-
var getNestedFoldersInDir2 = (dir) => () => (0,
|
|
3990
|
-
var getFilesInDir2 = (dir, pattern = "**") => () => (0,
|
|
3989
|
+
var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_5BRXEOYH.getNestedFoldersInDir)(dir);
|
|
3990
|
+
var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_5BRXEOYH.getFilesInDir)(dir, pattern);
|
|
3991
3991
|
function createTaggedSystemError(type, meta) {
|
|
3992
3992
|
return (e) => ({
|
|
3993
3993
|
type,
|
|
@@ -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_QIVZBMOD_exports = {};
|
|
30
|
+
__export(chunk_QIVZBMOD_exports, {
|
|
31
31
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
|
32
32
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
|
|
33
33
|
schemaEngineWasmVersion: () => schemaEngineWasmVersion,
|
|
34
34
|
wasm_exports: () => wasm_exports
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
37
|
-
var
|
|
36
|
+
module.exports = __toCommonJS(chunk_QIVZBMOD_exports);
|
|
37
|
+
var import_chunk_UJ4FJEBF = require("./chunk-UJ4FJEBF.js");
|
|
38
38
|
var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
|
|
39
39
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
40
40
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
|
@@ -46,6 +46,6 @@ var wasm_exports = {};
|
|
|
46
46
|
});
|
|
47
47
|
var globalWithPanicRegistry = globalThis;
|
|
48
48
|
globalWithPanicRegistry.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
|
|
49
|
-
var { dependencies } = (0,
|
|
49
|
+
var { dependencies } = (0, import_chunk_UJ4FJEBF.require_package)();
|
|
50
50
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
|
51
51
|
var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
|
|
@@ -16,17 +16,17 @@ 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_TRAG7WPX_exports = {};
|
|
20
|
+
__export(chunk_TRAG7WPX_exports, {
|
|
21
21
|
SchemaEngineExitCode: () => SchemaEngineExitCode,
|
|
22
22
|
canConnectToDatabase: () => canConnectToDatabase,
|
|
23
23
|
createDatabase: () => createDatabase,
|
|
24
24
|
dropDatabase: () => dropDatabase,
|
|
25
25
|
execaCommand: () => execaCommand
|
|
26
26
|
});
|
|
27
|
-
module.exports = __toCommonJS(
|
|
27
|
+
module.exports = __toCommonJS(chunk_TRAG7WPX_exports);
|
|
28
28
|
var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
|
|
29
|
-
var
|
|
29
|
+
var import_chunk_FASYSGWP = require("./chunk-FASYSGWP.js");
|
|
30
30
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
|
31
31
|
var SchemaEngineExitCode = /* @__PURE__ */ ((SchemaEngineExitCode2) => {
|
|
32
32
|
SchemaEngineExitCode2[SchemaEngineExitCode2["Success"] = 0] = "Success";
|
|
@@ -139,7 +139,7 @@ async function execaCommand({
|
|
|
139
139
|
schemaEnginePath,
|
|
140
140
|
engineCommandName
|
|
141
141
|
}) {
|
|
142
|
-
schemaEnginePath = schemaEnginePath || await (0,
|
|
142
|
+
schemaEnginePath = schemaEnginePath || await (0, import_chunk_FASYSGWP.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
|
|
143
143
|
try {
|
|
144
144
|
return await (0, import_chunk_JOIHHXR6.execa)(
|
|
145
145
|
schemaEnginePath,
|
|
@@ -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_UHJM7SPW_exports = {};
|
|
20
|
+
__export(chunk_UHJM7SPW_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_UHJM7SPW_exports);
|
|
28
|
+
var import_chunk_QIVZBMOD = require("./chunk-QIVZBMOD.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_QIVZBMOD.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
|
33
33
|
const lintDiagnostics = JSON.parse(lintResult);
|
|
34
34
|
return lintDiagnostics;
|
|
35
35
|
}
|
|
@@ -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_UIA6QRTF_exports = {};
|
|
20
|
+
__export(chunk_UIA6QRTF_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_UIA6QRTF_exports);
|
|
28
|
+
var import_chunk_XV3WHAKH = require("./chunk-XV3WHAKH.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_XV3WHAKH.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
|
33
33
|
const lintDiagnostics = JSON.parse(lintResult);
|
|
34
34
|
return lintDiagnostics;
|
|
35
35
|
}
|
|
@@ -16,17 +16,17 @@ 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_UJ4FJEBF_exports = {};
|
|
20
|
+
__export(chunk_UJ4FJEBF_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_UJ4FJEBF_exports);
|
|
24
24
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
25
25
|
var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
26
26
|
"package.json"(exports, module2) {
|
|
27
27
|
module2.exports = {
|
|
28
28
|
name: "@prisma/internals",
|
|
29
|
-
version: "6.20.0-integration-next.
|
|
29
|
+
version: "6.20.0-integration-next.19",
|
|
30
30
|
description: "This package is intended for Prisma's internal use",
|
|
31
31
|
main: "dist/index.js",
|
|
32
32
|
types: "dist/index.d.ts",
|
|
@@ -107,8 +107,8 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
107
107
|
"@prisma/generator": "workspace:*",
|
|
108
108
|
"@prisma/generator-helper": "workspace:*",
|
|
109
109
|
"@prisma/get-platform": "workspace:*",
|
|
110
|
-
"@prisma/prisma-schema-wasm": "6.20.0-
|
|
111
|
-
"@prisma/schema-engine-wasm": "6.20.0-
|
|
110
|
+
"@prisma/prisma-schema-wasm": "6.20.0-16.next-0c19ccc313cf9911a90d99d2ac2eb0280c76c513",
|
|
111
|
+
"@prisma/schema-engine-wasm": "6.20.0-16.next-0c19ccc313cf9911a90d99d2ac2eb0280c76c513",
|
|
112
112
|
"@prisma/schema-files-loader": "workspace:*",
|
|
113
113
|
arg: "5.0.2",
|
|
114
114
|
prompts: "2.4.2"
|
|
@@ -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_UUZVVTOP_exports = {};
|
|
20
|
+
__export(chunk_UUZVVTOP_exports, {
|
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_UUZVVTOP_exports);
|
|
24
24
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
|
25
|
-
var
|
|
25
|
+
var import_chunk_AYH4F3GT = require("./chunk-AYH4F3GT.js");
|
|
26
26
|
function addVersionDetailsToErrorMessage(message) {
|
|
27
|
-
const rows = [["Prisma CLI Version",
|
|
27
|
+
const rows = [["Prisma CLI Version", import_chunk_AYH4F3GT.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_UWRMCDMU_exports = {};
|
|
30
|
+
__export(chunk_UWRMCDMU_exports, {
|
|
31
31
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
|
32
32
|
forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
|
|
33
33
|
formatSchema: () => formatSchema,
|
|
@@ -40,29 +40,29 @@ __export(chunk_6HFR43OW_exports, {
|
|
|
40
40
|
processSchemaResult: () => processSchemaResult,
|
|
41
41
|
skipIndex: () => skipIndex
|
|
42
42
|
});
|
|
43
|
-
module.exports = __toCommonJS(
|
|
43
|
+
module.exports = __toCommonJS(chunk_UWRMCDMU_exports);
|
|
44
44
|
var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
|
|
45
|
-
var
|
|
45
|
+
var import_chunk_PKOQQT7I = require("./chunk-PKOQQT7I.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_5FJ3MENK = require("./chunk-5FJ3MENK.js");
|
|
49
|
-
var
|
|
49
|
+
var import_chunk_K4IC7NPI = require("./chunk-K4IC7NPI.js");
|
|
50
50
|
var import_chunk_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
|
|
51
|
-
var
|
|
52
|
-
var
|
|
51
|
+
var import_chunk_BGMZPA2F = require("./chunk-BGMZPA2F.js");
|
|
52
|
+
var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
|
|
53
53
|
var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
54
|
+
var import_chunk_UHJM7SPW = require("./chunk-UHJM7SPW.js");
|
|
55
|
+
var import_chunk_XZDSAQEV = require("./chunk-XZDSAQEV.js");
|
|
56
|
+
var import_chunk_X7AYETVS = require("./chunk-X7AYETVS.js");
|
|
57
|
+
var import_chunk_L3CA44J3 = require("./chunk-L3CA44J3.js");
|
|
58
|
+
var import_chunk_QIVZBMOD = require("./chunk-QIVZBMOD.js");
|
|
59
59
|
var import_chunk_OKVM3CW4 = require("./chunk-OKVM3CW4.js");
|
|
60
60
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
|
61
61
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
62
62
|
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
|
-
var
|
|
65
|
+
var import_chunk_BXIKQUP5 = require("./chunk-BXIKQUP5.js");
|
|
66
66
|
var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
|
|
67
67
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
68
68
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
@@ -77,7 +77,7 @@ var debug = (0, import_debug.default)("prisma:format");
|
|
|
77
77
|
async function formatSchema({ schemas }, inputFormattingOptions) {
|
|
78
78
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
|
79
79
|
handleFormatPanic(() => {
|
|
80
|
-
|
|
80
|
+
import_chunk_QIVZBMOD.prismaSchemaWasm.debug_panic();
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
const defaultFormattingOptions = {
|
|
@@ -94,10 +94,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
|
|
|
94
94
|
const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
|
|
95
95
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
|
|
96
96
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
|
97
|
-
const lintDiagnostics2 = (0,
|
|
97
|
+
const lintDiagnostics2 = (0, import_chunk_UHJM7SPW.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
|
98
98
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
|
99
99
|
});
|
|
100
|
-
const lintWarnings = (0,
|
|
100
|
+
const lintWarnings = (0, import_chunk_UHJM7SPW.getLintWarningsAsText)(lintDiagnostics);
|
|
101
101
|
if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
|
|
102
102
|
console.warn(lintWarnings);
|
|
103
103
|
}
|
|
@@ -124,7 +124,7 @@ function handleFormatPanic(tryCb) {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function formatWasm(schema, documentFormattingParams) {
|
|
127
|
-
const formattedSchema =
|
|
127
|
+
const formattedSchema = import_chunk_QIVZBMOD.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
|
128
128
|
return formattedSchema;
|
|
129
129
|
}
|
|
130
130
|
async function loadSchemaContext({
|
|
@@ -160,7 +160,7 @@ async function processSchemaResult({
|
|
|
160
160
|
if (printLoadMessage) {
|
|
161
161
|
(0, import_chunk_OKVM3CW4.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
|
|
162
162
|
}
|
|
163
|
-
const configFromPsl = await (0,
|
|
163
|
+
const configFromPsl = await (0, import_chunk_X7AYETVS.getConfig)({ datamodel: schemaResult.schemas });
|
|
164
164
|
const primaryDatasource = configFromPsl.datasources.at(0);
|
|
165
165
|
return {
|
|
166
166
|
schemaFiles: schemaResult.schemas,
|
|
@@ -179,7 +179,7 @@ function getSchemaDatasourceProvider(schemaContext) {
|
|
|
179
179
|
}
|
|
180
180
|
return schemaContext.primaryDatasource.activeProvider;
|
|
181
181
|
}
|
|
182
|
-
var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
|
182
|
+
var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_BXIKQUP5.require_p_map)());
|
|
183
183
|
var debug2 = (0, import_debug2.default)("prisma:getGenerators");
|
|
184
184
|
async function getGenerators(options) {
|
|
185
185
|
if (options.registry === void 0 && options.providerAliases !== void 0) {
|
|
@@ -211,19 +211,19 @@ async function getGenerators(options) {
|
|
|
211
211
|
throw new Error(`no schema provided for getGenerators`);
|
|
212
212
|
}
|
|
213
213
|
if (!schemaContext.primaryDatasource) {
|
|
214
|
-
throw new Error(
|
|
214
|
+
throw new Error(import_chunk_BGMZPA2F.missingDatasource);
|
|
215
215
|
}
|
|
216
216
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
|
|
217
217
|
const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
|
|
218
|
-
const dmmf = await (0,
|
|
218
|
+
const dmmf = await (0, import_chunk_L3CA44J3.getDMMF)({
|
|
219
219
|
datamodel: schemaContext.schemaFiles,
|
|
220
220
|
previewFeatures
|
|
221
221
|
});
|
|
222
222
|
if (dmmf.datamodel.models.length === 0 && !allowNoModels) {
|
|
223
223
|
if (schemaContext.primaryDatasource.provider === "mongodb") {
|
|
224
|
-
throw new Error(
|
|
224
|
+
throw new Error(import_chunk_K4IC7NPI.missingModelMessageMongoDB);
|
|
225
225
|
}
|
|
226
|
-
throw new Error(
|
|
226
|
+
throw new Error(import_chunk_K4IC7NPI.missingModelMessage);
|
|
227
227
|
}
|
|
228
228
|
const generatorConfigs = filterGenerators(overrideGenerators || schemaContext.generators, generatorNames);
|
|
229
229
|
await validateGenerators(generatorConfigs);
|
|
@@ -266,7 +266,7 @@ You need to define \`output\` in the generator block in the schema file.`
|
|
|
266
266
|
fromEnvVar: null
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
const datamodel = (0,
|
|
269
|
+
const datamodel = (0, import_chunk_XZDSAQEV.mergeSchemas)({ schemas: schemaContext.schemaFiles });
|
|
270
270
|
const options2 = {
|
|
271
271
|
datamodel,
|
|
272
272
|
datasources: schemaContext.datasources,
|
|
@@ -330,7 +330,7 @@ generator gen {
|
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
debug2("neededVersions", JSON.stringify(neededVersions, null, 2));
|
|
333
|
-
const { binaryPathsByVersion } = await (0,
|
|
333
|
+
const { binaryPathsByVersion } = await (0, import_chunk_PKOQQT7I.getBinaryPathsByVersion)({
|
|
334
334
|
neededVersions,
|
|
335
335
|
// We're lazily computing the binary target here, to avoid printing the
|
|
336
336
|
// `Prisma failed to detect the libssl/openssl version to use` warning
|
|
@@ -438,7 +438,7 @@ var forbiddenCmdWithDataProxyFlagMessage = (cmd) => `
|
|
|
438
438
|
Using an Accelerate URL is not supported for this CLI command ${(0, import_chunk_PG5FDKSF.green)(`prisma ${cmd}`)} yet.
|
|
439
439
|
Please use a direct connection to your database in \`prisma.config.ts\`.
|
|
440
440
|
|
|
441
|
-
More information about this limitation: ${(0,
|
|
441
|
+
More information about this limitation: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/accelerate-limitations")}
|
|
442
442
|
`;
|
|
443
443
|
function checkUnsupportedDataProxy({
|
|
444
444
|
cmd,
|
|
@@ -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_UYMUOW4P_exports = {};
|
|
30
|
+
__export(chunk_UYMUOW4P_exports, {
|
|
31
31
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
|
32
32
|
forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
|
|
33
33
|
formatSchema: () => formatSchema,
|
|
@@ -40,29 +40,29 @@ __export(chunk_PGLQ2MLS_exports, {
|
|
|
40
40
|
processSchemaResult: () => processSchemaResult,
|
|
41
41
|
skipIndex: () => skipIndex
|
|
42
42
|
});
|
|
43
|
-
module.exports = __toCommonJS(
|
|
43
|
+
module.exports = __toCommonJS(chunk_UYMUOW4P_exports);
|
|
44
44
|
var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
|
|
45
|
-
var
|
|
45
|
+
var import_chunk_PKOQQT7I = require("./chunk-PKOQQT7I.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_5FJ3MENK = require("./chunk-5FJ3MENK.js");
|
|
49
|
-
var
|
|
49
|
+
var import_chunk_K4IC7NPI = require("./chunk-K4IC7NPI.js");
|
|
50
50
|
var import_chunk_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
|
|
51
|
-
var
|
|
52
|
-
var
|
|
51
|
+
var import_chunk_BGMZPA2F = require("./chunk-BGMZPA2F.js");
|
|
52
|
+
var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
|
|
53
53
|
var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
54
|
+
var import_chunk_UIA6QRTF = require("./chunk-UIA6QRTF.js");
|
|
55
|
+
var import_chunk_PHCC4RQK = require("./chunk-PHCC4RQK.js");
|
|
56
|
+
var import_chunk_6XDWK3XF = require("./chunk-6XDWK3XF.js");
|
|
57
|
+
var import_chunk_63BLJTNP = require("./chunk-63BLJTNP.js");
|
|
58
|
+
var import_chunk_XV3WHAKH = require("./chunk-XV3WHAKH.js");
|
|
59
59
|
var import_chunk_OKVM3CW4 = require("./chunk-OKVM3CW4.js");
|
|
60
60
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
|
61
61
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
62
62
|
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
|
-
var
|
|
65
|
+
var import_chunk_BXIKQUP5 = require("./chunk-BXIKQUP5.js");
|
|
66
66
|
var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
|
|
67
67
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
68
68
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
@@ -77,7 +77,7 @@ var debug = (0, import_debug.default)("prisma:format");
|
|
|
77
77
|
async function formatSchema({ schemas }, inputFormattingOptions) {
|
|
78
78
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
|
79
79
|
handleFormatPanic(() => {
|
|
80
|
-
|
|
80
|
+
import_chunk_XV3WHAKH.prismaSchemaWasm.debug_panic();
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
const defaultFormattingOptions = {
|
|
@@ -94,10 +94,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
|
|
|
94
94
|
const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
|
|
95
95
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
|
|
96
96
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
|
97
|
-
const lintDiagnostics2 = (0,
|
|
97
|
+
const lintDiagnostics2 = (0, import_chunk_UIA6QRTF.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
|
98
98
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
|
99
99
|
});
|
|
100
|
-
const lintWarnings = (0,
|
|
100
|
+
const lintWarnings = (0, import_chunk_UIA6QRTF.getLintWarningsAsText)(lintDiagnostics);
|
|
101
101
|
if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
|
|
102
102
|
console.warn(lintWarnings);
|
|
103
103
|
}
|
|
@@ -124,7 +124,7 @@ function handleFormatPanic(tryCb) {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function formatWasm(schema, documentFormattingParams) {
|
|
127
|
-
const formattedSchema =
|
|
127
|
+
const formattedSchema = import_chunk_XV3WHAKH.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
|
128
128
|
return formattedSchema;
|
|
129
129
|
}
|
|
130
130
|
async function loadSchemaContext({
|
|
@@ -160,7 +160,7 @@ async function processSchemaResult({
|
|
|
160
160
|
if (printLoadMessage) {
|
|
161
161
|
(0, import_chunk_OKVM3CW4.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
|
|
162
162
|
}
|
|
163
|
-
const configFromPsl = await (0,
|
|
163
|
+
const configFromPsl = await (0, import_chunk_6XDWK3XF.getConfig)({ datamodel: schemaResult.schemas });
|
|
164
164
|
const primaryDatasource = configFromPsl.datasources.at(0);
|
|
165
165
|
return {
|
|
166
166
|
schemaFiles: schemaResult.schemas,
|
|
@@ -179,7 +179,7 @@ function getSchemaDatasourceProvider(schemaContext) {
|
|
|
179
179
|
}
|
|
180
180
|
return schemaContext.primaryDatasource.activeProvider;
|
|
181
181
|
}
|
|
182
|
-
var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
|
182
|
+
var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_BXIKQUP5.require_p_map)());
|
|
183
183
|
var debug2 = (0, import_debug2.default)("prisma:getGenerators");
|
|
184
184
|
async function getGenerators(options) {
|
|
185
185
|
if (options.registry === void 0 && options.providerAliases !== void 0) {
|
|
@@ -211,19 +211,19 @@ async function getGenerators(options) {
|
|
|
211
211
|
throw new Error(`no schema provided for getGenerators`);
|
|
212
212
|
}
|
|
213
213
|
if (!schemaContext.primaryDatasource) {
|
|
214
|
-
throw new Error(
|
|
214
|
+
throw new Error(import_chunk_BGMZPA2F.missingDatasource);
|
|
215
215
|
}
|
|
216
216
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
|
|
217
217
|
const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
|
|
218
|
-
const dmmf = await (0,
|
|
218
|
+
const dmmf = await (0, import_chunk_63BLJTNP.getDMMF)({
|
|
219
219
|
datamodel: schemaContext.schemaFiles,
|
|
220
220
|
previewFeatures
|
|
221
221
|
});
|
|
222
222
|
if (dmmf.datamodel.models.length === 0 && !allowNoModels) {
|
|
223
223
|
if (schemaContext.primaryDatasource.provider === "mongodb") {
|
|
224
|
-
throw new Error(
|
|
224
|
+
throw new Error(import_chunk_K4IC7NPI.missingModelMessageMongoDB);
|
|
225
225
|
}
|
|
226
|
-
throw new Error(
|
|
226
|
+
throw new Error(import_chunk_K4IC7NPI.missingModelMessage);
|
|
227
227
|
}
|
|
228
228
|
const generatorConfigs = filterGenerators(overrideGenerators || schemaContext.generators, generatorNames);
|
|
229
229
|
await validateGenerators(generatorConfigs);
|
|
@@ -266,7 +266,7 @@ You need to define \`output\` in the generator block in the schema file.`
|
|
|
266
266
|
fromEnvVar: null
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
const datamodel = (0,
|
|
269
|
+
const datamodel = (0, import_chunk_PHCC4RQK.mergeSchemas)({ schemas: schemaContext.schemaFiles });
|
|
270
270
|
const options2 = {
|
|
271
271
|
datamodel,
|
|
272
272
|
datasources: schemaContext.datasources,
|
|
@@ -330,7 +330,7 @@ generator gen {
|
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
debug2("neededVersions", JSON.stringify(neededVersions, null, 2));
|
|
333
|
-
const { binaryPathsByVersion } = await (0,
|
|
333
|
+
const { binaryPathsByVersion } = await (0, import_chunk_PKOQQT7I.getBinaryPathsByVersion)({
|
|
334
334
|
neededVersions,
|
|
335
335
|
// We're lazily computing the binary target here, to avoid printing the
|
|
336
336
|
// `Prisma failed to detect the libssl/openssl version to use` warning
|
|
@@ -438,7 +438,7 @@ var forbiddenCmdWithDataProxyFlagMessage = (cmd) => `
|
|
|
438
438
|
Using an Accelerate URL is not supported for this CLI command ${(0, import_chunk_PG5FDKSF.green)(`prisma ${cmd}`)} yet.
|
|
439
439
|
Please use a direct connection to your database in \`prisma.config.ts\`.
|
|
440
440
|
|
|
441
|
-
More information about this limitation: ${(0,
|
|
441
|
+
More information about this limitation: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/accelerate-limitations")}
|
|
442
442
|
`;
|
|
443
443
|
function checkUnsupportedDataProxy({
|
|
444
444
|
cmd,
|
|
@@ -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_V6DWK6TN_exports = {};
|
|
30
|
+
__export(chunk_V6DWK6TN_exports, {
|
|
31
31
|
getEnginesInfo: () => getEnginesInfo,
|
|
32
32
|
resolveEngine: () => resolveEngine
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_V6DWK6TN_exports);
|
|
35
|
+
var import_chunk_MNP6VO5F = require("./chunk-MNP6VO5F.js");
|
|
36
36
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
37
|
-
var
|
|
37
|
+
var import_chunk_FASYSGWP = require("./chunk-FASYSGWP.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_FASYSGWP.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_MNP6VO5F.safeGetEngineVersion)(enginePath, binaryName);
|
|
143
143
|
})
|
|
144
144
|
)();
|
|
145
145
|
const engineInfo = {
|