@prisma/internals 5.23.0-dev.13 → 5.23.0-dev.15
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-OSPVVLY6.js → chunk-65UKTLB4.js} +8 -8
- package/dist/{chunk-XQUZGA2G.js → chunk-AGXHB3SC.js} +4 -4
- package/dist/{chunk-D4G3OMDH.js → chunk-BKMST2H6.js} +5 -5
- package/dist/{chunk-WSIDY2ZO.js → chunk-BUQSP6QY.js} +5 -5
- package/dist/{chunk-DQYACGXW.js → chunk-BZKA6GIL.js} +5 -5
- package/dist/{chunk-XCXZAI32.js → chunk-CS3NRXVU.js} +19 -19
- package/dist/{chunk-VOQ4P7QQ.js → chunk-HADRXOEB.js} +7 -7
- package/dist/{chunk-DSDTYXB5.js → chunk-KNV7G3M4.js} +5 -5
- package/dist/{chunk-IZNYY65K.js → chunk-KUQ4QVG7.js} +5 -5
- package/dist/{chunk-SYSL54YI.js → chunk-M3ZI4L7C.js} +795 -24
- package/dist/{chunk-3K4SNDVD.js → chunk-N754ZXVC.js} +5 -5
- package/dist/{chunk-IQ3XPQFI.js → chunk-P3ZSXMEW.js} +8 -8
- package/dist/{chunk-NZYA5YF6.js → chunk-QKMLUESF.js} +5 -5
- package/dist/{chunk-P44JNV75.js → chunk-RBZ5UGU7.js} +8 -8
- package/dist/{chunk-JLJYCGJU.js → chunk-TRJQZSQL.js} +8 -8
- package/dist/{chunk-HILKNKFT.js → chunk-UCBHS7TX.js} +5 -5
- package/dist/{chunk-NYOD36LM.js → chunk-X3ONAFF5.js} +5 -5
- package/dist/{chunk-3SAELKHS.js → chunk-XIDWK5FF.js} +8 -8
- package/dist/{chunk-UUHFDPCC.js → chunk-YYCNDYZP.js} +8 -8
- package/dist/{chunk-KLZW2JAY.js → chunk-ZNHVBU7J.js} +7 -7
- package/dist/cli/checkUnsupportedDataProxy.js +12 -12
- package/dist/cli/getSchema.js +17 -17
- package/dist/cli/hashes.js +12 -12
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +11 -11
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +20 -20
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +7 -7
- package/dist/engine-commands/validate.js +7 -7
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +11 -11
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +11 -11
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +12 -12
- package/dist/get-generators/getGenerators.js +14 -14
- package/dist/index.js +39 -39
- package/dist/sendPanic.js +11 -11
- package/dist/utils/getEnvPaths.js +11 -11
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +11 -11
- package/dist/utils/loadEnvFile.js +11 -11
- package/dist/wasm.js +4 -4
- package/package.json +8 -8
- package/dist/chunk-2DXAGCPS.js +0 -177
- package/dist/chunk-5XRQ7ONW.js +0 -122
- package/dist/chunk-QIVUAERL.js +0 -2202
- package/dist/chunk-QJZIYUVB.js +0 -110
- package/dist/chunk-TFSZCVKC.js +0 -166
- package/dist/chunk-V2VWODV3.js +0 -54
|
@@ -26,19 +26,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_65UKTLB4_exports = {};
|
|
30
|
+
__export(chunk_65UKTLB4_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_65UKTLB4_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
36
|
var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
|
|
37
37
|
var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
|
|
38
|
-
var
|
|
38
|
+
var import_chunk_BZKA6GIL = require("./chunk-BZKA6GIL.js");
|
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
40
40
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_QKMLUESF = require("./chunk-QKMLUESF.js");
|
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
43
43
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
|
|
|
60
60
|
}).exhaustive();
|
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
62
62
|
[Context: validate]`;
|
|
63
|
-
super((0,
|
|
63
|
+
super((0, import_chunk_BZKA6GIL.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
64
64
|
this.name = "ValidateError";
|
|
65
65
|
}
|
|
66
66
|
};
|
|
@@ -72,13 +72,13 @@ function validate(options) {
|
|
|
72
72
|
() => {
|
|
73
73
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
74
74
|
debug("Triggering a Rust panic...");
|
|
75
|
-
|
|
75
|
+
import_chunk_QKMLUESF.prismaSchemaWasm.debug_panic();
|
|
76
76
|
}
|
|
77
77
|
const params = JSON.stringify({
|
|
78
78
|
prismaSchema: options.schemas,
|
|
79
79
|
noColor: Boolean(process.env.NO_COLOR)
|
|
80
80
|
});
|
|
81
|
-
|
|
81
|
+
import_chunk_QKMLUESF.prismaSchemaWasm.validate(params);
|
|
82
82
|
},
|
|
83
83
|
(e) => ({
|
|
84
84
|
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_AGXHB3SC_exports = {};
|
|
20
|
+
__export(chunk_AGXHB3SC_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_AGXHB3SC_exports);
|
|
24
24
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
25
25
|
var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
26
26
|
"package.json"(exports, module2) {
|
|
@@ -111,7 +111,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
111
111
|
"@prisma/fetch-engine": "workspace:*",
|
|
112
112
|
"@prisma/generator-helper": "workspace:*",
|
|
113
113
|
"@prisma/get-platform": "workspace:*",
|
|
114
|
-
"@prisma/prisma-schema-wasm": "5.23.0-
|
|
114
|
+
"@prisma/prisma-schema-wasm": "5.23.0-11.90c6eb338aab4ebc379a3dfb6d0130b1535db96c",
|
|
115
115
|
"@prisma/schema-files-loader": "workspace:*",
|
|
116
116
|
arg: "5.0.2",
|
|
117
117
|
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_BKMST2H6_exports = {};
|
|
20
|
+
__export(chunk_BKMST2H6_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_BKMST2H6_exports);
|
|
24
|
+
var import_chunk_AGXHB3SC = require("./chunk-AGXHB3SC.js");
|
|
25
|
+
var packageJson = (0, import_chunk_AGXHB3SC.require_package)();
|
|
26
26
|
var version = packageJson.version;
|
|
@@ -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_BUQSP6QY_exports = {};
|
|
20
|
+
__export(chunk_BUQSP6QY_exports, {
|
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_BUQSP6QY_exports);
|
|
24
|
+
var import_chunk_BKMST2H6 = require("./chunk-BKMST2H6.js");
|
|
25
25
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
|
26
26
|
function addVersionDetailsToErrorMessage(message) {
|
|
27
|
-
const rows = [["Prisma CLI Version",
|
|
27
|
+
const rows = [["Prisma CLI Version", import_chunk_BKMST2H6.version]];
|
|
28
28
|
return `${message}
|
|
29
29
|
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
|
@@ -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_BZKA6GIL_exports = {};
|
|
20
|
+
__export(chunk_BZKA6GIL_exports, {
|
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_BZKA6GIL_exports);
|
|
24
|
+
var import_chunk_X3ONAFF5 = require("./chunk-X3ONAFF5.js");
|
|
25
25
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
|
26
26
|
function addVersionDetailsToErrorMessage(message) {
|
|
27
|
-
const rows = [["Prisma CLI Version",
|
|
27
|
+
const rows = [["Prisma CLI Version", import_chunk_X3ONAFF5.version]];
|
|
28
28
|
return `${message}
|
|
29
29
|
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
|
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export2(
|
|
29
|
+
var chunk_CS3NRXVU_exports = {};
|
|
30
|
+
__export2(chunk_CS3NRXVU_exports, {
|
|
31
31
|
checkTypeScriptVersion: () => checkTypeScriptVersion,
|
|
32
32
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
|
33
33
|
debug: () => debug5,
|
|
@@ -55,7 +55,7 @@ __export2(chunk_XCXZAI32_exports, {
|
|
|
55
55
|
sendPanic: () => sendPanic,
|
|
56
56
|
skipIndex: () => skipIndex
|
|
57
57
|
});
|
|
58
|
-
module.exports = __toCommonJS2(
|
|
58
|
+
module.exports = __toCommonJS2(chunk_CS3NRXVU_exports);
|
|
59
59
|
var import_chunk_IABMG3F4 = require("./chunk-IABMG3F4.js");
|
|
60
60
|
var import_chunk_3U2ANLD3 = require("./chunk-3U2ANLD3.js");
|
|
61
61
|
var import_chunk_FTS2IEWX = require("./chunk-FTS2IEWX.js");
|
|
@@ -80,13 +80,13 @@ var import_chunk_XLYQ6PQW = require("./chunk-XLYQ6PQW.js");
|
|
|
80
80
|
var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
|
|
81
81
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
|
82
82
|
var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
|
|
83
|
-
var
|
|
84
|
-
var
|
|
85
|
-
var
|
|
86
|
-
var
|
|
83
|
+
var import_chunk_KNV7G3M4 = require("./chunk-KNV7G3M4.js");
|
|
84
|
+
var import_chunk_ZNHVBU7J = require("./chunk-ZNHVBU7J.js");
|
|
85
|
+
var import_chunk_P3ZSXMEW = require("./chunk-P3ZSXMEW.js");
|
|
86
|
+
var import_chunk_TRJQZSQL = require("./chunk-TRJQZSQL.js");
|
|
87
87
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
88
88
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
89
|
-
var
|
|
89
|
+
var import_chunk_N754ZXVC = require("./chunk-N754ZXVC.js");
|
|
90
90
|
var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
|
|
91
91
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
92
92
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
|
@@ -15514,7 +15514,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
|
15514
15514
|
}
|
|
15515
15515
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
|
15516
15516
|
debug2("Loading config");
|
|
15517
|
-
const config2 = await (0,
|
|
15517
|
+
const config2 = await (0, import_chunk_P3ZSXMEW.getConfig)({
|
|
15518
15518
|
datamodel: files,
|
|
15519
15519
|
ignoreEnvVarErrors: true
|
|
15520
15520
|
});
|
|
@@ -15822,8 +15822,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
|
|
|
15822
15822
|
if (argName.includes("schema")) {
|
|
15823
15823
|
await loadEnvFile({ schemaPath: argValue, printMessage: false });
|
|
15824
15824
|
const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
|
|
15825
|
-
const config2 = await (0,
|
|
15826
|
-
const url = (0,
|
|
15825
|
+
const config2 = await (0, import_chunk_P3ZSXMEW.getConfig)({ datamodel, ignoreEnvVarErrors: true });
|
|
15826
|
+
const url = (0, import_chunk_P3ZSXMEW.resolveUrl)((0, import_chunk_P3ZSXMEW.getEffectiveUrl)(config2.datasources[0]));
|
|
15827
15827
|
if (url?.startsWith("prisma://")) {
|
|
15828
15828
|
return forbiddenCmdWithDataProxyFlagMessage(command);
|
|
15829
15829
|
}
|
|
@@ -15995,7 +15995,7 @@ async function getGenerators(options) {
|
|
|
15995
15995
|
prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
|
|
15996
15996
|
}
|
|
15997
15997
|
}
|
|
15998
|
-
const config = await (0,
|
|
15998
|
+
const config = await (0, import_chunk_P3ZSXMEW.getConfig)({
|
|
15999
15999
|
datamodel: schemas,
|
|
16000
16000
|
datamodelPath: schemaPath,
|
|
16001
16001
|
prismaPath,
|
|
@@ -16006,7 +16006,7 @@ async function getGenerators(options) {
|
|
|
16006
16006
|
}
|
|
16007
16007
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
|
|
16008
16008
|
const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
|
|
16009
|
-
const dmmf = await (0,
|
|
16009
|
+
const dmmf = await (0, import_chunk_TRJQZSQL.getDMMF)({
|
|
16010
16010
|
datamodel: schemas,
|
|
16011
16011
|
datamodelPath: schemaPath,
|
|
16012
16012
|
prismaPath,
|
|
@@ -16067,7 +16067,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
|
|
|
16067
16067
|
fromEnvVar: "null"
|
|
16068
16068
|
};
|
|
16069
16069
|
}
|
|
16070
|
-
const datamodel = (0,
|
|
16070
|
+
const datamodel = (0, import_chunk_ZNHVBU7J.mergeSchemas)({ schemas });
|
|
16071
16071
|
const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
|
|
16072
16072
|
const options2 = {
|
|
16073
16073
|
datamodel,
|
|
@@ -16150,7 +16150,7 @@ generator gen {
|
|
|
16150
16150
|
debug6({ generatorBinaryPaths });
|
|
16151
16151
|
generator.setBinaryPaths(generatorBinaryPaths);
|
|
16152
16152
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
|
16153
|
-
const customDmmf = await (0,
|
|
16153
|
+
const customDmmf = await (0, import_chunk_TRJQZSQL.getDMMF)({
|
|
16154
16154
|
datamodel: schemas,
|
|
16155
16155
|
datamodelPath: schemaPath,
|
|
16156
16156
|
prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
|
|
@@ -16448,7 +16448,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
|
16448
16448
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
|
16449
16449
|
handleFormatPanic(
|
|
16450
16450
|
() => {
|
|
16451
|
-
|
|
16451
|
+
import_chunk_N754ZXVC.prismaSchemaWasm.debug_panic();
|
|
16452
16452
|
},
|
|
16453
16453
|
{ schemas: schemas2 }
|
|
16454
16454
|
);
|
|
@@ -16468,12 +16468,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
|
16468
16468
|
() => {
|
|
16469
16469
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
|
|
16470
16470
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
|
16471
|
-
const lintDiagnostics2 = (0,
|
|
16471
|
+
const lintDiagnostics2 = (0, import_chunk_KNV7G3M4.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
|
16472
16472
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
|
16473
16473
|
},
|
|
16474
16474
|
{ schemas: schemas2 }
|
|
16475
16475
|
);
|
|
16476
|
-
const lintWarnings = (0,
|
|
16476
|
+
const lintWarnings = (0, import_chunk_KNV7G3M4.getLintWarningsAsText)(lintDiagnostics);
|
|
16477
16477
|
if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
|
|
16478
16478
|
console.warn(lintWarnings);
|
|
16479
16479
|
}
|
|
@@ -16503,7 +16503,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
|
|
|
16503
16503
|
}
|
|
16504
16504
|
}
|
|
16505
16505
|
function formatWasm(schema, documentFormattingParams) {
|
|
16506
|
-
const formattedSchema =
|
|
16506
|
+
const formattedSchema = import_chunk_N754ZXVC.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
|
16507
16507
|
return formattedSchema;
|
|
16508
16508
|
}
|
|
16509
16509
|
/*! Bundled license information:
|
|
@@ -26,19 +26,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_HADRXOEB_exports = {};
|
|
30
|
+
__export(chunk_HADRXOEB_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_HADRXOEB_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
36
|
var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
|
|
37
37
|
var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
|
|
38
|
-
var
|
|
38
|
+
var import_chunk_BZKA6GIL = require("./chunk-BZKA6GIL.js");
|
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
40
40
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_QKMLUESF = require("./chunk-QKMLUESF.js");
|
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
43
43
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
|
|
|
60
60
|
}).exhaustive();
|
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
62
62
|
[Context: mergeSchemas]`;
|
|
63
|
-
super((0,
|
|
63
|
+
super((0, import_chunk_BZKA6GIL.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
64
64
|
this.name = "MergeSchemasError";
|
|
65
65
|
}
|
|
66
66
|
};
|
|
@@ -73,7 +73,7 @@ function mergeSchemas(options) {
|
|
|
73
73
|
const params = JSON.stringify({
|
|
74
74
|
schema: options.schemas
|
|
75
75
|
});
|
|
76
|
-
return
|
|
76
|
+
return import_chunk_QKMLUESF.prismaSchemaWasm.merge_schemas(params);
|
|
77
77
|
},
|
|
78
78
|
(e) => ({
|
|
79
79
|
type: "wasm-error",
|
|
@@ -16,21 +16,21 @@ 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_KNV7G3M4_exports = {};
|
|
20
|
+
__export(chunk_KNV7G3M4_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(
|
|
27
|
+
module.exports = __toCommonJS(chunk_KNV7G3M4_exports);
|
|
28
28
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
29
|
-
var
|
|
29
|
+
var import_chunk_N754ZXVC = require("./chunk-N754ZXVC.js");
|
|
30
30
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
31
31
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
32
32
|
function lintSchema({ schemas }) {
|
|
33
|
-
const lintResult =
|
|
33
|
+
const lintResult = import_chunk_N754ZXVC.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
|
34
34
|
const lintDiagnostics = JSON.parse(lintResult);
|
|
35
35
|
return lintDiagnostics;
|
|
36
36
|
}
|
|
@@ -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_KUQ4QVG7_exports = {};
|
|
20
|
+
__export(chunk_KUQ4QVG7_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_KUQ4QVG7_exports);
|
|
24
24
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
25
25
|
var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
26
26
|
"package.json"(exports, module2) {
|
|
27
27
|
module2.exports = {
|
|
28
28
|
name: "@prisma/internals",
|
|
29
|
-
version: "5.23.0-dev.
|
|
29
|
+
version: "5.23.0-dev.15",
|
|
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",
|
|
@@ -111,7 +111,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
111
111
|
"@prisma/fetch-engine": "workspace:*",
|
|
112
112
|
"@prisma/generator-helper": "workspace:*",
|
|
113
113
|
"@prisma/get-platform": "workspace:*",
|
|
114
|
-
"@prisma/prisma-schema-wasm": "5.23.0-
|
|
114
|
+
"@prisma/prisma-schema-wasm": "5.23.0-11.90c6eb338aab4ebc379a3dfb6d0130b1535db96c",
|
|
115
115
|
"@prisma/schema-files-loader": "workspace:*",
|
|
116
116
|
arg: "5.0.2",
|
|
117
117
|
prompts: "2.4.2"
|