@prisma/internals 6.6.0-integration-mcp.2 → 6.6.0-integration-engines-6-6-0-28-feat-orm-596-expose-model-grouping-on-dmmf-600968a1f46d3d8626cdd2c933cf04e50eb5219b.1
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-OUQPIJFQ.js → chunk-22EGD6IG.js} +5 -5
- package/dist/{chunk-4KCLNFE4.js → chunk-2OVH6HWL.js} +5 -5
- package/dist/{chunk-2LDG4PID.js → chunk-2QTAK7KO.js} +5 -5
- package/dist/{chunk-SAAMENIS.js → chunk-3DQANJMY.js} +7 -7
- package/dist/{chunk-WOIJKMTZ.js → chunk-43UGZNTO.js} +8 -8
- package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
- package/dist/{chunk-AP52B62F.js → chunk-5O4NBBJI.js} +5 -5
- package/dist/{chunk-UB2X7DGZ.js → chunk-75BIJ5PX.js} +9 -9
- package/dist/{chunk-ORPBIAE5.js → chunk-CMW6HZDU.js} +8 -8
- package/dist/{chunk-IRWX4FCC.js → chunk-D4VDA2TZ.js} +6 -6
- package/dist/{chunk-PING5S2U.js → chunk-DA4QI734.js} +8 -8
- package/dist/{chunk-EKESIUIK.js → chunk-DKSUHQGA.js} +7 -7
- package/dist/{chunk-2I3VYCA7.js → chunk-EPXBOIA5.js} +5 -5
- package/dist/{chunk-WF5LZFJS.js → chunk-ETYWYJBX.js} +12 -12
- package/dist/{chunk-PE6DXWOX.js → chunk-EWWOTVR3.js} +6 -6
- package/dist/{chunk-AXD7KB4D.js → chunk-HG3YOAAE.js} +5 -5
- package/dist/{chunk-SNSJWJTA.js → chunk-HX5W4SCI.js} +5 -5
- package/dist/{chunk-IWTEX7EE.js → chunk-IDINCQMN.js} +780 -9
- package/dist/{chunk-VYJSNZF3.js → chunk-J3O4XZ7J.js} +4 -4
- package/dist/{chunk-2LOGW45F.js → chunk-JOIIWB3U.js} +33 -68
- package/dist/{chunk-R45GQNKO.js → chunk-JZZSOWXW.js} +34 -34
- package/dist/{chunk-R4ZFFYJA.js → chunk-K5W6WZ6E.js} +2734 -238
- package/dist/{chunk-3GYXMWBM.js → chunk-KB5DKCI4.js} +7 -7
- package/dist/{chunk-5CBAXTAF.js → chunk-KW6PI3YM.js} +5 -5
- package/dist/{chunk-FAPPXX7W.js → chunk-KZUP4IKB.js} +8 -8
- package/dist/{chunk-Q2IBLC6D.js → chunk-M2W57BOY.js} +5 -5
- package/dist/{chunk-XMVJRTN5.js → chunk-NTBV3KBV.js} +5 -5
- package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
- package/dist/{chunk-UFYFNNCN.js → chunk-PXGVSB23.js} +8 -8
- package/dist/{chunk-OQ2NRV2Y.js → chunk-QGJH4P4N.js} +5 -5
- package/dist/{chunk-VTJOX6HO.js → chunk-QL54PJRG.js} +5 -5
- package/dist/{chunk-GV244NDE.js → chunk-R6H7JFKF.js} +7 -7
- package/dist/{chunk-XRBOJLES.js → chunk-SQ26IK6J.js} +5 -5
- package/dist/{chunk-MXAUURHG.js → chunk-TQFONRJP.js} +5 -5
- package/dist/{chunk-LWBLVV7Y.js → chunk-TRBKQBUW.js} +8 -8
- package/dist/{chunk-RABVZXRU.js → chunk-VLCSUQ2Q.js} +7 -7
- package/dist/{chunk-URRVX2VQ.js → chunk-VVPSLVOR.js} +4 -3
- package/dist/{chunk-PWGQKUJW.js → chunk-XLCZOLXP.js} +34 -34
- package/dist/{chunk-SUOMIRLO.js → chunk-YR5KNFKN.js} +6 -6
- package/dist/cli/checkUnsupportedDataProxy.js +31 -32
- package/dist/cli/getSchema.js +34 -35
- package/dist/cli/hashes.js +31 -32
- package/dist/cli/schemaContext.js +31 -32
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +30 -31
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/getEngineVersion.js +6 -7
- package/dist/engine-commands/getEnginesMetaInfo.js +8 -9
- package/dist/engine-commands/index.js +41 -42
- 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/generatorResolvers/generatorResolvers.js +30 -31
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +30 -31
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +31 -32
- package/dist/get-generators/getGenerators.js +33 -34
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -4
- package/dist/getPackedPackage.js +4 -5
- package/dist/index.js +72 -73
- package/dist/{multipart-parser-UV3WZSWW.js → multipart-parser-3AFJFP6K.js} +6 -6
- package/dist/resolveBinary.js +7 -8
- package/dist/schemaEngineCommands.js +9 -10
- package/dist/sendPanic.js +4 -4
- package/dist/utils/cloudflareD1.js +3 -3
- package/dist/utils/fs-functional.js +10 -10
- package/dist/utils/fs-utils.js +8 -8
- package/dist/utils/getEnvPaths.js +30 -31
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +5 -5
- package/dist/utils/loadEnvFile.js +30 -31
- package/dist/wasm.js +4 -4
- package/package.json +11 -11
- package/dist/chunk-DYV47NUW.js +0 -796
@@ -26,20 +26,20 @@ 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_PXGVSB23_exports = {};
|
30
|
+
__export(chunk_PXGVSB23_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_PXGVSB23_exports);
|
38
38
|
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
39
39
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
40
40
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
41
|
-
var
|
42
|
-
var
|
41
|
+
var import_chunk_5O4NBBJI = require("./chunk-5O4NBBJI.js");
|
42
|
+
var import_chunk_2OVH6HWL = require("./chunk-2OVH6HWL.js");
|
43
43
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
44
44
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
45
45
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
@@ -64,7 +64,7 @@ ${detailsHeader} ${message}`;
|
|
64
64
|
}).exhaustive();
|
65
65
|
const errorMessageWithContext = `${constructedErrorMessage}
|
66
66
|
[Context: getConfig]`;
|
67
|
-
super((0,
|
67
|
+
super((0, import_chunk_5O4NBBJI.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
68
68
|
this.name = "GetConfigError";
|
69
69
|
}
|
70
70
|
};
|
@@ -89,7 +89,7 @@ async function getConfig(options) {
|
|
89
89
|
() => {
|
90
90
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
91
91
|
debug("Triggering a Rust panic...");
|
92
|
-
|
92
|
+
import_chunk_2OVH6HWL.prismaSchemaWasm.debug_panic();
|
93
93
|
}
|
94
94
|
const params = JSON.stringify({
|
95
95
|
prismaSchema: options.datamodel,
|
@@ -97,7 +97,7 @@ async function getConfig(options) {
|
|
97
97
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
98
98
|
env: process.env
|
99
99
|
});
|
100
|
-
const data =
|
100
|
+
const data = import_chunk_2OVH6HWL.prismaSchemaWasm.get_config(params);
|
101
101
|
return data;
|
102
102
|
},
|
103
103
|
(e) => ({
|
@@ -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_QGJH4P4N_exports = {};
|
20
|
+
__export(chunk_QGJH4P4N_exports, {
|
21
21
|
runPackageCmd: () => runPackageCmd
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_QGJH4P4N_exports);
|
24
24
|
var import_chunk_72UZXEBG = require("./chunk-72UZXEBG.js");
|
25
|
-
var
|
25
|
+
var import_chunk_ETYWYJBX = require("./chunk-ETYWYJBX.js");
|
26
26
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
27
|
-
var import_execa = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
27
|
+
var import_execa = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_ETYWYJBX.require_execa)());
|
28
28
|
async function runPackageCmd(cwd, cmd, ...args) {
|
29
29
|
await import_execa.default.command(await (0, import_chunk_72UZXEBG.getPackageCmd)(cwd, cmd, ...args), {
|
30
30
|
// we skip this because we are already in the generator
|
@@ -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_QL54PJRG_exports = {};
|
20
|
+
__export(chunk_QL54PJRG_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_QL54PJRG_exports);
|
24
|
+
var import_chunk_J3O4XZ7J = require("./chunk-J3O4XZ7J.js");
|
25
|
+
var packageJson = (0, import_chunk_J3O4XZ7J.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_R6H7JFKF_exports = {};
|
30
|
+
__export(chunk_R6H7JFKF_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_R6H7JFKF_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_NTBV3KBV = require("./chunk-NTBV3KBV.js");
|
39
|
+
var import_chunk_HX5W4SCI = require("./chunk-HX5W4SCI.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_NTBV3KBV.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_HX5W4SCI.prismaSchemaWasm.merge_schemas(params);
|
76
76
|
},
|
77
77
|
(e) => ({
|
78
78
|
type: "wasm-error",
|
@@ -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_SQ26IK6J_exports = {};
|
20
|
+
__export(chunk_SQ26IK6J_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_SQ26IK6J_exports);
|
24
24
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
25
25
|
var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
26
26
|
"package.json"(exports, module2) {
|
27
27
|
module2.exports = {
|
28
28
|
name: "@prisma/internals",
|
29
|
-
version: "6.6.0-integration-
|
29
|
+
version: "6.6.0-integration-engines-6-6-0-28-feat-orm-596-expose-model-grouping-on-dmmf-600968a1f46d3d8626cdd2c933cf04e50eb5219b.1",
|
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",
|
@@ -113,7 +113,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
113
113
|
"@prisma/generator": "workspace:*",
|
114
114
|
"@prisma/generator-helper": "workspace:*",
|
115
115
|
"@prisma/get-platform": "workspace:*",
|
116
|
-
"@prisma/prisma-schema-wasm": "6.6.0-
|
116
|
+
"@prisma/prisma-schema-wasm": "6.6.0-28.feat-orm-596-expose-model-grouping-on-dmmf-600968a1f46d3d8626cdd2c933cf04e50eb5219b",
|
117
117
|
"@prisma/schema-files-loader": "workspace:*",
|
118
118
|
arg: "5.0.2",
|
119
119
|
prompts: "2.4.2"
|
@@ -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_TQFONRJP_exports = {};
|
30
|
+
__export(chunk_TQFONRJP_exports, {
|
31
31
|
createDirIfNotExists: () => createDirIfNotExists,
|
32
32
|
fs_utils_exports: () => fs_utils_exports,
|
33
33
|
getFilesInDir: () => getFilesInDir,
|
@@ -36,9 +36,9 @@ __export(chunk_MXAUURHG_exports, {
|
|
36
36
|
removeEmptyDirs: () => removeEmptyDirs,
|
37
37
|
writeFile: () => writeFile
|
38
38
|
});
|
39
|
-
module.exports = __toCommonJS(
|
39
|
+
module.exports = __toCommonJS(chunk_TQFONRJP_exports);
|
40
40
|
var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
|
41
|
-
var
|
41
|
+
var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
|
42
42
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
43
43
|
var import_promises = __toESM(require("fs/promises"));
|
44
44
|
var import_path = __toESM(require("path"));
|
@@ -51,7 +51,7 @@ var fs_utils_exports = {};
|
|
51
51
|
removeEmptyDirs: () => removeEmptyDirs,
|
52
52
|
writeFile: () => writeFile
|
53
53
|
});
|
54
|
-
var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
54
|
+
var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_globby)());
|
55
55
|
function createDirIfNotExists(dir) {
|
56
56
|
return import_promises.default.mkdir(dir, { recursive: true });
|
57
57
|
}
|
@@ -26,16 +26,16 @@ 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_TRBKQBUW_exports = {};
|
30
|
+
__export(chunk_TRBKQBUW_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_TRBKQBUW_exports);
|
35
35
|
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
36
36
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
37
|
-
var
|
38
|
-
var
|
37
|
+
var import_chunk_NTBV3KBV = require("./chunk-NTBV3KBV.js");
|
38
|
+
var import_chunk_HX5W4SCI = require("./chunk-HX5W4SCI.js");
|
39
39
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
41
41
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
@@ -58,7 +58,7 @@ ${detailsHeader} ${message}`;
|
|
58
58
|
}).exhaustive();
|
59
59
|
const errorMessageWithContext = `${constructedErrorMessage}
|
60
60
|
[Context: getDmmf]`;
|
61
|
-
super((0,
|
61
|
+
super((0, import_chunk_NTBV3KBV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
62
62
|
this.name = "GetDmmfError";
|
63
63
|
}
|
64
64
|
};
|
@@ -70,13 +70,13 @@ async function getDMMF(options) {
|
|
70
70
|
() => {
|
71
71
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
72
72
|
debug("Triggering a Rust panic...");
|
73
|
-
|
73
|
+
import_chunk_HX5W4SCI.prismaSchemaWasm.debug_panic();
|
74
74
|
}
|
75
75
|
const params = JSON.stringify({
|
76
76
|
prismaSchema: options.datamodel,
|
77
77
|
noColor: Boolean(process.env.NO_COLOR)
|
78
78
|
});
|
79
|
-
const data =
|
79
|
+
const data = import_chunk_HX5W4SCI.prismaSchemaWasm.get_dmmf(params);
|
80
80
|
return data;
|
81
81
|
},
|
82
82
|
(e) => ({
|
@@ -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_VLCSUQ2Q_exports = {};
|
30
|
+
__export(chunk_VLCSUQ2Q_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_VLCSUQ2Q_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_5O4NBBJI = require("./chunk-5O4NBBJI.js");
|
39
|
+
var import_chunk_2OVH6HWL = require("./chunk-2OVH6HWL.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_5O4NBBJI.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_2OVH6HWL.prismaSchemaWasm.merge_schemas(params);
|
76
76
|
},
|
77
77
|
(e) => ({
|
78
78
|
type: "wasm-error",
|
@@ -26,12 +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_VVPSLVOR_exports = {};
|
30
|
+
__export(chunk_VVPSLVOR_exports, {
|
31
|
+
require_function_bind: () => require_function_bind,
|
31
32
|
resolve: () => resolve,
|
32
33
|
resolvePkg: () => resolvePkg
|
33
34
|
});
|
34
|
-
module.exports = __toCommonJS(
|
35
|
+
module.exports = __toCommonJS(chunk_VVPSLVOR_exports);
|
35
36
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
36
37
|
var import_path = __toESM(require("path"));
|
37
38
|
var require_homedir = (0, import_chunk_4VNS5WPM.__commonJS)({
|
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_XLCZOLXP_exports = {};
|
30
|
+
__export(chunk_XLCZOLXP_exports, {
|
31
31
|
checkTypeScriptVersion: () => checkTypeScriptVersion,
|
32
32
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
33
33
|
debug: () => debug4,
|
@@ -53,14 +53,14 @@ __export(chunk_PWGQKUJW_exports, {
|
|
53
53
|
processSchemaResult: () => processSchemaResult,
|
54
54
|
skipIndex: () => skipIndex
|
55
55
|
});
|
56
|
-
module.exports = __toCommonJS(
|
57
|
-
var
|
56
|
+
module.exports = __toCommonJS(chunk_XLCZOLXP_exports);
|
57
|
+
var import_chunk_QGJH4P4N = require("./chunk-QGJH4P4N.js");
|
58
58
|
var import_chunk_GHHABGYW = require("./chunk-GHHABGYW.js");
|
59
59
|
var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
|
60
|
-
var
|
60
|
+
var import_chunk_EWWOTVR3 = require("./chunk-EWWOTVR3.js");
|
61
61
|
var import_chunk_72UZXEBG = require("./chunk-72UZXEBG.js");
|
62
62
|
var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
|
63
|
-
var
|
63
|
+
var import_chunk_EPXBOIA5 = require("./chunk-EPXBOIA5.js");
|
64
64
|
var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
|
65
65
|
var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
|
66
66
|
var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
|
@@ -72,18 +72,18 @@ var import_chunk_XLTQGAI2 = require("./chunk-XLTQGAI2.js");
|
|
72
72
|
var import_chunk_HAGJ64PM = require("./chunk-HAGJ64PM.js");
|
73
73
|
var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
|
74
74
|
var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
|
75
|
-
var
|
76
|
-
var
|
77
|
-
var
|
78
|
-
var
|
79
|
-
var
|
75
|
+
var import_chunk_KW6PI3YM = require("./chunk-KW6PI3YM.js");
|
76
|
+
var import_chunk_R6H7JFKF = require("./chunk-R6H7JFKF.js");
|
77
|
+
var import_chunk_KZUP4IKB = require("./chunk-KZUP4IKB.js");
|
78
|
+
var import_chunk_TRBKQBUW = require("./chunk-TRBKQBUW.js");
|
79
|
+
var import_chunk_HX5W4SCI = require("./chunk-HX5W4SCI.js");
|
80
80
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
81
81
|
var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
|
82
82
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
83
83
|
var import_chunk_DYVL6P7F = require("./chunk-DYVL6P7F.js");
|
84
84
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
85
|
-
var
|
86
|
-
var
|
85
|
+
var import_chunk_K5W6WZ6E = require("./chunk-K5W6WZ6E.js");
|
86
|
+
var import_chunk_VVPSLVOR = require("./chunk-VVPSLVOR.js");
|
87
87
|
var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
|
88
88
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
89
89
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
@@ -120,7 +120,7 @@ var debug = (0, import_debug2.default)("prisma:format");
|
|
120
120
|
async function formatSchema({ schemas }, inputFormattingOptions) {
|
121
121
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
122
122
|
handleFormatPanic(() => {
|
123
|
-
|
123
|
+
import_chunk_HX5W4SCI.prismaSchemaWasm.debug_panic();
|
124
124
|
});
|
125
125
|
}
|
126
126
|
const defaultFormattingOptions = {
|
@@ -137,10 +137,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
|
|
137
137
|
const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
|
138
138
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
|
139
139
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
140
|
-
const lintDiagnostics2 = (0,
|
140
|
+
const lintDiagnostics2 = (0, import_chunk_KW6PI3YM.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
141
141
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
142
142
|
});
|
143
|
-
const lintWarnings = (0,
|
143
|
+
const lintWarnings = (0, import_chunk_KW6PI3YM.getLintWarningsAsText)(lintDiagnostics);
|
144
144
|
if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
|
145
145
|
console.warn(lintWarnings);
|
146
146
|
}
|
@@ -167,7 +167,7 @@ function handleFormatPanic(tryCb) {
|
|
167
167
|
}
|
168
168
|
}
|
169
169
|
function formatWasm(schema, documentFormattingParams) {
|
170
|
-
const formattedSchema =
|
170
|
+
const formattedSchema = import_chunk_HX5W4SCI.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
171
171
|
return formattedSchema;
|
172
172
|
}
|
173
173
|
var readFile = (0, import_util.promisify)(import_fs.default.readFile);
|
@@ -211,7 +211,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
211
211
|
}
|
212
212
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
213
213
|
debug2("Loading config");
|
214
|
-
const config = await (0,
|
214
|
+
const config = await (0, import_chunk_KZUP4IKB.getConfig)({
|
215
215
|
datamodel: files,
|
216
216
|
ignoreEnvVarErrors: true
|
217
217
|
});
|
@@ -303,7 +303,7 @@ function renderDefaultLookupError(error, cwd) {
|
|
303
303
|
return parts.join("\n");
|
304
304
|
}
|
305
305
|
async function getPrismaConfigFromPackageJson(cwd) {
|
306
|
-
const pkgJson = await (0,
|
306
|
+
const pkgJson = await (0, import_chunk_K5W6WZ6E.readPackageUp)({ cwd, normalize: false });
|
307
307
|
const prismaPropertyFromPkgJson = pkgJson?.packageJson?.prisma;
|
308
308
|
if (!pkgJson) {
|
309
309
|
return null;
|
@@ -421,7 +421,7 @@ async function processSchemaResult({
|
|
421
421
|
if (printLoadMessage) {
|
422
422
|
printSchemaLoadedMessage(loadedFromPathForLogMessages);
|
423
423
|
}
|
424
|
-
const configFromPsl = await (0,
|
424
|
+
const configFromPsl = await (0, import_chunk_KZUP4IKB.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
|
425
425
|
const primaryDatasource = configFromPsl.datasources.at(0);
|
426
426
|
const schemaRootDir = schemaResult.schemaRootDir || cwd;
|
427
427
|
return {
|
@@ -443,12 +443,12 @@ function primaryDatasourceDirectory(primaryDatasource) {
|
|
443
443
|
}
|
444
444
|
return null;
|
445
445
|
}
|
446
|
-
var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
446
|
+
var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_K5W6WZ6E.require_p_map)());
|
447
447
|
var debug3 = (0, import_debug5.default)("prisma:generator");
|
448
448
|
async function checkTypeScriptVersion() {
|
449
449
|
const minVersion = "4.1.0";
|
450
450
|
try {
|
451
|
-
const typescriptPath = await (0,
|
451
|
+
const typescriptPath = await (0, import_chunk_VVPSLVOR.resolvePkg)("typescript", {
|
452
452
|
basedir: process.cwd()
|
453
453
|
});
|
454
454
|
debug3("typescriptPath", typescriptPath);
|
@@ -471,7 +471,7 @@ async function checkTypeScriptVersion() {
|
|
471
471
|
}
|
472
472
|
var debug4 = (0, import_debug4.default)("prisma:generator");
|
473
473
|
async function prismaClientResolver(baseDir, version3) {
|
474
|
-
let prismaClientDir = await (0,
|
474
|
+
let prismaClientDir = await (0, import_chunk_EWWOTVR3.findPrismaClientDir)(baseDir);
|
475
475
|
debug4("baseDir", baseDir);
|
476
476
|
await checkTypeScriptVersion();
|
477
477
|
if (!prismaClientDir && !process.env.PRISMA_GENERATE_SKIP_AUTOINSTALL) {
|
@@ -497,7 +497,7 @@ async function prismaClientResolver(baseDir, version3) {
|
|
497
497
|
)
|
498
498
|
);
|
499
499
|
}
|
500
|
-
const prismaCliDir = await (0,
|
500
|
+
const prismaCliDir = await (0, import_chunk_VVPSLVOR.resolvePkg)("prisma", { basedir: baseDir });
|
501
501
|
if (process.platform === "win32" && await (0, import_chunk_GHHABGYW.isYarnUsed)(baseDir)) {
|
502
502
|
const hasCli = (s) => prismaCliDir !== void 0 ? s : "";
|
503
503
|
const missingCli = (s) => prismaCliDir === void 0 ? s : "";
|
@@ -512,10 +512,10 @@ async function prismaClientResolver(baseDir, version3) {
|
|
512
512
|
);
|
513
513
|
}
|
514
514
|
if (!prismaCliDir) {
|
515
|
-
await (0,
|
515
|
+
await (0, import_chunk_QGJH4P4N.runPackageCmd)(projectRoot, "add", `prisma@${version3 ?? "latest"}`, "-D", "--silent");
|
516
516
|
}
|
517
|
-
await (0,
|
518
|
-
prismaClientDir = await (0,
|
517
|
+
await (0, import_chunk_QGJH4P4N.runPackageCmd)(projectRoot, "add", `@prisma/client@${version3 ?? "latest"}`, "--silent");
|
518
|
+
prismaClientDir = await (0, import_chunk_EWWOTVR3.findPrismaClientDir)(import_path4.default.join(".", baseDir));
|
519
519
|
if (!prismaClientDir) {
|
520
520
|
throw new Error(
|
521
521
|
`Could not resolve @prisma/client despite the installation that we just tried.
|
@@ -591,7 +591,7 @@ async function getGenerators(options) {
|
|
591
591
|
}
|
592
592
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
|
593
593
|
const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
|
594
|
-
const dmmf = await (0,
|
594
|
+
const dmmf = await (0, import_chunk_TRBKQBUW.getDMMF)({
|
595
595
|
datamodel: schemaContext.schemaFiles,
|
596
596
|
previewFeatures
|
597
597
|
});
|
@@ -649,7 +649,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
|
|
649
649
|
fromEnvVar: null
|
650
650
|
};
|
651
651
|
}
|
652
|
-
const datamodel = (0,
|
652
|
+
const datamodel = (0, import_chunk_R6H7JFKF.mergeSchemas)({ schemas: schemaContext.schemaFiles });
|
653
653
|
const envPaths = await getEnvPaths(schemaContext.schemaPath, { cwd: generator.output.value });
|
654
654
|
const options2 = {
|
655
655
|
datamodel,
|
@@ -717,7 +717,7 @@ generator gen {
|
|
717
717
|
}
|
718
718
|
}
|
719
719
|
debug5("neededVersions", JSON.stringify(neededVersions, null, 2));
|
720
|
-
const binaryPathsByVersion = await (0,
|
720
|
+
const binaryPathsByVersion = await (0, import_chunk_EPXBOIA5.getBinaryPathsByVersion)({
|
721
721
|
neededVersions,
|
722
722
|
binaryTarget,
|
723
723
|
version,
|
@@ -733,7 +733,7 @@ generator gen {
|
|
733
733
|
debug5({ generatorBinaryPaths });
|
734
734
|
generator.setBinaryPaths(generatorBinaryPaths);
|
735
735
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
736
|
-
const customDmmf = await (0,
|
736
|
+
const customDmmf = await (0, import_chunk_TRBKQBUW.getDMMF)({
|
737
737
|
datamodel: schemaContext.schemaFiles,
|
738
738
|
previewFeatures
|
739
739
|
});
|
@@ -882,9 +882,9 @@ function pathExistsSync(path9) {
|
|
882
882
|
}
|
883
883
|
var findUpStop = Symbol("findUpStop");
|
884
884
|
function findUpMultipleSync(name, options2 = {}) {
|
885
|
-
let directory = import_node_path.default.resolve((0,
|
885
|
+
let directory = import_node_path.default.resolve((0, import_chunk_K5W6WZ6E.toPath)(options2.cwd) ?? "");
|
886
886
|
const { root } = import_node_path.default.parse(directory);
|
887
|
-
const stopAt = import_node_path.default.resolve(directory, (0,
|
887
|
+
const stopAt = import_node_path.default.resolve(directory, (0, import_chunk_K5W6WZ6E.toPath)(options2.stopAt) ?? root);
|
888
888
|
const limit = options2.limit ?? Number.POSITIVE_INFINITY;
|
889
889
|
const paths = [name].flat();
|
890
890
|
const runMatcher = (locateOptions) => {
|
@@ -1008,7 +1008,7 @@ function checkUnsupportedDataProxy({
|
|
1008
1008
|
}
|
1009
1009
|
}
|
1010
1010
|
if (!schemaContext2?.primaryDatasource) return;
|
1011
|
-
const url = (0,
|
1011
|
+
const url = (0, import_chunk_KZUP4IKB.resolveUrl)((0, import_chunk_KZUP4IKB.getEffectiveUrl)(schemaContext2.primaryDatasource));
|
1012
1012
|
if (url?.startsWith("prisma://")) {
|
1013
1013
|
throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
|
1014
1014
|
}
|
@@ -26,15 +26,15 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_YR5KNFKN_exports = {};
|
30
|
+
__export(chunk_YR5KNFKN_exports, {
|
31
31
|
sendPanic: () => sendPanic
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
33
|
+
module.exports = __toCommonJS(chunk_YR5KNFKN_exports);
|
34
34
|
var import_chunk_KDHESRKE = require("./chunk-KDHESRKE.js");
|
35
35
|
var import_chunk_ZSINRHD4 = require("./chunk-ZSINRHD4.js");
|
36
36
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
37
|
-
var
|
37
|
+
var import_chunk_5AI4FIZ3 = require("./chunk-5AI4FIZ3.js");
|
38
38
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
39
39
|
var import_get_platform = require("@prisma/get-platform");
|
40
40
|
var import_os = __toESM2(require("os"));
|
@@ -1809,8 +1809,8 @@ async function sendPanic({
|
|
1809
1809
|
sqlDump: void 0,
|
1810
1810
|
dbVersion
|
1811
1811
|
};
|
1812
|
-
const signedUrl = await (0,
|
1813
|
-
const id = await (0,
|
1812
|
+
const signedUrl = await (0, import_chunk_5AI4FIZ3.createErrorReport)(params);
|
1813
|
+
const id = await (0, import_chunk_5AI4FIZ3.makeErrorReportCompleted)(signedUrl);
|
1814
1814
|
return id;
|
1815
1815
|
}
|
1816
1816
|
function getCommand() {
|