@prisma/internals 6.5.0-dev.52 → 6.5.0-dev.53
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-DPFQAPWU.js → chunk-2UEX4TLF.js} +19 -19
- package/dist/{chunk-56VUY43R.js → chunk-4WL43DAR.js} +5 -5
- package/dist/{chunk-2DNZCBAU.js → chunk-5KQENHUB.js} +7 -7
- package/dist/{chunk-OSFD4434.js → chunk-6RLMDDOB.js} +8 -8
- package/dist/{chunk-43QI66ZO.js → chunk-76UB634F.js} +8 -8
- package/dist/{chunk-7VCTPRMU.js → chunk-AYDNVFCM.js} +5 -5
- package/dist/{chunk-GABO6IUE.js → chunk-EPB2EZMT.js} +4 -4
- package/dist/{chunk-Q7TE2TEB.js → chunk-FHRP6WKY.js} +5 -5
- package/dist/{chunk-WMCSNHUF.js → chunk-GYJORHUJ.js} +7 -7
- package/dist/{chunk-CHELWBGJ.js → chunk-HGDLGARE.js} +5 -5
- package/dist/{chunk-TDG5WQHD.js → chunk-ICA5EPNR.js} +8 -8
- package/dist/{chunk-URDRH6DP.js → chunk-IHA6I74X.js} +19 -19
- package/dist/chunk-KKGIKPIK.js +573 -0
- package/dist/{chunk-BGRRWLCY.js → chunk-KZUIEFYZ.js} +5 -5
- package/dist/{chunk-TQCAD4LB.js → chunk-NG6XV4UC.js} +8 -8
- package/dist/{chunk-SN4HJSIC.js → chunk-OP4MUA45.js} +5 -5
- package/dist/{chunk-JFLWUAV4.js → chunk-V2RVLIN7.js} +5 -5
- package/dist/{chunk-BDEJNIF4.js → chunk-W5OD4W3C.js} +8 -8
- package/dist/{chunk-IZB6DOJJ.js → chunk-WP26QRVO.js} +5 -5
- package/dist/{chunk-O3BUEF7H.js → chunk-X52BU4GK.js} +8 -8
- package/dist/{chunk-6UJHFO6C.js → chunk-YVPGWCTJ.js} +5 -5
- package/dist/cli/checkUnsupportedDataProxy.js +13 -13
- package/dist/cli/getSchema.js +17 -17
- package/dist/cli/hashes.js +13 -13
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +12 -12
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +21 -21
- 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 +12 -12
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +12 -12
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +13 -13
- package/dist/get-generators/getGenerators.js +15 -15
- package/dist/index.js +41 -41
- package/dist/sendPanic.js +12 -12
- package/dist/utils/drawBox.js +2 -2
- package/dist/utils/getEnvPaths.js +12 -12
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +12 -12
- package/dist/utils/loadEnvFile.js +12 -12
- package/dist/wasm.js +4 -4
- package/package.json +9 -9
- package/dist/chunk-F3SIWK3J.js +0 -1404
@@ -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_2UEX4TLF_exports = {};
|
30
|
+
__export2(chunk_2UEX4TLF_exports, {
|
31
31
|
checkTypeScriptVersion: () => checkTypeScriptVersion,
|
32
32
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
33
33
|
debug: () => debug5,
|
@@ -54,7 +54,7 @@ __export2(chunk_DPFQAPWU_exports, {
|
|
54
54
|
sendPanic: () => sendPanic,
|
55
55
|
skipIndex: () => skipIndex
|
56
56
|
});
|
57
|
-
module.exports = __toCommonJS2(
|
57
|
+
module.exports = __toCommonJS2(chunk_2UEX4TLF_exports);
|
58
58
|
var import_chunk_S57RMXZW = require("./chunk-S57RMXZW.js");
|
59
59
|
var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
|
60
60
|
var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
|
@@ -79,13 +79,13 @@ var import_chunk_AC6EAR56 = require("./chunk-AC6EAR56.js");
|
|
79
79
|
var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
|
80
80
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
81
81
|
var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
|
82
|
-
var
|
83
|
-
var
|
84
|
-
var
|
85
|
-
var
|
82
|
+
var import_chunk_KZUIEFYZ = require("./chunk-KZUIEFYZ.js");
|
83
|
+
var import_chunk_5KQENHUB = require("./chunk-5KQENHUB.js");
|
84
|
+
var import_chunk_6RLMDDOB = require("./chunk-6RLMDDOB.js");
|
85
|
+
var import_chunk_ICA5EPNR = require("./chunk-ICA5EPNR.js");
|
86
86
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
87
87
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
88
|
-
var
|
88
|
+
var import_chunk_AYDNVFCM = require("./chunk-AYDNVFCM.js");
|
89
89
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
90
90
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
91
91
|
var import_chunk_GXDYIY4M = require("./chunk-GXDYIY4M.js");
|
@@ -14750,7 +14750,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
14750
14750
|
}
|
14751
14751
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
14752
14752
|
debug2("Loading config");
|
14753
|
-
const config2 = await (0,
|
14753
|
+
const config2 = await (0, import_chunk_6RLMDDOB.getConfig)({
|
14754
14754
|
datamodel: files,
|
14755
14755
|
ignoreEnvVarErrors: true
|
14756
14756
|
});
|
@@ -15076,8 +15076,8 @@ async function checkUnsupportedDataProxyMessage(command, args, schemaPathFromCon
|
|
15076
15076
|
if (argName.includes("schema")) {
|
15077
15077
|
await loadEnvFile({ schemaPath: argValue, printMessage: false, config: (0, import_config.defaultTestConfig)() });
|
15078
15078
|
const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
|
15079
|
-
const config2 = await (0,
|
15080
|
-
const url = (0,
|
15079
|
+
const config2 = await (0, import_chunk_6RLMDDOB.getConfig)({ datamodel, ignoreEnvVarErrors: true });
|
15080
|
+
const url = (0, import_chunk_6RLMDDOB.resolveUrl)((0, import_chunk_6RLMDDOB.getEffectiveUrl)(config2.datasources[0]));
|
15081
15081
|
if (url?.startsWith("prisma://")) {
|
15082
15082
|
return forbiddenCmdWithDataProxyFlagMessage(command);
|
15083
15083
|
}
|
@@ -15250,7 +15250,7 @@ async function getGenerators(options) {
|
|
15250
15250
|
prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
|
15251
15251
|
}
|
15252
15252
|
}
|
15253
|
-
const config = await (0,
|
15253
|
+
const config = await (0, import_chunk_6RLMDDOB.getConfig)({
|
15254
15254
|
datamodel: schemas,
|
15255
15255
|
datamodelPath: schemaPath,
|
15256
15256
|
prismaPath,
|
@@ -15261,7 +15261,7 @@ async function getGenerators(options) {
|
|
15261
15261
|
}
|
15262
15262
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
|
15263
15263
|
const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
|
15264
|
-
const dmmf = await (0,
|
15264
|
+
const dmmf = await (0, import_chunk_ICA5EPNR.getDMMF)({
|
15265
15265
|
datamodel: schemas,
|
15266
15266
|
datamodelPath: schemaPath,
|
15267
15267
|
prismaPath,
|
@@ -15322,7 +15322,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
|
|
15322
15322
|
fromEnvVar: "null"
|
15323
15323
|
};
|
15324
15324
|
}
|
15325
|
-
const datamodel = (0,
|
15325
|
+
const datamodel = (0, import_chunk_5KQENHUB.mergeSchemas)({ schemas });
|
15326
15326
|
const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
|
15327
15327
|
const options2 = {
|
15328
15328
|
datamodel,
|
@@ -15405,7 +15405,7 @@ generator gen {
|
|
15405
15405
|
debug6({ generatorBinaryPaths });
|
15406
15406
|
generator.setBinaryPaths(generatorBinaryPaths);
|
15407
15407
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
15408
|
-
const customDmmf = await (0,
|
15408
|
+
const customDmmf = await (0, import_chunk_ICA5EPNR.getDMMF)({
|
15409
15409
|
datamodel: schemas,
|
15410
15410
|
datamodelPath: schemaPath,
|
15411
15411
|
prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
|
@@ -15703,7 +15703,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15703
15703
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
15704
15704
|
handleFormatPanic(
|
15705
15705
|
() => {
|
15706
|
-
|
15706
|
+
import_chunk_AYDNVFCM.prismaSchemaWasm.debug_panic();
|
15707
15707
|
},
|
15708
15708
|
{ schemas: schemas2 }
|
15709
15709
|
);
|
@@ -15723,12 +15723,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15723
15723
|
() => {
|
15724
15724
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
|
15725
15725
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
15726
|
-
const lintDiagnostics2 = (0,
|
15726
|
+
const lintDiagnostics2 = (0, import_chunk_KZUIEFYZ.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
15727
15727
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
15728
15728
|
},
|
15729
15729
|
{ schemas: schemas2 }
|
15730
15730
|
);
|
15731
|
-
const lintWarnings = (0,
|
15731
|
+
const lintWarnings = (0, import_chunk_KZUIEFYZ.getLintWarningsAsText)(lintDiagnostics);
|
15732
15732
|
if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
|
15733
15733
|
console.warn(lintWarnings);
|
15734
15734
|
}
|
@@ -15758,7 +15758,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
|
|
15758
15758
|
}
|
15759
15759
|
}
|
15760
15760
|
function formatWasm(schema, documentFormattingParams) {
|
15761
|
-
const formattedSchema =
|
15761
|
+
const formattedSchema = import_chunk_AYDNVFCM.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
15762
15762
|
return formattedSchema;
|
15763
15763
|
}
|
15764
15764
|
/*! Bundled license information:
|
@@ -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_4WL43DAR_exports = {};
|
20
|
+
__export(chunk_4WL43DAR_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_4WL43DAR_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: "6.5.0-dev.
|
29
|
+
version: "6.5.0-dev.53",
|
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",
|
@@ -64,7 +64,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
64
64
|
"@types/resolve": "1.20.6",
|
65
65
|
archiver: "6.0.2",
|
66
66
|
"checkpoint-client": "1.1.33",
|
67
|
-
"cli-truncate": "
|
67
|
+
"cli-truncate": "4.0.0",
|
68
68
|
dotenv: "16.4.7",
|
69
69
|
esbuild: "0.24.2",
|
70
70
|
"escape-string-regexp": "4.0.0",
|
@@ -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_5KQENHUB_exports = {};
|
30
|
+
__export(chunk_5KQENHUB_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_5KQENHUB_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
36
|
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
38
|
-
var
|
38
|
+
var import_chunk_OP4MUA45 = require("./chunk-OP4MUA45.js");
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
41
|
-
var
|
41
|
+
var import_chunk_AYDNVFCM = require("./chunk-AYDNVFCM.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_OP4MUA45.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_AYDNVFCM.prismaSchemaWasm.merge_schemas(params);
|
77
77
|
},
|
78
78
|
(e) => ({
|
79
79
|
type: "wasm-error",
|
@@ -26,22 +26,22 @@ 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_6RLMDDOB_exports = {};
|
30
|
+
__export(chunk_6RLMDDOB_exports, {
|
31
31
|
GetConfigError: () => GetConfigError,
|
32
32
|
getConfig: () => getConfig,
|
33
33
|
getDirectUrl: () => getDirectUrl,
|
34
34
|
getEffectiveUrl: () => getEffectiveUrl,
|
35
35
|
resolveUrl: () => resolveUrl
|
36
36
|
});
|
37
|
-
module.exports = __toCommonJS(
|
37
|
+
module.exports = __toCommonJS(chunk_6RLMDDOB_exports);
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
39
39
|
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
40
40
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
41
|
-
var
|
41
|
+
var import_chunk_OP4MUA45 = require("./chunk-OP4MUA45.js");
|
42
42
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
43
43
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
44
|
-
var
|
44
|
+
var import_chunk_AYDNVFCM = require("./chunk-AYDNVFCM.js");
|
45
45
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
46
46
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
47
47
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
|
|
65
65
|
}).exhaustive();
|
66
66
|
const errorMessageWithContext = `${constructedErrorMessage}
|
67
67
|
[Context: getConfig]`;
|
68
|
-
super((0,
|
68
|
+
super((0, import_chunk_OP4MUA45.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
69
69
|
this.name = "GetConfigError";
|
70
70
|
}
|
71
71
|
};
|
@@ -90,7 +90,7 @@ async function getConfig(options) {
|
|
90
90
|
() => {
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
92
92
|
debug("Triggering a Rust panic...");
|
93
|
-
|
93
|
+
import_chunk_AYDNVFCM.prismaSchemaWasm.debug_panic();
|
94
94
|
}
|
95
95
|
const params = JSON.stringify({
|
96
96
|
prismaSchema: options.datamodel,
|
@@ -98,7 +98,7 @@ async function getConfig(options) {
|
|
98
98
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
99
99
|
env: process.env
|
100
100
|
});
|
101
|
-
const data =
|
101
|
+
const data = import_chunk_AYDNVFCM.prismaSchemaWasm.get_config(params);
|
102
102
|
return data;
|
103
103
|
},
|
104
104
|
(e) => ({
|
@@ -26,22 +26,22 @@ 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_76UB634F_exports = {};
|
30
|
+
__export(chunk_76UB634F_exports, {
|
31
31
|
GetConfigError: () => GetConfigError,
|
32
32
|
getConfig: () => getConfig,
|
33
33
|
getDirectUrl: () => getDirectUrl,
|
34
34
|
getEffectiveUrl: () => getEffectiveUrl,
|
35
35
|
resolveUrl: () => resolveUrl
|
36
36
|
});
|
37
|
-
module.exports = __toCommonJS(
|
37
|
+
module.exports = __toCommonJS(chunk_76UB634F_exports);
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
39
39
|
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
40
40
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
41
|
-
var
|
41
|
+
var import_chunk_WP26QRVO = require("./chunk-WP26QRVO.js");
|
42
42
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
43
43
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
44
|
-
var
|
44
|
+
var import_chunk_FHRP6WKY = require("./chunk-FHRP6WKY.js");
|
45
45
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
46
46
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
47
47
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
|
|
65
65
|
}).exhaustive();
|
66
66
|
const errorMessageWithContext = `${constructedErrorMessage}
|
67
67
|
[Context: getConfig]`;
|
68
|
-
super((0,
|
68
|
+
super((0, import_chunk_WP26QRVO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
69
69
|
this.name = "GetConfigError";
|
70
70
|
}
|
71
71
|
};
|
@@ -90,7 +90,7 @@ async function getConfig(options) {
|
|
90
90
|
() => {
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
92
92
|
debug("Triggering a Rust panic...");
|
93
|
-
|
93
|
+
import_chunk_FHRP6WKY.prismaSchemaWasm.debug_panic();
|
94
94
|
}
|
95
95
|
const params = JSON.stringify({
|
96
96
|
prismaSchema: options.datamodel,
|
@@ -98,7 +98,7 @@ async function getConfig(options) {
|
|
98
98
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
99
99
|
env: process.env
|
100
100
|
});
|
101
|
-
const data =
|
101
|
+
const data = import_chunk_FHRP6WKY.prismaSchemaWasm.get_config(params);
|
102
102
|
return data;
|
103
103
|
},
|
104
104
|
(e) => ({
|
@@ -26,14 +26,14 @@ 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_AYDNVFCM_exports = {};
|
30
|
+
__export(chunk_AYDNVFCM_exports, {
|
31
31
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
32
32
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
|
33
33
|
wasm_exports: () => wasm_exports
|
34
34
|
});
|
35
|
-
module.exports = __toCommonJS(
|
36
|
-
var
|
35
|
+
module.exports = __toCommonJS(chunk_AYDNVFCM_exports);
|
36
|
+
var import_chunk_4WL43DAR = require("./chunk-4WL43DAR.js");
|
37
37
|
var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
|
38
38
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
39
39
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
@@ -42,6 +42,6 @@ var wasm_exports = {};
|
|
42
42
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
43
43
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
|
44
44
|
});
|
45
|
-
var { dependencies } = (0,
|
45
|
+
var { dependencies } = (0, import_chunk_4WL43DAR.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
|
@@ -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_EPB2EZMT_exports = {};
|
20
|
+
__export(chunk_EPB2EZMT_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_EPB2EZMT_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) {
|
@@ -64,7 +64,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
64
64
|
"@types/resolve": "1.20.6",
|
65
65
|
archiver: "6.0.2",
|
66
66
|
"checkpoint-client": "1.1.33",
|
67
|
-
"cli-truncate": "
|
67
|
+
"cli-truncate": "4.0.0",
|
68
68
|
dotenv: "16.4.7",
|
69
69
|
esbuild: "0.24.2",
|
70
70
|
"escape-string-regexp": "4.0.0",
|
@@ -26,14 +26,14 @@ 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_FHRP6WKY_exports = {};
|
30
|
+
__export(chunk_FHRP6WKY_exports, {
|
31
31
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
32
32
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
|
33
33
|
wasm_exports: () => wasm_exports
|
34
34
|
});
|
35
|
-
module.exports = __toCommonJS(
|
36
|
-
var
|
35
|
+
module.exports = __toCommonJS(chunk_FHRP6WKY_exports);
|
36
|
+
var import_chunk_EPB2EZMT = require("./chunk-EPB2EZMT.js");
|
37
37
|
var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
|
38
38
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
39
39
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
@@ -42,6 +42,6 @@ var wasm_exports = {};
|
|
42
42
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
43
43
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
|
44
44
|
});
|
45
|
-
var { dependencies } = (0,
|
45
|
+
var { dependencies } = (0, import_chunk_EPB2EZMT.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
|
@@ -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_GYJORHUJ_exports = {};
|
30
|
+
__export(chunk_GYJORHUJ_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_GYJORHUJ_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
36
|
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
38
|
-
var
|
38
|
+
var import_chunk_WP26QRVO = require("./chunk-WP26QRVO.js");
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
41
|
-
var
|
41
|
+
var import_chunk_FHRP6WKY = require("./chunk-FHRP6WKY.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_WP26QRVO.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_FHRP6WKY.prismaSchemaWasm.merge_schemas(params);
|
77
77
|
},
|
78
78
|
(e) => ({
|
79
79
|
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_HGDLGARE_exports = {};
|
20
|
+
__export(chunk_HGDLGARE_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_HGDLGARE_exports);
|
24
|
+
var import_chunk_EPB2EZMT = require("./chunk-EPB2EZMT.js");
|
25
|
+
var packageJson = (0, import_chunk_EPB2EZMT.require_package)();
|
26
26
|
var version = packageJson.version;
|
@@ -26,18 +26,18 @@ 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_ICA5EPNR_exports = {};
|
30
|
+
__export(chunk_ICA5EPNR_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_ICA5EPNR_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
36
|
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
37
|
-
var
|
37
|
+
var import_chunk_OP4MUA45 = require("./chunk-OP4MUA45.js");
|
38
38
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
39
39
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
40
|
-
var
|
40
|
+
var import_chunk_AYDNVFCM = require("./chunk-AYDNVFCM.js");
|
41
41
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
42
42
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
43
43
|
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: getDmmf]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_OP4MUA45.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "GetDmmfError";
|
65
65
|
}
|
66
66
|
};
|
@@ -90,13 +90,13 @@ async function getDMMF(options) {
|
|
90
90
|
() => {
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
92
92
|
debug("Triggering a Rust panic...");
|
93
|
-
|
93
|
+
import_chunk_AYDNVFCM.prismaSchemaWasm.debug_panic();
|
94
94
|
}
|
95
95
|
const params = JSON.stringify({
|
96
96
|
prismaSchema: datamodel,
|
97
97
|
noColor: Boolean(process.env.NO_COLOR)
|
98
98
|
});
|
99
|
-
const data =
|
99
|
+
const data = import_chunk_AYDNVFCM.prismaSchemaWasm.get_dmmf(params);
|
100
100
|
return data;
|
101
101
|
},
|
102
102
|
(e) => ({
|
@@ -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_IHA6I74X_exports = {};
|
30
|
+
__export2(chunk_IHA6I74X_exports, {
|
31
31
|
checkTypeScriptVersion: () => checkTypeScriptVersion,
|
32
32
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
33
33
|
debug: () => debug5,
|
@@ -54,7 +54,7 @@ __export2(chunk_URDRH6DP_exports, {
|
|
54
54
|
sendPanic: () => sendPanic,
|
55
55
|
skipIndex: () => skipIndex
|
56
56
|
});
|
57
|
-
module.exports = __toCommonJS2(
|
57
|
+
module.exports = __toCommonJS2(chunk_IHA6I74X_exports);
|
58
58
|
var import_chunk_S57RMXZW = require("./chunk-S57RMXZW.js");
|
59
59
|
var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
|
60
60
|
var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
|
@@ -79,13 +79,13 @@ var import_chunk_AC6EAR56 = require("./chunk-AC6EAR56.js");
|
|
79
79
|
var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
|
80
80
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
81
81
|
var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
|
82
|
-
var
|
83
|
-
var
|
84
|
-
var
|
85
|
-
var
|
82
|
+
var import_chunk_YVPGWCTJ = require("./chunk-YVPGWCTJ.js");
|
83
|
+
var import_chunk_GYJORHUJ = require("./chunk-GYJORHUJ.js");
|
84
|
+
var import_chunk_76UB634F = require("./chunk-76UB634F.js");
|
85
|
+
var import_chunk_X52BU4GK = require("./chunk-X52BU4GK.js");
|
86
86
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
87
87
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
88
|
-
var
|
88
|
+
var import_chunk_FHRP6WKY = require("./chunk-FHRP6WKY.js");
|
89
89
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
90
90
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
91
91
|
var import_chunk_GXDYIY4M = require("./chunk-GXDYIY4M.js");
|
@@ -14750,7 +14750,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
14750
14750
|
}
|
14751
14751
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
14752
14752
|
debug2("Loading config");
|
14753
|
-
const config2 = await (0,
|
14753
|
+
const config2 = await (0, import_chunk_76UB634F.getConfig)({
|
14754
14754
|
datamodel: files,
|
14755
14755
|
ignoreEnvVarErrors: true
|
14756
14756
|
});
|
@@ -15076,8 +15076,8 @@ async function checkUnsupportedDataProxyMessage(command, args, schemaPathFromCon
|
|
15076
15076
|
if (argName.includes("schema")) {
|
15077
15077
|
await loadEnvFile({ schemaPath: argValue, printMessage: false, config: (0, import_config.defaultTestConfig)() });
|
15078
15078
|
const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
|
15079
|
-
const config2 = await (0,
|
15080
|
-
const url = (0,
|
15079
|
+
const config2 = await (0, import_chunk_76UB634F.getConfig)({ datamodel, ignoreEnvVarErrors: true });
|
15080
|
+
const url = (0, import_chunk_76UB634F.resolveUrl)((0, import_chunk_76UB634F.getEffectiveUrl)(config2.datasources[0]));
|
15081
15081
|
if (url?.startsWith("prisma://")) {
|
15082
15082
|
return forbiddenCmdWithDataProxyFlagMessage(command);
|
15083
15083
|
}
|
@@ -15250,7 +15250,7 @@ async function getGenerators(options) {
|
|
15250
15250
|
prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
|
15251
15251
|
}
|
15252
15252
|
}
|
15253
|
-
const config = await (0,
|
15253
|
+
const config = await (0, import_chunk_76UB634F.getConfig)({
|
15254
15254
|
datamodel: schemas,
|
15255
15255
|
datamodelPath: schemaPath,
|
15256
15256
|
prismaPath,
|
@@ -15261,7 +15261,7 @@ async function getGenerators(options) {
|
|
15261
15261
|
}
|
15262
15262
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
|
15263
15263
|
const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
|
15264
|
-
const dmmf = await (0,
|
15264
|
+
const dmmf = await (0, import_chunk_X52BU4GK.getDMMF)({
|
15265
15265
|
datamodel: schemas,
|
15266
15266
|
datamodelPath: schemaPath,
|
15267
15267
|
prismaPath,
|
@@ -15322,7 +15322,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
|
|
15322
15322
|
fromEnvVar: "null"
|
15323
15323
|
};
|
15324
15324
|
}
|
15325
|
-
const datamodel = (0,
|
15325
|
+
const datamodel = (0, import_chunk_GYJORHUJ.mergeSchemas)({ schemas });
|
15326
15326
|
const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
|
15327
15327
|
const options2 = {
|
15328
15328
|
datamodel,
|
@@ -15405,7 +15405,7 @@ generator gen {
|
|
15405
15405
|
debug6({ generatorBinaryPaths });
|
15406
15406
|
generator.setBinaryPaths(generatorBinaryPaths);
|
15407
15407
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
15408
|
-
const customDmmf = await (0,
|
15408
|
+
const customDmmf = await (0, import_chunk_X52BU4GK.getDMMF)({
|
15409
15409
|
datamodel: schemas,
|
15410
15410
|
datamodelPath: schemaPath,
|
15411
15411
|
prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
|
@@ -15703,7 +15703,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15703
15703
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
15704
15704
|
handleFormatPanic(
|
15705
15705
|
() => {
|
15706
|
-
|
15706
|
+
import_chunk_FHRP6WKY.prismaSchemaWasm.debug_panic();
|
15707
15707
|
},
|
15708
15708
|
{ schemas: schemas2 }
|
15709
15709
|
);
|
@@ -15723,12 +15723,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15723
15723
|
() => {
|
15724
15724
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
|
15725
15725
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
15726
|
-
const lintDiagnostics2 = (0,
|
15726
|
+
const lintDiagnostics2 = (0, import_chunk_YVPGWCTJ.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
15727
15727
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
15728
15728
|
},
|
15729
15729
|
{ schemas: schemas2 }
|
15730
15730
|
);
|
15731
|
-
const lintWarnings = (0,
|
15731
|
+
const lintWarnings = (0, import_chunk_YVPGWCTJ.getLintWarningsAsText)(lintDiagnostics);
|
15732
15732
|
if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
|
15733
15733
|
console.warn(lintWarnings);
|
15734
15734
|
}
|
@@ -15758,7 +15758,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
|
|
15758
15758
|
}
|
15759
15759
|
}
|
15760
15760
|
function formatWasm(schema, documentFormattingParams) {
|
15761
|
-
const formattedSchema =
|
15761
|
+
const formattedSchema = import_chunk_FHRP6WKY.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
15762
15762
|
return formattedSchema;
|
15763
15763
|
}
|
15764
15764
|
/*! Bundled license information:
|