@prisma/internals 6.6.0-dev.5 → 6.6.0-dev.52

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 (229) hide show
  1. package/dist/Generator.d.ts +1 -1
  2. package/dist/Generator.js +3 -3
  3. package/dist/WasmPanicRegistry.js +3 -3
  4. package/dist/chunk-2H6XXXKO.js +49 -0
  5. package/dist/chunk-2QTAK7KO.js +101 -0
  6. package/dist/{chunk-XLGODPZH.js → chunk-3DQANJMY.js} +12 -12
  7. package/dist/{chunk-RK6MQ2H5.js → chunk-3MYWFV37.js} +12 -10
  8. package/dist/chunk-3TSSYJO2.js +1015 -0
  9. package/dist/{chunk-YG7D272D.js → chunk-3XKWZXAS.js} +11 -15
  10. package/dist/{chunk-WWAWV7DQ.js → chunk-4VNS5WPM.js} +3 -33
  11. package/dist/{chunk-KQOJB3ZW.js → chunk-5AI4FIZ3.js} +10 -10
  12. package/dist/{chunk-7MD6344A.js → chunk-5DBOS77Y.js} +3 -5
  13. package/dist/{chunk-L3462R5V.js → chunk-5TZTJ2FI.js} +22 -26
  14. package/dist/{chunk-TZCE3PWZ.js → chunk-5VQNKCKW.js} +7 -7
  15. package/dist/{chunk-I7IEEULS.js → chunk-6TTRTZXU.js} +5 -5
  16. package/dist/{chunk-MGZOEY6N.js → chunk-72UZXEBG.js} +6 -6
  17. package/dist/{chunk-CIH2HX7R.js → chunk-75AJJ2SV.js} +5 -5
  18. package/dist/{chunk-5RV3EMX6.js → chunk-75BIJ5PX.js} +57 -57
  19. package/dist/{chunk-U2L42IOL.js → chunk-7FFZ4QHX.js} +23 -27
  20. package/dist/{chunk-CW5MRSDF.js → chunk-7Z57N75H.js} +30 -34
  21. package/dist/{chunk-LG5IW4IV.js → chunk-ABTIXQDX.js} +11 -9
  22. package/dist/{chunk-BGFWFIPR.js → chunk-AZV6HVKA.js} +5 -5
  23. package/dist/{chunk-U6LD37KW.js → chunk-BTWAF3S4.js} +22 -26
  24. package/dist/{chunk-VRT7T6MF.js → chunk-BWGDP6B5.js} +94 -105
  25. package/dist/{chunk-5MCWLJSR.js → chunk-CR3XKUEA.js} +10 -10
  26. package/dist/{chunk-TSJICM5S.js → chunk-CRVLHWC5.js} +5 -5
  27. package/dist/{chunk-SHJNE6T7.js → chunk-D4VDA2TZ.js} +7 -7
  28. package/dist/{chunk-MUPZUVSI.js → chunk-D4VZUY3O.js} +14 -20
  29. package/dist/{chunk-KTBNIQ7N.js → chunk-DKSUHQGA.js} +8 -8
  30. package/dist/chunk-DODIJPCS.js +34 -0
  31. package/dist/{chunk-UNUCCAXA.js → chunk-DTPFRZWV.js} +5 -5
  32. package/dist/{chunk-ZYW3HGSH.js → chunk-DYVL6P7F.js} +7 -8
  33. package/dist/{chunk-NJQWZ447.js → chunk-EPXBOIA5.js} +6 -6
  34. package/dist/{chunk-7XNZDY2V.js → chunk-ETYWYJBX.js} +60 -60
  35. package/dist/{chunk-PIPE5DSU.js → chunk-EWWOTVR3.js} +6 -6
  36. package/dist/{chunk-5SN5JBT2.js → chunk-FXMGS3L5.js} +21 -40
  37. package/dist/{chunk-S57RMXZW.js → chunk-GHHABGYW.js} +5 -5
  38. package/dist/{chunk-XGDTIBRB.js → chunk-GIOVJ5SL.js} +46 -79
  39. package/dist/{chunk-L6GBFCXG.js → chunk-HAGJ64PM.js} +142 -155
  40. package/dist/{chunk-3ERIN7PH.js → chunk-HG3YOAAE.js} +10 -10
  41. package/dist/{chunk-GXDYIY4M.js → chunk-IDINCQMN.js} +56 -57
  42. package/dist/chunk-IQR3YIKI.js +1015 -0
  43. package/dist/{chunk-53LS3WUO.js → chunk-JOIIWB3U.js} +116 -116
  44. package/dist/{chunk-CZL7DCL2.js → chunk-JYMY3OAI.js} +6 -6
  45. package/dist/{chunk-C2WD2XUT.js → chunk-K5W6WZ6E.js} +971 -991
  46. package/dist/{chunk-TATYN3T2.js → chunk-KB5DKCI4.js} +29 -29
  47. package/dist/{chunk-LKTTJWFT.js → chunk-KDP6C3CB.js} +5 -5
  48. package/dist/{chunk-EOWYER24.js → chunk-LHESHKC2.js} +9 -9
  49. package/dist/{chunk-ATFQZVBS.js → chunk-LMVSIVKQ.js} +9 -14
  50. package/dist/{chunk-ZKAW5JSN.js → chunk-LRJ4X43J.js} +5 -5
  51. package/dist/{chunk-ONHKZPSV.js → chunk-LRU47BGE.js} +6 -6
  52. package/dist/{chunk-4E7A3GDU.js → chunk-MM4ARWWY.js} +5 -5
  53. package/dist/{chunk-SC7OJHGV.js → chunk-MSQTODVE.js} +30 -34
  54. package/dist/{chunk-V2ZF7ETH.js → chunk-NVNI2SRU.js} +66 -68
  55. package/dist/{chunk-JHQHVXIR.js → chunk-OSHZ4P3G.js} +6 -7
  56. package/dist/{chunk-IPKE37QC.js → chunk-PFYALFCY.js} +6 -5
  57. package/dist/{chunk-SNY3IPJ5.js → chunk-PQE76XRR.js} +5 -5
  58. package/dist/{chunk-77IC3DNO.js → chunk-QGJH4P4N.js} +8 -8
  59. package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
  60. package/dist/{chunk-PFLLVWZX.js → chunk-R6QH57HZ.js} +5 -5
  61. package/dist/{chunk-EM3Z5VR6.js → chunk-RFYYFIX7.js} +46 -79
  62. package/dist/{chunk-DARNQRUA.js → chunk-RR55FNCU.js} +9 -9
  63. package/dist/{chunk-Y3OWT3K2.js → chunk-TQFONRJP.js} +7 -7
  64. package/dist/{chunk-X5YSMVVH.js → chunk-URCHUFR3.js} +5 -5
  65. package/dist/{chunk-SNL3TWM6.js → chunk-URWUAYEL.js} +5 -5
  66. package/dist/{chunk-3BND5XB4.js → chunk-UTJGRVMG.js} +11 -11
  67. package/dist/{chunk-CHMJ5V7I.js → chunk-UZTXEBTM.js} +7 -7
  68. package/dist/{chunk-YXD4CJDK.js → chunk-VVPSLVOR.js} +27 -27
  69. package/dist/{chunk-6TXVGFQA.js → chunk-WSZXPLJQ.js} +11 -11
  70. package/dist/{chunk-BPZFDGKN.js → chunk-WXRVYSYN.js} +4 -7
  71. package/dist/{chunk-TPIOJZAZ.js → chunk-XKIMYV5V.js} +11 -15
  72. package/dist/{chunk-2MWIMEFK.js → chunk-XLTQGAI2.js} +6 -6
  73. package/dist/{chunk-AOEDMVV5.js → chunk-XQSHUIJ5.js} +23 -27
  74. package/dist/chunk-YR5KNFKN.js +1834 -0
  75. package/dist/{chunk-AZNLB67U.js → chunk-ZJWZK45Z.js} +5 -5
  76. package/dist/chunk-ZSINRHD4.js +43 -0
  77. package/dist/cli/Help.js +1 -1
  78. package/dist/cli/checkUnsupportedDataProxy.d.ts +12 -17
  79. package/dist/cli/checkUnsupportedDataProxy.js +77 -74
  80. package/dist/cli/directoryConfig.d.ts +7 -0
  81. package/dist/{get-generators/utils/check-feature-flags/checkFeatureFlags.js → cli/directoryConfig.js} +6 -6
  82. package/dist/cli/getGeneratorSuccessMessage.js +1 -1
  83. package/dist/cli/getSchema.d.ts +3 -28
  84. package/dist/cli/getSchema.js +80 -78
  85. package/dist/cli/getTypescriptVersion.js +1 -1
  86. package/dist/cli/hashes.d.ts +1 -2
  87. package/dist/cli/hashes.js +77 -74
  88. package/dist/cli/schemaContext.d.ts +59 -0
  89. package/dist/cli/schemaContext.js +139 -0
  90. package/dist/cli/utils.js +5 -5
  91. package/dist/client/getClientEngineType.d.ts +1 -1
  92. package/dist/client/getClientEngineType.js +1 -1
  93. package/dist/convertCredentials.d.ts +1 -1
  94. package/dist/convertCredentials.js +1 -1
  95. package/dist/dotenvExpand.js +1 -1
  96. package/dist/engine-commands/errorHelpers.js +5 -5
  97. package/dist/engine-commands/formatSchema.js +76 -73
  98. package/dist/engine-commands/getConfig.d.ts +1 -5
  99. package/dist/engine-commands/getConfig.js +16 -17
  100. package/dist/engine-commands/getDmmf.d.ts +3 -6
  101. package/dist/engine-commands/getDmmf.js +13 -14
  102. package/dist/engine-commands/getEngineVersion.js +12 -12
  103. package/dist/engine-commands/getEnginesMetaInfo.js +15 -15
  104. package/dist/engine-commands/index.js +87 -84
  105. package/dist/engine-commands/lintSchema.d.ts +1 -1
  106. package/dist/engine-commands/lintSchema.js +11 -12
  107. package/dist/engine-commands/mergeSchemas.js +13 -14
  108. package/dist/engine-commands/queryEngineCommons.js +8 -8
  109. package/dist/engine-commands/relativizePathInPSLError.js +1 -1
  110. package/dist/engine-commands/validate.js +13 -14
  111. package/dist/errorReporting.d.ts +0 -1
  112. package/dist/errorReporting.js +7 -7
  113. package/dist/get-generators/generatorResolvers/generatorResolvers.js +76 -73
  114. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +4 -4
  115. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +4 -4
  116. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +7 -7
  117. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +76 -73
  118. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +4 -4
  119. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +4 -4
  120. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.js +1 -1
  121. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.js +1 -1
  122. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +77 -74
  123. package/dist/get-generators/getGenerators.d.ts +8 -4
  124. package/dist/get-generators/getGenerators.js +79 -76
  125. package/dist/get-generators/utils/binaryTypeToEngineType.d.ts +1 -1
  126. package/dist/get-generators/utils/binaryTypeToEngineType.js +1 -1
  127. package/dist/get-generators/utils/engineTypeToBinaryType.d.ts +1 -1
  128. package/dist/get-generators/utils/engineTypeToBinaryType.js +1 -1
  129. package/dist/get-generators/utils/fixBinaryTargets.d.ts +1 -1
  130. package/dist/get-generators/utils/fixBinaryTargets.js +1 -1
  131. package/dist/get-generators/utils/getBinaryPathsByVersion.d.ts +1 -1
  132. package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
  133. package/dist/get-generators/utils/getEngineVersionForGenerator.d.ts +1 -1
  134. package/dist/get-generators/utils/getEngineVersionForGenerator.js +1 -1
  135. package/dist/get-generators/utils/printGeneratorConfig.d.ts +1 -1
  136. package/dist/get-generators/utils/printGeneratorConfig.js +7 -7
  137. package/dist/getPackedPackage.js +9 -9
  138. package/dist/highlight/highlight.js +1 -1
  139. package/dist/highlight/languages/dml.js +1 -1
  140. package/dist/highlight/languages/sql.js +1 -1
  141. package/dist/highlight/prism.js +1 -1
  142. package/dist/highlight/theme.js +1 -1
  143. package/dist/index.d.ts +5 -3
  144. package/dist/index.js +143 -141
  145. package/dist/logger.js +9 -9
  146. package/dist/migrateTypes.d.ts +63 -0
  147. package/dist/{multipart-parser-32AROPTR.js → multipart-parser-3AFJFP6K.js} +7 -7
  148. package/dist/panic.d.ts +1 -4
  149. package/dist/panic.js +7 -7
  150. package/dist/resolveBinary.js +10 -10
  151. package/dist/resolveOutput.js +1 -1
  152. package/dist/schemaEngineCommands.js +13 -13
  153. package/dist/sendPanic.js +7 -111
  154. package/dist/types.d.ts +1 -1
  155. package/dist/utils/__tests__/isCi.test.js +1 -1
  156. package/dist/utils/__tests__/isInteractive.test.js +1 -1
  157. package/dist/utils/__tests__/maskSchema.test.js +1 -1
  158. package/dist/utils/assertAlways.js +1 -1
  159. package/dist/utils/assertNever.js +1 -1
  160. package/dist/utils/binaryTargetRegex.js +3 -3
  161. package/dist/utils/byline.js +1 -1
  162. package/dist/utils/callOnce.js +1 -1
  163. package/dist/utils/callOnce.test.js +1 -1
  164. package/dist/utils/canPrompt.js +4 -4
  165. package/dist/utils/chmodPlusX.js +1 -1
  166. package/dist/utils/cloudflareD1.js +4 -4
  167. package/dist/utils/drawBox.js +1 -1
  168. package/dist/utils/extractPreviewFeatures.d.ts +2 -2
  169. package/dist/utils/extractPreviewFeatures.js +3 -3
  170. package/dist/utils/formatTable.js +1 -1
  171. package/dist/utils/formatms.js +1 -1
  172. package/dist/utils/fs-functional.js +12 -12
  173. package/dist/utils/fs-utils.js +9 -9
  174. package/dist/utils/getCommandWithExecutor.js +4 -4
  175. package/dist/utils/getEnvPaths.d.ts +1 -1
  176. package/dist/utils/getEnvPaths.js +76 -73
  177. package/dist/utils/getGitHubIssueUrl.js +5 -4
  178. package/dist/utils/getMigrateConfigDir.js +1 -1
  179. package/dist/utils/getVersionFromPackageJson.js +4 -4
  180. package/dist/utils/handleEngineLoadingErrors.js +1 -1
  181. package/dist/utils/handlePanic.js +13 -110
  182. package/dist/utils/hasOwnProperty.js +1 -1
  183. package/dist/utils/isCi.js +1 -1
  184. package/dist/utils/isCurrentBinInstalledGlobally.js +3 -3
  185. package/dist/utils/isInContainer.js +1 -1
  186. package/dist/utils/isInNpmLifecycleHook.js +1 -1
  187. package/dist/utils/isInteractive.js +1 -1
  188. package/dist/utils/isPromiseLike.js +1 -1
  189. package/dist/utils/isValidJsIdentifier.js +4 -4
  190. package/dist/utils/keyBy.js +1 -1
  191. package/dist/utils/link.js +3 -3
  192. package/dist/utils/load.js +3 -3
  193. package/dist/utils/loadEnvFile.js +76 -73
  194. package/dist/utils/mapKeys.js +1 -1
  195. package/dist/utils/mapObjectValues.js +1 -1
  196. package/dist/utils/maskSchema.js +1 -1
  197. package/dist/utils/max.js +1 -1
  198. package/dist/utils/max.test.js +1 -1
  199. package/dist/utils/maybeInGitHook.js +1 -1
  200. package/dist/utils/missingDatasource.js +4 -4
  201. package/dist/utils/missingGeneratorMessage.js +6 -6
  202. package/dist/utils/now.js +1 -1
  203. package/dist/utils/omit.js +1 -1
  204. package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.js +1 -1
  205. package/dist/utils/parseEnvValue.d.ts +1 -1
  206. package/dist/utils/parseEnvValue.js +1 -1
  207. package/dist/utils/path.js +1 -1
  208. package/dist/utils/path.test.js +1 -1
  209. package/dist/utils/pick.js +1 -1
  210. package/dist/utils/printConfigWarnings.js +1 -1
  211. package/dist/utils/prismaPostgres.js +1 -1
  212. package/dist/utils/prismaPostgres.test.js +1 -1
  213. package/dist/utils/schemaFileInput.d.ts +0 -4
  214. package/dist/utils/schemaFileInput.js +3 -7
  215. package/dist/utils/serializeQueryEngineName.js +1 -1
  216. package/dist/utils/setClassName.js +1 -1
  217. package/dist/utils/toSchemasContainer.d.ts +2 -3
  218. package/dist/utils/toSchemasContainer.js +4 -5
  219. package/dist/utils/tryLoadEnvs.js +6 -6
  220. package/dist/utils/unique.js +1 -1
  221. package/dist/utils/vercelPkgPathRegex.js +1 -1
  222. package/dist/warnOnce.js +4 -4
  223. package/dist/wasm.js +6 -6
  224. package/package.json +14 -12
  225. package/dist/chunk-AOQIUJT4.js +0 -41
  226. package/dist/chunk-EPUNJXBL.js +0 -15631
  227. package/dist/chunk-IPWA5XTA.js +0 -15631
  228. package/dist/chunk-YRBRUREX.js +0 -57
  229. package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.d.ts +0 -8
@@ -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_5MCWLJSR_exports = {};
30
- __export(chunk_5MCWLJSR_exports, {
29
+ var chunk_CR3XKUEA_exports = {};
30
+ __export(chunk_CR3XKUEA_exports, {
31
31
  isCurrentBinInstalledGlobally: () => isCurrentBinInstalledGlobally
32
32
  });
33
- module.exports = __toCommonJS(chunk_5MCWLJSR_exports);
34
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
33
+ module.exports = __toCommonJS(chunk_CR3XKUEA_exports);
34
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
35
35
  var import_fs = __toESM(require("fs"));
36
- var require_ini = (0, import_chunk_WWAWV7DQ.__commonJS)({
36
+ var require_ini = (0, import_chunk_4VNS5WPM.__commonJS)({
37
37
  "../../node_modules/.pnpm/ini@2.0.0/node_modules/ini/ini.js"(exports, module2) {
38
38
  "use strict";
39
39
  var { hasOwnProperty } = Object.prototype;
@@ -186,12 +186,12 @@ var require_ini = (0, import_chunk_WWAWV7DQ.__commonJS)({
186
186
  };
187
187
  }
188
188
  });
189
- var require_global_dirs = (0, import_chunk_WWAWV7DQ.__commonJS)({
189
+ var require_global_dirs = (0, import_chunk_4VNS5WPM.__commonJS)({
190
190
  "../../node_modules/.pnpm/global-dirs@4.0.0/node_modules/global-dirs/index.js"(exports) {
191
191
  "use strict";
192
- var path = (0, import_chunk_WWAWV7DQ.__require)("path");
193
- var os = (0, import_chunk_WWAWV7DQ.__require)("os");
194
- var fs2 = (0, import_chunk_WWAWV7DQ.__require)("fs");
192
+ var path = (0, import_chunk_4VNS5WPM.__require)("path");
193
+ var os = (0, import_chunk_4VNS5WPM.__require)("os");
194
+ var fs2 = (0, import_chunk_4VNS5WPM.__require)("fs");
195
195
  var ini = require_ini();
196
196
  var isWindows = process.platform === "win32";
197
197
  var readRc = (filePath) => {
@@ -282,7 +282,7 @@ var require_global_dirs = (0, import_chunk_WWAWV7DQ.__commonJS)({
282
282
  exports.yarn.binaries = path.join(exports.yarn.packages, ".bin");
283
283
  }
284
284
  });
285
- var import_global_dirs = (0, import_chunk_WWAWV7DQ.__toESM)(require_global_dirs());
285
+ var import_global_dirs = (0, import_chunk_4VNS5WPM.__toESM)(require_global_dirs());
286
286
  function isCurrentBinInstalledGlobally() {
287
287
  try {
288
288
  const realPrismaPath = import_fs.default.realpathSync(process.argv[1]);
@@ -16,12 +16,12 @@ 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_TSJICM5S_exports = {};
20
- __export(chunk_TSJICM5S_exports, {
19
+ var chunk_CRVLHWC5_exports = {};
20
+ __export(chunk_CRVLHWC5_exports, {
21
21
  extractPreviewFeatures: () => extractPreviewFeatures
22
22
  });
23
- module.exports = __toCommonJS(chunk_TSJICM5S_exports);
23
+ module.exports = __toCommonJS(chunk_CRVLHWC5_exports);
24
24
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
25
- function extractPreviewFeatures(config) {
26
- return config.generators.find((g) => (0, import_chunk_IOIAK7V7.parseEnvValue)(g.provider) === "prisma-client-js")?.previewFeatures || [];
25
+ function extractPreviewFeatures(generators) {
26
+ return generators.find((g) => (0, import_chunk_IOIAK7V7.parseEnvValue)(g.provider) === "prisma-client-js")?.previewFeatures || [];
27
27
  }
@@ -26,18 +26,18 @@ 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_SHJNE6T7_exports = {};
30
- __export(chunk_SHJNE6T7_exports, {
29
+ var chunk_D4VDA2TZ_exports = {};
30
+ __export(chunk_D4VDA2TZ_exports, {
31
31
  locateLocalCloudflareD1: () => locateLocalCloudflareD1
32
32
  });
33
- module.exports = __toCommonJS(chunk_SHJNE6T7_exports);
33
+ module.exports = __toCommonJS(chunk_D4VDA2TZ_exports);
34
34
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
35
- var import_chunk_53LS3WUO = require("./chunk-53LS3WUO.js");
36
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
35
+ var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
36
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
37
37
  var import_node_path = __toESM(require("node:path"));
38
38
  var import_node_process = __toESM(require("node:process"));
39
- var import_fast_glob = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_53LS3WUO.require_out)());
40
- var import_globby = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_53LS3WUO.require_globby)());
39
+ var import_fast_glob = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_out)());
40
+ var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_globby)());
41
41
  var defaultD1DirPath = import_node_path.default.join(".wrangler", "state", "v3", "d1", "miniflare-D1DatabaseObject");
42
42
  async function locateLocalCloudflareD1({ arg }) {
43
43
  const cwd = import_node_process.default.cwd();
@@ -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_MUPZUVSI_exports = {};
30
- __export(chunk_MUPZUVSI_exports, {
29
+ var chunk_D4VZUY3O_exports = {};
30
+ __export(chunk_D4VZUY3O_exports, {
31
31
  arg: () => arg,
32
32
  format: () => format,
33
33
  isError: () => isError
34
34
  });
35
- module.exports = __toCommonJS(chunk_MUPZUVSI_exports);
36
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
35
+ module.exports = __toCommonJS(chunk_D4VZUY3O_exports);
36
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
37
37
  var import_arg = __toESM(require("arg"));
38
- var require_min_indent = (0, import_chunk_WWAWV7DQ.__commonJS)({
38
+ var require_min_indent = (0, import_chunk_4VNS5WPM.__commonJS)({
39
39
  "../../node_modules/.pnpm/min-indent@1.0.1/node_modules/min-indent/index.js"(exports, module2) {
40
40
  "use strict";
41
41
  module2.exports = (string) => {
@@ -47,23 +47,17 @@ var require_min_indent = (0, import_chunk_WWAWV7DQ.__commonJS)({
47
47
  };
48
48
  }
49
49
  });
50
- var require_strip_indent = (0, import_chunk_WWAWV7DQ.__commonJS)({
51
- "../../node_modules/.pnpm/strip-indent@3.0.0/node_modules/strip-indent/index.js"(exports, module2) {
52
- "use strict";
53
- var minIndent = require_min_indent();
54
- module2.exports = (string) => {
55
- const indent = minIndent(string);
56
- if (indent === 0) {
57
- return string;
58
- }
59
- const regex = new RegExp(`^[ \\t]{${indent}}`, "gm");
60
- return string.replace(regex, "");
61
- };
50
+ var import_min_indent = (0, import_chunk_4VNS5WPM.__toESM)(require_min_indent(), 1);
51
+ function stripIndent(string) {
52
+ const indent = (0, import_min_indent.default)(string);
53
+ if (indent === 0) {
54
+ return string;
62
55
  }
63
- });
64
- var import_strip_indent = (0, import_chunk_WWAWV7DQ.__toESM)(require_strip_indent());
56
+ const regex = new RegExp(`^[ \\t]{${indent}}`, "gm");
57
+ return string.replace(regex, "");
58
+ }
65
59
  function format(input = "") {
66
- return (0, import_strip_indent.default)(input).trimRight() + "\n";
60
+ return stripIndent(input).trimRight() + "\n";
67
61
  }
68
62
  function arg(argv, spec, stopAtPositional = true, permissive = false) {
69
63
  try {
@@ -16,20 +16,20 @@ 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_KTBNIQ7N_exports = {};
20
- __export(chunk_KTBNIQ7N_exports, {
19
+ var chunk_DKSUHQGA_exports = {};
20
+ __export(chunk_DKSUHQGA_exports, {
21
21
  SchemaEngineExitCode: () => SchemaEngineExitCode,
22
22
  canConnectToDatabase: () => canConnectToDatabase,
23
23
  createDatabase: () => createDatabase,
24
24
  dropDatabase: () => dropDatabase,
25
25
  execaCommand: () => execaCommand
26
26
  });
27
- module.exports = __toCommonJS(chunk_KTBNIQ7N_exports);
28
- var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
29
- var import_chunk_3ERIN7PH = require("./chunk-3ERIN7PH.js");
30
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
27
+ module.exports = __toCommonJS(chunk_DKSUHQGA_exports);
28
+ var import_chunk_ETYWYJBX = require("./chunk-ETYWYJBX.js");
29
+ var import_chunk_HG3YOAAE = require("./chunk-HG3YOAAE.js");
30
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
31
31
  var import_fetch_engine = require("@prisma/fetch-engine");
32
- var import_execa = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_7XNZDY2V.require_execa)());
32
+ var import_execa = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_ETYWYJBX.require_execa)());
33
33
  var SchemaEngineExitCode = /* @__PURE__ */ ((SchemaEngineExitCode2) => {
34
34
  SchemaEngineExitCode2[SchemaEngineExitCode2["Success"] = 0] = "Success";
35
35
  SchemaEngineExitCode2[SchemaEngineExitCode2["Error"] = 1] = "Error";
@@ -141,7 +141,7 @@ async function execaCommand({
141
141
  schemaEnginePath,
142
142
  engineCommandName
143
143
  }) {
144
- schemaEnginePath = schemaEnginePath || await (0, import_chunk_3ERIN7PH.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
144
+ schemaEnginePath = schemaEnginePath || await (0, import_chunk_HG3YOAAE.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
145
145
  try {
146
146
  return await (0, import_execa.default)(schemaEnginePath, ["cli", "--datasource", connectionString, engineCommandName], {
147
147
  cwd,
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_DODIJPCS_exports = {};
20
+ __export(chunk_DODIJPCS_exports, {
21
+ binaryTargetRegex: () => binaryTargetRegex
22
+ });
23
+ module.exports = __toCommonJS(chunk_DODIJPCS_exports);
24
+ var import_get_platform = require("@prisma/get-platform");
25
+ function escapeStringRegexp(string) {
26
+ if (typeof string !== "string") {
27
+ throw new TypeError("Expected a string");
28
+ }
29
+ return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
30
+ }
31
+ var binaryTargetRegex = new RegExp(
32
+ "(" + [...import_get_platform.binaryTargets].sort((a, b) => b.length - a.length).map((p) => escapeStringRegexp(p)).join("|") + ")",
33
+ "g"
34
+ );
@@ -16,16 +16,16 @@ 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_UNUCCAXA_exports = {};
20
- __export(chunk_UNUCCAXA_exports, {
19
+ var chunk_DTPFRZWV_exports = {};
20
+ __export(chunk_DTPFRZWV_exports, {
21
21
  warnOnce: () => warnOnce
22
22
  });
23
- module.exports = __toCommonJS(chunk_UNUCCAXA_exports);
24
- var import_chunk_AZNLB67U = require("./chunk-AZNLB67U.js");
23
+ module.exports = __toCommonJS(chunk_DTPFRZWV_exports);
24
+ var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
25
25
  var alreadyWarned = /* @__PURE__ */ new Set();
26
26
  var warnOnce = (key, message, ...args) => {
27
27
  if (!alreadyWarned.has(key)) {
28
28
  alreadyWarned.add(key);
29
- (0, import_chunk_AZNLB67U.warn)(message, ...args);
29
+ (0, import_chunk_ZJWZK45Z.warn)(message, ...args);
30
30
  }
31
31
  };
@@ -16,20 +16,19 @@ 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_ZYW3HGSH_exports = {};
20
- __export(chunk_ZYW3HGSH_exports, {
19
+ var chunk_DYVL6P7F_exports = {};
20
+ __export(chunk_DYVL6P7F_exports, {
21
21
  Generator: () => Generator
22
22
  });
23
- module.exports = __toCommonJS(chunk_ZYW3HGSH_exports);
23
+ module.exports = __toCommonJS(chunk_DYVL6P7F_exports);
24
24
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
25
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
26
25
  var import_generator_helper = require("@prisma/generator-helper");
27
26
  var Generator = class {
27
+ generatorProcess;
28
+ manifest = null;
29
+ config;
30
+ options;
28
31
  constructor(executablePath, config, isNode) {
29
- (0, import_chunk_WWAWV7DQ.__publicField)(this, "generatorProcess");
30
- (0, import_chunk_WWAWV7DQ.__publicField)(this, "manifest", null);
31
- (0, import_chunk_WWAWV7DQ.__publicField)(this, "config");
32
- (0, import_chunk_WWAWV7DQ.__publicField)(this, "options");
33
32
  this.config = config;
34
33
  this.generatorProcess = new import_generator_helper.GeneratorProcess(executablePath, { isNode });
35
34
  }
@@ -26,21 +26,21 @@ 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_NJQWZ447_exports = {};
30
- __export(chunk_NJQWZ447_exports, {
29
+ var chunk_EPXBOIA5_exports = {};
30
+ __export(chunk_EPXBOIA5_exports, {
31
31
  getBinaryPathsByVersion: () => getBinaryPathsByVersion
32
32
  });
33
- module.exports = __toCommonJS(chunk_NJQWZ447_exports);
33
+ module.exports = __toCommonJS(chunk_EPXBOIA5_exports);
34
34
  var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
35
35
  var import_chunk_4CGPN5SR = require("./chunk-4CGPN5SR.js");
36
36
  var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
37
37
  var import_chunk_7B5PXS6N = require("./chunk-7B5PXS6N.js");
38
- var import_chunk_GXDYIY4M = require("./chunk-GXDYIY4M.js");
39
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
38
+ var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
39
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
40
40
  var import_engines = require("@prisma/engines");
41
41
  var import_fetch_engine = require("@prisma/fetch-engine");
42
42
  var import_path = __toESM2(require("path"));
43
- var import_fs_extra = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_GXDYIY4M.require_lib)());
43
+ var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_IDINCQMN.require_lib)());
44
44
  async function getBinaryPathsByVersion({
45
45
  neededVersions,
46
46
  binaryTarget,