@prisma/internals 6.6.0-dev.4 → 6.6.0-dev.5
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-BMJOVREG.js → chunk-AOEDMVV5.js} +8 -8
- package/dist/{chunk-BVKTPL5A.js → chunk-CIH2HX7R.js} +5 -5
- package/dist/{chunk-VRBR7UXP.js → chunk-CW5MRSDF.js} +8 -8
- package/dist/{chunk-SNAZMEHK.js → chunk-DARNQRUA.js} +5 -5
- package/dist/{chunk-RLDUMTXD.js → chunk-EM3Z5VR6.js} +8 -8
- package/dist/{chunk-VJRLBRVK.js → chunk-EOWYER24.js} +5 -5
- package/dist/{chunk-M3NNYQXQ.js → chunk-EPUNJXBL.js} +19 -19
- package/dist/{chunk-W5PGH43I.js → chunk-IPWA5XTA.js} +19 -19
- package/dist/{chunk-QXWVKT6L.js → chunk-L3462R5V.js} +7 -7
- package/dist/{chunk-FIWY5LGI.js → chunk-LG5IW4IV.js} +4 -4
- package/dist/{chunk-3J24J2TX.js → chunk-RK6MQ2H5.js} +5 -5
- package/dist/{chunk-5CIZXUQR.js → chunk-SC7OJHGV.js} +8 -8
- package/dist/{chunk-45HF3I7B.js → chunk-SNL3TWM6.js} +5 -5
- package/dist/{chunk-PJYVXCB6.js → chunk-SNY3IPJ5.js} +5 -5
- package/dist/{chunk-C4HY6GXT.js → chunk-TPIOJZAZ.js} +5 -5
- package/dist/{chunk-IPG5ZT4T.js → chunk-U2L42IOL.js} +8 -8
- package/dist/{chunk-6AAPRN4H.js → chunk-U6LD37KW.js} +7 -7
- package/dist/{chunk-RUIW2PYP.js → chunk-X5YSMVVH.js} +5 -5
- package/dist/{chunk-WUDS3ABI.js → chunk-XGDTIBRB.js} +8 -8
- package/dist/{chunk-A3N2Q2GK.js → chunk-YG7D272D.js} +5 -5
- package/dist/cli/checkUnsupportedDataProxy.js +12 -12
- package/dist/cli/getSchema.js +16 -16
- 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 +9 -9
@@ -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_AOEDMVV5_exports = {};
|
30
|
+
__export(chunk_AOEDMVV5_exports, {
|
31
31
|
ValidateError: () => ValidateError,
|
32
32
|
validate: () => validate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_AOEDMVV5_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_SNY3IPJ5 = require("./chunk-SNY3IPJ5.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_EOWYER24 = require("./chunk-EOWYER24.js");
|
42
42
|
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.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_SNY3IPJ5.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_EOWYER24.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_EOWYER24.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_CIH2HX7R_exports = {};
|
20
|
+
__export(chunk_CIH2HX7R_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_CIH2HX7R_exports);
|
24
|
+
var import_chunk_RK6MQ2H5 = require("./chunk-RK6MQ2H5.js");
|
25
|
+
var packageJson = (0, import_chunk_RK6MQ2H5.require_package)();
|
26
26
|
var version = packageJson.version;
|
@@ -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_CW5MRSDF_exports = {};
|
30
|
+
__export(chunk_CW5MRSDF_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_CW5MRSDF_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_SNY3IPJ5 = require("./chunk-SNY3IPJ5.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_EOWYER24 = require("./chunk-EOWYER24.js");
|
45
45
|
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.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_SNY3IPJ5.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_EOWYER24.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_EOWYER24.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_DARNQRUA_exports = {};
|
30
|
+
__export(chunk_DARNQRUA_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_DARNQRUA_exports);
|
36
|
+
var import_chunk_RK6MQ2H5 = require("./chunk-RK6MQ2H5.js");
|
37
37
|
var import_chunk_BPZFDGKN = require("./chunk-BPZFDGKN.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_RK6MQ2H5.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_BPZFDGKN.WasmPanicRegistry();
|
@@ -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_EM3Z5VR6_exports = {};
|
30
|
+
__export(chunk_EM3Z5VR6_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_EM3Z5VR6_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_SNY3IPJ5 = require("./chunk-SNY3IPJ5.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_EOWYER24 = require("./chunk-EOWYER24.js");
|
41
41
|
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.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_SNY3IPJ5.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_EOWYER24.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_EOWYER24.prismaSchemaWasm.get_dmmf(params);
|
100
100
|
return data;
|
101
101
|
},
|
102
102
|
(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_EOWYER24_exports = {};
|
30
|
+
__export(chunk_EOWYER24_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_EOWYER24_exports);
|
36
|
+
var import_chunk_LG5IW4IV = require("./chunk-LG5IW4IV.js");
|
37
37
|
var import_chunk_BPZFDGKN = require("./chunk-BPZFDGKN.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_LG5IW4IV.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_BPZFDGKN.WasmPanicRegistry();
|
@@ -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_EPUNJXBL_exports = {};
|
30
|
+
__export2(chunk_EPUNJXBL_exports, {
|
31
31
|
checkTypeScriptVersion: () => checkTypeScriptVersion,
|
32
32
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
33
33
|
debug: () => debug5,
|
@@ -54,7 +54,7 @@ __export2(chunk_M3NNYQXQ_exports, {
|
|
54
54
|
sendPanic: () => sendPanic,
|
55
55
|
skipIndex: () => skipIndex
|
56
56
|
});
|
57
|
-
module.exports = __toCommonJS2(
|
57
|
+
module.exports = __toCommonJS2(chunk_EPUNJXBL_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");
|
@@ -78,13 +78,13 @@ var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
|
|
78
78
|
var import_chunk_5SN5JBT2 = require("./chunk-5SN5JBT2.js");
|
79
79
|
var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
|
80
80
|
var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
|
81
|
-
var
|
82
|
-
var
|
83
|
-
var
|
84
|
-
var
|
81
|
+
var import_chunk_YG7D272D = require("./chunk-YG7D272D.js");
|
82
|
+
var import_chunk_L3462R5V = require("./chunk-L3462R5V.js");
|
83
|
+
var import_chunk_CW5MRSDF = require("./chunk-CW5MRSDF.js");
|
84
|
+
var import_chunk_EM3Z5VR6 = require("./chunk-EM3Z5VR6.js");
|
85
85
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
86
86
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
87
|
-
var
|
87
|
+
var import_chunk_EOWYER24 = require("./chunk-EOWYER24.js");
|
88
88
|
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
|
89
89
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
90
90
|
var import_chunk_GXDYIY4M = require("./chunk-GXDYIY4M.js");
|
@@ -14530,7 +14530,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
14530
14530
|
}
|
14531
14531
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
14532
14532
|
debug2("Loading config");
|
14533
|
-
const config2 = await (0,
|
14533
|
+
const config2 = await (0, import_chunk_CW5MRSDF.getConfig)({
|
14534
14534
|
datamodel: files,
|
14535
14535
|
ignoreEnvVarErrors: true
|
14536
14536
|
});
|
@@ -14856,8 +14856,8 @@ async function checkUnsupportedDataProxyMessage(command, args, schemaPathFromCon
|
|
14856
14856
|
if (argName.includes("schema")) {
|
14857
14857
|
await loadEnvFile({ schemaPath: argValue, printMessage: false, config: (0, import_config.defaultTestConfig)() });
|
14858
14858
|
const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
|
14859
|
-
const config2 = await (0,
|
14860
|
-
const url = (0,
|
14859
|
+
const config2 = await (0, import_chunk_CW5MRSDF.getConfig)({ datamodel, ignoreEnvVarErrors: true });
|
14860
|
+
const url = (0, import_chunk_CW5MRSDF.resolveUrl)((0, import_chunk_CW5MRSDF.getEffectiveUrl)(config2.datasources[0]));
|
14861
14861
|
if (url?.startsWith("prisma://")) {
|
14862
14862
|
return forbiddenCmdWithDataProxyFlagMessage(command);
|
14863
14863
|
}
|
@@ -15030,7 +15030,7 @@ async function getGenerators(options) {
|
|
15030
15030
|
prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
|
15031
15031
|
}
|
15032
15032
|
}
|
15033
|
-
const config = await (0,
|
15033
|
+
const config = await (0, import_chunk_CW5MRSDF.getConfig)({
|
15034
15034
|
datamodel: schemas,
|
15035
15035
|
datamodelPath: schemaPath,
|
15036
15036
|
prismaPath,
|
@@ -15041,7 +15041,7 @@ async function getGenerators(options) {
|
|
15041
15041
|
}
|
15042
15042
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
|
15043
15043
|
const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
|
15044
|
-
const dmmf = await (0,
|
15044
|
+
const dmmf = await (0, import_chunk_EM3Z5VR6.getDMMF)({
|
15045
15045
|
datamodel: schemas,
|
15046
15046
|
datamodelPath: schemaPath,
|
15047
15047
|
prismaPath,
|
@@ -15102,7 +15102,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
|
|
15102
15102
|
fromEnvVar: "null"
|
15103
15103
|
};
|
15104
15104
|
}
|
15105
|
-
const datamodel = (0,
|
15105
|
+
const datamodel = (0, import_chunk_L3462R5V.mergeSchemas)({ schemas });
|
15106
15106
|
const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
|
15107
15107
|
const options2 = {
|
15108
15108
|
datamodel,
|
@@ -15185,7 +15185,7 @@ generator gen {
|
|
15185
15185
|
debug6({ generatorBinaryPaths });
|
15186
15186
|
generator.setBinaryPaths(generatorBinaryPaths);
|
15187
15187
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
15188
|
-
const customDmmf = await (0,
|
15188
|
+
const customDmmf = await (0, import_chunk_EM3Z5VR6.getDMMF)({
|
15189
15189
|
datamodel: schemas,
|
15190
15190
|
datamodelPath: schemaPath,
|
15191
15191
|
prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
|
@@ -15483,7 +15483,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15483
15483
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
15484
15484
|
handleFormatPanic(
|
15485
15485
|
() => {
|
15486
|
-
|
15486
|
+
import_chunk_EOWYER24.prismaSchemaWasm.debug_panic();
|
15487
15487
|
},
|
15488
15488
|
{ schemas: schemas2 }
|
15489
15489
|
);
|
@@ -15503,12 +15503,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15503
15503
|
() => {
|
15504
15504
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
|
15505
15505
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
15506
|
-
const lintDiagnostics2 = (0,
|
15506
|
+
const lintDiagnostics2 = (0, import_chunk_YG7D272D.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
15507
15507
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
15508
15508
|
},
|
15509
15509
|
{ schemas: schemas2 }
|
15510
15510
|
);
|
15511
|
-
const lintWarnings = (0,
|
15511
|
+
const lintWarnings = (0, import_chunk_YG7D272D.getLintWarningsAsText)(lintDiagnostics);
|
15512
15512
|
if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
|
15513
15513
|
console.warn(lintWarnings);
|
15514
15514
|
}
|
@@ -15538,7 +15538,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
|
|
15538
15538
|
}
|
15539
15539
|
}
|
15540
15540
|
function formatWasm(schema, documentFormattingParams) {
|
15541
|
-
const formattedSchema =
|
15541
|
+
const formattedSchema = import_chunk_EOWYER24.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
15542
15542
|
return formattedSchema;
|
15543
15543
|
}
|
15544
15544
|
/*! Bundled license information:
|
@@ -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_IPWA5XTA_exports = {};
|
30
|
+
__export2(chunk_IPWA5XTA_exports, {
|
31
31
|
checkTypeScriptVersion: () => checkTypeScriptVersion,
|
32
32
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
33
33
|
debug: () => debug5,
|
@@ -54,7 +54,7 @@ __export2(chunk_W5PGH43I_exports, {
|
|
54
54
|
sendPanic: () => sendPanic,
|
55
55
|
skipIndex: () => skipIndex
|
56
56
|
});
|
57
|
-
module.exports = __toCommonJS2(
|
57
|
+
module.exports = __toCommonJS2(chunk_IPWA5XTA_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");
|
@@ -78,13 +78,13 @@ var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
|
|
78
78
|
var import_chunk_5SN5JBT2 = require("./chunk-5SN5JBT2.js");
|
79
79
|
var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
|
80
80
|
var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
|
81
|
-
var
|
82
|
-
var
|
83
|
-
var
|
84
|
-
var
|
81
|
+
var import_chunk_TPIOJZAZ = require("./chunk-TPIOJZAZ.js");
|
82
|
+
var import_chunk_U6LD37KW = require("./chunk-U6LD37KW.js");
|
83
|
+
var import_chunk_SC7OJHGV = require("./chunk-SC7OJHGV.js");
|
84
|
+
var import_chunk_XGDTIBRB = require("./chunk-XGDTIBRB.js");
|
85
85
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
86
86
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
87
|
-
var
|
87
|
+
var import_chunk_DARNQRUA = require("./chunk-DARNQRUA.js");
|
88
88
|
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
|
89
89
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
90
90
|
var import_chunk_GXDYIY4M = require("./chunk-GXDYIY4M.js");
|
@@ -14530,7 +14530,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
14530
14530
|
}
|
14531
14531
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
14532
14532
|
debug2("Loading config");
|
14533
|
-
const config2 = await (0,
|
14533
|
+
const config2 = await (0, import_chunk_SC7OJHGV.getConfig)({
|
14534
14534
|
datamodel: files,
|
14535
14535
|
ignoreEnvVarErrors: true
|
14536
14536
|
});
|
@@ -14856,8 +14856,8 @@ async function checkUnsupportedDataProxyMessage(command, args, schemaPathFromCon
|
|
14856
14856
|
if (argName.includes("schema")) {
|
14857
14857
|
await loadEnvFile({ schemaPath: argValue, printMessage: false, config: (0, import_config.defaultTestConfig)() });
|
14858
14858
|
const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
|
14859
|
-
const config2 = await (0,
|
14860
|
-
const url = (0,
|
14859
|
+
const config2 = await (0, import_chunk_SC7OJHGV.getConfig)({ datamodel, ignoreEnvVarErrors: true });
|
14860
|
+
const url = (0, import_chunk_SC7OJHGV.resolveUrl)((0, import_chunk_SC7OJHGV.getEffectiveUrl)(config2.datasources[0]));
|
14861
14861
|
if (url?.startsWith("prisma://")) {
|
14862
14862
|
return forbiddenCmdWithDataProxyFlagMessage(command);
|
14863
14863
|
}
|
@@ -15030,7 +15030,7 @@ async function getGenerators(options) {
|
|
15030
15030
|
prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
|
15031
15031
|
}
|
15032
15032
|
}
|
15033
|
-
const config = await (0,
|
15033
|
+
const config = await (0, import_chunk_SC7OJHGV.getConfig)({
|
15034
15034
|
datamodel: schemas,
|
15035
15035
|
datamodelPath: schemaPath,
|
15036
15036
|
prismaPath,
|
@@ -15041,7 +15041,7 @@ async function getGenerators(options) {
|
|
15041
15041
|
}
|
15042
15042
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
|
15043
15043
|
const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
|
15044
|
-
const dmmf = await (0,
|
15044
|
+
const dmmf = await (0, import_chunk_XGDTIBRB.getDMMF)({
|
15045
15045
|
datamodel: schemas,
|
15046
15046
|
datamodelPath: schemaPath,
|
15047
15047
|
prismaPath,
|
@@ -15102,7 +15102,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
|
|
15102
15102
|
fromEnvVar: "null"
|
15103
15103
|
};
|
15104
15104
|
}
|
15105
|
-
const datamodel = (0,
|
15105
|
+
const datamodel = (0, import_chunk_U6LD37KW.mergeSchemas)({ schemas });
|
15106
15106
|
const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
|
15107
15107
|
const options2 = {
|
15108
15108
|
datamodel,
|
@@ -15185,7 +15185,7 @@ generator gen {
|
|
15185
15185
|
debug6({ generatorBinaryPaths });
|
15186
15186
|
generator.setBinaryPaths(generatorBinaryPaths);
|
15187
15187
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
15188
|
-
const customDmmf = await (0,
|
15188
|
+
const customDmmf = await (0, import_chunk_XGDTIBRB.getDMMF)({
|
15189
15189
|
datamodel: schemas,
|
15190
15190
|
datamodelPath: schemaPath,
|
15191
15191
|
prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
|
@@ -15483,7 +15483,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15483
15483
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
15484
15484
|
handleFormatPanic(
|
15485
15485
|
() => {
|
15486
|
-
|
15486
|
+
import_chunk_DARNQRUA.prismaSchemaWasm.debug_panic();
|
15487
15487
|
},
|
15488
15488
|
{ schemas: schemas2 }
|
15489
15489
|
);
|
@@ -15503,12 +15503,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15503
15503
|
() => {
|
15504
15504
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
|
15505
15505
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
15506
|
-
const lintDiagnostics2 = (0,
|
15506
|
+
const lintDiagnostics2 = (0, import_chunk_TPIOJZAZ.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
15507
15507
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
15508
15508
|
},
|
15509
15509
|
{ schemas: schemas2 }
|
15510
15510
|
);
|
15511
|
-
const lintWarnings = (0,
|
15511
|
+
const lintWarnings = (0, import_chunk_TPIOJZAZ.getLintWarningsAsText)(lintDiagnostics);
|
15512
15512
|
if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
|
15513
15513
|
console.warn(lintWarnings);
|
15514
15514
|
}
|
@@ -15538,7 +15538,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
|
|
15538
15538
|
}
|
15539
15539
|
}
|
15540
15540
|
function formatWasm(schema, documentFormattingParams) {
|
15541
|
-
const formattedSchema =
|
15541
|
+
const formattedSchema = import_chunk_DARNQRUA.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
15542
15542
|
return formattedSchema;
|
15543
15543
|
}
|
15544
15544
|
/*! 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_L3462R5V_exports = {};
|
30
|
+
__export(chunk_L3462R5V_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_L3462R5V_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_SNY3IPJ5 = require("./chunk-SNY3IPJ5.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_EOWYER24 = require("./chunk-EOWYER24.js");
|
42
42
|
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.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_SNY3IPJ5.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_EOWYER24.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_LG5IW4IV_exports = {};
|
20
|
+
__export(chunk_LG5IW4IV_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_LG5IW4IV_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": "6.
|
114
|
+
"@prisma/prisma-schema-wasm": "6.6.0-1.1553356525b8e28a58f362554654043cba99af2f",
|
115
115
|
"@prisma/schema-files-loader": "workspace:*",
|
116
116
|
arg: "5.0.2",
|
117
117
|
prompts: "2.4.2"
|
@@ -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_RK6MQ2H5_exports = {};
|
20
|
+
__export(chunk_RK6MQ2H5_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_RK6MQ2H5_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.6.0-dev.
|
29
|
+
version: "6.6.0-dev.5",
|
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": "6.
|
114
|
+
"@prisma/prisma-schema-wasm": "6.6.0-1.1553356525b8e28a58f362554654043cba99af2f",
|
115
115
|
"@prisma/schema-files-loader": "workspace:*",
|
116
116
|
arg: "5.0.2",
|
117
117
|
prompts: "2.4.2"
|
@@ -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_SC7OJHGV_exports = {};
|
30
|
+
__export(chunk_SC7OJHGV_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_SC7OJHGV_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_SNL3TWM6 = require("./chunk-SNL3TWM6.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_DARNQRUA = require("./chunk-DARNQRUA.js");
|
45
45
|
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.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_SNL3TWM6.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_DARNQRUA.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_DARNQRUA.prismaSchemaWasm.get_config(params);
|
102
102
|
return data;
|
103
103
|
},
|
104
104
|
(e) => ({
|