@prisma/internals 6.20.0-integration-next.18 → 6.20.0-integration-next.20
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-D4EKBLXK.js → chunk-2KZ45IF4.js} +5 -5
- package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
- package/dist/{chunk-MLFKBBDL.js → chunk-5BRXEOYH.js} +5 -5
- package/dist/{chunk-G2X4QA7T.js → chunk-62K5ZWEW.js} +6 -6
- package/dist/{chunk-R7L5ID34.js → chunk-63BLJTNP.js} +8 -8
- package/dist/{chunk-QWXKO4HW.js → chunk-6GLUKG5A.js} +5 -5
- package/dist/{chunk-XHZ4TZUD.js → chunk-6XDWK3XF.js} +8 -8
- package/dist/{chunk-U4HDQIEL.js → chunk-AQYQLWHE.js} +8 -8
- package/dist/{chunk-34PI6TZD.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-AFGR5FNL.js → chunk-IGSPI5SQ.js} +5 -5
- package/dist/{chunk-UYBRAYI3.js → chunk-JPFN3KW3.js} +26 -26
- package/dist/{chunk-CIGXHXCG.js → chunk-K4IC7NPI.js} +7 -7
- package/dist/{chunk-X4GBU23V.js → chunk-KV5M6BWD.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-2Z7PH5WX.js → chunk-SYSGRIYM.js} +5 -5
- package/dist/{chunk-XIYRAW5R.js → chunk-TRAG7WPX.js} +5 -5
- package/dist/{chunk-OPJUL5XV.js → chunk-UF5MLWNF.js} +8 -8
- package/dist/{chunk-SL44O4OA.js → chunk-UIA6QRTF.js} +5 -5
- package/dist/{chunk-7VXI23OO.js → chunk-UUZVVTOP.js} +5 -5
- package/dist/{chunk-PGLQ2MLS.js → chunk-UYMUOW4P.js} +26 -26
- package/dist/{chunk-22HIO2UL.js → chunk-V6DWK6TN.js} +7 -7
- package/dist/{chunk-T2VFAHGM.js → chunk-VS5Y4W6V.js} +7 -7
- package/dist/{chunk-JKRK7KSQ.js → chunk-XV3WHAKH.js} +5 -5
- package/dist/{chunk-QOZ7USPD.js → chunk-YV4IFLW4.js} +33 -68
- package/dist/{chunk-4B7YT7EE.js → chunk-YXCPS3WU.js} +6 -6
- package/dist/{chunk-6WBK35XU.js → chunk-Z2SS2ZAQ.js} +8 -8
- 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
|
@@ -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_IGSPI5SQ_exports = {};
|
|
20
|
+
__export(chunk_IGSPI5SQ_exports, {
|
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_IGSPI5SQ_exports);
|
|
24
24
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
|
25
|
-
var
|
|
25
|
+
var import_chunk_6GLUKG5A = require("./chunk-6GLUKG5A.js");
|
|
26
26
|
function addVersionDetailsToErrorMessage(message) {
|
|
27
|
-
const rows = [["Prisma CLI Version",
|
|
27
|
+
const rows = [["Prisma CLI Version", import_chunk_6GLUKG5A.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_JPFN3KW3_exports = {};
|
|
30
|
+
__export(chunk_JPFN3KW3_exports, {
|
|
31
31
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
|
32
32
|
forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
|
|
33
33
|
formatSchema: () => formatSchema,
|
|
@@ -40,29 +40,29 @@ __export(chunk_UYBRAYI3_exports, {
|
|
|
40
40
|
processSchemaResult: () => processSchemaResult,
|
|
41
41
|
skipIndex: () => skipIndex
|
|
42
42
|
});
|
|
43
|
-
module.exports = __toCommonJS(
|
|
43
|
+
module.exports = __toCommonJS(chunk_JPFN3KW3_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_SYSGRIYM = require("./chunk-SYSGRIYM.js");
|
|
55
|
+
var import_chunk_VS5Y4W6V = require("./chunk-VS5Y4W6V.js");
|
|
56
|
+
var import_chunk_AQYQLWHE = require("./chunk-AQYQLWHE.js");
|
|
57
|
+
var import_chunk_UF5MLWNF = require("./chunk-UF5MLWNF.js");
|
|
58
|
+
var import_chunk_2KZ45IF4 = require("./chunk-2KZ45IF4.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_2KZ45IF4.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_SYSGRIYM.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
|
98
98
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
|
99
99
|
});
|
|
100
|
-
const lintWarnings = (0,
|
|
100
|
+
const lintWarnings = (0, import_chunk_SYSGRIYM.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_2KZ45IF4.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_AQYQLWHE.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_UF5MLWNF.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_VS5Y4W6V.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,
|
|
@@ -16,14 +16,14 @@ 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_K4IC7NPI_exports = {};
|
|
20
|
+
__export(chunk_K4IC7NPI_exports, {
|
|
21
21
|
missingGeneratorMessage: () => missingGeneratorMessage,
|
|
22
22
|
missingModelMessage: () => missingModelMessage,
|
|
23
23
|
missingModelMessageMongoDB: () => missingModelMessageMongoDB
|
|
24
24
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
26
|
-
var
|
|
25
|
+
module.exports = __toCommonJS(chunk_K4IC7NPI_exports);
|
|
26
|
+
var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
|
|
27
27
|
var import_chunk_VNIE2AZB = require("./chunk-VNIE2AZB.js");
|
|
28
28
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
29
29
|
var missingGeneratorMessage = `
|
|
@@ -40,7 +40,7 @@ ${(0, import_chunk_PG5FDKSF.bold)(
|
|
|
40
40
|
)}
|
|
41
41
|
|
|
42
42
|
More information in our documentation:
|
|
43
|
-
${(0,
|
|
43
|
+
${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
|
|
44
44
|
`;
|
|
45
45
|
var missingModelMessage = `
|
|
46
46
|
You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
|
|
@@ -57,7 +57,7 @@ ${(0, import_chunk_PG5FDKSF.bold)(
|
|
|
57
57
|
)}
|
|
58
58
|
|
|
59
59
|
More information in our documentation:
|
|
60
|
-
${(0,
|
|
60
|
+
${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
|
|
61
61
|
`;
|
|
62
62
|
var missingModelMessageMongoDB = `
|
|
63
63
|
You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
|
|
@@ -74,5 +74,5 @@ ${(0, import_chunk_PG5FDKSF.bold)(
|
|
|
74
74
|
)}
|
|
75
75
|
|
|
76
76
|
More information in our documentation:
|
|
77
|
-
${(0,
|
|
77
|
+
${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
|
|
78
78
|
`;
|
|
@@ -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_KV5M6BWD_exports = {};
|
|
30
|
+
__export(chunk_KV5M6BWD_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_KV5M6BWD_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: validate]`;
|
|
62
|
-
super((0,
|
|
62
|
+
super((0, import_chunk_UUZVVTOP.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_XV3WHAKH.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_XV3WHAKH.prismaSchemaWasm.validate(params);
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|
|
83
83
|
type: "wasm-error",
|
|
@@ -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_MNP6VO5F_exports = {};
|
|
20
|
+
__export(chunk_MNP6VO5F_exports, {
|
|
21
21
|
getEngineVersion: () => getEngineVersion,
|
|
22
22
|
safeGetEngineVersion: () => safeGetEngineVersion
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
24
|
+
module.exports = __toCommonJS(chunk_MNP6VO5F_exports);
|
|
25
25
|
var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
|
|
26
|
-
var
|
|
26
|
+
var import_chunk_FASYSGWP = require("./chunk-FASYSGWP.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_FASYSGWP.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
|
}
|
|
@@ -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_NHM75P2J_exports = {};
|
|
20
|
+
__export(chunk_NHM75P2J_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_NHM75P2J_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) {
|
|
@@ -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"
|