@prisma/internals 6.19.0-integration-engines-6-19-0-31-next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23.1 → 6.19.0-integration-next.16

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.
Files changed (85) hide show
  1. package/dist/{chunk-Q64XHKHF.js → chunk-25QIR2OA.js} +8 -8
  2. package/dist/{chunk-RNYJUEDU.js → chunk-2ONERNWE.js} +5 -5
  3. package/dist/{chunk-3NZLOTZP.js → chunk-3GU5WOTV.js} +7 -8
  4. package/dist/{chunk-OAT7ZJED.js → chunk-5FUXDJAN.js} +5 -9
  5. package/dist/{chunk-FYZCPL2Z.js → chunk-5NV3W7KM.js} +4 -4
  6. package/dist/{chunk-HO5HRHFZ.js → chunk-5W3BSMTH.js} +3 -6
  7. package/dist/{chunk-F2OZV76L.js → chunk-5XFNC2RY.js} +7 -7
  8. package/dist/{chunk-IE6Y4PMC.js → chunk-63H7LVQK.js} +5 -5
  9. package/dist/{chunk-APZUC47O.js → chunk-6GH4RAXF.js} +5 -5
  10. package/dist/{chunk-NGOAZIZY.js → chunk-6OLUZD6G.js} +9 -15
  11. package/dist/{chunk-C2HOY5Z2.js → chunk-A7LJSXBL.js} +31 -49
  12. package/dist/{chunk-WFNB7VRA.js → chunk-ARC7TW3L.js} +4 -14
  13. package/dist/{chunk-RS2R7COT.js → chunk-B22EOFPW.js} +3 -6
  14. package/dist/{chunk-UQUWZJVN.js → chunk-BLBFB7XV.js} +7 -7
  15. package/dist/{chunk-NE544QTB.js → chunk-CAACRLTC.js} +8 -8
  16. package/dist/{chunk-FP7Y7C33.js → chunk-FMYHDVAC.js} +7 -7
  17. package/dist/{chunk-ERSH2BQA.js → chunk-FUYRCYVL.js} +3 -8
  18. package/dist/{chunk-4JCVHBYR.js → chunk-GL7OANR6.js} +5 -5
  19. package/dist/{chunk-HFFWZTVM.js → chunk-GSH4BXBI.js} +4 -6
  20. package/dist/{chunk-3D5WFBNU.js → chunk-HC7ALJJ2.js} +31 -49
  21. package/dist/{chunk-GMW36QQF.js → chunk-HL6M6I6N.js} +7 -7
  22. package/dist/{chunk-2QAF26LC.js → chunk-I6IIL2R7.js} +5 -5
  23. package/dist/{chunk-BZFXOLVC.js → chunk-INJO27TY.js} +9 -15
  24. package/dist/{chunk-OQH4MI73.js → chunk-MH5DW7MH.js} +7 -7
  25. package/dist/{chunk-VSGMGR6A.js → chunk-NDSHLEAN.js} +8 -8
  26. package/dist/{chunk-EYVG6XQS.js → chunk-OKVM3CW4.js} +3 -39
  27. package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
  28. package/dist/{chunk-XZBDRJF3.js → chunk-R3RVIOOH.js} +5 -5
  29. package/dist/{chunk-VFCLWZ3O.js → chunk-RXUFT5US.js} +8 -8
  30. package/dist/{chunk-4YZH45V6.js → chunk-SIMRXUXR.js} +5 -5
  31. package/dist/{chunk-77HI77IU.js → chunk-SVPXYUIM.js} +6 -7
  32. package/dist/{chunk-UHI6VYFX.js → chunk-SYOFVVNN.js} +5 -5
  33. package/dist/{chunk-4CGPN5SR.js → chunk-VRGMXDRD.js} +3 -6
  34. package/dist/{chunk-TBA7BNPC.js → chunk-XCUYCN3Z.js} +5 -5
  35. package/dist/{chunk-5MVBCW2Z.js → chunk-XQFPAFQE.js} +5 -5
  36. package/dist/cli/checkUnsupportedDataProxy.js +41 -45
  37. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +41 -45
  38. package/dist/cli/getGeneratorSuccessMessage.js +2 -3
  39. package/dist/cli/getSchema.d.ts +1 -15
  40. package/dist/cli/getSchema.js +4 -5
  41. package/dist/cli/hashes.js +4 -4
  42. package/dist/cli/schemaContext.d.ts +1 -3
  43. package/dist/cli/schemaContext.js +41 -45
  44. package/dist/client/getClientEngineType.d.ts +0 -1
  45. package/dist/client/getClientEngineType.js +3 -3
  46. package/dist/engine-commands/errorHelpers.js +4 -4
  47. package/dist/engine-commands/formatSchema.js +40 -44
  48. package/dist/engine-commands/getConfig.d.ts +0 -1
  49. package/dist/engine-commands/getConfig.js +11 -11
  50. package/dist/engine-commands/getDmmf.js +8 -8
  51. package/dist/engine-commands/getEngineVersion.js +6 -6
  52. package/dist/engine-commands/getEnginesInfo.d.ts +0 -1
  53. package/dist/engine-commands/getEnginesInfo.js +7 -7
  54. package/dist/engine-commands/index.js +52 -56
  55. package/dist/engine-commands/lintSchema.js +9 -9
  56. package/dist/engine-commands/mergeSchemas.js +8 -8
  57. package/dist/engine-commands/validate.js +8 -8
  58. package/dist/get-generators/getGenerators.d.ts +0 -1
  59. package/dist/get-generators/getGenerators.js +43 -47
  60. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  61. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  62. package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
  63. package/dist/index.d.ts +0 -4
  64. package/dist/index.js +82 -89
  65. package/dist/resolveBinary.js +7 -7
  66. package/dist/schemaEngineCommands.js +8 -8
  67. package/dist/sendPanic.js +2 -2
  68. package/dist/utils/canPrompt.js +3 -3
  69. package/dist/utils/getVersionFromPackageJson.js +3 -3
  70. package/dist/utils/handlePanic.js +6 -6
  71. package/dist/utils/serializeQueryEngineName.js +2 -2
  72. package/dist/wasm.js +5 -5
  73. package/package.json +14 -15
  74. package/dist/chunk-3FP46GUV.js +0 -471
  75. package/dist/chunk-46ABODUM.js +0 -186
  76. package/dist/chunk-PZMRR772.js +0 -41
  77. package/dist/chunk-T2PM5TKT.js +0 -55
  78. package/dist/dotenvExpand.d.ts +0 -35
  79. package/dist/dotenvExpand.js +0 -25
  80. package/dist/utils/getEnvPaths.d.ts +0 -14
  81. package/dist/utils/getEnvPaths.js +0 -29
  82. package/dist/utils/loadEnvFile.d.ts +0 -10
  83. package/dist/utils/loadEnvFile.js +0 -30
  84. package/dist/utils/tryLoadEnvs.d.ts +0 -25
  85. package/dist/utils/tryLoadEnvs.js +0 -30
@@ -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 chunk_UQUWZJVN_exports = {};
30
- __export(chunk_UQUWZJVN_exports, {
29
+ var chunk_BLBFB7XV_exports = {};
30
+ __export(chunk_BLBFB7XV_exports, {
31
31
  handlePanic: () => handlePanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_UQUWZJVN_exports);
33
+ module.exports = __toCommonJS(chunk_BLBFB7XV_exports);
34
34
  var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
35
35
  var import_chunk_7IKUTPWQ = require("./chunk-7IKUTPWQ.js");
36
- var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
37
- var import_chunk_HFFWZTVM = require("./chunk-HFFWZTVM.js");
36
+ var import_chunk_R3J2O23S = require("./chunk-R3J2O23S.js");
37
+ var import_chunk_GSH4BXBI = require("./chunk-GSH4BXBI.js");
38
38
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
39
39
  var import_prompts = __toESM(require("prompts"));
40
40
  async function handlePanic(args) {
41
- if (!(0, import_chunk_FCYHZHVW.canPrompt)()) {
41
+ if (!(0, import_chunk_R3J2O23S.canPrompt)()) {
42
42
  throw args.error;
43
43
  }
44
44
  await panicDialog(args);
@@ -79,7 +79,7 @@ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_I6WLABB2.link)(
79
79
  if (shouldSubmitReport) {
80
80
  try {
81
81
  console.log("Submitting...");
82
- const reportId = await (0, import_chunk_HFFWZTVM.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
82
+ const reportId = await (0, import_chunk_GSH4BXBI.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
83
83
  console.log(`
84
84
  ${(0, import_chunk_PG5FDKSF.bold)(`We successfully received the error report id: ${reportId}`)}`);
85
85
  console.log(`
@@ -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 chunk_NE544QTB_exports = {};
30
- __export(chunk_NE544QTB_exports, {
29
+ var chunk_CAACRLTC_exports = {};
30
+ __export(chunk_CAACRLTC_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_NE544QTB_exports);
34
+ module.exports = __toCommonJS(chunk_CAACRLTC_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
37
37
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
- var import_chunk_RNYJUEDU = require("./chunk-RNYJUEDU.js");
39
- var import_chunk_XZBDRJF3 = require("./chunk-XZBDRJF3.js");
38
+ var import_chunk_2ONERNWE = require("./chunk-2ONERNWE.js");
39
+ var import_chunk_R3RVIOOH = require("./chunk-R3RVIOOH.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: validate]`;
62
- super((0, import_chunk_RNYJUEDU.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_2ONERNWE.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
@@ -71,13 +71,13 @@ function validate(options) {
71
71
  () => {
72
72
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_XZBDRJF3.prismaSchemaWasm.debug_panic();
74
+ import_chunk_R3RVIOOH.prismaSchemaWasm.debug_panic();
75
75
  }
76
76
  const params = JSON.stringify({
77
77
  prismaSchema: options.schemas,
78
78
  noColor: Boolean(process.env.NO_COLOR)
79
79
  });
80
- import_chunk_XZBDRJF3.prismaSchemaWasm.validate(params);
80
+ import_chunk_R3RVIOOH.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -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 chunk_FP7Y7C33_exports = {};
30
- __export(chunk_FP7Y7C33_exports, {
29
+ var chunk_FMYHDVAC_exports = {};
30
+ __export(chunk_FMYHDVAC_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_FP7Y7C33_exports);
34
+ module.exports = __toCommonJS(chunk_FMYHDVAC_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
37
37
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
- var import_chunk_IE6Y4PMC = require("./chunk-IE6Y4PMC.js");
39
- var import_chunk_2QAF26LC = require("./chunk-2QAF26LC.js");
38
+ var import_chunk_63H7LVQK = require("./chunk-63H7LVQK.js");
39
+ var import_chunk_I6IIL2R7 = require("./chunk-I6IIL2R7.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, import_chunk_IE6Y4PMC.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_63H7LVQK.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 import_chunk_2QAF26LC.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_I6IIL2R7.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -16,15 +16,14 @@ 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 chunk_ERSH2BQA_exports = {};
20
- __export(chunk_ERSH2BQA_exports, {
19
+ var chunk_FUYRCYVL_exports = {};
20
+ __export(chunk_FUYRCYVL_exports, {
21
21
  ClientEngineType: () => ClientEngineType,
22
22
  getClientEngineType: () => getClientEngineType
23
23
  });
24
- module.exports = __toCommonJS(chunk_ERSH2BQA_exports);
24
+ module.exports = __toCommonJS(chunk_FUYRCYVL_exports);
25
25
  var ClientEngineType = /* @__PURE__ */ ((ClientEngineType2) => {
26
26
  ClientEngineType2["Library"] = "library";
27
- ClientEngineType2["Binary"] = "binary";
28
27
  ClientEngineType2["Client"] = "client";
29
28
  return ClientEngineType2;
30
29
  })(ClientEngineType || {});
@@ -33,8 +32,6 @@ function getClientEngineType(generatorConfig) {
33
32
  if (engineTypeFromEnvVar) return engineTypeFromEnvVar;
34
33
  if (generatorConfig?.config.engineType === "library") {
35
34
  return "library";
36
- } else if (generatorConfig?.config.engineType === "binary") {
37
- return "binary";
38
35
  } else if (generatorConfig?.config.engineType === "client") {
39
36
  return "client";
40
37
  } else {
@@ -45,8 +42,6 @@ function getEngineTypeFromEnvVar() {
45
42
  const engineType = process.env.PRISMA_CLIENT_ENGINE_TYPE;
46
43
  if (engineType === "library") {
47
44
  return "library";
48
- } else if (engineType === "binary") {
49
- return "binary";
50
45
  } else if (engineType === "client") {
51
46
  return "client";
52
47
  } else {
@@ -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 chunk_4JCVHBYR_exports = {};
30
- __export(chunk_4JCVHBYR_exports, {
29
+ var chunk_GL7OANR6_exports = {};
30
+ __export(chunk_GL7OANR6_exports, {
31
31
  getCLIPathHash: () => getCLIPathHash,
32
32
  getProjectHash: () => getProjectHash
33
33
  });
34
- module.exports = __toCommonJS(chunk_4JCVHBYR_exports);
35
- var import_chunk_EYVG6XQS = require("./chunk-EYVG6XQS.js");
34
+ module.exports = __toCommonJS(chunk_GL7OANR6_exports);
35
+ var import_chunk_OKVM3CW4 = require("./chunk-OKVM3CW4.js");
36
36
  var import_crypto = __toESM(require("crypto"));
37
37
  async function getProjectHash(schemaPathFromArgs, schemaPathFromConfig) {
38
- const projectPath = (await (0, import_chunk_EYVG6XQS.getSchemaWithPath)(schemaPathFromArgs, schemaPathFromConfig))?.schemaPath ?? process.cwd();
38
+ const projectPath = (await (0, import_chunk_OKVM3CW4.getSchemaWithPath)(schemaPathFromArgs, schemaPathFromConfig))?.schemaPath ?? process.cwd();
39
39
  return import_crypto.default.createHash("sha256").update(projectPath).digest("hex").substring(0, 8);
40
40
  }
41
41
  function getCLIPathHash() {
@@ -26,11 +26,11 @@ 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 chunk_HFFWZTVM_exports = {};
30
- __export(chunk_HFFWZTVM_exports, {
29
+ var chunk_GSH4BXBI_exports = {};
30
+ __export(chunk_GSH4BXBI_exports, {
31
31
  sendPanic: () => sendPanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_HFFWZTVM_exports);
33
+ module.exports = __toCommonJS(chunk_GSH4BXBI_exports);
34
34
  var import_chunk_KDHESRKE = require("./chunk-KDHESRKE.js");
35
35
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
36
36
  var import_chunk_5AI4FIZ3 = require("./chunk-5AI4FIZ3.js");
@@ -1813,9 +1813,7 @@ async function sendPanic({
1813
1813
  return id;
1814
1814
  }
1815
1815
  function getCommand() {
1816
- if (process.argv[2] === "introspect") {
1817
- return "introspect";
1818
- } else if (process.argv[2] === "db" && process.argv[3] === "pull") {
1816
+ if (process.argv[2] === "db" && process.argv[3] === "pull") {
1819
1817
  return "db pull";
1820
1818
  }
1821
1819
  return process.argv.slice(2).join(" ");
@@ -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 chunk_3D5WFBNU_exports = {};
30
- __export(chunk_3D5WFBNU_exports, {
29
+ var chunk_HC7ALJJ2_exports = {};
30
+ __export(chunk_HC7ALJJ2_exports, {
31
31
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
32
32
  checkUnsupportedSchemaEngineWasm: () => checkUnsupportedSchemaEngineWasm,
33
33
  forbiddenCmdFlagWithSchemaEngineWasm: () => forbiddenCmdFlagWithSchemaEngineWasm,
@@ -42,33 +42,33 @@ __export(chunk_3D5WFBNU_exports, {
42
42
  processSchemaResult: () => processSchemaResult,
43
43
  skipIndex: () => skipIndex
44
44
  });
45
- module.exports = __toCommonJS(chunk_3D5WFBNU_exports);
45
+ module.exports = __toCommonJS(chunk_HC7ALJJ2_exports);
46
+ var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
47
+ var import_chunk_5XFNC2RY = require("./chunk-5XFNC2RY.js");
48
+ var import_chunk_B22EOFPW = require("./chunk-B22EOFPW.js");
46
49
  var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
47
50
  var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
48
- var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
49
- var import_chunk_F2OZV76L = require("./chunk-F2OZV76L.js");
50
- var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
51
51
  var import_chunk_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
52
52
  var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
53
53
  var import_chunk_7QC5VORA = require("./chunk-7QC5VORA.js");
54
54
  var import_chunk_AX5N26KG = require("./chunk-AX5N26KG.js");
55
- var import_chunk_46ABODUM = require("./chunk-46ABODUM.js");
56
55
  var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
57
56
  var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
58
- var import_chunk_BZFXOLVC = require("./chunk-BZFXOLVC.js");
59
- var import_chunk_VSGMGR6A = require("./chunk-VSGMGR6A.js");
60
- var import_chunk_4YZH45V6 = require("./chunk-4YZH45V6.js");
61
- var import_chunk_FP7Y7C33 = require("./chunk-FP7Y7C33.js");
62
- var import_chunk_EYVG6XQS = require("./chunk-EYVG6XQS.js");
63
- var import_chunk_2QAF26LC = require("./chunk-2QAF26LC.js");
64
- var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
57
+ var import_chunk_6OLUZD6G = require("./chunk-6OLUZD6G.js");
58
+ var import_chunk_25QIR2OA = require("./chunk-25QIR2OA.js");
59
+ var import_chunk_6GH4RAXF = require("./chunk-6GH4RAXF.js");
60
+ var import_chunk_MH5DW7MH = require("./chunk-MH5DW7MH.js");
61
+ var import_chunk_R3RVIOOH = require("./chunk-R3RVIOOH.js");
62
+ var import_chunk_OKVM3CW4 = require("./chunk-OKVM3CW4.js");
65
63
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
64
+ var import_chunk_5NV3W7KM = require("./chunk-5NV3W7KM.js");
66
65
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
67
66
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
68
67
  var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
69
68
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
70
- var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
71
69
  var import_chunk_BVJP43JS = require("./chunk-BVJP43JS.js");
70
+ var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
71
+ var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
72
72
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
73
73
  var import_path = __toESM(require("path"));
74
74
  var import_debug = __toESM(require("@prisma/debug"));
@@ -102,7 +102,7 @@ var debug = (0, import_debug.default)("prisma:format");
102
102
  async function formatSchema({ schemas }, inputFormattingOptions) {
103
103
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
104
104
  handleFormatPanic(() => {
105
- import_chunk_2QAF26LC.prismaSchemaWasm.debug_panic();
105
+ import_chunk_R3RVIOOH.prismaSchemaWasm.debug_panic();
106
106
  });
107
107
  }
108
108
  const defaultFormattingOptions = {
@@ -119,10 +119,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
119
119
  const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
120
120
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
121
121
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
122
- const lintDiagnostics2 = (0, import_chunk_4YZH45V6.lintSchema)({ schemas: formattedMultipleSchemas2 });
122
+ const lintDiagnostics2 = (0, import_chunk_6GH4RAXF.lintSchema)({ schemas: formattedMultipleSchemas2 });
123
123
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
124
124
  });
125
- const lintWarnings = (0, import_chunk_4YZH45V6.getLintWarningsAsText)(lintDiagnostics);
125
+ const lintWarnings = (0, import_chunk_6GH4RAXF.getLintWarningsAsText)(lintDiagnostics);
126
126
  if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
127
127
  console.warn(lintWarnings);
128
128
  }
@@ -149,7 +149,7 @@ function handleFormatPanic(tryCb) {
149
149
  }
150
150
  }
151
151
  function formatWasm(schema, documentFormattingParams) {
152
- const formattedSchema = import_chunk_2QAF26LC.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
152
+ const formattedSchema = import_chunk_R3RVIOOH.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
153
153
  return formattedSchema;
154
154
  }
155
155
  async function loadSchemaContext({
@@ -157,39 +157,37 @@ async function loadSchemaContext({
157
157
  schemaPathFromConfig,
158
158
  schemaEngineConfig,
159
159
  printLoadMessage = true,
160
- ignoreEnvVarErrors = false,
161
160
  allowNull = false,
162
161
  schemaPathArgumentName = "--schema",
163
162
  cwd = process.cwd()
164
163
  } = {}) {
165
164
  let schemaResult = null;
166
165
  if (allowNull) {
167
- schemaResult = await (0, import_chunk_EYVG6XQS.getSchemaWithPathOptional)(schemaPathFromArg, schemaPathFromConfig, {
166
+ schemaResult = await (0, import_chunk_OKVM3CW4.getSchemaWithPathOptional)(schemaPathFromArg, schemaPathFromConfig, {
168
167
  argumentName: schemaPathArgumentName,
169
168
  cwd
170
169
  });
171
170
  if (!schemaResult) return null;
172
171
  } else {
173
- schemaResult = await (0, import_chunk_EYVG6XQS.getSchemaWithPath)(schemaPathFromArg, schemaPathFromConfig, {
172
+ schemaResult = await (0, import_chunk_OKVM3CW4.getSchemaWithPath)(schemaPathFromArg, schemaPathFromConfig, {
174
173
  argumentName: schemaPathArgumentName,
175
174
  cwd
176
175
  });
177
176
  }
178
- return processSchemaResult({ schemaResult, schemaEngineConfig, printLoadMessage, ignoreEnvVarErrors, cwd });
177
+ return processSchemaResult({ schemaResult, schemaEngineConfig, printLoadMessage, cwd });
179
178
  }
180
179
  async function processSchemaResult({
181
180
  schemaResult,
182
181
  schemaEngineConfig,
183
182
  printLoadMessage = true,
184
- ignoreEnvVarErrors = false,
185
183
  cwd = process.cwd()
186
184
  }) {
187
185
  const loadedFromPathForLogMessages = import_path.default.relative(cwd, schemaResult.schemaPath);
188
186
  const schemaRootDir = schemaResult.schemaRootDir || cwd;
189
187
  if (printLoadMessage) {
190
- (0, import_chunk_EYVG6XQS.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
188
+ (0, import_chunk_OKVM3CW4.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
191
189
  }
192
- const configFromPsl = await (0, import_chunk_BZFXOLVC.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
190
+ const configFromPsl = await (0, import_chunk_6OLUZD6G.getConfig)({ datamodel: schemaResult.schemas });
193
191
  const datasourceFromPsl = configFromPsl.datasources.at(0);
194
192
  const primaryDatasource = (0, import_chunk_XKZ6CBLA.z)(schemaEngineConfig).with({ engine: "classic" }, ({ datasource }) => {
195
193
  const { url, directUrl, shadowDatabaseUrl } = datasource;
@@ -247,11 +245,10 @@ async function getGenerators(options) {
247
245
  binaryPathsOverride,
248
246
  generatorNames = [],
249
247
  postinstall,
250
- noEngine,
251
248
  allowNoModels = true,
252
249
  typedSql
253
250
  } = options;
254
- const schemaContext = !options.schemaContext && schemaPath ? await loadSchemaContext({ schemaPathFromArg: schemaPath, ignoreEnvVarErrors: true }) : options.schemaContext;
251
+ const schemaContext = !options.schemaContext && schemaPath ? await loadSchemaContext({ schemaPathFromArg: schemaPath }) : options.schemaContext;
255
252
  if (!schemaContext) {
256
253
  throw new Error(`no schema provided for getGenerators`);
257
254
  }
@@ -260,7 +257,7 @@ async function getGenerators(options) {
260
257
  }
261
258
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
262
259
  const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
263
- const dmmf = await (0, import_chunk_VSGMGR6A.getDMMF)({
260
+ const dmmf = await (0, import_chunk_25QIR2OA.getDMMF)({
264
261
  datamodel: schemaContext.schemaFiles,
265
262
  previewFeatures
266
263
  });
@@ -311,8 +308,7 @@ You need to define \`output\` in the generator block in the schema file.`
311
308
  fromEnvVar: null
312
309
  };
313
310
  }
314
- const datamodel = (0, import_chunk_FP7Y7C33.mergeSchemas)({ schemas: schemaContext.schemaFiles });
315
- const envPaths = await (0, import_chunk_46ABODUM.getEnvPaths)(schemaContext.schemaPath, { cwd: generatorConfig.output.value });
311
+ const datamodel = (0, import_chunk_MH5DW7MH.mergeSchemas)({ schemas: schemaContext.schemaFiles });
316
312
  const options2 = {
317
313
  datamodel,
318
314
  datasources: schemaContext.datasources,
@@ -324,9 +320,7 @@ You need to define \`output\` in the generator block in the schema file.`
324
320
  version: version2 || import_engines.enginesVersion,
325
321
  // this version makes no sense anymore and should be ignored
326
322
  postinstall,
327
- noEngine,
328
323
  allowNoModels,
329
- envPaths,
330
324
  typedSql
331
325
  };
332
326
  generatorInstance.setOptions(options2);
@@ -378,10 +372,9 @@ generator gen {
378
372
  }
379
373
  }
380
374
  }
381
- const queryEngineBinaryType = (0, import_engines.getCliQueryEngineBinaryType)();
382
- const queryEngineType = (0, import_chunk_RS2R7COT.binaryTypeToEngineType)(queryEngineBinaryType);
375
+ const queryEngineType = (0, import_chunk_B22EOFPW.binaryTypeToEngineType)(import_chunk_5NV3W7KM.BinaryType.QueryEngineLibrary);
383
376
  debug2("neededVersions", JSON.stringify(neededVersions, null, 2));
384
- const { binaryPathsByVersion, binaryTarget } = await (0, import_chunk_F2OZV76L.getBinaryPathsByVersion)({
377
+ const { binaryPathsByVersion, binaryTarget } = await (0, import_chunk_5XFNC2RY.getBinaryPathsByVersion)({
385
378
  neededVersions,
386
379
  // We're lazily computing the binary target here, to avoid printing the
387
380
  // `Prisma failed to detect the libssl/openssl version to use` warning
@@ -403,7 +396,7 @@ generator gen {
403
396
  debug2({ generatorBinaryPaths });
404
397
  generator.setBinaryPaths(generatorBinaryPaths);
405
398
  if (engineVersion !== version2 && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
406
- const customDmmf = await (0, import_chunk_VSGMGR6A.getDMMF)({
399
+ const customDmmf = await (0, import_chunk_25QIR2OA.getDMMF)({
407
400
  datamodel: schemaContext.schemaFiles,
408
401
  previewFeatures
409
402
  });
@@ -437,17 +430,6 @@ var oldToNewBinaryTargetsMapping = {
437
430
  async function validateGenerators(generators) {
438
431
  const binaryTarget = await (0, import_get_platform.getBinaryTargetForCurrentPlatform)();
439
432
  for (const generator of generators) {
440
- if (generator.config.platforms) {
441
- throw new Error(
442
- `The \`platforms\` field on the generator definition is deprecated. Please rename it to \`binaryTargets\`.`
443
- );
444
- }
445
- if (generator.config.pinnedBinaryTargets) {
446
- throw new Error(
447
- `The \`pinnedBinaryTargets\` field on the generator definition is deprecated.
448
- Please use the PRISMA_QUERY_ENGINE_BINARY env var instead to pin the binary target.`
449
- );
450
- }
451
433
  if (generator.binaryTargets) {
452
434
  const binaryTargets2 = generator.binaryTargets && generator.binaryTargets.length > 0 ? generator.binaryTargets : [{ fromEnvVar: null, value: "native" }];
453
435
  const resolvedBinaryTargets = binaryTargets2.flatMap((object) => (0, import_chunk_IOIAK7V7.parseBinaryTargetsEnvValue)(object)).map((p) => p === "native" ? binaryTarget : p);
@@ -524,7 +506,7 @@ function checkUnsupportedDataProxy({
524
506
  }
525
507
  }
526
508
  if (!schemaContext?.primaryDatasource) return;
527
- const url = (0, import_chunk_BZFXOLVC.resolveUrl)((0, import_chunk_BZFXOLVC.getEffectiveUrl)(schemaContext.primaryDatasource));
509
+ const url = (0, import_chunk_6OLUZD6G.resolveUrl)((0, import_chunk_6OLUZD6G.getEffectiveUrl)(schemaContext.primaryDatasource));
528
510
  if (url?.startsWith("prisma://")) {
529
511
  throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
530
512
  }
@@ -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 chunk_GMW36QQF_exports = {};
30
- __export(chunk_GMW36QQF_exports, {
29
+ var chunk_HL6M6I6N_exports = {};
30
+ __export(chunk_HL6M6I6N_exports, {
31
31
  getEnginesInfo: () => getEnginesInfo,
32
32
  resolveEngine: () => resolveEngine
33
33
  });
34
- module.exports = __toCommonJS(chunk_GMW36QQF_exports);
35
- var import_chunk_OAT7ZJED = require("./chunk-OAT7ZJED.js");
34
+ module.exports = __toCommonJS(chunk_HL6M6I6N_exports);
35
+ var import_chunk_5FUXDJAN = require("./chunk-5FUXDJAN.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
37
+ var import_chunk_5NV3W7KM = require("./chunk-5NV3W7KM.js");
38
38
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
39
39
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
40
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -131,7 +131,7 @@ async function resolveEngine(binaryName) {
131
131
  const enginePathEither = await (0, import_function2.pipe)(
132
132
  pathFromEnvOption,
133
133
  fold(
134
- () => (0, import_chunk_FYZCPL2Z.safeResolveBinary)(binaryName),
134
+ () => (0, import_chunk_5NV3W7KM.safeResolveBinary)(binaryName),
135
135
  (pathFromEnv) => (0, import_chunk_5DBOS77Y.right2)(pathFromEnv.path)
136
136
  )
137
137
  )();
@@ -139,7 +139,7 @@ async function resolveEngine(binaryName) {
139
139
  enginePathEither,
140
140
  import_chunk_5DBOS77Y.fromEither,
141
141
  (0, import_chunk_5DBOS77Y.chain)((enginePath) => {
142
- return (0, import_chunk_OAT7ZJED.safeGetEngineVersion)(enginePath, binaryName);
142
+ return (0, import_chunk_5FUXDJAN.safeGetEngineVersion)(enginePath, binaryName);
143
143
  })
144
144
  )();
145
145
  const engineInfo = {
@@ -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 chunk_2QAF26LC_exports = {};
30
- __export(chunk_2QAF26LC_exports, {
29
+ var chunk_I6IIL2R7_exports = {};
30
+ __export(chunk_I6IIL2R7_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  schemaEngineWasmVersion: () => schemaEngineWasmVersion,
34
34
  wasm_exports: () => wasm_exports
35
35
  });
36
- module.exports = __toCommonJS(chunk_2QAF26LC_exports);
37
- var import_chunk_77HI77IU = require("./chunk-77HI77IU.js");
36
+ module.exports = __toCommonJS(chunk_I6IIL2R7_exports);
37
+ var import_chunk_3GU5WOTV = require("./chunk-3GU5WOTV.js");
38
38
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
39
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
40
40
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -46,6 +46,6 @@ var wasm_exports = {};
46
46
  });
47
47
  var globalWithPanicRegistry = globalThis;
48
48
  globalWithPanicRegistry.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
49
- var { dependencies } = (0, import_chunk_77HI77IU.require_package)();
49
+ var { dependencies } = (0, import_chunk_3GU5WOTV.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -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 chunk_BZFXOLVC_exports = {};
30
- __export(chunk_BZFXOLVC_exports, {
29
+ var chunk_INJO27TY_exports = {};
30
+ __export(chunk_INJO27TY_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(chunk_BZFXOLVC_exports);
37
+ module.exports = __toCommonJS(chunk_INJO27TY_exports);
38
38
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
39
39
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
40
40
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
- var import_chunk_IE6Y4PMC = require("./chunk-IE6Y4PMC.js");
42
- var import_chunk_2QAF26LC = require("./chunk-2QAF26LC.js");
41
+ var import_chunk_63H7LVQK = require("./chunk-63H7LVQK.js");
42
+ var import_chunk_I6IIL2R7 = require("./chunk-I6IIL2R7.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, import_chunk_IE6Y4PMC.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_63H7LVQK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -89,16 +89,10 @@ 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
- import_chunk_2QAF26LC.prismaSchemaWasm.debug_panic();
92
+ import_chunk_I6IIL2R7.prismaSchemaWasm.debug_panic();
93
93
  }
94
- const params = JSON.stringify({
95
- prismaSchema: options.datamodel,
96
- datasourceOverrides: {},
97
- ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
98
- env: process.env
99
- });
100
- const data = import_chunk_2QAF26LC.prismaSchemaWasm.get_config(params);
101
- return data;
94
+ const params = JSON.stringify({ prismaSchema: options.datamodel });
95
+ return import_chunk_I6IIL2R7.prismaSchemaWasm.get_config(params);
102
96
  },
103
97
  (e) => ({
104
98
  type: "wasm-error",
@@ -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 chunk_OQH4MI73_exports = {};
30
- __export(chunk_OQH4MI73_exports, {
29
+ var chunk_MH5DW7MH_exports = {};
30
+ __export(chunk_MH5DW7MH_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_OQH4MI73_exports);
34
+ module.exports = __toCommonJS(chunk_MH5DW7MH_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
37
37
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
- var import_chunk_RNYJUEDU = require("./chunk-RNYJUEDU.js");
39
- var import_chunk_XZBDRJF3 = require("./chunk-XZBDRJF3.js");
38
+ var import_chunk_2ONERNWE = require("./chunk-2ONERNWE.js");
39
+ var import_chunk_R3RVIOOH = require("./chunk-R3RVIOOH.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, import_chunk_RNYJUEDU.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_2ONERNWE.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 import_chunk_XZBDRJF3.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_R3RVIOOH.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -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 chunk_VSGMGR6A_exports = {};
30
- __export(chunk_VSGMGR6A_exports, {
29
+ var chunk_NDSHLEAN_exports = {};
30
+ __export(chunk_NDSHLEAN_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_VSGMGR6A_exports);
34
+ module.exports = __toCommonJS(chunk_NDSHLEAN_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_IE6Y4PMC = require("./chunk-IE6Y4PMC.js");
38
- var import_chunk_2QAF26LC = require("./chunk-2QAF26LC.js");
37
+ var import_chunk_63H7LVQK = require("./chunk-63H7LVQK.js");
38
+ var import_chunk_I6IIL2R7 = require("./chunk-I6IIL2R7.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, import_chunk_IE6Y4PMC.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_63H7LVQK.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
- import_chunk_2QAF26LC.prismaSchemaWasm.debug_panic();
73
+ import_chunk_I6IIL2R7.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 = import_chunk_2QAF26LC.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_I6IIL2R7.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({