@prisma/internals 6.6.0-dev.6 → 6.6.0-dev.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/dist/Generator.d.ts +23 -5
  2. package/dist/Generator.js +5 -3
  3. package/dist/WasmPanicRegistry.js +3 -3
  4. package/dist/{chunk-PIPE5DSU.js → chunk-2H6XXXKO.js} +18 -21
  5. package/dist/chunk-2IMW37JH.js +900 -0
  6. package/dist/chunk-2QTAK7KO.js +101 -0
  7. package/dist/{chunk-XLGODPZH.js → chunk-3DQANJMY.js} +12 -12
  8. package/dist/{chunk-O342S7ZQ.js → chunk-4BUV4ESE.js} +22 -26
  9. package/dist/{chunk-WWAWV7DQ.js → chunk-4VNS5WPM.js} +3 -33
  10. package/dist/{chunk-KQOJB3ZW.js → chunk-5AI4FIZ3.js} +10 -10
  11. package/dist/{chunk-7MD6344A.js → chunk-5DBOS77Y.js} +3 -5
  12. package/dist/{chunk-TZCE3PWZ.js → chunk-5VQNKCKW.js} +7 -7
  13. package/dist/{chunk-YXD4CJDK.js → chunk-67I7CEQJ.js} +30 -31
  14. package/dist/{chunk-I7IEEULS.js → chunk-6TTRTZXU.js} +5 -5
  15. package/dist/{chunk-ESBSOM7H.js → chunk-6WQVUWQM.js} +5 -5
  16. package/dist/{chunk-5RV3EMX6.js → chunk-75BIJ5PX.js} +57 -57
  17. package/dist/{chunk-C4KFH4DG.js → chunk-A6IRWWSZ.js} +10 -9
  18. package/dist/{chunk-BGFWFIPR.js → chunk-AZV6HVKA.js} +5 -5
  19. package/dist/{chunk-ZYW3HGSH.js → chunk-BPDMLM32.js} +49 -17
  20. package/dist/{chunk-5MCWLJSR.js → chunk-CR3XKUEA.js} +10 -10
  21. package/dist/{chunk-TSJICM5S.js → chunk-CRVLHWC5.js} +5 -5
  22. package/dist/{chunk-NON34H7K.js → chunk-CW6KQ3VH.js} +30 -34
  23. package/dist/{chunk-SHJNE6T7.js → chunk-D4VDA2TZ.js} +7 -7
  24. package/dist/{chunk-Q22BLLK3.js → chunk-D4VZUY3O.js} +6 -6
  25. package/dist/{chunk-KTBNIQ7N.js → chunk-DKSUHQGA.js} +8 -8
  26. package/dist/{chunk-EUTJYQDW.js → chunk-DODIJPCS.js} +13 -25
  27. package/dist/{chunk-UNUCCAXA.js → chunk-DTPFRZWV.js} +5 -5
  28. package/dist/{chunk-NJQWZ447.js → chunk-EPXBOIA5.js} +6 -6
  29. package/dist/{chunk-7XNZDY2V.js → chunk-ETYWYJBX.js} +60 -60
  30. package/dist/{chunk-5SN5JBT2.js → chunk-FXMGS3L5.js} +21 -40
  31. package/dist/{chunk-I7L2MZHS.js → chunk-GNKWZC7O.js} +11 -15
  32. package/dist/{chunk-OE6YQBXZ.js → chunk-GOOL567Z.js} +11 -10
  33. package/dist/{chunk-L6GBFCXG.js → chunk-HAGJ64PM.js} +142 -155
  34. package/dist/{chunk-3ERIN7PH.js → chunk-HG3YOAAE.js} +10 -10
  35. package/dist/{chunk-GXDYIY4M.js → chunk-IDINCQMN.js} +56 -57
  36. package/dist/{chunk-B3FIG77N.js → chunk-IJP44JMI.js} +23 -27
  37. package/dist/{chunk-ZRU4X7P5.js → chunk-IYVKGIB2.js} +11 -15
  38. package/dist/{chunk-EXVN2NDU.js → chunk-JETLVL4E.js} +5 -5
  39. package/dist/{chunk-VNUGIB23.js → chunk-JHF7CF7M.js} +5 -5
  40. package/dist/{chunk-53LS3WUO.js → chunk-JOIIWB3U.js} +116 -116
  41. package/dist/{chunk-CZL7DCL2.js → chunk-JYMY3OAI.js} +6 -6
  42. package/dist/{chunk-TATYN3T2.js → chunk-KB5DKCI4.js} +29 -29
  43. package/dist/{chunk-LKTTJWFT.js → chunk-KDP6C3CB.js} +5 -5
  44. package/dist/{chunk-ATFQZVBS.js → chunk-LMVSIVKQ.js} +9 -14
  45. package/dist/{chunk-HNUYQRMW.js → chunk-LOQLID3N.js} +23 -27
  46. package/dist/{chunk-ZKAW5JSN.js → chunk-LRJ4X43J.js} +5 -5
  47. package/dist/{chunk-ONHKZPSV.js → chunk-LRU47BGE.js} +6 -6
  48. package/dist/{chunk-C2WD2XUT.js → chunk-MJIP3FY5.js} +968 -1220
  49. package/dist/{chunk-4E7A3GDU.js → chunk-MM4ARWWY.js} +5 -5
  50. package/dist/{chunk-V2ZF7ETH.js → chunk-NVNI2SRU.js} +66 -68
  51. package/dist/{chunk-O3UVWF5W.js → chunk-OE4XGY7B.js} +30 -34
  52. package/dist/{chunk-JHQHVXIR.js → chunk-OSHZ4P3G.js} +6 -7
  53. package/dist/{chunk-IPKE37QC.js → chunk-PFYALFCY.js} +6 -5
  54. package/dist/{chunk-DQS4NTNF.js → chunk-QJ72IP2K.js} +46 -79
  55. package/dist/chunk-QXNNDOVP.js +900 -0
  56. package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
  57. package/dist/{chunk-PFLLVWZX.js → chunk-R6QH57HZ.js} +5 -5
  58. package/dist/{chunk-GRHK5FCK.js → chunk-SKDR2FJB.js} +5 -5
  59. package/dist/{chunk-VXJLHQT3.js → chunk-T5MMBF2S.js} +9 -9
  60. package/dist/{chunk-YHZJOEOE.js → chunk-TN4KCTWC.js} +22 -26
  61. package/dist/{chunk-Y3OWT3K2.js → chunk-TQFONRJP.js} +7 -7
  62. package/dist/{chunk-3BND5XB4.js → chunk-UTJGRVMG.js} +11 -11
  63. package/dist/{chunk-7RSJWEVV.js → chunk-UUO3P3VK.js} +46 -79
  64. package/dist/{chunk-CHMJ5V7I.js → chunk-UZTXEBTM.js} +7 -7
  65. package/dist/{chunk-6TXVGFQA.js → chunk-WSZXPLJQ.js} +11 -11
  66. package/dist/{chunk-BPZFDGKN.js → chunk-WXRVYSYN.js} +4 -7
  67. package/dist/{chunk-PB6AJZNB.js → chunk-XHEEFWQQ.js} +9 -9
  68. package/dist/{chunk-2MWIMEFK.js → chunk-XLTQGAI2.js} +6 -6
  69. package/dist/chunk-YR5KNFKN.js +1834 -0
  70. package/dist/{chunk-AZNLB67U.js → chunk-ZJWZK45Z.js} +5 -5
  71. package/dist/chunk-ZSINRHD4.js +43 -0
  72. package/dist/cli/Help.js +1 -1
  73. package/dist/cli/checkUnsupportedDataProxy.d.ts +12 -17
  74. package/dist/cli/checkUnsupportedDataProxy.js +75 -78
  75. package/dist/cli/directoryConfig.d.ts +7 -0
  76. package/dist/cli/directoryConfig.js +25 -0
  77. package/dist/cli/getGeneratorSuccessMessage.js +1 -1
  78. package/dist/cli/getSchema.d.ts +3 -28
  79. package/dist/cli/getSchema.js +78 -82
  80. package/dist/cli/getTypescriptVersion.js +1 -1
  81. package/dist/cli/hashes.d.ts +1 -2
  82. package/dist/cli/hashes.js +75 -78
  83. package/dist/cli/schemaContext.d.ts +59 -0
  84. package/dist/cli/schemaContext.js +133 -0
  85. package/dist/cli/utils.js +5 -5
  86. package/dist/client/getClientEngineType.d.ts +1 -1
  87. package/dist/client/getClientEngineType.js +1 -1
  88. package/dist/convertCredentials.d.ts +1 -1
  89. package/dist/convertCredentials.js +1 -1
  90. package/dist/dotenvExpand.js +1 -1
  91. package/dist/engine-commands/errorHelpers.js +5 -5
  92. package/dist/engine-commands/formatSchema.js +74 -77
  93. package/dist/engine-commands/getConfig.d.ts +1 -5
  94. package/dist/engine-commands/getConfig.js +16 -17
  95. package/dist/engine-commands/getDmmf.d.ts +3 -6
  96. package/dist/engine-commands/getDmmf.js +13 -14
  97. package/dist/engine-commands/getEngineVersion.js +12 -12
  98. package/dist/engine-commands/getEnginesMetaInfo.js +15 -15
  99. package/dist/engine-commands/index.js +85 -88
  100. package/dist/engine-commands/lintSchema.d.ts +1 -1
  101. package/dist/engine-commands/lintSchema.js +11 -12
  102. package/dist/engine-commands/mergeSchemas.js +13 -14
  103. package/dist/engine-commands/queryEngineCommons.js +8 -8
  104. package/dist/engine-commands/relativizePathInPSLError.js +1 -1
  105. package/dist/engine-commands/validate.js +13 -14
  106. package/dist/errorReporting.d.ts +0 -1
  107. package/dist/errorReporting.js +7 -7
  108. package/dist/get-generators/getGenerators.d.ts +22 -9
  109. package/dist/get-generators/getGenerators.js +77 -80
  110. package/dist/get-generators/utils/binaryTypeToEngineType.d.ts +1 -1
  111. package/dist/get-generators/utils/binaryTypeToEngineType.js +1 -1
  112. package/dist/get-generators/utils/engineTypeToBinaryType.d.ts +1 -1
  113. package/dist/get-generators/utils/engineTypeToBinaryType.js +1 -1
  114. package/dist/get-generators/utils/fixBinaryTargets.d.ts +1 -1
  115. package/dist/get-generators/utils/fixBinaryTargets.js +1 -1
  116. package/dist/get-generators/utils/getBinaryPathsByVersion.d.ts +1 -1
  117. package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
  118. package/dist/get-generators/utils/getEngineVersionForGenerator.d.ts +1 -1
  119. package/dist/get-generators/utils/getEngineVersionForGenerator.js +1 -1
  120. package/dist/get-generators/utils/printGeneratorConfig.d.ts +1 -1
  121. package/dist/get-generators/utils/printGeneratorConfig.js +7 -7
  122. package/dist/getPackedPackage.js +9 -9
  123. package/dist/highlight/highlight.js +1 -1
  124. package/dist/highlight/languages/dml.js +1 -1
  125. package/dist/highlight/languages/sql.js +1 -1
  126. package/dist/highlight/prism.js +1 -1
  127. package/dist/highlight/theme.js +1 -1
  128. package/dist/index.d.ts +7 -7
  129. package/dist/index.js +141 -145
  130. package/dist/logger.js +9 -9
  131. package/dist/migrateTypes.d.ts +63 -0
  132. package/dist/{multipart-parser-32AROPTR.js → multipart-parser-3AFJFP6K.js} +7 -7
  133. package/dist/panic.d.ts +1 -4
  134. package/dist/panic.js +7 -7
  135. package/dist/resolveBinary.js +10 -10
  136. package/dist/resolveOutput.js +1 -1
  137. package/dist/resolvePkg.d.ts +7 -0
  138. package/dist/{get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.js → resolvePkg.js} +6 -6
  139. package/dist/schemaEngineCommands.js +13 -13
  140. package/dist/sendPanic.js +7 -111
  141. package/dist/types.d.ts +1 -1
  142. package/dist/utils/__tests__/isCi.test.js +1 -1
  143. package/dist/utils/__tests__/isInteractive.test.js +1 -1
  144. package/dist/utils/__tests__/maskSchema.test.js +1 -1
  145. package/dist/utils/assertAlways.js +1 -1
  146. package/dist/utils/assertNever.js +1 -1
  147. package/dist/utils/binaryTargetRegex.js +3 -3
  148. package/dist/utils/byline.js +1 -1
  149. package/dist/utils/callOnce.js +1 -1
  150. package/dist/utils/callOnce.test.js +1 -1
  151. package/dist/utils/canPrompt.js +4 -4
  152. package/dist/utils/chmodPlusX.js +1 -1
  153. package/dist/utils/cloudflareD1.js +4 -4
  154. package/dist/utils/drawBox.js +1 -1
  155. package/dist/utils/extractPreviewFeatures.d.ts +2 -2
  156. package/dist/utils/extractPreviewFeatures.js +3 -3
  157. package/dist/utils/formatTable.js +1 -1
  158. package/dist/utils/formatms.js +1 -1
  159. package/dist/utils/fs-functional.js +12 -12
  160. package/dist/utils/fs-utils.js +9 -9
  161. package/dist/utils/getCommandWithExecutor.js +4 -4
  162. package/dist/utils/getEnvPaths.d.ts +1 -1
  163. package/dist/utils/getEnvPaths.js +74 -77
  164. package/dist/utils/getGitHubIssueUrl.js +5 -4
  165. package/dist/utils/getMigrateConfigDir.js +1 -1
  166. package/dist/utils/getVersionFromPackageJson.js +4 -4
  167. package/dist/utils/handleEngineLoadingErrors.js +1 -1
  168. package/dist/utils/handlePanic.js +13 -110
  169. package/dist/utils/hasOwnProperty.js +1 -1
  170. package/dist/utils/isCi.js +1 -1
  171. package/dist/utils/isCurrentBinInstalledGlobally.js +3 -3
  172. package/dist/utils/isInContainer.js +1 -1
  173. package/dist/utils/isInNpmLifecycleHook.js +1 -1
  174. package/dist/utils/isInteractive.js +1 -1
  175. package/dist/utils/isPromiseLike.js +1 -1
  176. package/dist/utils/isValidJsIdentifier.js +4 -4
  177. package/dist/utils/keyBy.js +1 -1
  178. package/dist/utils/link.js +3 -3
  179. package/dist/utils/load.js +3 -3
  180. package/dist/utils/loadEnvFile.js +74 -77
  181. package/dist/utils/mapKeys.js +1 -1
  182. package/dist/utils/mapObjectValues.js +1 -1
  183. package/dist/utils/maskSchema.js +1 -1
  184. package/dist/utils/max.js +1 -1
  185. package/dist/utils/max.test.js +1 -1
  186. package/dist/utils/maybeInGitHook.js +1 -1
  187. package/dist/utils/missingDatasource.js +4 -4
  188. package/dist/utils/missingGeneratorMessage.js +6 -6
  189. package/dist/utils/now.js +1 -1
  190. package/dist/utils/omit.js +1 -1
  191. package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.js +1 -1
  192. package/dist/utils/parseEnvValue.d.ts +1 -1
  193. package/dist/utils/parseEnvValue.js +1 -1
  194. package/dist/utils/path.js +1 -1
  195. package/dist/utils/path.test.js +1 -1
  196. package/dist/utils/pick.js +1 -1
  197. package/dist/utils/printConfigWarnings.js +1 -1
  198. package/dist/utils/prismaPostgres.js +1 -1
  199. package/dist/utils/prismaPostgres.test.js +1 -1
  200. package/dist/utils/schemaFileInput.d.ts +0 -4
  201. package/dist/utils/schemaFileInput.js +3 -7
  202. package/dist/utils/serializeQueryEngineName.js +1 -1
  203. package/dist/utils/setClassName.js +1 -1
  204. package/dist/utils/toSchemasContainer.d.ts +2 -3
  205. package/dist/utils/toSchemasContainer.js +4 -5
  206. package/dist/utils/tryLoadEnvs.js +6 -6
  207. package/dist/utils/unique.js +1 -1
  208. package/dist/utils/vercelPkgPathRegex.js +1 -1
  209. package/dist/warnOnce.js +4 -4
  210. package/dist/wasm.js +6 -6
  211. package/package.json +13 -12
  212. package/dist/chunk-77IC3DNO.js +0 -35
  213. package/dist/chunk-AOQIUJT4.js +0 -41
  214. package/dist/chunk-KQKHO2IC.js +0 -15631
  215. package/dist/chunk-MGZOEY6N.js +0 -28
  216. package/dist/chunk-O2CGGO6D.js +0 -15631
  217. package/dist/chunk-S57RMXZW.js +0 -28
  218. package/dist/chunk-VRT7T6MF.js +0 -4959
  219. package/dist/chunk-YRBRUREX.js +0 -57
  220. package/dist/get-generators/generatorResolvers/generatorResolvers.d.ts +0 -15
  221. package/dist/get-generators/generatorResolvers/generatorResolvers.js +0 -135
  222. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.d.ts +0 -6
  223. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +0 -26
  224. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.d.ts +0 -9
  225. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +0 -26
  226. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.d.ts +0 -8
  227. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +0 -29
  228. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.d.ts +0 -6
  229. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +0 -135
  230. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.d.ts +0 -1
  231. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +0 -26
  232. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.d.ts +0 -20
  233. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +0 -26
  234. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.d.ts +0 -7
  235. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.d.ts +0 -1
  236. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.js +0 -17
  237. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.d.ts +0 -20
  238. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +0 -136
  239. package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.d.ts +0 -8
  240. package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.js +0 -25
@@ -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_4E7A3GDU_exports = {};
20
- __export(chunk_4E7A3GDU_exports, {
19
+ var chunk_MM4ARWWY_exports = {};
20
+ __export(chunk_MM4ARWWY_exports, {
21
21
  require_is_stream: () => require_is_stream
22
22
  });
23
- module.exports = __toCommonJS(chunk_4E7A3GDU_exports);
24
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
25
- var require_is_stream = (0, import_chunk_WWAWV7DQ.__commonJS)({
23
+ module.exports = __toCommonJS(chunk_MM4ARWWY_exports);
24
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
25
+ var require_is_stream = (0, import_chunk_4VNS5WPM.__commonJS)({
26
26
  "../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js"(exports, module2) {
27
27
  "use strict";
28
28
  var isStream = (stream) => stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
@@ -16,17 +16,17 @@ 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_V2ZF7ETH_exports = {};
20
- __export(chunk_V2ZF7ETH_exports, {
19
+ var chunk_NVNI2SRU_exports = {};
20
+ __export(chunk_NVNI2SRU_exports, {
21
21
  FormData: () => FormData,
22
22
  fetch_blob_default: () => fetch_blob_default,
23
23
  file_default: () => file_default,
24
24
  formDataToBlob: () => formDataToBlob
25
25
  });
26
- module.exports = __toCommonJS(chunk_V2ZF7ETH_exports);
27
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
26
+ module.exports = __toCommonJS(chunk_NVNI2SRU_exports);
27
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
28
28
  var import_node_fs = require("node:fs");
29
- var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
29
+ var require_ponyfill_es2018 = (0, import_chunk_4VNS5WPM.__commonJS)({
30
30
  "../../node_modules/.pnpm/web-streams-polyfill@3.2.1/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js"(exports, module2) {
31
31
  "use strict";
32
32
  (function(global2, factory) {
@@ -574,7 +574,7 @@ var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
574
574
  }
575
575
  try {
576
576
  return x2._asyncIteratorImpl instanceof ReadableStreamAsyncIteratorImpl;
577
- } catch (_a4) {
577
+ } catch (_a) {
578
578
  return false;
579
579
  }
580
580
  }
@@ -1467,7 +1467,7 @@ var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
1467
1467
  }
1468
1468
  try {
1469
1469
  return typeof value.aborted === "boolean";
1470
- } catch (_a4) {
1470
+ } catch (_a) {
1471
1471
  return false;
1472
1472
  }
1473
1473
  }
@@ -1608,12 +1608,12 @@ var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
1608
1608
  return true;
1609
1609
  }
1610
1610
  function WritableStreamAbort(stream, reason) {
1611
- var _a4;
1611
+ var _a;
1612
1612
  if (stream._state === "closed" || stream._state === "errored") {
1613
1613
  return promiseResolvedWith(void 0);
1614
1614
  }
1615
1615
  stream._writableStreamController._abortReason = reason;
1616
- (_a4 = stream._writableStreamController._abortController) === null || _a4 === void 0 ? void 0 : _a4.abort();
1616
+ (_a = stream._writableStreamController._abortController) === null || _a === void 0 ? void 0 : _a.abort();
1617
1617
  const state = stream._state;
1618
1618
  if (state === "closed" || state === "errored") {
1619
1619
  return promiseResolvedWith(void 0);
@@ -2343,7 +2343,7 @@ var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
2343
2343
  try {
2344
2344
  new ctor();
2345
2345
  return true;
2346
- } catch (_a4) {
2346
+ } catch (_a) {
2347
2347
  return false;
2348
2348
  }
2349
2349
  }
@@ -3399,7 +3399,7 @@ var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
3399
3399
  value: "size",
3400
3400
  configurable: true
3401
3401
  });
3402
- } catch (_a4) {
3402
+ } catch (_a) {
3403
3403
  }
3404
3404
  class ByteLengthQueuingStrategy {
3405
3405
  constructor(options) {
@@ -3456,7 +3456,7 @@ var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
3456
3456
  value: "size",
3457
3457
  configurable: true
3458
3458
  });
3459
- } catch (_a4) {
3459
+ } catch (_a) {
3460
3460
  }
3461
3461
  class CountQueuingStrategy {
3462
3462
  constructor(options) {
@@ -3835,18 +3835,18 @@ var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
3835
3835
  });
3836
3836
  }
3837
3837
  });
3838
- var require_streams = (0, import_chunk_WWAWV7DQ.__commonJS)({
3838
+ var require_streams = (0, import_chunk_4VNS5WPM.__commonJS)({
3839
3839
  "../../node_modules/.pnpm/fetch-blob@3.2.0/node_modules/fetch-blob/streams.cjs"() {
3840
3840
  "use strict";
3841
3841
  var POOL_SIZE2 = 65536;
3842
3842
  if (!globalThis.ReadableStream) {
3843
3843
  try {
3844
- const process = (0, import_chunk_WWAWV7DQ.__require)("node:process");
3844
+ const process = (0, import_chunk_4VNS5WPM.__require)("node:process");
3845
3845
  const { emitWarning } = process;
3846
3846
  try {
3847
3847
  process.emitWarning = () => {
3848
3848
  };
3849
- Object.assign(globalThis, (0, import_chunk_WWAWV7DQ.__require)("node:stream/web"));
3849
+ Object.assign(globalThis, (0, import_chunk_4VNS5WPM.__require)("node:stream/web"));
3850
3850
  process.emitWarning = emitWarning;
3851
3851
  } catch (error) {
3852
3852
  process.emitWarning = emitWarning;
@@ -3857,9 +3857,9 @@ var require_streams = (0, import_chunk_WWAWV7DQ.__commonJS)({
3857
3857
  }
3858
3858
  }
3859
3859
  try {
3860
- const { Blob: Blob2 } = (0, import_chunk_WWAWV7DQ.__require)("buffer");
3861
- if (Blob2 && !Blob2.prototype.stream) {
3862
- Blob2.prototype.stream = function name(params) {
3860
+ const { Blob: Blob3 } = (0, import_chunk_4VNS5WPM.__require)("buffer");
3861
+ if (Blob3 && !Blob3.prototype.stream) {
3862
+ Blob3.prototype.stream = function name(params) {
3863
3863
  let position = 0;
3864
3864
  const blob = this;
3865
3865
  return new ReadableStream({
@@ -3880,12 +3880,12 @@ var require_streams = (0, import_chunk_WWAWV7DQ.__commonJS)({
3880
3880
  }
3881
3881
  }
3882
3882
  });
3883
- var require_node_domexception = (0, import_chunk_WWAWV7DQ.__commonJS)({
3883
+ var require_node_domexception = (0, import_chunk_4VNS5WPM.__commonJS)({
3884
3884
  "../../node_modules/.pnpm/node-domexception@1.0.0/node_modules/node-domexception/index.js"(exports, module2) {
3885
3885
  "use strict";
3886
3886
  if (!globalThis.DOMException) {
3887
3887
  try {
3888
- const { MessageChannel } = (0, import_chunk_WWAWV7DQ.__require)("worker_threads"), port = new MessageChannel().port1, ab = new ArrayBuffer();
3888
+ const { MessageChannel } = (0, import_chunk_4VNS5WPM.__require)("worker_threads"), port = new MessageChannel().port1, ab = new ArrayBuffer();
3889
3889
  port.postMessage(ab, [ab, ab]);
3890
3890
  } catch (err) {
3891
3891
  err.constructor.name === "DOMException" && (globalThis.DOMException = err.constructor);
@@ -3894,7 +3894,7 @@ var require_node_domexception = (0, import_chunk_WWAWV7DQ.__commonJS)({
3894
3894
  module2.exports = globalThis.DOMException;
3895
3895
  }
3896
3896
  });
3897
- var import_streams = (0, import_chunk_WWAWV7DQ.__toESM)(require_streams(), 1);
3897
+ var import_streams = (0, import_chunk_4VNS5WPM.__toESM)(require_streams(), 1);
3898
3898
  var POOL_SIZE = 65536;
3899
3899
  async function* toIterator(parts, clone = true) {
3900
3900
  for (const part of parts) {
@@ -3930,8 +3930,12 @@ async function* toIterator(parts, clone = true) {
3930
3930
  }
3931
3931
  }
3932
3932
  }
3933
- var _parts, _type, _size, _endings, _a;
3934
- var _Blob = (_a = class {
3933
+ var _Blob = class Blob {
3934
+ /** @type {Array.<(Blob|Uint8Array)>} */
3935
+ #parts = [];
3936
+ #type = "";
3937
+ #size = 0;
3938
+ #endings = "transparent";
3935
3939
  /**
3936
3940
  * The Blob() constructor returns a new Blob object. The content
3937
3941
  * of the blob consists of the concatenation of the values given
@@ -3941,10 +3945,6 @@ var _Blob = (_a = class {
3941
3945
  * @param {{ type?: string, endings?: string }} [options]
3942
3946
  */
3943
3947
  constructor(blobParts = [], options = {}) {
3944
- (0, import_chunk_WWAWV7DQ.__privateAdd)(this, _parts, []);
3945
- (0, import_chunk_WWAWV7DQ.__privateAdd)(this, _type, "");
3946
- (0, import_chunk_WWAWV7DQ.__privateAdd)(this, _size, 0);
3947
- (0, import_chunk_WWAWV7DQ.__privateAdd)(this, _endings, "transparent");
3948
3948
  if (typeof blobParts !== "object" || blobParts === null) {
3949
3949
  throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");
3950
3950
  }
@@ -3962,30 +3962,30 @@ var _Blob = (_a = class {
3962
3962
  part = new Uint8Array(element.buffer.slice(element.byteOffset, element.byteOffset + element.byteLength));
3963
3963
  } else if (element instanceof ArrayBuffer) {
3964
3964
  part = new Uint8Array(element.slice(0));
3965
- } else if (element instanceof _a) {
3965
+ } else if (element instanceof Blob) {
3966
3966
  part = element;
3967
3967
  } else {
3968
3968
  part = encoder.encode(`${element}`);
3969
3969
  }
3970
- (0, import_chunk_WWAWV7DQ.__privateSet)(this, _size, (0, import_chunk_WWAWV7DQ.__privateGet)(this, _size) + (ArrayBuffer.isView(part) ? part.byteLength : part.size));
3971
- (0, import_chunk_WWAWV7DQ.__privateGet)(this, _parts).push(part);
3970
+ this.#size += ArrayBuffer.isView(part) ? part.byteLength : part.size;
3971
+ this.#parts.push(part);
3972
3972
  }
3973
- (0, import_chunk_WWAWV7DQ.__privateSet)(this, _endings, `${options.endings === void 0 ? "transparent" : options.endings}`);
3973
+ this.#endings = `${options.endings === void 0 ? "transparent" : options.endings}`;
3974
3974
  const type = options.type === void 0 ? "" : String(options.type);
3975
- (0, import_chunk_WWAWV7DQ.__privateSet)(this, _type, /^[\x20-\x7E]*$/.test(type) ? type : "");
3975
+ this.#type = /^[\x20-\x7E]*$/.test(type) ? type : "";
3976
3976
  }
3977
3977
  /**
3978
3978
  * The Blob interface's size property returns the
3979
3979
  * size of the Blob in bytes.
3980
3980
  */
3981
3981
  get size() {
3982
- return (0, import_chunk_WWAWV7DQ.__privateGet)(this, _size);
3982
+ return this.#size;
3983
3983
  }
3984
3984
  /**
3985
3985
  * The type property of a Blob object returns the MIME type of the file.
3986
3986
  */
3987
3987
  get type() {
3988
- return (0, import_chunk_WWAWV7DQ.__privateGet)(this, _type);
3988
+ return this.#type;
3989
3989
  }
3990
3990
  /**
3991
3991
  * The text() method in the Blob interface returns a Promise
@@ -3997,7 +3997,7 @@ var _Blob = (_a = class {
3997
3997
  async text() {
3998
3998
  const decoder = new TextDecoder();
3999
3999
  let str = "";
4000
- for await (const part of toIterator((0, import_chunk_WWAWV7DQ.__privateGet)(this, _parts), false)) {
4000
+ for await (const part of toIterator(this.#parts, false)) {
4001
4001
  str += decoder.decode(part, { stream: true });
4002
4002
  }
4003
4003
  str += decoder.decode();
@@ -4013,14 +4013,14 @@ var _Blob = (_a = class {
4013
4013
  async arrayBuffer() {
4014
4014
  const data = new Uint8Array(this.size);
4015
4015
  let offset = 0;
4016
- for await (const chunk of toIterator((0, import_chunk_WWAWV7DQ.__privateGet)(this, _parts), false)) {
4016
+ for await (const chunk of toIterator(this.#parts, false)) {
4017
4017
  data.set(chunk, offset);
4018
4018
  offset += chunk.length;
4019
4019
  }
4020
4020
  return data.buffer;
4021
4021
  }
4022
4022
  stream() {
4023
- const it = toIterator((0, import_chunk_WWAWV7DQ.__privateGet)(this, _parts), true);
4023
+ const it = toIterator(this.#parts, true);
4024
4024
  return new globalThis.ReadableStream({
4025
4025
  // @ts-ignore
4026
4026
  type: "bytes",
@@ -4047,7 +4047,7 @@ var _Blob = (_a = class {
4047
4047
  let relativeStart = start < 0 ? Math.max(size + start, 0) : Math.min(start, size);
4048
4048
  let relativeEnd = end < 0 ? Math.max(size + end, 0) : Math.min(end, size);
4049
4049
  const span = Math.max(relativeEnd - relativeStart, 0);
4050
- const parts = (0, import_chunk_WWAWV7DQ.__privateGet)(this, _parts);
4050
+ const parts = this.#parts;
4051
4051
  const blobParts = [];
4052
4052
  let added = 0;
4053
4053
  for (const part of parts) {
@@ -4072,9 +4072,9 @@ var _Blob = (_a = class {
4072
4072
  relativeStart = 0;
4073
4073
  }
4074
4074
  }
4075
- const blob = new _a([], { type: String(type).toLowerCase() });
4076
- (0, import_chunk_WWAWV7DQ.__privateSet)(blob, _size, span);
4077
- (0, import_chunk_WWAWV7DQ.__privateSet)(blob, _parts, blobParts);
4075
+ const blob = new Blob([], { type: String(type).toLowerCase() });
4076
+ blob.#size = span;
4077
+ blob.#parts = blobParts;
4078
4078
  return blob;
4079
4079
  }
4080
4080
  get [Symbol.toStringTag]() {
@@ -4083,16 +4083,17 @@ var _Blob = (_a = class {
4083
4083
  static [Symbol.hasInstance](object) {
4084
4084
  return object && typeof object === "object" && typeof object.constructor === "function" && (typeof object.stream === "function" || typeof object.arrayBuffer === "function") && /^(Blob|File)$/.test(object[Symbol.toStringTag]);
4085
4085
  }
4086
- }, _parts = /* @__PURE__ */ new WeakMap(), _type = /* @__PURE__ */ new WeakMap(), _size = /* @__PURE__ */ new WeakMap(), _endings = /* @__PURE__ */ new WeakMap(), _a);
4086
+ };
4087
4087
  Object.defineProperties(_Blob.prototype, {
4088
4088
  size: { enumerable: true },
4089
4089
  type: { enumerable: true },
4090
4090
  slice: { enumerable: true }
4091
4091
  });
4092
- var Blob = _Blob;
4093
- var fetch_blob_default = Blob;
4094
- var _lastModified, _name, _a2;
4095
- var _File = (_a2 = class extends fetch_blob_default {
4092
+ var Blob2 = _Blob;
4093
+ var fetch_blob_default = Blob2;
4094
+ var _File = class File extends fetch_blob_default {
4095
+ #lastModified = 0;
4096
+ #name = "";
4096
4097
  /**
4097
4098
  * @param {*[]} fileBits
4098
4099
  * @param {string} fileName
@@ -4104,20 +4105,18 @@ var _File = (_a2 = class extends fetch_blob_default {
4104
4105
  throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);
4105
4106
  }
4106
4107
  super(fileBits, options);
4107
- (0, import_chunk_WWAWV7DQ.__privateAdd)(this, _lastModified, 0);
4108
- (0, import_chunk_WWAWV7DQ.__privateAdd)(this, _name, "");
4109
4108
  if (options === null) options = {};
4110
4109
  const lastModified = options.lastModified === void 0 ? Date.now() : Number(options.lastModified);
4111
4110
  if (!Number.isNaN(lastModified)) {
4112
- (0, import_chunk_WWAWV7DQ.__privateSet)(this, _lastModified, lastModified);
4111
+ this.#lastModified = lastModified;
4113
4112
  }
4114
- (0, import_chunk_WWAWV7DQ.__privateSet)(this, _name, String(fileName));
4113
+ this.#name = String(fileName);
4115
4114
  }
4116
4115
  get name() {
4117
- return (0, import_chunk_WWAWV7DQ.__privateGet)(this, _name);
4116
+ return this.#name;
4118
4117
  }
4119
4118
  get lastModified() {
4120
- return (0, import_chunk_WWAWV7DQ.__privateGet)(this, _lastModified);
4119
+ return this.#lastModified;
4121
4120
  }
4122
4121
  get [Symbol.toStringTag]() {
4123
4122
  return "File";
@@ -4125,9 +4124,9 @@ var _File = (_a2 = class extends fetch_blob_default {
4125
4124
  static [Symbol.hasInstance](object) {
4126
4125
  return !!object && object instanceof fetch_blob_default && /^(File)$/.test(object[Symbol.toStringTag]);
4127
4126
  }
4128
- }, _lastModified = /* @__PURE__ */ new WeakMap(), _name = /* @__PURE__ */ new WeakMap(), _a2);
4129
- var File = _File;
4130
- var file_default = File;
4127
+ };
4128
+ var File2 = _File;
4129
+ var file_default = File2;
4131
4130
  var { toStringTag: t, iterator: i, hasInstance: h } = Symbol;
4132
4131
  var r = Math.random;
4133
4132
  var m = "append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(",");
@@ -4138,10 +4137,9 @@ var x = (n, a, e2) => {
4138
4137
  throw new TypeError(`Failed to execute '${n}' on 'FormData': ${e2} arguments required, but only ${a.length} present.`);
4139
4138
  }
4140
4139
  };
4141
- var _d, _a3;
4142
- var FormData = (_a3 = class {
4140
+ var FormData = class FormData2 {
4141
+ #d = [];
4143
4142
  constructor(...a) {
4144
- (0, import_chunk_WWAWV7DQ.__privateAdd)(this, _d, []);
4145
4143
  if (a.length) throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`);
4146
4144
  }
4147
4145
  get [t]() {
@@ -4155,30 +4153,30 @@ var FormData = (_a3 = class {
4155
4153
  }
4156
4154
  append(...a) {
4157
4155
  x("append", arguments, 2);
4158
- (0, import_chunk_WWAWV7DQ.__privateGet)(this, _d).push(f(...a));
4156
+ this.#d.push(f(...a));
4159
4157
  }
4160
4158
  delete(a) {
4161
4159
  x("delete", arguments, 1);
4162
4160
  a += "";
4163
- (0, import_chunk_WWAWV7DQ.__privateSet)(this, _d, (0, import_chunk_WWAWV7DQ.__privateGet)(this, _d).filter(([b]) => b !== a));
4161
+ this.#d = this.#d.filter(([b]) => b !== a);
4164
4162
  }
4165
4163
  get(a) {
4166
4164
  x("get", arguments, 1);
4167
4165
  a += "";
4168
- for (var b = (0, import_chunk_WWAWV7DQ.__privateGet)(this, _d), l = b.length, c = 0; c < l; c++) if (b[c][0] === a) return b[c][1];
4166
+ for (var b = this.#d, l = b.length, c = 0; c < l; c++) if (b[c][0] === a) return b[c][1];
4169
4167
  return null;
4170
4168
  }
4171
4169
  getAll(a, b) {
4172
4170
  x("getAll", arguments, 1);
4173
4171
  b = [];
4174
4172
  a += "";
4175
- (0, import_chunk_WWAWV7DQ.__privateGet)(this, _d).forEach((c) => c[0] === a && b.push(c[1]));
4173
+ this.#d.forEach((c) => c[0] === a && b.push(c[1]));
4176
4174
  return b;
4177
4175
  }
4178
4176
  has(a) {
4179
4177
  x("has", arguments, 1);
4180
4178
  a += "";
4181
- return (0, import_chunk_WWAWV7DQ.__privateGet)(this, _d).some((b) => b[0] === a);
4179
+ return this.#d.some((b) => b[0] === a);
4182
4180
  }
4183
4181
  forEach(a, b) {
4184
4182
  x("forEach", arguments, 1);
@@ -4188,14 +4186,14 @@ var FormData = (_a3 = class {
4188
4186
  x("set", arguments, 2);
4189
4187
  var b = [], c = true;
4190
4188
  a = f(...a);
4191
- (0, import_chunk_WWAWV7DQ.__privateGet)(this, _d).forEach((d) => {
4189
+ this.#d.forEach((d) => {
4192
4190
  d[0] === a[0] ? c && (c = !b.push(a)) : b.push(d);
4193
4191
  });
4194
4192
  c && b.push(a);
4195
- (0, import_chunk_WWAWV7DQ.__privateSet)(this, _d, b);
4193
+ this.#d = b;
4196
4194
  }
4197
4195
  *entries() {
4198
- yield* (0, import_chunk_WWAWV7DQ.__privateGet)(this, _d);
4196
+ yield* this.#d;
4199
4197
  }
4200
4198
  *keys() {
4201
4199
  for (var [a] of this) yield a;
@@ -4203,7 +4201,7 @@ var FormData = (_a3 = class {
4203
4201
  *values() {
4204
4202
  for (var [, a] of this) yield a;
4205
4203
  }
4206
- }, _d = /* @__PURE__ */ new WeakMap(), _a3);
4204
+ };
4207
4205
  function formDataToBlob(F, B = fetch_blob_default) {
4208
4206
  var b = `${r()}${r()}`.replace(/\./g, "").slice(-28).padStart(32, "-"), c = [], p = `--${b}\r
4209
4207
  Content-Disposition: form-data; name="`;
@@ -4217,7 +4215,7 @@ Content-Type: ${v.type || "application/octet-stream"}\r
4217
4215
  c.push(`--${b}--`);
4218
4216
  return new B(c, { type: "multipart/form-data; boundary=" + b });
4219
4217
  }
4220
- var import_node_domexception = (0, import_chunk_WWAWV7DQ.__toESM)(require_node_domexception(), 1);
4218
+ var import_node_domexception = (0, import_chunk_4VNS5WPM.__toESM)(require_node_domexception(), 1);
4221
4219
  var { stat } = import_node_fs.promises;
4222
4220
  /*! Bundled license information:
4223
4221
 
@@ -26,29 +26,28 @@ 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_O3UVWF5W_exports = {};
30
- __export(chunk_O3UVWF5W_exports, {
29
+ var chunk_OE4XGY7B_exports = {};
30
+ __export(chunk_OE4XGY7B_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_O3UVWF5W_exports);
38
- var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
39
- var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
37
+ module.exports = __toCommonJS(chunk_OE4XGY7B_exports);
38
+ var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
39
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
40
40
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
- var import_chunk_VNUGIB23 = require("./chunk-VNUGIB23.js");
42
- var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
41
+ var import_chunk_JHF7CF7M = require("./chunk-JHF7CF7M.js");
42
+ var import_chunk_XHEEFWQQ = require("./chunk-XHEEFWQQ.js");
43
+ var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
43
44
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
44
- var import_chunk_PB6AJZNB = require("./chunk-PB6AJZNB.js");
45
- var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
46
- var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
45
+ var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
47
46
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
48
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
47
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
49
48
  var import_debug = __toESM(require("@prisma/debug"));
50
49
  var import_get_platform = require("@prisma/get-platform");
51
- var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
50
+ var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57HZ.require_function)());
52
51
  var debug = (0, import_debug.default)("prisma:getConfig");
53
52
  var SCHEMA_VALIDATION_ERROR_CODE = "P1012";
54
53
  var GetConfigError = class extends Error {
@@ -65,7 +64,7 @@ ${detailsHeader} ${message}`;
65
64
  }).exhaustive();
66
65
  const errorMessageWithContext = `${constructedErrorMessage}
67
66
  [Context: getConfig]`;
68
- super((0, import_chunk_VNUGIB23.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_JHF7CF7M.addVersionDetailsToErrorMessage)(errorMessageWithContext));
69
68
  this.name = "GetConfigError";
70
69
  }
71
70
  };
@@ -83,14 +82,14 @@ function resolveUrl(envValue) {
83
82
  return urlFromValue ?? urlEnvVarValue;
84
83
  }
85
84
  async function getConfig(options) {
86
- const debugErrorType = (0, import_chunk_6TXVGFQA.createDebugErrorType)(debug, "getConfigWasm");
85
+ const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getConfigWasm");
87
86
  debug(`Using getConfig Wasm`);
88
87
  const configEither = (0, import_function.pipe)(
89
- (0, import_chunk_7MD6344A.tryCatch)(
88
+ (0, import_chunk_5DBOS77Y.tryCatch)(
90
89
  () => {
91
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
92
91
  debug("Triggering a Rust panic...");
93
- import_chunk_PB6AJZNB.prismaSchemaWasm.debug_panic();
92
+ import_chunk_XHEEFWQQ.prismaSchemaWasm.debug_panic();
94
93
  }
95
94
  const params = JSON.stringify({
96
95
  prismaSchema: options.datamodel,
@@ -98,7 +97,7 @@ async function getConfig(options) {
98
97
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
99
98
  env: process.env
100
99
  });
101
- const data = import_chunk_PB6AJZNB.prismaSchemaWasm.get_config(params);
100
+ const data = import_chunk_XHEEFWQQ.prismaSchemaWasm.get_config(params);
102
101
  return data;
103
102
  },
104
103
  (e) => ({
@@ -107,11 +106,11 @@ async function getConfig(options) {
107
106
  error: e
108
107
  })
109
108
  ),
110
- (0, import_chunk_7MD6344A.map)((result) => ({ result })),
111
- (0, import_chunk_7MD6344A.chainW)(
109
+ (0, import_chunk_5DBOS77Y.map)((result) => ({ result })),
110
+ (0, import_chunk_5DBOS77Y.chainW)(
112
111
  ({ result }) => (
113
112
  // NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
114
- (0, import_chunk_7MD6344A.tryCatch)(
113
+ (0, import_chunk_5DBOS77Y.tryCatch)(
115
114
  () => JSON.parse(result),
116
115
  (e) => ({
117
116
  type: "parse-json",
@@ -121,18 +120,18 @@ async function getConfig(options) {
121
120
  )
122
121
  )
123
122
  ),
124
- (0, import_chunk_7MD6344A.chainW)((response) => {
123
+ (0, import_chunk_5DBOS77Y.chainW)((response) => {
125
124
  if (response.errors.length > 0) {
126
- return (0, import_chunk_7MD6344A.left)({
125
+ return (0, import_chunk_5DBOS77Y.left)({
127
126
  type: "validation-error",
128
127
  reason: "(get-config wasm)",
129
128
  error: response.errors
130
129
  });
131
130
  }
132
- return (0, import_chunk_7MD6344A.right)(response.config);
131
+ return (0, import_chunk_5DBOS77Y.right)(response.config);
133
132
  })
134
133
  );
135
- if ((0, import_chunk_7MD6344A.isRight)(configEither)) {
134
+ if ((0, import_chunk_5DBOS77Y.isRight)(configEither)) {
136
135
  debug("config data retrieved without errors in getConfig Wasm");
137
136
  const { right: data } = configEither;
138
137
  for (const generator of data.generators) {
@@ -142,30 +141,27 @@ async function getConfig(options) {
142
141
  }
143
142
  const error = (0, import_chunk_XKZ6CBLA.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
144
143
  debugErrorType(e);
145
- if ((0, import_chunk_ATFQZVBS.isWasmPanic)(e.error)) {
146
- const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e.error);
147
- const panic = new import_chunk_ATFQZVBS.RustPanic(
144
+ if ((0, import_chunk_LMVSIVKQ.isWasmPanic)(e.error)) {
145
+ const { message, stack } = (0, import_chunk_LMVSIVKQ.getWasmError)(e.error);
146
+ const panic = new import_chunk_LMVSIVKQ.RustPanic(
148
147
  /* message */
149
148
  message,
150
149
  /* rustStack */
151
150
  stack,
152
151
  /* request */
153
152
  "@prisma/prisma-schema-wasm get_config",
154
- "FMT_CLI",
155
- /* schemaPath */
156
- options.prismaPath,
157
- /* schema */
158
- (0, import_chunk_YRBRUREX.toMultipleSchemas)(options.datamodel)
153
+ "FMT_CLI"
154
+ /* FMT_CLI */
159
155
  );
160
156
  return panic;
161
157
  }
162
158
  const errorOutput = e.error.message;
163
- return new GetConfigError((0, import_chunk_6TXVGFQA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
159
+ return new GetConfigError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
164
160
  }).with({ type: "validation-error" }, (e) => {
165
161
  return new GetConfigError({
166
162
  _tag: "parsed",
167
163
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
168
- reason: (0, import_chunk_6TXVGFQA.createSchemaValidationError)(e.reason),
164
+ reason: (0, import_chunk_WSZXPLJQ.createSchemaValidationError)(e.reason),
169
165
  message: formatErrors(e.error)
170
166
  });
171
167
  }).otherwise((e) => {
@@ -16,22 +16,21 @@ 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_JHQHVXIR_exports = {};
20
- __export(chunk_JHQHVXIR_exports, {
19
+ var chunk_OSHZ4P3G_exports = {};
20
+ __export(chunk_OSHZ4P3G_exports, {
21
21
  toSchemasContainer: () => toSchemasContainer,
22
22
  toSchemasWithConfigDir: () => toSchemasWithConfigDir
23
23
  });
24
- module.exports = __toCommonJS(chunk_JHQHVXIR_exports);
25
- var import_chunk_RFB2U4GQ = require("./chunk-RFB2U4GQ.js");
24
+ module.exports = __toCommonJS(chunk_OSHZ4P3G_exports);
26
25
  function toSchemasContainer(schemas) {
27
26
  return {
28
27
  files: multipleSchemasToSchemaContainers(schemas)
29
28
  };
30
29
  }
31
- function toSchemasWithConfigDir(getSchemaResult, config) {
30
+ function toSchemasWithConfigDir(schemaContext) {
32
31
  return {
33
- files: multipleSchemasToSchemaContainers(getSchemaResult.schemas),
34
- configDir: (0, import_chunk_RFB2U4GQ.getMigrateConfigDir)(config, getSchemaResult.schemaPath)
32
+ files: multipleSchemasToSchemaContainers(schemaContext.schemaFiles),
33
+ configDir: schemaContext.primaryDatasourceDirectory
35
34
  };
36
35
  }
37
36
  function multipleSchemasToSchemaContainers(schemas) {
@@ -16,10 +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_IPKE37QC_exports = {};
20
- __export(chunk_IPKE37QC_exports, {
21
- checkFeatureFlags: () => checkFeatureFlags
19
+ var chunk_PFYALFCY_exports = {};
20
+ __export(chunk_PFYALFCY_exports, {
21
+ extractSchemaContent: () => extractSchemaContent
22
22
  });
23
- module.exports = __toCommonJS(chunk_IPKE37QC_exports);
24
- function checkFeatureFlags(_config, _options) {
23
+ module.exports = __toCommonJS(chunk_PFYALFCY_exports);
24
+ function extractSchemaContent(multipleSchemas) {
25
+ return multipleSchemas.map(([, content]) => content);
25
26
  }