@prisma/internals 6.5.0-dev.7 → 6.5.0-dev.71

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 (70) hide show
  1. package/dist/Generator.js +2 -2
  2. package/dist/WasmPanicRegistry.js +2 -2
  3. package/dist/{chunk-NXIWDQBF.js → chunk-3ERIN7PH.js} +5 -5
  4. package/dist/{chunk-H4PMOCGZ.js → chunk-4M5BUOEE.js} +11 -12
  5. package/dist/{chunk-2SWS7ZGF.js → chunk-6QYDDAZN.js} +7 -7
  6. package/dist/{chunk-IYPAQDUL.js → chunk-7DFZLZ2U.js} +5 -5
  7. package/dist/{chunk-A4QWQE3W.js → chunk-ATFQZVBS.js} +11 -4
  8. package/dist/{chunk-HOZFIXMD.js → chunk-BPZFDGKN.js} +5 -4
  9. package/dist/{chunk-RL3K4V2J.js → chunk-C2WD2XUT.js} +980 -113
  10. package/dist/{chunk-CCLACYA6.js → chunk-C6KTCHPH.js} +11 -11
  11. package/dist/{chunk-T5RACBRF.js → chunk-CHMJ5V7I.js} +10 -10
  12. package/dist/{chunk-JXBI6A46.js → chunk-CW7XFIWJ.js} +12 -12
  13. package/dist/{chunk-FHXAG4A2.js → chunk-CZL7DCL2.js} +5 -5
  14. package/dist/{chunk-3KN5GX54.js → chunk-DACIU2SJ.js} +5 -5
  15. package/dist/{chunk-VXSQZXSR.js → chunk-F7LMKMF6.js} +5 -5
  16. package/dist/{chunk-QIVUAERL.js → chunk-GXDYIY4M.js} +1653 -1762
  17. package/dist/{chunk-CWDHXSCQ.js → chunk-HLCGOM22.js} +8 -8
  18. package/dist/{chunk-6HAMFH75.js → chunk-HVPNLOOB.js} +8 -8
  19. package/dist/{chunk-UUQ4S65T.js → chunk-JKMFFNYA.js} +10 -11
  20. package/dist/{chunk-ZV5D6QAF.js → chunk-K6MLV4WL.js} +7 -7
  21. package/dist/{chunk-Z3HEQNNY.js → chunk-KBHA7KQA.js} +12 -12
  22. package/dist/chunk-KKGIKPIK.js +573 -0
  23. package/dist/{chunk-G4BGJ6IP.js → chunk-KTBNIQ7N.js} +5 -5
  24. package/dist/{chunk-VQX3AXS3.js → chunk-LGB6V3IA.js} +12 -12
  25. package/dist/{chunk-5XRQ7ONW.js → chunk-NJQWZ447.js} +5 -5
  26. package/dist/{chunk-2TTXPJG7.js → chunk-NZW3I4BT.js} +309 -529
  27. package/dist/{chunk-DFY3JTSO.js → chunk-QCUY2J5L.js} +12 -12
  28. package/dist/{chunk-OYLZC5OV.js → chunk-TATYN3T2.js} +7 -7
  29. package/dist/{chunk-JT7WQGMF.js → chunk-TU6A4QPE.js} +11 -11
  30. package/dist/{chunk-KDVLOLAU.js → chunk-UCCXUB5A.js} +12 -12
  31. package/dist/{chunk-XOWBYDC2.js → chunk-VZ3YWHPH.js} +12 -12
  32. package/dist/{chunk-IWJ2BUYF.js → chunk-XLGODPZH.js} +5 -5
  33. package/dist/{chunk-IFSZX2CY.js → chunk-YNJKY3HZ.js} +5 -5
  34. package/dist/{chunk-54KM4LPR.js → chunk-ZQQKSJK2.js} +309 -529
  35. package/dist/{chunk-635TMBAP.js → chunk-ZYW3HGSH.js} +8 -4
  36. package/dist/cli/checkUnsupportedDataProxy.js +25 -26
  37. package/dist/cli/getSchema.js +29 -30
  38. package/dist/cli/hashes.js +25 -26
  39. package/dist/engine-commands/errorHelpers.js +4 -4
  40. package/dist/engine-commands/formatSchema.js +24 -25
  41. package/dist/engine-commands/getConfig.js +12 -12
  42. package/dist/engine-commands/getDmmf.js +9 -9
  43. package/dist/engine-commands/getEngineVersion.js +5 -6
  44. package/dist/engine-commands/getEnginesMetaInfo.js +7 -8
  45. package/dist/engine-commands/index.js +35 -36
  46. package/dist/engine-commands/lintSchema.js +10 -10
  47. package/dist/engine-commands/mergeSchemas.js +9 -9
  48. package/dist/engine-commands/validate.js +9 -9
  49. package/dist/errorReporting.d.ts +1 -0
  50. package/dist/get-generators/generatorResolvers/generatorResolvers.js +24 -25
  51. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +24 -25
  52. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +25 -26
  53. package/dist/get-generators/getGenerators.js +27 -28
  54. package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -4
  55. package/dist/getPackedPackage.js +3 -4
  56. package/dist/index.js +68 -69
  57. package/dist/panic.js +6 -6
  58. package/dist/resolveBinary.js +7 -8
  59. package/dist/schemaEngineCommands.js +8 -9
  60. package/dist/sendPanic.js +24 -25
  61. package/dist/utils/drawBox.js +2 -2
  62. package/dist/utils/getEnvPaths.js +24 -25
  63. package/dist/utils/getVersionFromPackageJson.js +3 -3
  64. package/dist/utils/handlePanic.js +24 -25
  65. package/dist/utils/isValidJsIdentifier.js +3 -3
  66. package/dist/utils/loadEnvFile.js +24 -25
  67. package/dist/wasm.js +5 -5
  68. package/package.json +15 -16
  69. package/dist/chunk-F3SIWK3J.js +0 -1404
  70. package/dist/chunk-H4J2FN2W.js +0 -796
@@ -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_DFY3JTSO_exports = {};
30
- __export(chunk_DFY3JTSO_exports, {
29
+ var chunk_QCUY2J5L_exports = {};
30
+ __export(chunk_QCUY2J5L_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_DFY3JTSO_exports);
34
+ module.exports = __toCommonJS(chunk_QCUY2J5L_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 import_chunk_3KN5GX54 = require("./chunk-3KN5GX54.js");
38
+ var import_chunk_DACIU2SJ = require("./chunk-DACIU2SJ.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
- var import_chunk_ZV5D6QAF = require("./chunk-ZV5D6QAF.js");
42
- var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
41
+ var import_chunk_6QYDDAZN = require("./chunk-6QYDDAZN.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, import_chunk_3KN5GX54.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_DACIU2SJ.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
- import_chunk_ZV5D6QAF.prismaSchemaWasm.debug_panic();
75
+ import_chunk_6QYDDAZN.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
- import_chunk_ZV5D6QAF.prismaSchemaWasm.validate(params);
81
+ import_chunk_6QYDDAZN.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, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
97
- const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e.error);
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 import_chunk_A4QWQE3W.RustPanic(
100
+ const panic = new import_chunk_ATFQZVBS.RustPanic(
101
101
  /* message */
102
102
  message,
103
103
  /* rustStack */
@@ -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_OYLZC5OV_exports = {};
30
- __export(chunk_OYLZC5OV_exports, {
29
+ var chunk_TATYN3T2_exports = {};
30
+ __export(chunk_TATYN3T2_exports, {
31
31
  getEnginesInfo: () => getEnginesInfo,
32
32
  getEnginesMetaInfo: () => getEnginesMetaInfo,
33
33
  resolveEngine: () => resolveEngine
34
34
  });
35
- module.exports = __toCommonJS(chunk_OYLZC5OV_exports);
35
+ module.exports = __toCommonJS(chunk_TATYN3T2_exports);
36
36
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
37
- var import_chunk_IWJ2BUYF = require("./chunk-IWJ2BUYF.js");
37
+ var import_chunk_XLGODPZH = require("./chunk-XLGODPZH.js");
38
38
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
39
- var import_chunk_NXIWDQBF = require("./chunk-NXIWDQBF.js");
39
+ var import_chunk_3ERIN7PH = require("./chunk-3ERIN7PH.js");
40
40
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
41
41
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
42
42
  var import_engines = require("@prisma/engines");
@@ -157,7 +157,7 @@ async function resolveEngine(binaryName) {
157
157
  const enginePathEither = await (0, import_function2.pipe)(
158
158
  pathFromEnvOption,
159
159
  fold(
160
- () => (0, import_chunk_NXIWDQBF.safeResolveBinary)(binaryName),
160
+ () => (0, import_chunk_3ERIN7PH.safeResolveBinary)(binaryName),
161
161
  (pathFromEnv) => (0, import_chunk_7MD6344A.right2)(pathFromEnv.path)
162
162
  )
163
163
  )();
@@ -165,7 +165,7 @@ async function resolveEngine(binaryName) {
165
165
  enginePathEither,
166
166
  import_chunk_7MD6344A.fromEither,
167
167
  (0, import_chunk_7MD6344A.chain)((enginePath) => {
168
- return (0, import_chunk_IWJ2BUYF.safeGetEngineVersion)(enginePath, binaryName);
168
+ return (0, import_chunk_XLGODPZH.safeGetEngineVersion)(enginePath, binaryName);
169
169
  })
170
170
  )();
171
171
  const engineInfo = {
@@ -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_JT7WQGMF_exports = {};
30
- __export(chunk_JT7WQGMF_exports, {
29
+ var chunk_TU6A4QPE_exports = {};
30
+ __export(chunk_TU6A4QPE_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_JT7WQGMF_exports);
34
+ module.exports = __toCommonJS(chunk_TU6A4QPE_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 import_chunk_3KN5GX54 = require("./chunk-3KN5GX54.js");
38
+ var import_chunk_DACIU2SJ = require("./chunk-DACIU2SJ.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
- var import_chunk_ZV5D6QAF = require("./chunk-ZV5D6QAF.js");
42
- var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
41
+ var import_chunk_6QYDDAZN = require("./chunk-6QYDDAZN.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: mergeSchemas]`;
63
- super((0, import_chunk_3KN5GX54.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_DACIU2SJ.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 import_chunk_ZV5D6QAF.prismaSchemaWasm.merge_schemas(params);
76
+ return import_chunk_6QYDDAZN.prismaSchemaWasm.merge_schemas(params);
77
77
  },
78
78
  (e) => ({
79
79
  type: "wasm-error",
@@ -88,11 +88,11 @@ function mergeSchemas(options) {
88
88
  const error = (0, import_chunk_XKZ6CBLA.z)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
89
89
  debugErrorType(e);
90
90
  console.error("");
91
- if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
92
- const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e.error);
91
+ if ((0, import_chunk_ATFQZVBS.isWasmPanic)(e.error)) {
92
+ const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e.error);
93
93
  debug(`Error merging schemas: ${message}`);
94
94
  debug(stack);
95
- const panic = new import_chunk_A4QWQE3W.RustPanic(
95
+ const panic = new import_chunk_ATFQZVBS.RustPanic(
96
96
  /* message */
97
97
  message,
98
98
  /* rustStack */
@@ -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_KDVLOLAU_exports = {};
30
- __export(chunk_KDVLOLAU_exports, {
29
+ var chunk_UCCXUB5A_exports = {};
30
+ __export(chunk_UCCXUB5A_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_KDVLOLAU_exports);
34
+ module.exports = __toCommonJS(chunk_UCCXUB5A_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
37
- var import_chunk_3KN5GX54 = require("./chunk-3KN5GX54.js");
37
+ var import_chunk_DACIU2SJ = require("./chunk-DACIU2SJ.js");
38
38
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
39
39
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
- var import_chunk_ZV5D6QAF = require("./chunk-ZV5D6QAF.js");
41
- var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
40
+ var import_chunk_6QYDDAZN = require("./chunk-6QYDDAZN.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, import_chunk_3KN5GX54.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_DACIU2SJ.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
- import_chunk_ZV5D6QAF.prismaSchemaWasm.debug_panic();
93
+ import_chunk_6QYDDAZN.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 = import_chunk_ZV5D6QAF.prismaSchemaWasm.get_dmmf(params);
99
+ const data = import_chunk_6QYDDAZN.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, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
143
- const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e.error);
144
- const panic = new import_chunk_A4QWQE3W.RustPanic(
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 */
@@ -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_XOWBYDC2_exports = {};
30
- __export(chunk_XOWBYDC2_exports, {
29
+ var chunk_VZ3YWHPH_exports = {};
30
+ __export(chunk_VZ3YWHPH_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_XOWBYDC2_exports);
34
+ module.exports = __toCommonJS(chunk_VZ3YWHPH_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
37
- var import_chunk_IFSZX2CY = require("./chunk-IFSZX2CY.js");
37
+ var import_chunk_YNJKY3HZ = require("./chunk-YNJKY3HZ.js");
38
38
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
39
39
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
- var import_chunk_2SWS7ZGF = require("./chunk-2SWS7ZGF.js");
41
- var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
40
+ var import_chunk_K6MLV4WL = require("./chunk-K6MLV4WL.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, import_chunk_IFSZX2CY.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_YNJKY3HZ.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
- import_chunk_2SWS7ZGF.prismaSchemaWasm.debug_panic();
93
+ import_chunk_K6MLV4WL.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 = import_chunk_2SWS7ZGF.prismaSchemaWasm.get_dmmf(params);
99
+ const data = import_chunk_K6MLV4WL.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, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
143
- const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e.error);
144
- const panic = new import_chunk_A4QWQE3W.RustPanic(
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 chunk_IWJ2BUYF_exports = {};
20
- __export(chunk_IWJ2BUYF_exports, {
19
+ var chunk_XLGODPZH_exports = {};
20
+ __export(chunk_XLGODPZH_exports, {
21
21
  getEngineVersion: () => getEngineVersion,
22
22
  safeGetEngineVersion: () => safeGetEngineVersion
23
23
  });
24
- module.exports = __toCommonJS(chunk_IWJ2BUYF_exports);
24
+ module.exports = __toCommonJS(chunk_XLGODPZH_exports);
25
25
  var import_chunk_I7IEEULS = require("./chunk-I7IEEULS.js");
26
26
  var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
27
- var import_chunk_NXIWDQBF = require("./chunk-NXIWDQBF.js");
27
+ var import_chunk_3ERIN7PH = require("./chunk-3ERIN7PH.js");
28
28
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
29
29
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
30
30
  var import_engines = require("@prisma/engines");
@@ -35,7 +35,7 @@ async function getEngineVersion(enginePath, binaryName) {
35
35
  if (!binaryName) {
36
36
  binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
37
37
  }
38
- enginePath = await (0, import_chunk_NXIWDQBF.resolveBinary)(binaryName, enginePath);
38
+ enginePath = await (0, import_chunk_3ERIN7PH.resolveBinary)(binaryName, enginePath);
39
39
  const platformInfo = await (0, import_get_platform.getPlatformInfo)();
40
40
  if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
41
41
  (0, import_get_platform.assertNodeAPISupported)();
@@ -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 chunk_IFSZX2CY_exports = {};
20
- __export(chunk_IFSZX2CY_exports, {
19
+ var chunk_YNJKY3HZ_exports = {};
20
+ __export(chunk_YNJKY3HZ_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_IFSZX2CY_exports);
24
- var import_chunk_VXSQZXSR = require("./chunk-VXSQZXSR.js");
23
+ module.exports = __toCommonJS(chunk_YNJKY3HZ_exports);
24
+ var import_chunk_7DFZLZ2U = require("./chunk-7DFZLZ2U.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_VXSQZXSR.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_7DFZLZ2U.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;