@prisma/internals 6.4.0-dev.31 → 6.4.0-dev.32
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-6XZSV5XP.js → chunk-6ZNNLSVJ.js} +5 -5
- package/dist/{chunk-4PXVL67N.js → chunk-C2CQBWPQ.js} +8 -8
- package/dist/{chunk-O4IKSAYE.js → chunk-CTGWR7A4.js} +5 -5
- package/dist/{chunk-APUAZ6ZA.js → chunk-EDC647ZW.js} +5 -5
- package/dist/{chunk-3LKAT4H2.js → chunk-EETBEYTC.js} +4 -4
- package/dist/{chunk-KVMY4LOZ.js → chunk-EL4QWYNH.js} +5 -5
- package/dist/{chunk-Y4MLCAVH.js → chunk-GXF7PBSL.js} +8 -8
- package/dist/{chunk-3QH6EYBS.js → chunk-IEQWFMHI.js} +5 -5
- package/dist/{chunk-XXXROVP2.js → chunk-JQPWIC6P.js} +5 -5
- package/dist/{chunk-UR44SCXD.js → chunk-K6DKFDA3.js} +5 -5
- package/dist/{chunk-W6WI5TT5.js → chunk-LV3TO4Y5.js} +7 -7
- package/dist/{chunk-LD4FJTT5.js → chunk-O3K4GOJY.js} +5 -5
- package/dist/{chunk-LX4VUFTM.js → chunk-Q3EV6WHE.js} +19 -19
- package/dist/{chunk-6525EYZM.js → chunk-QI4C3H4P.js} +19 -19
- package/dist/{chunk-IPHN6L3Y.js → chunk-RLOJOBWQ.js} +7 -7
- package/dist/{chunk-KI33YZOR.js → chunk-RSOSUXQL.js} +8 -8
- package/dist/{chunk-NXGX5INP.js → chunk-VCMNFROT.js} +5 -5
- package/dist/{chunk-B3LWG2X7.js → chunk-WWXHFRJV.js} +8 -8
- package/dist/{chunk-CPVNPQM2.js → chunk-X4EIUERE.js} +8 -8
- package/dist/{chunk-76Y64FNY.js → chunk-Y4HB3OTO.js} +8 -8
- package/dist/cli/checkUnsupportedDataProxy.js +12 -12
- package/dist/cli/getSchema.js +17 -17
- package/dist/cli/hashes.js +12 -12
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +11 -11
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +20 -20
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +7 -7
- package/dist/engine-commands/validate.js +7 -7
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +11 -11
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +11 -11
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +12 -12
- package/dist/get-generators/getGenerators.js +14 -14
- package/dist/index.js +39 -39
- package/dist/sendPanic.js +11 -11
- package/dist/utils/getEnvPaths.js +11 -11
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +11 -11
- package/dist/utils/loadEnvFile.js +11 -11
- package/dist/wasm.js +4 -4
- package/package.json +8 -8
@@ -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_6ZNNLSVJ_exports = {};
|
20
|
+
__export(chunk_6ZNNLSVJ_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_6ZNNLSVJ_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.4.0-dev.
|
29
|
+
version: "6.4.0-dev.32",
|
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.4.0-
|
114
|
+
"@prisma/prisma-schema-wasm": "6.4.0-18.5e088a5f45c5434c58a3fd0e8f1d2ba0e45b2727",
|
115
115
|
"@prisma/schema-files-loader": "workspace:*",
|
116
116
|
arg: "5.0.2",
|
117
117
|
prompts: "2.4.2"
|
@@ -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_C2CQBWPQ_exports = {};
|
30
|
+
__export(chunk_C2CQBWPQ_exports, {
|
31
31
|
ValidateError: () => ValidateError,
|
32
32
|
validate: () => validate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_C2CQBWPQ_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_O3K4GOJY = require("./chunk-O3K4GOJY.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_CTGWR7A4 = require("./chunk-CTGWR7A4.js");
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
43
43
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: validate]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_O3K4GOJY.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_CTGWR7A4.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_CTGWR7A4.prismaSchemaWasm.validate(params);
|
82
82
|
},
|
83
83
|
(e) => ({
|
84
84
|
type: "wasm-error",
|
@@ -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_CTGWR7A4_exports = {};
|
30
|
+
__export(chunk_CTGWR7A4_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_CTGWR7A4_exports);
|
36
|
+
var import_chunk_EETBEYTC = require("./chunk-EETBEYTC.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_EETBEYTC.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
|
@@ -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_EDC647ZW_exports = {};
|
20
|
+
__export(chunk_EDC647ZW_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_EDC647ZW_exports);
|
24
|
+
var import_chunk_VCMNFROT = require("./chunk-VCMNFROT.js");
|
25
25
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
26
26
|
function addVersionDetailsToErrorMessage(message) {
|
27
|
-
const rows = [["Prisma CLI Version",
|
27
|
+
const rows = [["Prisma CLI Version", import_chunk_VCMNFROT.version]];
|
28
28
|
return `${message}
|
29
29
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
@@ -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_EETBEYTC_exports = {};
|
20
|
+
__export(chunk_EETBEYTC_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_EETBEYTC_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.4.0-
|
114
|
+
"@prisma/prisma-schema-wasm": "6.4.0-18.5e088a5f45c5434c58a3fd0e8f1d2ba0e45b2727",
|
115
115
|
"@prisma/schema-files-loader": "workspace:*",
|
116
116
|
arg: "5.0.2",
|
117
117
|
prompts: "2.4.2"
|
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
return to;
|
17
17
|
};
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
var
|
20
|
-
__export(
|
19
|
+
var chunk_EL4QWYNH_exports = {};
|
20
|
+
__export(chunk_EL4QWYNH_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_EL4QWYNH_exports);
|
24
|
+
var import_chunk_EETBEYTC = require("./chunk-EETBEYTC.js");
|
25
|
+
var packageJson = (0, import_chunk_EETBEYTC.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_GXF7PBSL_exports = {};
|
30
|
+
__export(chunk_GXF7PBSL_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_GXF7PBSL_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_O3K4GOJY = require("./chunk-O3K4GOJY.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_CTGWR7A4 = require("./chunk-CTGWR7A4.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_O3K4GOJY.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_CTGWR7A4.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_CTGWR7A4.prismaSchemaWasm.get_dmmf(params);
|
100
100
|
return data;
|
101
101
|
},
|
102
102
|
(e) => ({
|
@@ -16,21 +16,21 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
return to;
|
17
17
|
};
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
var
|
20
|
-
__export(
|
19
|
+
var chunk_IEQWFMHI_exports = {};
|
20
|
+
__export(chunk_IEQWFMHI_exports, {
|
21
21
|
getLintWarnings: () => getLintWarnings,
|
22
22
|
getLintWarningsAsText: () => getLintWarningsAsText,
|
23
23
|
handleLintPanic: () => handleLintPanic,
|
24
24
|
lintSchema: () => lintSchema,
|
25
25
|
warningToString: () => warningToString
|
26
26
|
});
|
27
|
-
module.exports = __toCommonJS(
|
27
|
+
module.exports = __toCommonJS(chunk_IEQWFMHI_exports);
|
28
28
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
29
|
-
var
|
29
|
+
var import_chunk_CTGWR7A4 = require("./chunk-CTGWR7A4.js");
|
30
30
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
31
31
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
32
32
|
function lintSchema({ schemas }) {
|
33
|
-
const lintResult =
|
33
|
+
const lintResult = import_chunk_CTGWR7A4.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
34
34
|
const lintDiagnostics = JSON.parse(lintResult);
|
35
35
|
return lintDiagnostics;
|
36
36
|
}
|
@@ -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_JQPWIC6P_exports = {};
|
30
|
+
__export(chunk_JQPWIC6P_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_JQPWIC6P_exports);
|
36
|
+
var import_chunk_6ZNNLSVJ = require("./chunk-6ZNNLSVJ.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_6ZNNLSVJ.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
|
@@ -16,21 +16,21 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
return to;
|
17
17
|
};
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
var
|
20
|
-
__export(
|
19
|
+
var chunk_K6DKFDA3_exports = {};
|
20
|
+
__export(chunk_K6DKFDA3_exports, {
|
21
21
|
getLintWarnings: () => getLintWarnings,
|
22
22
|
getLintWarningsAsText: () => getLintWarningsAsText,
|
23
23
|
handleLintPanic: () => handleLintPanic,
|
24
24
|
lintSchema: () => lintSchema,
|
25
25
|
warningToString: () => warningToString
|
26
26
|
});
|
27
|
-
module.exports = __toCommonJS(
|
27
|
+
module.exports = __toCommonJS(chunk_K6DKFDA3_exports);
|
28
28
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
29
|
-
var
|
29
|
+
var import_chunk_JQPWIC6P = require("./chunk-JQPWIC6P.js");
|
30
30
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
31
31
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
32
32
|
function lintSchema({ schemas }) {
|
33
|
-
const lintResult =
|
33
|
+
const lintResult = import_chunk_JQPWIC6P.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
34
34
|
const lintDiagnostics = JSON.parse(lintResult);
|
35
35
|
return lintDiagnostics;
|
36
36
|
}
|
@@ -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_LV3TO4Y5_exports = {};
|
30
|
+
__export(chunk_LV3TO4Y5_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_LV3TO4Y5_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_O3K4GOJY = require("./chunk-O3K4GOJY.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_CTGWR7A4 = require("./chunk-CTGWR7A4.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_O3K4GOJY.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_CTGWR7A4.prismaSchemaWasm.merge_schemas(params);
|
77
77
|
},
|
78
78
|
(e) => ({
|
79
79
|
type: "wasm-error",
|
@@ -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_O3K4GOJY_exports = {};
|
20
|
+
__export(chunk_O3K4GOJY_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_O3K4GOJY_exports);
|
24
|
+
var import_chunk_EL4QWYNH = require("./chunk-EL4QWYNH.js");
|
25
25
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
26
26
|
function addVersionDetailsToErrorMessage(message) {
|
27
|
-
const rows = [["Prisma CLI Version",
|
27
|
+
const rows = [["Prisma CLI Version", import_chunk_EL4QWYNH.version]];
|
28
28
|
return `${message}
|
29
29
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export2(
|
29
|
+
var chunk_Q3EV6WHE_exports = {};
|
30
|
+
__export2(chunk_Q3EV6WHE_exports, {
|
31
31
|
checkTypeScriptVersion: () => checkTypeScriptVersion,
|
32
32
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
33
33
|
debug: () => debug5,
|
@@ -55,7 +55,7 @@ __export2(chunk_LX4VUFTM_exports, {
|
|
55
55
|
sendPanic: () => sendPanic,
|
56
56
|
skipIndex: () => skipIndex
|
57
57
|
});
|
58
|
-
module.exports = __toCommonJS2(
|
58
|
+
module.exports = __toCommonJS2(chunk_Q3EV6WHE_exports);
|
59
59
|
var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
|
60
60
|
var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
|
61
61
|
var import_chunk_PIPE5DSU = require("./chunk-PIPE5DSU.js");
|
@@ -80,14 +80,14 @@ var import_chunk_AC6EAR56 = require("./chunk-AC6EAR56.js");
|
|
80
80
|
var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
|
81
81
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
82
82
|
var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
|
83
|
-
var
|
84
|
-
var
|
83
|
+
var import_chunk_IEQWFMHI = require("./chunk-IEQWFMHI.js");
|
84
|
+
var import_chunk_LV3TO4Y5 = require("./chunk-LV3TO4Y5.js");
|
85
85
|
var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
|
86
|
-
var
|
87
|
-
var
|
86
|
+
var import_chunk_WWXHFRJV = require("./chunk-WWXHFRJV.js");
|
87
|
+
var import_chunk_GXF7PBSL = require("./chunk-GXF7PBSL.js");
|
88
88
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
89
89
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
90
|
-
var
|
90
|
+
var import_chunk_CTGWR7A4 = require("./chunk-CTGWR7A4.js");
|
91
91
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
92
92
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
93
93
|
var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
|
@@ -14751,7 +14751,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
14751
14751
|
}
|
14752
14752
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
14753
14753
|
debug2("Loading config");
|
14754
|
-
const config2 = await (0,
|
14754
|
+
const config2 = await (0, import_chunk_WWXHFRJV.getConfig)({
|
14755
14755
|
datamodel: files,
|
14756
14756
|
ignoreEnvVarErrors: true
|
14757
14757
|
});
|
@@ -15059,8 +15059,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
|
|
15059
15059
|
if (argName.includes("schema")) {
|
15060
15060
|
await loadEnvFile({ schemaPath: argValue, printMessage: false });
|
15061
15061
|
const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
|
15062
|
-
const config2 = await (0,
|
15063
|
-
const url = (0,
|
15062
|
+
const config2 = await (0, import_chunk_WWXHFRJV.getConfig)({ datamodel, ignoreEnvVarErrors: true });
|
15063
|
+
const url = (0, import_chunk_WWXHFRJV.resolveUrl)((0, import_chunk_WWXHFRJV.getEffectiveUrl)(config2.datasources[0]));
|
15064
15064
|
if (url?.startsWith("prisma://")) {
|
15065
15065
|
return forbiddenCmdWithDataProxyFlagMessage(command);
|
15066
15066
|
}
|
@@ -15232,7 +15232,7 @@ async function getGenerators(options) {
|
|
15232
15232
|
prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
|
15233
15233
|
}
|
15234
15234
|
}
|
15235
|
-
const config = await (0,
|
15235
|
+
const config = await (0, import_chunk_WWXHFRJV.getConfig)({
|
15236
15236
|
datamodel: schemas,
|
15237
15237
|
datamodelPath: schemaPath,
|
15238
15238
|
prismaPath,
|
@@ -15243,7 +15243,7 @@ async function getGenerators(options) {
|
|
15243
15243
|
}
|
15244
15244
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
|
15245
15245
|
const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
|
15246
|
-
const dmmf = await (0,
|
15246
|
+
const dmmf = await (0, import_chunk_GXF7PBSL.getDMMF)({
|
15247
15247
|
datamodel: schemas,
|
15248
15248
|
datamodelPath: schemaPath,
|
15249
15249
|
prismaPath,
|
@@ -15304,7 +15304,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
|
|
15304
15304
|
fromEnvVar: "null"
|
15305
15305
|
};
|
15306
15306
|
}
|
15307
|
-
const datamodel = (0,
|
15307
|
+
const datamodel = (0, import_chunk_LV3TO4Y5.mergeSchemas)({ schemas });
|
15308
15308
|
const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
|
15309
15309
|
const options2 = {
|
15310
15310
|
datamodel,
|
@@ -15387,7 +15387,7 @@ generator gen {
|
|
15387
15387
|
debug6({ generatorBinaryPaths });
|
15388
15388
|
generator.setBinaryPaths(generatorBinaryPaths);
|
15389
15389
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
15390
|
-
const customDmmf = await (0,
|
15390
|
+
const customDmmf = await (0, import_chunk_GXF7PBSL.getDMMF)({
|
15391
15391
|
datamodel: schemas,
|
15392
15392
|
datamodelPath: schemaPath,
|
15393
15393
|
prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
|
@@ -15685,7 +15685,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15685
15685
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
15686
15686
|
handleFormatPanic(
|
15687
15687
|
() => {
|
15688
|
-
|
15688
|
+
import_chunk_CTGWR7A4.prismaSchemaWasm.debug_panic();
|
15689
15689
|
},
|
15690
15690
|
{ schemas: schemas2 }
|
15691
15691
|
);
|
@@ -15705,12 +15705,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15705
15705
|
() => {
|
15706
15706
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
|
15707
15707
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
15708
|
-
const lintDiagnostics2 = (0,
|
15708
|
+
const lintDiagnostics2 = (0, import_chunk_IEQWFMHI.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
15709
15709
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
15710
15710
|
},
|
15711
15711
|
{ schemas: schemas2 }
|
15712
15712
|
);
|
15713
|
-
const lintWarnings = (0,
|
15713
|
+
const lintWarnings = (0, import_chunk_IEQWFMHI.getLintWarningsAsText)(lintDiagnostics);
|
15714
15714
|
if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
|
15715
15715
|
console.warn(lintWarnings);
|
15716
15716
|
}
|
@@ -15740,7 +15740,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
|
|
15740
15740
|
}
|
15741
15741
|
}
|
15742
15742
|
function formatWasm(schema, documentFormattingParams) {
|
15743
|
-
const formattedSchema =
|
15743
|
+
const formattedSchema = import_chunk_CTGWR7A4.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
15744
15744
|
return formattedSchema;
|
15745
15745
|
}
|
15746
15746
|
/*! 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_QI4C3H4P_exports = {};
|
30
|
+
__export2(chunk_QI4C3H4P_exports, {
|
31
31
|
checkTypeScriptVersion: () => checkTypeScriptVersion,
|
32
32
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
33
33
|
debug: () => debug5,
|
@@ -55,7 +55,7 @@ __export2(chunk_6525EYZM_exports, {
|
|
55
55
|
sendPanic: () => sendPanic,
|
56
56
|
skipIndex: () => skipIndex
|
57
57
|
});
|
58
|
-
module.exports = __toCommonJS2(
|
58
|
+
module.exports = __toCommonJS2(chunk_QI4C3H4P_exports);
|
59
59
|
var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
|
60
60
|
var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
|
61
61
|
var import_chunk_PIPE5DSU = require("./chunk-PIPE5DSU.js");
|
@@ -80,14 +80,14 @@ var import_chunk_AC6EAR56 = require("./chunk-AC6EAR56.js");
|
|
80
80
|
var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
|
81
81
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
82
82
|
var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
|
83
|
-
var
|
84
|
-
var
|
83
|
+
var import_chunk_K6DKFDA3 = require("./chunk-K6DKFDA3.js");
|
84
|
+
var import_chunk_RLOJOBWQ = require("./chunk-RLOJOBWQ.js");
|
85
85
|
var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
|
86
|
-
var
|
87
|
-
var
|
86
|
+
var import_chunk_X4EIUERE = require("./chunk-X4EIUERE.js");
|
87
|
+
var import_chunk_Y4HB3OTO = require("./chunk-Y4HB3OTO.js");
|
88
88
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
89
89
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
90
|
-
var
|
90
|
+
var import_chunk_JQPWIC6P = require("./chunk-JQPWIC6P.js");
|
91
91
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
92
92
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
93
93
|
var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
|
@@ -14751,7 +14751,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
14751
14751
|
}
|
14752
14752
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
14753
14753
|
debug2("Loading config");
|
14754
|
-
const config2 = await (0,
|
14754
|
+
const config2 = await (0, import_chunk_X4EIUERE.getConfig)({
|
14755
14755
|
datamodel: files,
|
14756
14756
|
ignoreEnvVarErrors: true
|
14757
14757
|
});
|
@@ -15059,8 +15059,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
|
|
15059
15059
|
if (argName.includes("schema")) {
|
15060
15060
|
await loadEnvFile({ schemaPath: argValue, printMessage: false });
|
15061
15061
|
const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
|
15062
|
-
const config2 = await (0,
|
15063
|
-
const url = (0,
|
15062
|
+
const config2 = await (0, import_chunk_X4EIUERE.getConfig)({ datamodel, ignoreEnvVarErrors: true });
|
15063
|
+
const url = (0, import_chunk_X4EIUERE.resolveUrl)((0, import_chunk_X4EIUERE.getEffectiveUrl)(config2.datasources[0]));
|
15064
15064
|
if (url?.startsWith("prisma://")) {
|
15065
15065
|
return forbiddenCmdWithDataProxyFlagMessage(command);
|
15066
15066
|
}
|
@@ -15232,7 +15232,7 @@ async function getGenerators(options) {
|
|
15232
15232
|
prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
|
15233
15233
|
}
|
15234
15234
|
}
|
15235
|
-
const config = await (0,
|
15235
|
+
const config = await (0, import_chunk_X4EIUERE.getConfig)({
|
15236
15236
|
datamodel: schemas,
|
15237
15237
|
datamodelPath: schemaPath,
|
15238
15238
|
prismaPath,
|
@@ -15243,7 +15243,7 @@ async function getGenerators(options) {
|
|
15243
15243
|
}
|
15244
15244
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
|
15245
15245
|
const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
|
15246
|
-
const dmmf = await (0,
|
15246
|
+
const dmmf = await (0, import_chunk_Y4HB3OTO.getDMMF)({
|
15247
15247
|
datamodel: schemas,
|
15248
15248
|
datamodelPath: schemaPath,
|
15249
15249
|
prismaPath,
|
@@ -15304,7 +15304,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
|
|
15304
15304
|
fromEnvVar: "null"
|
15305
15305
|
};
|
15306
15306
|
}
|
15307
|
-
const datamodel = (0,
|
15307
|
+
const datamodel = (0, import_chunk_RLOJOBWQ.mergeSchemas)({ schemas });
|
15308
15308
|
const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
|
15309
15309
|
const options2 = {
|
15310
15310
|
datamodel,
|
@@ -15387,7 +15387,7 @@ generator gen {
|
|
15387
15387
|
debug6({ generatorBinaryPaths });
|
15388
15388
|
generator.setBinaryPaths(generatorBinaryPaths);
|
15389
15389
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
15390
|
-
const customDmmf = await (0,
|
15390
|
+
const customDmmf = await (0, import_chunk_Y4HB3OTO.getDMMF)({
|
15391
15391
|
datamodel: schemas,
|
15392
15392
|
datamodelPath: schemaPath,
|
15393
15393
|
prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
|
@@ -15685,7 +15685,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15685
15685
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
15686
15686
|
handleFormatPanic(
|
15687
15687
|
() => {
|
15688
|
-
|
15688
|
+
import_chunk_JQPWIC6P.prismaSchemaWasm.debug_panic();
|
15689
15689
|
},
|
15690
15690
|
{ schemas: schemas2 }
|
15691
15691
|
);
|
@@ -15705,12 +15705,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15705
15705
|
() => {
|
15706
15706
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
|
15707
15707
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
15708
|
-
const lintDiagnostics2 = (0,
|
15708
|
+
const lintDiagnostics2 = (0, import_chunk_K6DKFDA3.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
15709
15709
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
15710
15710
|
},
|
15711
15711
|
{ schemas: schemas2 }
|
15712
15712
|
);
|
15713
|
-
const lintWarnings = (0,
|
15713
|
+
const lintWarnings = (0, import_chunk_K6DKFDA3.getLintWarningsAsText)(lintDiagnostics);
|
15714
15714
|
if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
|
15715
15715
|
console.warn(lintWarnings);
|
15716
15716
|
}
|
@@ -15740,7 +15740,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
|
|
15740
15740
|
}
|
15741
15741
|
}
|
15742
15742
|
function formatWasm(schema, documentFormattingParams) {
|
15743
|
-
const formattedSchema =
|
15743
|
+
const formattedSchema = import_chunk_JQPWIC6P.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
15744
15744
|
return formattedSchema;
|
15745
15745
|
}
|
15746
15746
|
/*! Bundled license information:
|