@prisma/internals 7.6.0-dev.1 → 7.6.0-dev.10
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/built-in-provider.d.ts +5 -0
- package/dist/built-in-provider.js +25 -0
- package/dist/{chunk-HHY5VW5M.js → chunk-256IZNRN.js} +5 -5
- package/dist/{chunk-ARC7TW3L.js → chunk-3ZHE2IX4.js} +5 -4
- package/dist/{chunk-GTOF7LIA.js → chunk-4COTOG2R.js} +8 -8
- package/dist/{chunk-EONFSFBN.js → chunk-4TKGDI5G.js} +5 -5
- package/dist/{chunk-F22QIJ34.js → chunk-4UHI2EU6.js} +24 -24
- package/dist/{chunk-23CMYKWL.js → chunk-5XZSZIW7.js} +5 -5
- package/dist/{chunk-HOOPOJXZ.js → chunk-7UMUDCH7.js} +5 -5
- package/dist/{chunk-EDMQEZXP.js → chunk-CKQX7VPQ.js} +8 -8
- package/dist/{chunk-CQVWHHIJ.js → chunk-DRWHCM7T.js} +15 -5
- package/dist/{chunk-K6AUSNAZ.js → chunk-E7YC3XCV.js} +24 -24
- package/dist/{chunk-CRVLHWC5.js → chunk-EKGEKB22.js} +5 -4
- package/dist/{chunk-R3J2O23S.js → chunk-FCYHZHVW.js} +4 -4
- package/dist/{chunk-NUZCFAFN.js → chunk-GNYEYISW.js} +7 -7
- package/dist/{chunk-NYNXYKR4.js → chunk-GZLJZGHX.js} +5 -5
- package/dist/{chunk-WS75TKHZ.js → chunk-INRRRBSA.js} +8 -8
- package/dist/{chunk-WATTAWYS.js → chunk-KB6B7OOQ.js} +8 -8
- package/dist/{chunk-YOT64SO3.js → chunk-LGH2GFMP.js} +7 -7
- package/dist/chunk-MCS5ZY6Y.js +27 -0
- package/dist/{chunk-6YLZXNMI.js → chunk-OSCUI3NE.js} +8 -8
- package/dist/{chunk-PHSZERBB.js → chunk-OSJR4HV3.js} +5 -5
- package/dist/{chunk-GH2WAX5Y.js → chunk-PKOQQT7I.js} +4 -4
- package/dist/{chunk-52QP6QWI.js → chunk-R7LSLEV5.js} +6 -6
- package/dist/{chunk-HXMDA5QL.js → chunk-SG3NS3AL.js} +5 -5
- package/dist/{chunk-BL6IA7HX.js → chunk-T7UVGI3E.js} +5 -5
- package/dist/{chunk-WQZ5YH6L.js → chunk-UH7XYXGI.js} +5 -5
- package/dist/{chunk-7BLAASDO.js → chunk-X57ZLXBT.js} +5 -5
- package/dist/{chunk-AIURXCIY.js → chunk-Z3SJPEMU.js} +8 -8
- package/dist/cli/checkUnsupportedDataProxy.js +25 -24
- package/dist/cli/getGeneratorSuccessMessage.js +3 -2
- package/dist/cli/schemaContext.js +26 -25
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +24 -23
- package/dist/engine-commands/getConfig.js +8 -8
- package/dist/engine-commands/getDmmf.js +8 -8
- package/dist/engine-commands/index.js +31 -30
- package/dist/engine-commands/lintSchema.js +9 -9
- package/dist/engine-commands/mergeSchemas.js +8 -8
- package/dist/engine-commands/validate.js +8 -8
- package/dist/get-generators/getGenerators.js +27 -26
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +46 -44
- package/dist/utils/canPrompt.js +3 -3
- package/dist/utils/extractPreviewFeatures.js +3 -2
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +5 -5
- package/dist/utils/missingGeneratorMessage.js +4 -4
- package/dist/wasm.js +5 -5
- package/package.json +13 -13
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var built_in_provider_exports = {};
|
|
20
|
+
__export(built_in_provider_exports, {
|
|
21
|
+
BuiltInProvider: () => import_chunk_MCS5ZY6Y.BuiltInProvider
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(built_in_provider_exports);
|
|
24
|
+
var import_chunk_MCS5ZY6Y = require("./chunk-MCS5ZY6Y.js");
|
|
25
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
@@ -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_256IZNRN_exports = {};
|
|
30
|
+
__export(chunk_256IZNRN_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_256IZNRN_exports);
|
|
37
|
+
var import_chunk_5XZSZIW7 = require("./chunk-5XZSZIW7.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_5XZSZIW7.require_package)();
|
|
50
50
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
|
51
51
|
var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
|
|
@@ -26,14 +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_3ZHE2IX4_exports = {};
|
|
30
|
+
__export(chunk_3ZHE2IX4_exports, {
|
|
31
31
|
getGeneratorSuccessMessage: () => getGeneratorSuccessMessage
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_3ZHE2IX4_exports);
|
|
34
34
|
var import_chunk_XYCIH36R = require("./chunk-XYCIH36R.js");
|
|
35
35
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
|
36
36
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
37
|
+
var import_chunk_MCS5ZY6Y = require("./chunk-MCS5ZY6Y.js");
|
|
37
38
|
var import_path = __toESM(require("path"));
|
|
38
39
|
function getGeneratorSuccessMessage(generator, time) {
|
|
39
40
|
const name = generator.getPrettyName();
|
|
@@ -43,7 +44,7 @@ function getGeneratorSuccessMessage(generator, time) {
|
|
|
43
44
|
}
|
|
44
45
|
function formatVersion(generator) {
|
|
45
46
|
const version = generator.manifest?.version;
|
|
46
|
-
if (generator.getProvider() ===
|
|
47
|
+
if (generator.getProvider() === import_chunk_MCS5ZY6Y.BuiltInProvider.PrismaClientJs) {
|
|
47
48
|
return `v${version ?? "?.?.?"}`;
|
|
48
49
|
}
|
|
49
50
|
return version;
|
|
@@ -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_4COTOG2R_exports = {};
|
|
30
|
+
__export(chunk_4COTOG2R_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_4COTOG2R_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_OSJR4HV3 = require("./chunk-OSJR4HV3.js");
|
|
39
|
+
var import_chunk_256IZNRN = require("./chunk-256IZNRN.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_OSJR4HV3.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_256IZNRN.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_256IZNRN.prismaSchemaWasm.validate(params);
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|
|
83
83
|
type: "wasm-error",
|
|
@@ -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_4TKGDI5G_exports = {};
|
|
20
|
+
__export(chunk_4TKGDI5G_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_4TKGDI5G_exports);
|
|
24
|
+
var import_chunk_5XZSZIW7 = require("./chunk-5XZSZIW7.js");
|
|
25
|
+
var packageJson = (0, import_chunk_5XZSZIW7.require_package)();
|
|
26
26
|
var version = packageJson.version;
|
|
@@ -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_4UHI2EU6_exports = {};
|
|
30
|
+
__export(chunk_4UHI2EU6_exports, {
|
|
31
31
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
|
32
32
|
forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
|
|
33
33
|
formatSchema: () => formatSchema,
|
|
@@ -40,31 +40,31 @@ __export(chunk_F22QIJ34_exports, {
|
|
|
40
40
|
processSchemaResult: () => processSchemaResult,
|
|
41
41
|
skipIndex: () => skipIndex
|
|
42
42
|
});
|
|
43
|
-
module.exports = __toCommonJS(
|
|
43
|
+
module.exports = __toCommonJS(chunk_4UHI2EU6_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_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
|
|
49
49
|
var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
|
|
50
50
|
var import_chunk_DXWYZA7B = require("./chunk-DXWYZA7B.js");
|
|
51
|
-
var
|
|
51
|
+
var import_chunk_DRWHCM7T = require("./chunk-DRWHCM7T.js");
|
|
52
52
|
var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
53
|
+
var import_chunk_EKGEKB22 = require("./chunk-EKGEKB22.js");
|
|
54
|
+
var import_chunk_KB6B7OOQ = require("./chunk-KB6B7OOQ.js");
|
|
55
|
+
var import_chunk_T7UVGI3E = require("./chunk-T7UVGI3E.js");
|
|
56
|
+
var import_chunk_GNYEYISW = require("./chunk-GNYEYISW.js");
|
|
57
|
+
var import_chunk_Z3SJPEMU = require("./chunk-Z3SJPEMU.js");
|
|
58
|
+
var import_chunk_SG3NS3AL = require("./chunk-SG3NS3AL.js");
|
|
59
59
|
var import_chunk_2BXDHSSY = require("./chunk-2BXDHSSY.js");
|
|
60
|
+
var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
|
|
60
61
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
|
61
62
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
62
63
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
63
64
|
var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
|
|
64
65
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
|
65
|
-
var import_chunk_BXIKQUP5 = require("./chunk-BXIKQUP5.js");
|
|
66
|
-
var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
|
|
67
66
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
67
|
+
var import_chunk_BXIKQUP5 = require("./chunk-BXIKQUP5.js");
|
|
68
68
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
69
69
|
var import_node_path = __toESM(require("node:path"));
|
|
70
70
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
@@ -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_SG3NS3AL.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_T7UVGI3E.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
|
98
98
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
|
99
99
|
});
|
|
100
|
-
const lintWarnings = (0,
|
|
100
|
+
const lintWarnings = (0, import_chunk_T7UVGI3E.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_SG3NS3AL.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
|
128
128
|
return formattedSchema;
|
|
129
129
|
}
|
|
130
130
|
async function loadSchemaContext({ schemaPath, printLoadMessage, allowNull, schemaPathArgumentName, cwd } = {
|
|
@@ -153,7 +153,7 @@ async function processSchemaResult({
|
|
|
153
153
|
if (printLoadMessage) {
|
|
154
154
|
(0, import_chunk_2BXDHSSY.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
|
|
155
155
|
}
|
|
156
|
-
const configFromPsl = await (0,
|
|
156
|
+
const configFromPsl = await (0, import_chunk_Z3SJPEMU.getConfig)({ datamodel: schemaResult.schemas });
|
|
157
157
|
const primaryDatasource = configFromPsl.datasources.at(0);
|
|
158
158
|
return {
|
|
159
159
|
schemaFiles: schemaResult.schemas,
|
|
@@ -207,16 +207,16 @@ async function getGenerators(options) {
|
|
|
207
207
|
throw new Error(import_chunk_DXWYZA7B.missingDatasource);
|
|
208
208
|
}
|
|
209
209
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
|
|
210
|
-
const previewFeatures = (0,
|
|
211
|
-
const dmmf = await (0,
|
|
210
|
+
const previewFeatures = (0, import_chunk_EKGEKB22.extractPreviewFeatures)(schemaContext.generators);
|
|
211
|
+
const dmmf = await (0, import_chunk_KB6B7OOQ.getDMMF)({
|
|
212
212
|
datamodel: schemaContext.schemaFiles,
|
|
213
213
|
previewFeatures
|
|
214
214
|
});
|
|
215
215
|
if (dmmf.datamodel.models.length === 0 && !allowNoModels) {
|
|
216
216
|
if (schemaContext.primaryDatasource.provider === "mongodb") {
|
|
217
|
-
throw new Error(
|
|
217
|
+
throw new Error(import_chunk_DRWHCM7T.missingModelMessageMongoDB);
|
|
218
218
|
}
|
|
219
|
-
throw new Error(
|
|
219
|
+
throw new Error(import_chunk_DRWHCM7T.missingModelMessage);
|
|
220
220
|
}
|
|
221
221
|
const generatorConfigs = filterGenerators(overrideGenerators || schemaContext.generators, generatorNames);
|
|
222
222
|
await validateGenerators(generatorConfigs);
|
|
@@ -259,7 +259,7 @@ You need to define \`output\` in the generator block in the schema file.`
|
|
|
259
259
|
fromEnvVar: null
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
|
-
const datamodel = (0,
|
|
262
|
+
const datamodel = (0, import_chunk_GNYEYISW.mergeSchemas)({ schemas: schemaContext.schemaFiles });
|
|
263
263
|
const options2 = {
|
|
264
264
|
datamodel,
|
|
265
265
|
datasources: schemaContext.datasources,
|
|
@@ -323,7 +323,7 @@ generator gen {
|
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
debug2("neededVersions", JSON.stringify(neededVersions, null, 2));
|
|
326
|
-
const { binaryPathsByVersion } = await (0,
|
|
326
|
+
const { binaryPathsByVersion } = await (0, import_chunk_PKOQQT7I.getBinaryPathsByVersion)({
|
|
327
327
|
neededVersions,
|
|
328
328
|
// We're lazily computing the binary target here, to avoid printing the
|
|
329
329
|
// `Prisma failed to detect the libssl/openssl version to use` warning
|
|
@@ -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_5XZSZIW7_exports = {};
|
|
20
|
+
__export(chunk_5XZSZIW7_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_5XZSZIW7_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) {
|
|
@@ -100,8 +100,8 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
100
100
|
"@prisma/generator": "workspace:*",
|
|
101
101
|
"@prisma/generator-helper": "workspace:*",
|
|
102
102
|
"@prisma/get-platform": "workspace:*",
|
|
103
|
-
"@prisma/prisma-schema-wasm": "7.
|
|
104
|
-
"@prisma/schema-engine-wasm": "7.
|
|
103
|
+
"@prisma/prisma-schema-wasm": "7.6.0-1.75cbdc1eb7150937890ad5465d861175c6624711",
|
|
104
|
+
"@prisma/schema-engine-wasm": "7.6.0-1.75cbdc1eb7150937890ad5465d861175c6624711",
|
|
105
105
|
"@prisma/schema-files-loader": "workspace:*",
|
|
106
106
|
arg: "5.0.2",
|
|
107
107
|
prompts: "2.4.2"
|
|
@@ -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_7UMUDCH7_exports = {};
|
|
20
|
+
__export(chunk_7UMUDCH7_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_7UMUDCH7_exports);
|
|
24
|
+
var import_chunk_R7LSLEV5 = require("./chunk-R7LSLEV5.js");
|
|
25
|
+
var packageJson = (0, import_chunk_R7LSLEV5.require_package)();
|
|
26
26
|
var version = packageJson.version;
|
|
@@ -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_CKQX7VPQ_exports = {};
|
|
30
|
+
__export(chunk_CKQX7VPQ_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_CKQX7VPQ_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_X57ZLXBT = require("./chunk-X57ZLXBT.js");
|
|
39
|
+
var import_chunk_SG3NS3AL = require("./chunk-SG3NS3AL.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_X57ZLXBT.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_SG3NS3AL.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_SG3NS3AL.prismaSchemaWasm.validate(params);
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|
|
83
83
|
type: "wasm-error",
|
|
@@ -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_DRWHCM7T_exports = {};
|
|
20
|
+
__export(chunk_DRWHCM7T_exports, {
|
|
21
21
|
missingGeneratorMessage: () => missingGeneratorMessage,
|
|
22
22
|
missingModelMessage: () => missingModelMessage,
|
|
23
23
|
missingModelMessageMongoDB: () => missingModelMessageMongoDB
|
|
24
24
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
25
|
+
module.exports = __toCommonJS(chunk_DRWHCM7T_exports);
|
|
26
26
|
var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
|
|
27
27
|
var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
|
|
28
28
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
@@ -46,7 +46,12 @@ var missingModelMessage = `
|
|
|
46
46
|
You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
|
|
47
47
|
"schema.prisma"
|
|
48
48
|
)}, so nothing will be generated.
|
|
49
|
-
|
|
49
|
+
|
|
50
|
+
Prisma Client is typically generated from models defined in your schema. If you plan to use raw SQL queries only (e.g. ${(0, import_chunk_PG5FDKSF.bold)("$queryRaw")}), remove the ${(0, import_chunk_PG5FDKSF.bold)("--require-models")} flag to generate the client without models:
|
|
51
|
+
|
|
52
|
+
${(0, import_chunk_PG5FDKSF.dim)("$")} prisma generate
|
|
53
|
+
|
|
54
|
+
Otherwise, you can define a model like this:
|
|
50
55
|
|
|
51
56
|
${(0, import_chunk_PG5FDKSF.bold)(
|
|
52
57
|
(0, import_chunk_TQCLUNM2.highlightDatamodel)(`model User {
|
|
@@ -63,7 +68,12 @@ var missingModelMessageMongoDB = `
|
|
|
63
68
|
You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
|
|
64
69
|
"schema.prisma"
|
|
65
70
|
)}, so nothing will be generated.
|
|
66
|
-
|
|
71
|
+
|
|
72
|
+
Prisma Client is typically generated from models defined in your schema. If you plan to use raw queries only, remove the ${(0, import_chunk_PG5FDKSF.bold)("--require-models")} flag to generate the client without models:
|
|
73
|
+
|
|
74
|
+
${(0, import_chunk_PG5FDKSF.dim)("$")} prisma generate
|
|
75
|
+
|
|
76
|
+
Otherwise, you can define a model like this:
|
|
67
77
|
|
|
68
78
|
${(0, import_chunk_PG5FDKSF.bold)(
|
|
69
79
|
(0, import_chunk_TQCLUNM2.highlightDatamodel)(`model User {
|
|
@@ -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_E7YC3XCV_exports = {};
|
|
30
|
+
__export(chunk_E7YC3XCV_exports, {
|
|
31
31
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
|
32
32
|
forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
|
|
33
33
|
formatSchema: () => formatSchema,
|
|
@@ -40,31 +40,31 @@ __export(chunk_K6AUSNAZ_exports, {
|
|
|
40
40
|
processSchemaResult: () => processSchemaResult,
|
|
41
41
|
skipIndex: () => skipIndex
|
|
42
42
|
});
|
|
43
|
-
module.exports = __toCommonJS(
|
|
43
|
+
module.exports = __toCommonJS(chunk_E7YC3XCV_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_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
|
|
49
49
|
var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
|
|
50
50
|
var import_chunk_DXWYZA7B = require("./chunk-DXWYZA7B.js");
|
|
51
|
-
var
|
|
51
|
+
var import_chunk_DRWHCM7T = require("./chunk-DRWHCM7T.js");
|
|
52
52
|
var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
53
|
+
var import_chunk_EKGEKB22 = require("./chunk-EKGEKB22.js");
|
|
54
|
+
var import_chunk_INRRRBSA = require("./chunk-INRRRBSA.js");
|
|
55
|
+
var import_chunk_UH7XYXGI = require("./chunk-UH7XYXGI.js");
|
|
56
|
+
var import_chunk_LGH2GFMP = require("./chunk-LGH2GFMP.js");
|
|
57
|
+
var import_chunk_OSCUI3NE = require("./chunk-OSCUI3NE.js");
|
|
58
|
+
var import_chunk_256IZNRN = require("./chunk-256IZNRN.js");
|
|
59
59
|
var import_chunk_2BXDHSSY = require("./chunk-2BXDHSSY.js");
|
|
60
|
+
var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
|
|
60
61
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
|
61
62
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
62
63
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
63
64
|
var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
|
|
64
65
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
|
65
|
-
var import_chunk_BXIKQUP5 = require("./chunk-BXIKQUP5.js");
|
|
66
|
-
var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
|
|
67
66
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
67
|
+
var import_chunk_BXIKQUP5 = require("./chunk-BXIKQUP5.js");
|
|
68
68
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
69
69
|
var import_node_path = __toESM(require("node:path"));
|
|
70
70
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
@@ -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_256IZNRN.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_UH7XYXGI.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
|
98
98
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
|
99
99
|
});
|
|
100
|
-
const lintWarnings = (0,
|
|
100
|
+
const lintWarnings = (0, import_chunk_UH7XYXGI.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_256IZNRN.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
|
128
128
|
return formattedSchema;
|
|
129
129
|
}
|
|
130
130
|
async function loadSchemaContext({ schemaPath, printLoadMessage, allowNull, schemaPathArgumentName, cwd } = {
|
|
@@ -153,7 +153,7 @@ async function processSchemaResult({
|
|
|
153
153
|
if (printLoadMessage) {
|
|
154
154
|
(0, import_chunk_2BXDHSSY.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
|
|
155
155
|
}
|
|
156
|
-
const configFromPsl = await (0,
|
|
156
|
+
const configFromPsl = await (0, import_chunk_OSCUI3NE.getConfig)({ datamodel: schemaResult.schemas });
|
|
157
157
|
const primaryDatasource = configFromPsl.datasources.at(0);
|
|
158
158
|
return {
|
|
159
159
|
schemaFiles: schemaResult.schemas,
|
|
@@ -207,16 +207,16 @@ async function getGenerators(options) {
|
|
|
207
207
|
throw new Error(import_chunk_DXWYZA7B.missingDatasource);
|
|
208
208
|
}
|
|
209
209
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
|
|
210
|
-
const previewFeatures = (0,
|
|
211
|
-
const dmmf = await (0,
|
|
210
|
+
const previewFeatures = (0, import_chunk_EKGEKB22.extractPreviewFeatures)(schemaContext.generators);
|
|
211
|
+
const dmmf = await (0, import_chunk_INRRRBSA.getDMMF)({
|
|
212
212
|
datamodel: schemaContext.schemaFiles,
|
|
213
213
|
previewFeatures
|
|
214
214
|
});
|
|
215
215
|
if (dmmf.datamodel.models.length === 0 && !allowNoModels) {
|
|
216
216
|
if (schemaContext.primaryDatasource.provider === "mongodb") {
|
|
217
|
-
throw new Error(
|
|
217
|
+
throw new Error(import_chunk_DRWHCM7T.missingModelMessageMongoDB);
|
|
218
218
|
}
|
|
219
|
-
throw new Error(
|
|
219
|
+
throw new Error(import_chunk_DRWHCM7T.missingModelMessage);
|
|
220
220
|
}
|
|
221
221
|
const generatorConfigs = filterGenerators(overrideGenerators || schemaContext.generators, generatorNames);
|
|
222
222
|
await validateGenerators(generatorConfigs);
|
|
@@ -259,7 +259,7 @@ You need to define \`output\` in the generator block in the schema file.`
|
|
|
259
259
|
fromEnvVar: null
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
|
-
const datamodel = (0,
|
|
262
|
+
const datamodel = (0, import_chunk_LGH2GFMP.mergeSchemas)({ schemas: schemaContext.schemaFiles });
|
|
263
263
|
const options2 = {
|
|
264
264
|
datamodel,
|
|
265
265
|
datasources: schemaContext.datasources,
|
|
@@ -323,7 +323,7 @@ generator gen {
|
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
debug2("neededVersions", JSON.stringify(neededVersions, null, 2));
|
|
326
|
-
const { binaryPathsByVersion } = await (0,
|
|
326
|
+
const { binaryPathsByVersion } = await (0, import_chunk_PKOQQT7I.getBinaryPathsByVersion)({
|
|
327
327
|
neededVersions,
|
|
328
328
|
// We're lazily computing the binary target here, to avoid printing the
|
|
329
329
|
// `Prisma failed to detect the libssl/openssl version to use` warning
|
|
@@ -16,12 +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_EKGEKB22_exports = {};
|
|
20
|
+
__export(chunk_EKGEKB22_exports, {
|
|
21
21
|
extractPreviewFeatures: () => extractPreviewFeatures
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_EKGEKB22_exports);
|
|
24
24
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
|
25
|
+
var import_chunk_MCS5ZY6Y = require("./chunk-MCS5ZY6Y.js");
|
|
25
26
|
function extractPreviewFeatures(generators) {
|
|
26
|
-
return generators.find((g) => (0, import_chunk_IOIAK7V7.parseEnvValue)(g.provider) ===
|
|
27
|
+
return generators.find((g) => (0, import_chunk_IOIAK7V7.parseEnvValue)(g.provider) === import_chunk_MCS5ZY6Y.BuiltInProvider.PrismaClientJs)?.previewFeatures || [];
|
|
27
28
|
}
|
|
@@ -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_FCYHZHVW_exports = {};
|
|
30
|
+
__export(chunk_FCYHZHVW_exports, {
|
|
31
31
|
canPrompt: () => canPrompt
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var import_chunk_ICFLO5JW = require("./chunk-ICFLO5JW.js");
|
|
33
|
+
module.exports = __toCommonJS(chunk_FCYHZHVW_exports);
|
|
35
34
|
var import_chunk_H4NI2RIK = require("./chunk-H4NI2RIK.js");
|
|
35
|
+
var import_chunk_ICFLO5JW = require("./chunk-ICFLO5JW.js");
|
|
36
36
|
var import_prompts = __toESM(require("prompts"));
|
|
37
37
|
var canPrompt = () => {
|
|
38
38
|
const injectedCount = import_prompts.default._injected?.length;
|
|
@@ -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_GNYEYISW_exports = {};
|
|
30
|
+
__export(chunk_GNYEYISW_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_GNYEYISW_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_X57ZLXBT = require("./chunk-X57ZLXBT.js");
|
|
39
|
+
var import_chunk_SG3NS3AL = require("./chunk-SG3NS3AL.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_X57ZLXBT.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_SG3NS3AL.prismaSchemaWasm.merge_schemas(params);
|
|
76
76
|
},
|
|
77
77
|
(e) => ({
|
|
78
78
|
type: "wasm-error",
|