@prisma/internals 7.3.0-integration-prisma6-fix-cloudflare-engine.3 → 7.3.0-integration-engines-7-3-0-10-fix-fix-mapped-enum-issue-0b7e6564db7dc3dac7f9312aa84e9ed81d805521.1

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 (137) hide show
  1. package/dist/{chunk-EYVG6XQS.js → chunk-2BXDHSSY.js} +56 -68
  2. package/dist/{chunk-GMW36QQF.js → chunk-2GPDFPDR.js} +7 -7
  3. package/dist/{chunk-656EKQL7.js → chunk-334ZBKRR.js} +5 -5
  4. package/dist/{chunk-OPLMJ5WZ.js → chunk-3PNJ6ZQE.js} +58 -146
  5. package/dist/{chunk-LYFOJ5NK.js → chunk-3U4QB2G3.js} +4 -6
  6. package/dist/{chunk-5TXBB44O.js → chunk-4A2DO32A.js} +11 -11
  7. package/dist/{chunk-QPQF4VGD.js → chunk-4UM3NWZ3.js} +12 -12
  8. package/dist/{chunk-TQFONRJP.js → chunk-5BRXEOYH.js} +5 -5
  9. package/dist/{chunk-RS2R7COT.js → chunk-5I4ERIIY.js} +3 -9
  10. package/dist/{chunk-DGNPNS5E.js → chunk-5X46R434.js} +13 -13
  11. package/dist/{chunk-T2KHWQCJ.js → chunk-6ZQTRCHC.js} +12 -12
  12. package/dist/{chunk-W6J5YFD2.js → chunk-7IBWXVWK.js} +5 -5
  13. package/dist/{chunk-WFNB7VRA.js → chunk-ARC7TW3L.js} +4 -14
  14. package/dist/{chunk-QLOP3Z4E.js → chunk-AYPKO22A.js} +16 -38
  15. package/dist/{chunk-BVJP43JS.js → chunk-BXIKQUP5.js} +7 -7
  16. package/dist/{chunk-AX5N26KG.js → chunk-CQVWHHIJ.js} +11 -6
  17. package/dist/{chunk-FYZCPL2Z.js → chunk-DQWKFZPY.js} +4 -7
  18. package/dist/{chunk-7QC5VORA.js → chunk-DXWYZA7B.js} +3 -4
  19. package/dist/{chunk-WDPDHAFW.js → chunk-ECN6H47Y.js} +5 -5
  20. package/dist/{chunk-F2OZV76L.js → chunk-GH2WAX5Y.js} +7 -7
  21. package/dist/{chunk-4CGPN5SR.js → chunk-GJSFP4V4.js} +3 -9
  22. package/dist/{chunk-UOUZG6WG.js → chunk-IAKPRMGI.js} +5 -5
  23. package/dist/{chunk-THADADEM.js → chunk-JB7YT5XG.js} +7 -9
  24. package/dist/{chunk-4JCVHBYR.js → chunk-KAH2NIWC.js} +6 -6
  25. package/dist/{chunk-262R2PBW.js → chunk-KOBX6GKI.js} +5 -5
  26. package/dist/{chunk-5HT4F7QV.js → chunk-MOW746GL.js} +5 -5
  27. package/dist/{chunk-BCQZ6JQE.js → chunk-NBWRGVYR.js} +4 -6
  28. package/dist/{chunk-UQUWZJVN.js → chunk-NYNXYKR4.js} +7 -7
  29. package/dist/{chunk-UQQPN22O.js → chunk-OVRS2CD6.js} +16 -38
  30. package/dist/{chunk-Q2EPFAR2.js → chunk-P3F2U57W.js} +58 -146
  31. package/dist/{chunk-JMUOROWG.js → chunk-PRGRB27V.js} +5 -5
  32. package/dist/{chunk-75BIJ5PX.js → chunk-Q5XW7CMJ.js} +9 -9
  33. package/dist/{chunk-OAT7ZJED.js → chunk-Q75TMXCR.js} +7 -20
  34. package/dist/{chunk-ROGQXXQA.js → chunk-QDIUK75K.js} +8 -10
  35. package/dist/chunk-QKQKSUQO.js +46 -0
  36. package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
  37. package/dist/{chunk-OSHZ4P3G.js → chunk-SP2ETLT2.js} +5 -5
  38. package/dist/{chunk-E2QTLJH5.js → chunk-SZXZZWNK.js} +13 -13
  39. package/dist/{chunk-DFIP5FHB.js → chunk-T7XMJ6KH.js} +5 -5
  40. package/dist/{chunk-KH7FI42S.js → chunk-VPLQF2ZV.js} +11 -11
  41. package/dist/{chunk-TZJROXB3.js → chunk-WSZXPLJQ.js} +4 -4
  42. package/dist/{chunk-UHI6VYFX.js → chunk-YJVCIN4F.js} +16 -14
  43. package/dist/{chunk-JOIIWB3U.js → chunk-YV4IFLW4.js} +128 -129
  44. package/dist/{chunk-HFFWZTVM.js → chunk-YXCPS3WU.js} +5 -15
  45. package/dist/cli/checkUnsupportedDataProxy.d.ts +7 -9
  46. package/dist/cli/checkUnsupportedDataProxy.js +53 -65
  47. package/dist/cli/directoryConfig.d.ts +5 -2
  48. package/dist/cli/directoryConfig.js +2 -2
  49. package/dist/cli/getGeneratorSuccessMessage.js +2 -3
  50. package/dist/cli/getSchema.d.ts +28 -20
  51. package/dist/cli/getSchema.js +7 -5
  52. package/dist/cli/hashes.d.ts +2 -1
  53. package/dist/cli/hashes.js +4 -4
  54. package/dist/cli/schemaContext.d.ts +5 -22
  55. package/dist/cli/schemaContext.js +54 -65
  56. package/dist/cli/types.d.ts +1 -1
  57. package/dist/convertCredentials.js +4 -4
  58. package/dist/engine-commands/errorHelpers.js +4 -4
  59. package/dist/engine-commands/formatSchema.js +52 -64
  60. package/dist/engine-commands/getConfig.d.ts +1 -5
  61. package/dist/engine-commands/getConfig.js +10 -13
  62. package/dist/engine-commands/getDmmf.js +10 -10
  63. package/dist/engine-commands/getEngineVersion.js +5 -9
  64. package/dist/engine-commands/getEnginesInfo.d.ts +0 -1
  65. package/dist/engine-commands/getEnginesInfo.js +6 -9
  66. package/dist/engine-commands/index.d.ts +1 -1
  67. package/dist/engine-commands/index.js +62 -76
  68. package/dist/engine-commands/lintSchema.js +9 -9
  69. package/dist/engine-commands/mergeSchemas.js +10 -10
  70. package/dist/engine-commands/queryEngineCommons.js +6 -6
  71. package/dist/engine-commands/validate.js +10 -10
  72. package/dist/get-generators/getGenerators.d.ts +0 -2
  73. package/dist/get-generators/getGenerators.js +55 -67
  74. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  75. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  76. package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
  77. package/dist/getPackedPackage.js +3 -3
  78. package/dist/index.d.ts +5 -19
  79. package/dist/index.js +99 -125
  80. package/dist/resolveBinary.js +7 -7
  81. package/dist/schemaEngineCommands.js +8 -8
  82. package/dist/sendPanic.js +2 -3
  83. package/dist/types.d.ts +15 -0
  84. package/dist/utils/canPrompt.js +3 -3
  85. package/dist/utils/fs-functional.js +10 -10
  86. package/dist/utils/fs-utils.js +8 -8
  87. package/dist/utils/getVersionFromPackageJson.js +3 -3
  88. package/dist/utils/handlePanic.js +6 -7
  89. package/dist/utils/missingDatasource.js +2 -2
  90. package/dist/utils/missingGeneratorMessage.js +4 -4
  91. package/dist/utils/toSchemasContainer.d.ts +1 -1
  92. package/dist/utils/toSchemasContainer.js +3 -3
  93. package/dist/utils/validatePrismaConfigWithDatasource.d.ts +17 -0
  94. package/dist/utils/{handleEngineLoadingErrors.js → validatePrismaConfigWithDatasource.js} +7 -6
  95. package/dist/wasm.js +5 -5
  96. package/package.json +15 -17
  97. package/dist/chunk-3FP46GUV.js +0 -471
  98. package/dist/chunk-46ABODUM.js +0 -186
  99. package/dist/chunk-6TTRTZXU.js +0 -37
  100. package/dist/chunk-D4VDA2TZ.js +0 -66
  101. package/dist/chunk-DZYINYAA.js +0 -68
  102. package/dist/chunk-ERSH2BQA.js +0 -58
  103. package/dist/chunk-HO5HRHFZ.js +0 -30
  104. package/dist/chunk-HW5RCZSE.js +0 -1
  105. package/dist/chunk-KDHESRKE.js +0 -49
  106. package/dist/chunk-L6KOIJJ5.js +0 -125
  107. package/dist/chunk-PZMRR772.js +0 -41
  108. package/dist/chunk-RFB2U4GQ.js +0 -41
  109. package/dist/chunk-T2PM5TKT.js +0 -55
  110. package/dist/cli/checkUnsupportedSchemaEngineWasm.d.ts +0 -22
  111. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +0 -135
  112. package/dist/client/getClientEngineType.d.ts +0 -7
  113. package/dist/client/getClientEngineType.js +0 -26
  114. package/dist/dotenvExpand.d.ts +0 -35
  115. package/dist/dotenvExpand.js +0 -25
  116. package/dist/tracing/types.d.ts +0 -54
  117. package/dist/tracing/types.js +0 -2
  118. package/dist/utils/__tests__/maskSchema.test.js +0 -23
  119. package/dist/utils/byline.d.ts +0 -4
  120. package/dist/utils/byline.js +0 -28
  121. package/dist/utils/cloudflareD1.d.ts +0 -5
  122. package/dist/utils/cloudflareD1.js +0 -27
  123. package/dist/utils/getEnvPaths.d.ts +0 -14
  124. package/dist/utils/getEnvPaths.js +0 -29
  125. package/dist/utils/getMigrateConfigDir.d.ts +0 -2
  126. package/dist/utils/getMigrateConfigDir.js +0 -25
  127. package/dist/utils/handleEngineLoadingErrors.d.ts +0 -8
  128. package/dist/utils/load.d.ts +0 -6
  129. package/dist/utils/load.js +0 -28
  130. package/dist/utils/loadEnvFile.d.ts +0 -10
  131. package/dist/utils/loadEnvFile.js +0 -30
  132. package/dist/utils/maskSchema.d.ts +0 -4
  133. package/dist/utils/maskSchema.js +0 -27
  134. package/dist/utils/serializeQueryEngineName.d.ts +0 -4
  135. package/dist/utils/serializeQueryEngineName.js +0 -25
  136. package/dist/utils/tryLoadEnvs.d.ts +0 -25
  137. package/dist/utils/tryLoadEnvs.js +0 -30
@@ -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_5TXBB44O_exports = {};
30
- __export(chunk_5TXBB44O_exports, {
29
+ var chunk_4A2DO32A_exports = {};
30
+ __export(chunk_4A2DO32A_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_5TXBB44O_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
34
+ module.exports = __toCommonJS(chunk_4A2DO32A_exports);
35
+ var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
37
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
- var import_chunk_5HT4F7QV = require("./chunk-5HT4F7QV.js");
39
- var import_chunk_DFIP5FHB = require("./chunk-DFIP5FHB.js");
37
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
+ var import_chunk_ECN6H47Y = require("./chunk-ECN6H47Y.js");
39
+ var import_chunk_T7XMJ6KH = require("./chunk-T7XMJ6KH.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,12 +59,12 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_5HT4F7QV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_ECN6H47Y.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
66
66
  function mergeSchemas(options) {
67
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "mergeSchemasWasm");
67
+ const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "mergeSchemasWasm");
68
68
  debug(`Using mergeSchemas Wasm`);
69
69
  const mergeSchemasEither = (0, import_function.pipe)(
70
70
  (0, import_chunk_5DBOS77Y.tryCatch)(
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_DFIP5FHB.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_T7XMJ6KH.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -104,7 +104,7 @@ function mergeSchemas(options) {
104
104
  return panic;
105
105
  }
106
106
  const errorOutput = e.error.message;
107
- return new MergeSchemasError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
107
+ return new MergeSchemasError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
108
108
  }).exhaustive();
109
109
  throw error;
110
110
  }
@@ -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_QPQF4VGD_exports = {};
30
- __export(chunk_QPQF4VGD_exports, {
29
+ var chunk_4UM3NWZ3_exports = {};
30
+ __export(chunk_4UM3NWZ3_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_QPQF4VGD_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
34
+ module.exports = __toCommonJS(chunk_4UM3NWZ3_exports);
35
+ var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_WDPDHAFW = require("./chunk-WDPDHAFW.js");
38
- var import_chunk_262R2PBW = require("./chunk-262R2PBW.js");
37
+ var import_chunk_ECN6H47Y = require("./chunk-ECN6H47Y.js");
38
+ var import_chunk_T7XMJ6KH = require("./chunk-T7XMJ6KH.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,25 +58,25 @@ ${detailsHeader} ${message}`;
58
58
  }).exhaustive();
59
59
  const errorMessageWithContext = `${constructedErrorMessage}
60
60
  [Context: getDmmf]`;
61
- super((0, import_chunk_WDPDHAFW.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_ECN6H47Y.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
62
  this.name = "GetDmmfError";
63
63
  }
64
64
  };
65
65
  async function getDMMF(options) {
66
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getDmmfWasm");
66
+ const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getDmmfWasm");
67
67
  debug(`Using getDmmf Wasm`);
68
68
  const dmmfPipeline = (0, import_function.pipe)(
69
69
  (0, import_chunk_5DBOS77Y.tryCatch)(
70
70
  () => {
71
- if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
71
+ if (process.env.FORCE_PANIC_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_262R2PBW.prismaSchemaWasm.debug_panic();
73
+ import_chunk_T7XMJ6KH.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_262R2PBW.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_T7XMJ6KH.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -124,7 +124,7 @@ async function getDMMF(options) {
124
124
  return panic;
125
125
  }
126
126
  const errorOutput = e.error.message;
127
- return new GetDmmfError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
127
+ return new GetDmmfError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
128
128
  }).with({ type: "parse-json" }, (e) => {
129
129
  debugErrorType(e);
130
130
  return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
@@ -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_TQFONRJP_exports = {};
30
- __export(chunk_TQFONRJP_exports, {
29
+ var chunk_5BRXEOYH_exports = {};
30
+ __export(chunk_5BRXEOYH_exports, {
31
31
  createDirIfNotExists: () => createDirIfNotExists,
32
32
  fs_utils_exports: () => fs_utils_exports,
33
33
  getFilesInDir: () => getFilesInDir,
@@ -36,9 +36,9 @@ __export(chunk_TQFONRJP_exports, {
36
36
  removeEmptyDirs: () => removeEmptyDirs,
37
37
  writeFile: () => writeFile
38
38
  });
39
- module.exports = __toCommonJS(chunk_TQFONRJP_exports);
39
+ module.exports = __toCommonJS(chunk_5BRXEOYH_exports);
40
40
  var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
41
- var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
41
+ var import_chunk_YV4IFLW4 = require("./chunk-YV4IFLW4.js");
42
42
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
43
43
  var import_promises = __toESM(require("fs/promises"));
44
44
  var import_path = __toESM(require("path"));
@@ -51,7 +51,7 @@ var fs_utils_exports = {};
51
51
  removeEmptyDirs: () => removeEmptyDirs,
52
52
  writeFile: () => writeFile
53
53
  });
54
- var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_globby)());
54
+ var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_YV4IFLW4.require_globby)());
55
55
  function createDirIfNotExists(dir) {
56
56
  return import_promises.default.mkdir(dir, { recursive: true });
57
57
  }
@@ -16,21 +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_RS2R7COT_exports = {};
20
- __export(chunk_RS2R7COT_exports, {
19
+ var chunk_5I4ERIIY_exports = {};
20
+ __export(chunk_5I4ERIIY_exports, {
21
21
  binaryTypeToEngineType: () => binaryTypeToEngineType
22
22
  });
23
- module.exports = __toCommonJS(chunk_RS2R7COT_exports);
23
+ module.exports = __toCommonJS(chunk_5I4ERIIY_exports);
24
24
  var import_fetch_engine = require("@prisma/fetch-engine");
25
25
  function binaryTypeToEngineType(binaryType) {
26
26
  if (binaryType === import_fetch_engine.BinaryType.SchemaEngineBinary) {
27
27
  return "schemaEngine";
28
28
  }
29
- if (binaryType === import_fetch_engine.BinaryType.QueryEngineLibrary) {
30
- return "libqueryEngine";
31
- }
32
- if (binaryType === import_fetch_engine.BinaryType.QueryEngineBinary) {
33
- return "queryEngine";
34
- }
35
29
  throw new Error(`Could not convert binary type ${binaryType}`);
36
30
  }
@@ -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_DGNPNS5E_exports = {};
30
- __export(chunk_DGNPNS5E_exports, {
29
+ var chunk_5X46R434_exports = {};
30
+ __export(chunk_5X46R434_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_DGNPNS5E_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
34
+ module.exports = __toCommonJS(chunk_5X46R434_exports);
35
+ var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
37
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
- var import_chunk_5HT4F7QV = require("./chunk-5HT4F7QV.js");
39
- var import_chunk_DFIP5FHB = require("./chunk-DFIP5FHB.js");
37
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
+ var import_chunk_ECN6H47Y = require("./chunk-ECN6H47Y.js");
39
+ var import_chunk_T7XMJ6KH = require("./chunk-T7XMJ6KH.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,25 +59,25 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: validate]`;
62
- super((0, import_chunk_5HT4F7QV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_ECN6H47Y.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
66
66
  function validate(options) {
67
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "validateWasm");
67
+ const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "validateWasm");
68
68
  debug(`Using validate Wasm`);
69
69
  const validateEither = (0, import_function.pipe)(
70
70
  (0, import_chunk_5DBOS77Y.tryCatch)(
71
71
  () => {
72
- if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
72
+ if (process.env.FORCE_PANIC_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_DFIP5FHB.prismaSchemaWasm.debug_panic();
74
+ import_chunk_T7XMJ6KH.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_DFIP5FHB.prismaSchemaWasm.validate(params);
80
+ import_chunk_T7XMJ6KH.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -109,7 +109,7 @@ function validate(options) {
109
109
  return panic;
110
110
  }
111
111
  const errorOutput = e.error.message;
112
- return new ValidateError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
112
+ return new ValidateError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
113
113
  }).exhaustive();
114
114
  throw error;
115
115
  }
@@ -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_T2KHWQCJ_exports = {};
30
- __export(chunk_T2KHWQCJ_exports, {
29
+ var chunk_6ZQTRCHC_exports = {};
30
+ __export(chunk_6ZQTRCHC_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_T2KHWQCJ_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
34
+ module.exports = __toCommonJS(chunk_6ZQTRCHC_exports);
35
+ var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_5HT4F7QV = require("./chunk-5HT4F7QV.js");
38
- var import_chunk_DFIP5FHB = require("./chunk-DFIP5FHB.js");
37
+ var import_chunk_MOW746GL = require("./chunk-MOW746GL.js");
38
+ var import_chunk_KOBX6GKI = require("./chunk-KOBX6GKI.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,25 +58,25 @@ ${detailsHeader} ${message}`;
58
58
  }).exhaustive();
59
59
  const errorMessageWithContext = `${constructedErrorMessage}
60
60
  [Context: getDmmf]`;
61
- super((0, import_chunk_5HT4F7QV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_MOW746GL.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
62
  this.name = "GetDmmfError";
63
63
  }
64
64
  };
65
65
  async function getDMMF(options) {
66
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getDmmfWasm");
66
+ const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getDmmfWasm");
67
67
  debug(`Using getDmmf Wasm`);
68
68
  const dmmfPipeline = (0, import_function.pipe)(
69
69
  (0, import_chunk_5DBOS77Y.tryCatch)(
70
70
  () => {
71
- if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
71
+ if (process.env.FORCE_PANIC_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_DFIP5FHB.prismaSchemaWasm.debug_panic();
73
+ import_chunk_KOBX6GKI.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_DFIP5FHB.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_KOBX6GKI.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -124,7 +124,7 @@ async function getDMMF(options) {
124
124
  return panic;
125
125
  }
126
126
  const errorOutput = e.error.message;
127
- return new GetDmmfError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
127
+ return new GetDmmfError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
128
128
  }).with({ type: "parse-json" }, (e) => {
129
129
  debugErrorType(e);
130
130
  return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
@@ -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 chunk_W6J5YFD2_exports = {};
20
- __export(chunk_W6J5YFD2_exports, {
19
+ var chunk_7IBWXVWK_exports = {};
20
+ __export(chunk_7IBWXVWK_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_W6J5YFD2_exports);
24
- var import_chunk_THADADEM = require("./chunk-THADADEM.js");
25
- var packageJson = (0, import_chunk_THADADEM.require_package)();
23
+ module.exports = __toCommonJS(chunk_7IBWXVWK_exports);
24
+ var import_chunk_QDIUK75K = require("./chunk-QDIUK75K.js");
25
+ var packageJson = (0, import_chunk_QDIUK75K.require_package)();
26
26
  var version = packageJson.version;
@@ -26,13 +26,12 @@ 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_WFNB7VRA_exports = {};
30
- __export(chunk_WFNB7VRA_exports, {
29
+ var chunk_ARC7TW3L_exports = {};
30
+ __export(chunk_ARC7TW3L_exports, {
31
31
  getGeneratorSuccessMessage: () => getGeneratorSuccessMessage
32
32
  });
33
- module.exports = __toCommonJS(chunk_WFNB7VRA_exports);
33
+ module.exports = __toCommonJS(chunk_ARC7TW3L_exports);
34
34
  var import_chunk_XYCIH36R = require("./chunk-XYCIH36R.js");
35
- var import_chunk_ERSH2BQA = require("./chunk-ERSH2BQA.js");
36
35
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
37
36
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
38
37
  var import_path = __toESM(require("path"));
@@ -45,16 +44,7 @@ function getGeneratorSuccessMessage(generator, time) {
45
44
  function formatVersion(generator) {
46
45
  const version = generator.manifest?.version;
47
46
  if (generator.getProvider() === "prisma-client-js") {
48
- const engineType = (0, import_chunk_ERSH2BQA.getClientEngineType)(generator.config);
49
- let engineHint = "";
50
- if (generator.options?.noEngine) {
51
- engineHint = ", engine=none";
52
- } else if (engineType === "binary") {
53
- engineHint = ", engine=binary";
54
- } else if (engineType === "library") {
55
- engineHint = "";
56
- }
57
- return `v${version ?? "?.?.?"}${engineHint}`;
47
+ return `v${version ?? "?.?.?"}`;
58
48
  }
59
49
  return version;
60
50
  }
@@ -26,20 +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_QLOP3Z4E_exports = {};
30
- __export(chunk_QLOP3Z4E_exports, {
29
+ var chunk_AYPKO22A_exports = {};
30
+ __export(chunk_AYPKO22A_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
- getConfig: () => getConfig,
33
- getDirectUrl: () => getDirectUrl,
34
- getEffectiveUrl: () => getEffectiveUrl,
35
- resolveUrl: () => resolveUrl
32
+ getConfig: () => getConfig
36
33
  });
37
- module.exports = __toCommonJS(chunk_QLOP3Z4E_exports);
38
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
39
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
34
+ module.exports = __toCommonJS(chunk_AYPKO22A_exports);
35
+ var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
40
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
- var import_chunk_WDPDHAFW = require("./chunk-WDPDHAFW.js");
42
- var import_chunk_262R2PBW = require("./chunk-262R2PBW.js");
37
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
+ var import_chunk_ECN6H47Y = require("./chunk-ECN6H47Y.js");
39
+ var import_chunk_T7XMJ6KH = require("./chunk-T7XMJ6KH.js");
43
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
44
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
45
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -64,41 +61,22 @@ ${detailsHeader} ${message}`;
64
61
  }).exhaustive();
65
62
  const errorMessageWithContext = `${constructedErrorMessage}
66
63
  [Context: getConfig]`;
67
- super((0, import_chunk_WDPDHAFW.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
+ super((0, import_chunk_ECN6H47Y.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
65
  this.name = "GetConfigError";
69
66
  }
70
67
  };
71
- function getEffectiveUrl(ds) {
72
- if (ds.directUrl !== void 0) return ds.directUrl;
73
- return ds.url;
74
- }
75
- function getDirectUrl(ds) {
76
- return ds.directUrl;
77
- }
78
- function resolveUrl(envValue) {
79
- const urlFromValue = envValue?.value;
80
- const urlEnvVarName = envValue?.fromEnvVar;
81
- const urlEnvVarValue = urlEnvVarName ? process.env[urlEnvVarName] : void 0;
82
- return urlFromValue ?? urlEnvVarValue;
83
- }
84
68
  async function getConfig(options) {
85
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getConfigWasm");
69
+ const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getConfigWasm");
86
70
  debug(`Using getConfig Wasm`);
87
71
  const configEither = (0, import_function.pipe)(
88
72
  (0, import_chunk_5DBOS77Y.tryCatch)(
89
73
  () => {
90
- if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
74
+ if (process.env.FORCE_PANIC_GET_CONFIG) {
91
75
  debug("Triggering a Rust panic...");
92
- import_chunk_262R2PBW.prismaSchemaWasm.debug_panic();
76
+ import_chunk_T7XMJ6KH.prismaSchemaWasm.debug_panic();
93
77
  }
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_262R2PBW.prismaSchemaWasm.get_config(params);
101
- return data;
78
+ const params = JSON.stringify({ prismaSchema: options.datamodel });
79
+ return import_chunk_T7XMJ6KH.prismaSchemaWasm.get_config(params);
102
80
  },
103
81
  (e) => ({
104
82
  type: "wasm-error",
@@ -156,12 +134,12 @@ async function getConfig(options) {
156
134
  return panic;
157
135
  }
158
136
  const errorOutput = e.error.message;
159
- return new GetConfigError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
137
+ return new GetConfigError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
160
138
  }).with({ type: "validation-error" }, (e) => {
161
139
  return new GetConfigError({
162
140
  _tag: "parsed",
163
141
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
164
- reason: (0, import_chunk_TZJROXB3.createSchemaValidationError)(e.reason),
142
+ reason: (0, import_chunk_WSZXPLJQ.createSchemaValidationError)(e.reason),
165
143
  message: formatErrors(e.error)
166
144
  });
167
145
  }).otherwise((e) => {
@@ -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 chunk_BVJP43JS_exports = {};
30
- __export(chunk_BVJP43JS_exports, {
29
+ var chunk_BXIKQUP5_exports = {};
30
+ __export(chunk_BXIKQUP5_exports, {
31
31
  getPackedPackage: () => getPackedPackage,
32
32
  require_p_map: () => require_p_map
33
33
  });
34
- module.exports = __toCommonJS(chunk_BVJP43JS_exports);
34
+ module.exports = __toCommonJS(chunk_BXIKQUP5_exports);
35
35
  var import_chunk_KDP6C3CB = require("./chunk-KDP6C3CB.js");
36
- var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
36
+ var import_chunk_YV4IFLW4 = require("./chunk-YV4IFLW4.js");
37
37
  var import_chunk_UMM35VP5 = require("./chunk-UMM35VP5.js");
38
38
  var import_chunk_5VQNKCKW = require("./chunk-5VQNKCKW.js");
39
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -6254,9 +6254,9 @@ var require_del = (0, import_chunk_4VNS5WPM.__commonJS)({
6254
6254
  "use strict";
6255
6255
  var { promisify } = (0, import_chunk_4VNS5WPM.__require)("util");
6256
6256
  var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
6257
- var globby = (0, import_chunk_JOIIWB3U.require_globby)();
6258
- var isGlob = (0, import_chunk_JOIIWB3U.require_is_glob)();
6259
- var slash = (0, import_chunk_JOIIWB3U.require_slash)();
6257
+ var globby = (0, import_chunk_YV4IFLW4.require_globby)();
6258
+ var isGlob = (0, import_chunk_YV4IFLW4.require_is_glob)();
6259
+ var slash = (0, import_chunk_YV4IFLW4.require_slash)();
6260
6260
  var gracefulFs = require_graceful_fs();
6261
6261
  var isPathCwd = require_is_path_cwd();
6262
6262
  var isPathInside = require_is_path_inside();
@@ -16,13 +16,13 @@ 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_AX5N26KG_exports = {};
20
- __export(chunk_AX5N26KG_exports, {
19
+ var chunk_CQVWHHIJ_exports = {};
20
+ __export(chunk_CQVWHHIJ_exports, {
21
21
  missingGeneratorMessage: () => missingGeneratorMessage,
22
22
  missingModelMessage: () => missingModelMessage,
23
23
  missingModelMessageMongoDB: () => missingModelMessageMongoDB
24
24
  });
25
- module.exports = __toCommonJS(chunk_AX5N26KG_exports);
25
+ module.exports = __toCommonJS(chunk_CQVWHHIJ_exports);
26
26
  var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
27
27
  var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
28
28
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -30,13 +30,18 @@ var missingGeneratorMessage = `
30
30
  ${(0, import_chunk_PG5FDKSF.blue)("info")} You don't have any generators defined in your ${(0, import_chunk_PG5FDKSF.bold)(
31
31
  "schema.prisma"
32
32
  )}, so nothing will be generated.
33
- You can define them like this:
33
+ Add the Prisma Client generator like this:
34
34
 
35
35
  ${(0, import_chunk_PG5FDKSF.bold)(
36
36
  (0, import_chunk_TQCLUNM2.highlightDatamodel)(`generator client {
37
- provider = "prisma-client-js"
37
+ provider = "prisma-client"
38
+ output = "../src/generated/prisma"
38
39
  }`)
39
- )}`;
40
+ )}
41
+
42
+ More information in our documentation:
43
+ ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
44
+ `;
40
45
  var missingModelMessage = `
41
46
  You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
42
47
  "schema.prisma"
@@ -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_FYZCPL2Z_exports = {};
30
- __export(chunk_FYZCPL2Z_exports, {
29
+ var chunk_DQWKFZPY_exports = {};
30
+ __export(chunk_DQWKFZPY_exports, {
31
31
  BinaryType: () => import_fetch_engine.BinaryType,
32
32
  engineEnvVarMap: () => import_fetch_engine.engineEnvVarMap,
33
33
  maybeCopyToTmp: () => maybeCopyToTmp,
34
34
  resolveBinary: () => resolveBinary,
35
35
  safeResolveBinary: () => safeResolveBinary
36
36
  });
37
- module.exports = __toCommonJS(chunk_FYZCPL2Z_exports);
38
- var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
37
+ module.exports = __toCommonJS(chunk_DQWKFZPY_exports);
39
38
  var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
39
+ var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
40
40
  var import_chunk_TWSLDIFL = require("./chunk-TWSLDIFL.js");
41
41
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
42
42
  var import_chunk_5VQNKCKW = require("./chunk-5VQNKCKW.js");
@@ -51,9 +51,6 @@ var import_temp_dir = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_5VQNKC
51
51
  async function getBinaryName(name) {
52
52
  const binaryTarget = await (0, import_get_platform.getBinaryTargetForCurrentPlatform)();
53
53
  const extension = binaryTarget === "windows" ? ".exe" : "";
54
- if (name === import_fetch_engine.BinaryType.QueryEngineLibrary) {
55
- return (0, import_get_platform.getNodeAPIName)(binaryTarget, "fs");
56
- }
57
54
  return `${name}-${binaryTarget}${extension}`;
58
55
  }
59
56
  async function resolveBinary(name, proposedPath) {
@@ -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 chunk_7QC5VORA_exports = {};
20
- __export(chunk_7QC5VORA_exports, {
19
+ var chunk_DXWYZA7B_exports = {};
20
+ __export(chunk_DXWYZA7B_exports, {
21
21
  missingDatasource: () => missingDatasource
22
22
  });
23
- module.exports = __toCommonJS(chunk_7QC5VORA_exports);
23
+ module.exports = __toCommonJS(chunk_DXWYZA7B_exports);
24
24
  var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
25
25
  var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
26
26
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -31,7 +31,6 @@ You can define a datasource like this:
31
31
  ${(0, import_chunk_PG5FDKSF.bold)(
32
32
  (0, import_chunk_TQCLUNM2.highlightDatamodel)(`datasource db {
33
33
  provider = "postgresql"
34
- url = env("DB_URL")
35
34
  }`)
36
35
  )}
37
36
 
@@ -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_WDPDHAFW_exports = {};
20
- __export(chunk_WDPDHAFW_exports, {
19
+ var chunk_ECN6H47Y_exports = {};
20
+ __export(chunk_ECN6H47Y_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_WDPDHAFW_exports);
24
- var import_chunk_W6J5YFD2 = require("./chunk-W6J5YFD2.js");
23
+ module.exports = __toCommonJS(chunk_ECN6H47Y_exports);
24
+ var import_chunk_7IBWXVWK = require("./chunk-7IBWXVWK.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_W6J5YFD2.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_7IBWXVWK.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -26,13 +26,13 @@ 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_F2OZV76L_exports = {};
30
- __export(chunk_F2OZV76L_exports, {
29
+ var chunk_GH2WAX5Y_exports = {};
30
+ __export(chunk_GH2WAX5Y_exports, {
31
31
  getBinaryPathsByVersion: () => getBinaryPathsByVersion
32
32
  });
33
- module.exports = __toCommonJS(chunk_F2OZV76L_exports);
34
- var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
35
- var import_chunk_4CGPN5SR = require("./chunk-4CGPN5SR.js");
33
+ module.exports = __toCommonJS(chunk_GH2WAX5Y_exports);
34
+ var import_chunk_GJSFP4V4 = require("./chunk-GJSFP4V4.js");
35
+ var import_chunk_5I4ERIIY = require("./chunk-5I4ERIIY.js");
36
36
  var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
37
37
  var import_chunk_7B5PXS6N = require("./chunk-7B5PXS6N.js");
38
38
  var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
@@ -91,7 +91,7 @@ async function getBinaryPathsByVersion({
91
91
  }
92
92
  const binariesConfig = neededVersion.engines.reduce((acc, curr) => {
93
93
  if (!binaryPathsOverride?.[curr]) {
94
- acc[(0, import_chunk_4CGPN5SR.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
94
+ acc[(0, import_chunk_GJSFP4V4.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
95
95
  }
96
96
  return acc;
97
97
  }, /* @__PURE__ */ Object.create(null));
@@ -107,7 +107,7 @@ async function getBinaryPathsByVersion({
107
107
  skipDownload
108
108
  };
109
109
  const binaryPathsWithEngineType = await (0, import_fetch_engine.download)(downloadParams);
110
- const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_RS2R7COT.binaryTypeToEngineType);
110
+ const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_5I4ERIIY.binaryTypeToEngineType);
111
111
  binaryPathsByVersion[currentVersion] = binaryPaths;
112
112
  }
113
113
  if (binaryPathsOverride) {