@prisma/internals 6.5.0-dev.6 → 6.5.0-dev.61
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/Generator.js +2 -2
- package/dist/WasmPanicRegistry.js +2 -2
- package/dist/{chunk-BAULBRMC.js → chunk-2HVLHMSG.js} +5 -5
- package/dist/{chunk-NXIWDQBF.js → chunk-3ERIN7PH.js} +5 -5
- package/dist/{chunk-ROTZP5QJ.js → chunk-6YSZ2YUL.js} +8 -8
- package/dist/{chunk-AYHH7FB3.js → chunk-7LPCOFCK.js} +12 -12
- package/dist/{chunk-UUQ4S65T.js → chunk-ANV3YPJD.js} +9 -10
- package/dist/{chunk-A4QWQE3W.js → chunk-ATFQZVBS.js} +11 -4
- package/dist/{chunk-HOZFIXMD.js → chunk-BPZFDGKN.js} +5 -4
- package/dist/{chunk-XJYCAEPW.js → chunk-C4U4BLRS.js} +12 -12
- package/dist/{chunk-T5RACBRF.js → chunk-CHMJ5V7I.js} +10 -10
- package/dist/{chunk-J54H6BFK.js → chunk-CJKJUJDM.js} +11 -11
- package/dist/{chunk-FHXAG4A2.js → chunk-CZL7DCL2.js} +5 -5
- package/dist/{chunk-QIVUAERL.js → chunk-GXDYIY4M.js} +1653 -1762
- package/dist/{chunk-2SWS7ZGF.js → chunk-H43S5W2H.js} +7 -7
- package/dist/{chunk-XOWBYDC2.js → chunk-IEEAGG33.js} +12 -12
- package/dist/{chunk-IFSZX2CY.js → chunk-IMKBBD7S.js} +5 -5
- package/dist/{chunk-Z3HEQNNY.js → chunk-IVCKLLG7.js} +12 -12
- package/dist/{chunk-K37NLZHJ.js → chunk-KF2MND2G.js} +140 -141
- package/dist/chunk-KKGIKPIK.js +573 -0
- package/dist/{chunk-G4BGJ6IP.js → chunk-KTBNIQ7N.js} +5 -5
- package/dist/{chunk-5XRQ7ONW.js → chunk-NJQWZ447.js} +5 -5
- package/dist/{chunk-VQX3AXS3.js → chunk-OBYRC26D.js} +12 -12
- package/dist/{chunk-VFCLWUAB.js → chunk-OTBZ3JRP.js} +12 -12
- package/dist/{chunk-CCLACYA6.js → chunk-S3I4NXTG.js} +11 -11
- package/dist/{chunk-2WQROSIU.js → chunk-SDTTYDOH.js} +7 -7
- package/dist/{chunk-OYLZC5OV.js → chunk-TATYN3T2.js} +7 -7
- package/dist/{chunk-RECBVX6S.js → chunk-TU452SRE.js} +10 -11
- package/dist/{chunk-54KM4LPR.js → chunk-U76JDFH2.js} +140 -141
- package/dist/{chunk-VXSQZXSR.js → chunk-V4AA73IM.js} +5 -5
- package/dist/{chunk-RL3K4V2J.js → chunk-V6Z564LJ.js} +978 -112
- package/dist/{chunk-I7ZVB43E.js → chunk-VDZ4XQ45.js} +5 -5
- package/dist/{chunk-6HAMFH75.js → chunk-WBX3N7EZ.js} +8 -8
- package/dist/{chunk-IWJ2BUYF.js → chunk-XLGODPZH.js} +5 -5
- package/dist/{chunk-635TMBAP.js → chunk-ZYW3HGSH.js} +8 -4
- package/dist/cli/checkUnsupportedDataProxy.js +25 -26
- package/dist/cli/getSchema.js +29 -30
- package/dist/cli/hashes.js +25 -26
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +24 -25
- package/dist/engine-commands/getConfig.js +12 -12
- package/dist/engine-commands/getDmmf.js +9 -9
- package/dist/engine-commands/getEngineVersion.js +5 -6
- package/dist/engine-commands/getEnginesMetaInfo.js +7 -8
- package/dist/engine-commands/index.js +35 -36
- package/dist/engine-commands/lintSchema.js +10 -10
- package/dist/engine-commands/mergeSchemas.js +9 -9
- package/dist/engine-commands/validate.js +9 -9
- package/dist/errorReporting.d.ts +1 -0
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +24 -25
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +24 -25
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +25 -26
- package/dist/get-generators/getGenerators.js +27 -28
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -4
- package/dist/getPackedPackage.js +3 -4
- package/dist/index.js +68 -69
- package/dist/panic.js +6 -6
- package/dist/resolveBinary.js +7 -8
- package/dist/schemaEngineCommands.js +8 -9
- package/dist/sendPanic.js +24 -25
- package/dist/utils/drawBox.js +2 -2
- package/dist/utils/getEnvPaths.js +24 -25
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +24 -25
- package/dist/utils/isValidJsIdentifier.js +3 -3
- package/dist/utils/loadEnvFile.js +24 -25
- package/dist/wasm.js +5 -5
- package/package.json +14 -15
- package/dist/chunk-F3SIWK3J.js +0 -1404
- package/dist/chunk-H4J2FN2W.js +0 -796
@@ -26,15 +26,15 @@ 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_H43S5W2H_exports = {};
|
30
|
+
__export(chunk_H43S5W2H_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
|
37
|
-
var
|
35
|
+
module.exports = __toCommonJS(chunk_H43S5W2H_exports);
|
36
|
+
var import_chunk_TU452SRE = require("./chunk-TU452SRE.js");
|
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"));
|
40
40
|
var wasm_exports = {};
|
@@ -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_TU452SRE.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
|
-
globalThis.PRISMA_WASM_PANIC_REGISTRY = new
|
47
|
+
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_BPZFDGKN.WasmPanicRegistry();
|
@@ -26,19 +26,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_IEEAGG33_exports = {};
|
30
|
+
__export(chunk_IEEAGG33_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_IEEAGG33_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_IMKBBD7S = require("./chunk-IMKBBD7S.js");
|
38
38
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
39
39
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
40
|
-
var
|
41
|
-
var
|
40
|
+
var import_chunk_H43S5W2H = require("./chunk-H43S5W2H.js");
|
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");
|
44
44
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.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_IMKBBD7S.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_H43S5W2H.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_H43S5W2H.prismaSchemaWasm.get_dmmf(params);
|
100
100
|
return data;
|
101
101
|
},
|
102
102
|
(e) => ({
|
@@ -139,9 +139,9 @@ Datamodel path: "${e.datamodelPath}"`,
|
|
139
139
|
});
|
140
140
|
}).with({ type: "wasm-error" }, (e) => {
|
141
141
|
debugErrorType(e);
|
142
|
-
if ((0,
|
143
|
-
const { message, stack } = (0,
|
144
|
-
const panic = new
|
142
|
+
if ((0, import_chunk_ATFQZVBS.isWasmPanic)(e.error)) {
|
143
|
+
const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e.error);
|
144
|
+
const panic = new import_chunk_ATFQZVBS.RustPanic(
|
145
145
|
/* message */
|
146
146
|
message,
|
147
147
|
/* rustStack */
|
@@ -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_IMKBBD7S_exports = {};
|
20
|
+
__export(chunk_IMKBBD7S_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_IMKBBD7S_exports);
|
24
|
+
var import_chunk_V4AA73IM = require("./chunk-V4AA73IM.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_V4AA73IM.version]];
|
28
28
|
return `${message}
|
29
29
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
@@ -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_IVCKLLG7_exports = {};
|
30
|
+
__export(chunk_IVCKLLG7_exports, {
|
31
31
|
ValidateError: () => ValidateError,
|
32
32
|
validate: () => validate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_IVCKLLG7_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_IMKBBD7S = require("./chunk-IMKBBD7S.js");
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
41
|
-
var
|
42
|
-
var
|
41
|
+
var import_chunk_H43S5W2H = require("./chunk-H43S5W2H.js");
|
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");
|
45
45
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.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_IMKBBD7S.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_H43S5W2H.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_H43S5W2H.prismaSchemaWasm.validate(params);
|
82
82
|
},
|
83
83
|
(e) => ({
|
84
84
|
type: "wasm-error",
|
@@ -93,11 +93,11 @@ function validate(options) {
|
|
93
93
|
const error = (0, import_chunk_XKZ6CBLA.z)(validateEither.left).with({ type: "wasm-error" }, (e) => {
|
94
94
|
debugErrorType(e);
|
95
95
|
console.error("");
|
96
|
-
if ((0,
|
97
|
-
const { message, stack } = (0,
|
96
|
+
if ((0, import_chunk_ATFQZVBS.isWasmPanic)(e.error)) {
|
97
|
+
const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e.error);
|
98
98
|
debug(`Error validating schema: ${message}`);
|
99
99
|
debug(stack);
|
100
|
-
const panic = new
|
100
|
+
const panic = new import_chunk_ATFQZVBS.RustPanic(
|
101
101
|
/* message */
|
102
102
|
message,
|
103
103
|
/* rustStack */
|