@prisma/internals 7.5.0-dev.38 → 7.5.0-dev.39
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-PQJ6HYY2.js → chunk-2AW6NACM.js} +5 -5
- package/dist/{chunk-TLOC2PNR.js → chunk-2LZMLEMF.js} +5 -5
- package/dist/{chunk-2QQ5R7PC.js → chunk-35DYJAEZ.js} +8 -8
- package/dist/chunk-3TFDMTMW.js +15514 -0
- package/dist/{chunk-CL6ZRFDH.js → chunk-3Y3L5FDT.js} +4 -9
- package/dist/{chunk-DRDSQBOA.js → chunk-5WPV6QYB.js} +5 -5
- package/dist/{chunk-2SPHF5FX.js → chunk-6RMGM7SQ.js} +8 -8
- package/dist/{chunk-MOCZTUWV.js → chunk-A2UYU7FO.js} +7 -7
- package/dist/{chunk-HO2QYL6E.js → chunk-DXMRFOMQ.js} +7 -7
- package/dist/{chunk-MTVKNXCW.js → chunk-E57CM5KJ.js} +5 -5
- package/dist/{chunk-E3M2AWWG.js → chunk-FAHKS7SS.js} +5 -5
- package/dist/{chunk-US3PNZTZ.js → chunk-GFOLZMGC.js} +8 -8
- package/dist/{chunk-QULWLOKL.js → chunk-GNAQY2WR.js} +15 -15
- package/dist/{chunk-SBCKBWKY.js → chunk-K3CS3V6T.js} +5 -5
- package/dist/{chunk-VESR3WVJ.js → chunk-NZLCOSC4.js} +5 -5
- package/dist/{chunk-ZROIH7FE.js → chunk-QEJRKVXB.js} +8 -8
- package/dist/{chunk-NBZ4L4LE.js → chunk-S6XWEQAW.js} +8 -8
- package/dist/{chunk-432X2D4Y.js → chunk-T577IEYR.js} +5 -5
- package/dist/{chunk-MNWPJVNU.js → chunk-VDSVBHN2.js} +8 -8
- package/dist/{chunk-QXB6PKM2.js → chunk-YY5KOFK6.js} +15 -15
- package/dist/{chunk-FXUDHCLC.js → chunk-ZGGWN7MV.js} +5 -10
- package/dist/cli/checkUnsupportedDataProxy.js +12 -12
- package/dist/cli/schemaContext.js +13 -13
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +11 -11
- package/dist/engine-commands/getConfig.js +7 -7
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +18 -18
- 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/getGenerators.d.ts +1 -1
- package/dist/get-generators/getGenerators.js +14 -14
- package/dist/index.js +27 -27
- package/dist/magic-string.es-B2CP4FDB.js +1324 -0
- package/dist/utils/__tests__/isCi.test.js +16 -15
- package/dist/utils/__tests__/isInteractive.test.js +14 -13
- package/dist/utils/callOnce.test.js +17 -16
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/max.test.js +11 -10
- package/dist/utils/path.test.js +30 -29
- package/dist/utils/prismaPostgres.test.js +23 -22
- package/dist/wasm.js +5 -5
- package/package.json +12 -17
|
@@ -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_2AW6NACM_exports = {};
|
|
20
|
+
__export(chunk_2AW6NACM_exports, {
|
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_2AW6NACM_exports);
|
|
24
|
+
var import_chunk_T577IEYR = require("./chunk-T577IEYR.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_T577IEYR.version]];
|
|
28
28
|
return `${message}
|
|
29
29
|
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
|
@@ -16,20 +16,20 @@ 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_2LZMLEMF_exports = {};
|
|
20
|
+
__export(chunk_2LZMLEMF_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(
|
|
28
|
-
var
|
|
27
|
+
module.exports = __toCommonJS(chunk_2LZMLEMF_exports);
|
|
28
|
+
var import_chunk_FAHKS7SS = require("./chunk-FAHKS7SS.js");
|
|
29
29
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
30
30
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
31
31
|
function lintSchema({ schemas }) {
|
|
32
|
-
const lintResult =
|
|
32
|
+
const lintResult = import_chunk_FAHKS7SS.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
|
33
33
|
const lintDiagnostics = JSON.parse(lintResult);
|
|
34
34
|
return lintDiagnostics;
|
|
35
35
|
}
|
|
@@ -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_35DYJAEZ_exports = {};
|
|
30
|
+
__export(chunk_35DYJAEZ_exports, {
|
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
|
32
32
|
getDMMF: () => getDMMF
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_35DYJAEZ_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_NZLCOSC4 = require("./chunk-NZLCOSC4.js");
|
|
38
|
+
var import_chunk_FAHKS7SS = require("./chunk-FAHKS7SS.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_NZLCOSC4.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_GET_DMMF) {
|
|
72
72
|
debug("Triggering a Rust panic...");
|
|
73
|
-
|
|
73
|
+
import_chunk_FAHKS7SS.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_FAHKS7SS.prismaSchemaWasm.get_dmmf(params);
|
|
80
80
|
return data;
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|