@prisma/internals 6.3.0-integration-engines-6-3-0-6-integration-5-22-0-with-simplified-typeinfo-c7d99d9db5129d8b35986b8518c7f10bc8580e03.1 → 6.3.0-integration-simpler-typeinfo-query.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 (99) hide show
  1. package/dist/{chunk-3DMEILBC.js → chunk-2DXAGCPS.js} +11 -11
  2. package/dist/{chunk-4B7QW7H5.js → chunk-2WJPHJ2I.js} +5 -5
  3. package/dist/{chunk-MGZOEY6N.js → chunk-3U2ANLD3.js} +6 -6
  4. package/dist/{chunk-MPJLR4LI.js → chunk-44JHENE6.js} +41 -14
  5. package/dist/{chunk-KQOJB3ZW.js → chunk-4NFLAUKD.js} +70 -70
  6. package/dist/chunk-4RWCRJYD.js +166 -0
  7. package/dist/{chunk-5MCWLJSR.js → chunk-5I4BOTBV.js} +9 -3
  8. package/dist/{chunk-ITRA3ERO.js → chunk-5R7AZFMV.js} +5 -5
  9. package/dist/{chunk-LDTCWMJN.js → chunk-5UJZARUY.js} +17 -17
  10. package/dist/{chunk-E2GS2B3X.js → chunk-67KWF6KB.js} +5 -5
  11. package/dist/{chunk-ZZLZJFQD.js → chunk-B44XJG7K.js} +5 -5
  12. package/dist/{chunk-6HMDWGVB.js → chunk-CKVVVLEH.js} +8 -8
  13. package/dist/{chunk-UWA3O2GR.js → chunk-COFXY6NH.js} +41 -14
  14. package/dist/chunk-D4MCOTL5.js +122 -0
  15. package/dist/{chunk-3M6SPBPE.js → chunk-DFG3425X.js} +16 -16
  16. package/dist/chunk-FPHZVRV4.js +110 -0
  17. package/dist/{chunk-S57RMXZW.js → chunk-FTS2IEWX.js} +5 -5
  18. package/dist/chunk-G7LL2H2O.js +54 -0
  19. package/dist/{chunk-25RJ7YTB.js → chunk-H3T4L34H.js} +83 -88
  20. package/dist/{chunk-3BND5XB4.js → chunk-HMGEWJDY.js} +47 -232
  21. package/dist/{chunk-77IC3DNO.js → chunk-IABMG3F4.js} +5 -5
  22. package/dist/{chunk-CXEMRKV4.js → chunk-IAEMHQAC.js} +8 -8
  23. package/dist/{chunk-CZDIXJEO.js → chunk-J3JE5NVO.js} +32 -56
  24. package/dist/{chunk-N6K7M2HZ.js → chunk-J4MA2JIK.js} +5 -5
  25. package/dist/{chunk-FQ3NGUFC.js → chunk-JBUUTZQL.js} +15 -15
  26. package/dist/chunk-JMZHUHCC.js +177 -0
  27. package/dist/{chunk-D6NVMO5B.js → chunk-KNNIRRTO.js} +5 -5
  28. package/dist/{chunk-PC7HPZQJ.js → chunk-KPVPQQGU.js} +5 -5
  29. package/dist/{chunk-PJLZHXCV.js → chunk-KROMVQBD.js} +9 -9
  30. package/dist/{chunk-Z74VDPVS.js → chunk-LXIE6UJ2.js} +961 -79
  31. package/dist/{chunk-NZDTAI2U.js → chunk-MUJIYA44.js} +5 -5
  32. package/dist/{chunk-CGFXOUVQ.js → chunk-OHBFHT5Q.js} +15 -15
  33. package/dist/{chunk-UPIULDLZ.js → chunk-OSOXVAZB.js} +11 -11
  34. package/dist/chunk-RQPDQSHK.js +1429 -0
  35. package/dist/{chunk-2XRDQCIA.js → chunk-S4LINK5Y.js} +5 -5
  36. package/dist/{chunk-D3VAE4HY.js → chunk-UR3LUZY3.js} +17 -17
  37. package/dist/{chunk-EKBX4J6O.js → chunk-V2VWODV3.js} +5 -5
  38. package/dist/{chunk-FT32HRUC.js → chunk-VFU3I6P6.js} +16 -16
  39. package/dist/{chunk-TR2BJI77.js → chunk-VJQK3LHU.js} +185 -74
  40. package/dist/{chunk-V2ZF7ETH.js → chunk-WCRKL55L.js} +7 -7
  41. package/dist/{chunk-C47SCASR.js → chunk-WMIBAVWZ.js} +5 -5
  42. package/dist/{chunk-DRPRJIUE.js → chunk-WYTN2XGW.js} +5 -5
  43. package/dist/{chunk-QTXYAZFX.js → chunk-XLYQ6PQW.js} +17 -17
  44. package/dist/{chunk-VRT7T6MF.js → chunk-YDZVEVUG.js} +73 -73
  45. package/dist/{chunk-ZKAW5JSN.js → chunk-ZA3RMW2P.js} +8 -5
  46. package/dist/cli/checkUnsupportedDataProxy.js +40 -41
  47. package/dist/cli/getSchema.js +45 -46
  48. package/dist/cli/hashes.js +40 -41
  49. package/dist/engine-commands/errorHelpers.js +4 -4
  50. package/dist/engine-commands/formatSchema.js +39 -40
  51. package/dist/engine-commands/getConfig.js +13 -13
  52. package/dist/engine-commands/getDmmf.js +10 -10
  53. package/dist/engine-commands/getEngineVersion.js +8 -8
  54. package/dist/engine-commands/getEnginesMetaInfo.js +10 -10
  55. package/dist/engine-commands/index.js +50 -51
  56. package/dist/engine-commands/lintSchema.js +8 -8
  57. package/dist/engine-commands/mergeSchemas.js +10 -10
  58. package/dist/engine-commands/queryEngineCommons.js +7 -7
  59. package/dist/engine-commands/relativizePathInPSLError.js +2 -2
  60. package/dist/engine-commands/validate.js +10 -10
  61. package/dist/errorReporting.js +6 -6
  62. package/dist/get-generators/generatorResolvers/generatorResolvers.js +39 -40
  63. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +3 -3
  64. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +4 -4
  65. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +39 -40
  66. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.d.ts +9 -0
  67. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +132 -0
  68. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +3 -3
  69. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +40 -41
  70. package/dist/get-generators/getGenerators.js +42 -43
  71. package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -3
  72. package/dist/getPackedPackage.js +2 -2
  73. package/dist/index.d.ts +0 -1
  74. package/dist/index.js +85 -87
  75. package/dist/{multipart-parser-32AROPTR.js → multipart-parser-LCETWFPE.js} +6 -9
  76. package/dist/resolveBinary.js +7 -7
  77. package/dist/schemaEngineCommands.js +8 -8
  78. package/dist/sendPanic.js +39 -40
  79. package/dist/tracing/types.d.ts +16 -26
  80. package/dist/utils/cloudflareD1.js +3 -3
  81. package/dist/utils/getCommandWithExecutor.js +3 -3
  82. package/dist/utils/getEnvPaths.js +39 -40
  83. package/dist/utils/getGitHubIssueUrl.js +4 -4
  84. package/dist/utils/getVersionFromPackageJson.js +3 -3
  85. package/dist/utils/handleEngineLoadingErrors.js +3 -3
  86. package/dist/utils/handlePanic.js +39 -40
  87. package/dist/utils/isCurrentBinInstalledGlobally.d.ts +1 -1
  88. package/dist/utils/isCurrentBinInstalledGlobally.js +2 -2
  89. package/dist/utils/load.js +4 -4
  90. package/dist/utils/loadEnvFile.js +39 -40
  91. package/dist/utils/tryLoadEnvs.js +5 -5
  92. package/dist/wasm.js +4 -4
  93. package/package.json +12 -12
  94. package/dist/chunk-BONFK27U.js +0 -47
  95. package/dist/chunk-PPCNLYSB.js +0 -47
  96. package/dist/cli/getTypescriptVersion.d.ts +0 -1
  97. package/dist/cli/getTypescriptVersion.js +0 -25
  98. package/dist/typescript-AILDXN3I.js +0 -205230
  99. package/dist/typescript-WN4QH2CP.js +0 -205192
@@ -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_CZDIXJEO_exports = {};
30
- __export(chunk_CZDIXJEO_exports, {
29
+ var chunk_J3JE5NVO_exports = {};
30
+ __export(chunk_J3JE5NVO_exports, {
31
31
  getPackedPackage: () => getPackedPackage,
32
32
  readPackageUp: () => readPackageUp,
33
33
  require_glob: () => require_glob,
@@ -35,7 +35,7 @@ __export(chunk_CZDIXJEO_exports, {
35
35
  require_minimatch: () => require_minimatch,
36
36
  require_p_map: () => require_p_map
37
37
  });
38
- module.exports = __toCommonJS(chunk_CZDIXJEO_exports);
38
+ module.exports = __toCommonJS(chunk_J3JE5NVO_exports);
39
39
  var import_chunk_FUUQ6FJ4 = require("./chunk-FUUQ6FJ4.js");
40
40
  var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
41
41
  var import_chunk_T5RACBRF = require("./chunk-T5RACBRF.js");
@@ -46,16 +46,16 @@ var import_chunk_H4J2FN2W = require("./chunk-H4J2FN2W.js");
46
46
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
47
47
  var import_fs = __toESM(require("fs"));
48
48
  var import_path = __toESM(require("path"));
49
- var import_node_path = __toESM(require("node:path"));
50
- var import_node_process = __toESM(require("node:process"));
51
- var import_promises = __toESM(require("node:fs/promises"));
52
- var import_node_url = require("node:url");
53
- var import_node_fs = __toESM(require("node:fs"));
54
- var import_node_path2 = __toESM(require("node:path"));
55
- var import_node_fs2 = __toESM(require("node:fs"));
56
- var import_promises2 = __toESM(require("node:fs/promises"));
57
- var import_node_path3 = __toESM(require("node:path"));
58
- var import_node_url2 = require("node:url");
49
+ var import_path2 = __toESM(require("path"));
50
+ var import_process = __toESM(require("process"));
51
+ var import_promises = __toESM(require("fs/promises"));
52
+ var import_url = require("url");
53
+ var import_fs2 = __toESM(require("fs"));
54
+ var import_path3 = __toESM(require("path"));
55
+ var import_fs3 = __toESM(require("fs"));
56
+ var import_promises2 = __toESM(require("fs/promises"));
57
+ var import_path4 = __toESM(require("path"));
58
+ var import_url2 = require("url");
59
59
  var require_lib2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
60
60
  "../../node_modules/.pnpm/npm-normalize-package-bin@2.0.0/node_modules/npm-normalize-package-bin/lib/index.js"(exports, module2) {
61
61
  "use strict";
@@ -804,7 +804,6 @@ var require_minimatch = (0, import_chunk_WWAWV7DQ.__commonJS)({
804
804
  continue;
805
805
  }
806
806
  switch (c) {
807
- /* istanbul ignore next */
808
807
  case "/": {
809
808
  return false;
810
809
  }
@@ -816,8 +815,6 @@ var require_minimatch = (0, import_chunk_WWAWV7DQ.__commonJS)({
816
815
  clearStateChar();
817
816
  escaping = true;
818
817
  continue;
819
- // the various stateChar values
820
- // for the "extglob" stuff.
821
818
  case "?":
822
819
  case "*":
823
820
  case "+":
@@ -892,7 +889,6 @@ var require_minimatch = (0, import_chunk_WWAWV7DQ.__commonJS)({
892
889
  }
893
890
  continue;
894
891
  }
895
- // these are mostly the same in regexp and glob
896
892
  case "[":
897
893
  clearStateChar();
898
894
  if (inClass) {
@@ -1873,7 +1869,6 @@ var require_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
1873
1869
  }
1874
1870
  var prefix;
1875
1871
  switch (n) {
1876
- // if not, then this is rather simple
1877
1872
  case pattern.length:
1878
1873
  this._processSimple(pattern.join("/"), index);
1879
1874
  return;
@@ -2035,7 +2030,6 @@ var require_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
2035
2030
  GlobSync.prototype._readdirError = function(f, er) {
2036
2031
  switch (er.code) {
2037
2032
  case "ENOTSUP":
2038
- // https://github.com/isaacs/node-glob/issues/205
2039
2033
  case "ENOTDIR":
2040
2034
  var abs = this._makeAbs(f);
2041
2035
  this.cache[abs] = "FILE";
@@ -2047,7 +2041,6 @@ var require_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
2047
2041
  }
2048
2042
  break;
2049
2043
  case "ENOENT":
2050
- // not terribly unusual
2051
2044
  case "ELOOP":
2052
2045
  case "ENAMETOOLONG":
2053
2046
  case "UNKNOWN":
@@ -2491,7 +2484,6 @@ var require_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
2491
2484
  }
2492
2485
  var prefix;
2493
2486
  switch (n) {
2494
- // if not, then this is rather simple
2495
2487
  case pattern.length:
2496
2488
  this._processSimple(pattern.join("/"), index, cb);
2497
2489
  return;
@@ -2681,7 +2673,6 @@ var require_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
2681
2673
  return;
2682
2674
  switch (er.code) {
2683
2675
  case "ENOTSUP":
2684
- // https://github.com/isaacs/node-glob/issues/205
2685
2676
  case "ENOTDIR":
2686
2677
  var abs = this._makeAbs(f);
2687
2678
  this.cache[abs] = "FILE";
@@ -2694,7 +2685,6 @@ var require_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
2694
2685
  }
2695
2686
  break;
2696
2687
  case "ENOENT":
2697
- // not terribly unusual
2698
2688
  case "ELOOP":
2699
2689
  case "ENAMETOOLONG":
2700
2690
  case "UNKNOWN":
@@ -5337,8 +5327,6 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
5337
5327
  this.inc("patch", identifier, identifierBase);
5338
5328
  this.inc("pre", identifier, identifierBase);
5339
5329
  break;
5340
- // If the input is a non-prerelease version, this acts the same as
5341
- // prepatch.
5342
5330
  case "prerelease":
5343
5331
  if (this.prerelease.length === 0) {
5344
5332
  this.inc("patch", identifier, identifierBase);
@@ -5366,8 +5354,6 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
5366
5354
  }
5367
5355
  this.prerelease = [];
5368
5356
  break;
5369
- // This probably shouldn't be used publicly.
5370
- // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
5371
5357
  case "pre": {
5372
5358
  const base = Number(identifierBase) ? 1 : 0;
5373
5359
  if (!identifier && identifierBase === false) {
@@ -9574,7 +9560,6 @@ var require_minimatch2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
9574
9560
  continue;
9575
9561
  }
9576
9562
  switch (c) {
9577
- /* istanbul ignore next */
9578
9563
  case "/": {
9579
9564
  return false;
9580
9565
  }
@@ -9582,8 +9567,6 @@ var require_minimatch2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
9582
9567
  clearStateChar();
9583
9568
  escaping = true;
9584
9569
  continue;
9585
- // the various stateChar values
9586
- // for the "extglob" stuff.
9587
9570
  case "?":
9588
9571
  case "*":
9589
9572
  case "+":
@@ -9644,7 +9627,6 @@ var require_minimatch2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
9644
9627
  clearStateChar();
9645
9628
  re += "|";
9646
9629
  continue;
9647
- // these are mostly the same in regexp and glob
9648
9630
  case "[":
9649
9631
  clearStateChar();
9650
9632
  if (inClass) {
@@ -10186,7 +10168,6 @@ var require_sync2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
10186
10168
  }
10187
10169
  var prefix;
10188
10170
  switch (n) {
10189
- // if not, then this is rather simple
10190
10171
  case pattern.length:
10191
10172
  this._processSimple(pattern.join("/"), index);
10192
10173
  return;
@@ -10348,7 +10329,6 @@ var require_sync2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
10348
10329
  GlobSync.prototype._readdirError = function(f, er) {
10349
10330
  switch (er.code) {
10350
10331
  case "ENOTSUP":
10351
- // https://github.com/isaacs/node-glob/issues/205
10352
10332
  case "ENOTDIR":
10353
10333
  var abs = this._makeAbs(f);
10354
10334
  this.cache[abs] = "FILE";
@@ -10360,7 +10340,6 @@ var require_sync2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
10360
10340
  }
10361
10341
  break;
10362
10342
  case "ENOENT":
10363
- // not terribly unusual
10364
10343
  case "ELOOP":
10365
10344
  case "ENAMETOOLONG":
10366
10345
  case "UNKNOWN":
@@ -10687,7 +10666,6 @@ var require_glob2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
10687
10666
  }
10688
10667
  var prefix;
10689
10668
  switch (n) {
10690
- // if not, then this is rather simple
10691
10669
  case pattern.length:
10692
10670
  this._processSimple(pattern.join("/"), index, cb);
10693
10671
  return;
@@ -10877,7 +10855,6 @@ var require_glob2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
10877
10855
  return;
10878
10856
  switch (er.code) {
10879
10857
  case "ENOTSUP":
10880
- // https://github.com/isaacs/node-glob/issues/205
10881
10858
  case "ENOTDIR":
10882
10859
  var abs = this._makeAbs(f);
10883
10860
  this.cache[abs] = "FILE";
@@ -10890,7 +10867,6 @@ var require_glob2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
10890
10867
  }
10891
10868
  break;
10892
10869
  case "ENOENT":
10893
- // not terribly unusual
10894
10870
  case "ELOOP":
10895
10871
  case "ENAMETOOLONG":
10896
10872
  case "UNKNOWN":
@@ -11612,17 +11588,17 @@ var require_tempy = (0, import_chunk_WWAWV7DQ.__commonJS)({
11612
11588
  }
11613
11589
  });
11614
11590
  var import_npm_packlist = (0, import_chunk_WWAWV7DQ.__toESM)(require_lib5());
11615
- var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
11591
+ var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_url.fileURLToPath)(urlOrPath) : urlOrPath;
11616
11592
  async function findUp(name, {
11617
- cwd = import_node_process.default.cwd(),
11593
+ cwd = import_process.default.cwd(),
11618
11594
  type = "file",
11619
11595
  stopAt
11620
11596
  } = {}) {
11621
- let directory = import_node_path2.default.resolve(toPath(cwd) ?? "");
11622
- const { root } = import_node_path2.default.parse(directory);
11623
- stopAt = import_node_path2.default.resolve(directory, toPath(stopAt ?? root));
11597
+ let directory = import_path3.default.resolve(toPath(cwd) ?? "");
11598
+ const { root } = import_path3.default.parse(directory);
11599
+ stopAt = import_path3.default.resolve(directory, toPath(stopAt ?? root));
11624
11600
  while (directory && directory !== stopAt && directory !== root) {
11625
- const filePath = import_node_path2.default.isAbsolute(name) ? name : import_node_path2.default.join(directory, name);
11601
+ const filePath = import_path3.default.isAbsolute(name) ? name : import_path3.default.join(directory, name);
11626
11602
  try {
11627
11603
  const stats = await import_promises.default.stat(filePath);
11628
11604
  if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) {
@@ -11630,27 +11606,27 @@ async function findUp(name, {
11630
11606
  }
11631
11607
  } catch {
11632
11608
  }
11633
- directory = import_node_path2.default.dirname(directory);
11609
+ directory = import_path3.default.dirname(directory);
11634
11610
  }
11635
11611
  }
11636
11612
  function findUpSync(name, {
11637
- cwd = import_node_process.default.cwd(),
11613
+ cwd = import_process.default.cwd(),
11638
11614
  type = "file",
11639
11615
  stopAt
11640
11616
  } = {}) {
11641
- let directory = import_node_path2.default.resolve(toPath(cwd) ?? "");
11642
- const { root } = import_node_path2.default.parse(directory);
11643
- stopAt = import_node_path2.default.resolve(directory, toPath(stopAt) ?? root);
11617
+ let directory = import_path3.default.resolve(toPath(cwd) ?? "");
11618
+ const { root } = import_path3.default.parse(directory);
11619
+ stopAt = import_path3.default.resolve(directory, toPath(stopAt) ?? root);
11644
11620
  while (directory && directory !== stopAt && directory !== root) {
11645
- const filePath = import_node_path2.default.isAbsolute(name) ? name : import_node_path2.default.join(directory, name);
11621
+ const filePath = import_path3.default.isAbsolute(name) ? name : import_path3.default.join(directory, name);
11646
11622
  try {
11647
- const stats = import_node_fs.default.statSync(filePath, { throwIfNoEntry: false });
11623
+ const stats = import_fs2.default.statSync(filePath, { throwIfNoEntry: false });
11648
11624
  if (type === "file" && stats?.isFile() || type === "directory" && stats?.isDirectory()) {
11649
11625
  return filePath;
11650
11626
  }
11651
11627
  } catch {
11652
11628
  }
11653
- directory = import_node_path2.default.dirname(directory);
11629
+ directory = import_path3.default.dirname(directory);
11654
11630
  }
11655
11631
  }
11656
11632
  var import_code_frame = (0, import_chunk_WWAWV7DQ.__toESM)(require_lib7(), 1);
@@ -11752,9 +11728,9 @@ function parseJson(string, reviver, fileName) {
11752
11728
  }
11753
11729
  var import_normalize_package_data = (0, import_chunk_WWAWV7DQ.__toESM)(require_normalize(), 1);
11754
11730
  function toPath2(urlOrPath) {
11755
- return urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
11731
+ return urlOrPath instanceof URL ? (0, import_url2.fileURLToPath)(urlOrPath) : urlOrPath;
11756
11732
  }
11757
- var getPackagePath = (cwd) => import_node_path3.default.resolve(toPath2(cwd) ?? ".", "package.json");
11733
+ var getPackagePath = (cwd) => import_path4.default.resolve(toPath2(cwd) ?? ".", "package.json");
11758
11734
  var _readPackage = (file, normalize) => {
11759
11735
  const json = typeof file === "string" ? parseJson(file) : file;
11760
11736
  if (normalize) {
@@ -11767,7 +11743,7 @@ async function readPackage({ cwd, normalize = true } = {}) {
11767
11743
  return _readPackage(packageFile, normalize);
11768
11744
  }
11769
11745
  function readPackageSync({ cwd, normalize = true } = {}) {
11770
- const packageFile = import_node_fs2.default.readFileSync(getPackagePath(cwd), "utf8");
11746
+ const packageFile = import_fs3.default.readFileSync(getPackagePath(cwd), "utf8");
11771
11747
  return _readPackage(packageFile, normalize);
11772
11748
  }
11773
11749
  async function readPackageUp(options) {
@@ -11776,7 +11752,7 @@ async function readPackageUp(options) {
11776
11752
  return;
11777
11753
  }
11778
11754
  return {
11779
- packageJson: await readPackage({ ...options, cwd: import_node_path.default.dirname(filePath) }),
11755
+ packageJson: await readPackage({ ...options, cwd: import_path2.default.dirname(filePath) }),
11780
11756
  path: filePath
11781
11757
  };
11782
11758
  }
@@ -11786,7 +11762,7 @@ function readPackageUpSync(options) {
11786
11762
  return;
11787
11763
  }
11788
11764
  return {
11789
- packageJson: readPackageSync({ ...options, cwd: import_node_path.default.dirname(filePath) }),
11765
+ packageJson: readPackageSync({ ...options, cwd: import_path2.default.dirname(filePath) }),
11790
11766
  path: filePath
11791
11767
  };
11792
11768
  }
@@ -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_N6K7M2HZ_exports = {};
20
- __export(chunk_N6K7M2HZ_exports, {
19
+ var chunk_J4MA2JIK_exports = {};
20
+ __export(chunk_J4MA2JIK_exports, {
21
21
  handleLibraryLoadingErrors: () => handleLibraryLoadingErrors
22
22
  });
23
- module.exports = __toCommonJS(chunk_N6K7M2HZ_exports);
24
- var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
23
+ module.exports = __toCommonJS(chunk_J4MA2JIK_exports);
24
+ var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
25
25
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
26
26
  var import_get_platform = require("@prisma/get-platform");
27
27
  function handleLibraryLoadingErrors(args) {
@@ -32,7 +32,7 @@ function handleLibraryLoadingErrors(args) {
32
32
  "https://pris.ly/d/system-requirements"
33
33
  )}`;
34
34
  const errorTitle = `Unable to require(\`${(0, import_chunk_PG5FDKSF.dim)(args.id)}\`).`;
35
- const potentialReasonMessage = (0, import_chunk_25RJ7YTB.z)({ message: error.message, code: error.code }).with({ code: "ENOENT" }, () => `File does not exist.`).when(
35
+ const potentialReasonMessage = (0, import_chunk_H3T4L34H.$)({ message: error.message, code: error.code }).with({ code: "ENOENT" }, () => `File does not exist.`).when(
36
36
  ({ message }) => hasLinkingProblem && message.includes("libz"),
37
37
  () => {
38
38
  return `${systemLibraryNotFound("libz")}. Please install it and try again.`;
@@ -26,19 +26,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_FQ3NGUFC_exports = {};
30
- __export(chunk_FQ3NGUFC_exports, {
29
+ var chunk_JBUUTZQL_exports = {};
30
+ __export(chunk_JBUUTZQL_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_FQ3NGUFC_exports);
34
+ module.exports = __toCommonJS(chunk_JBUUTZQL_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_CXEMRKV4 = require("./chunk-CXEMRKV4.js");
37
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_E2GS2B3X = require("./chunk-E2GS2B3X.js");
36
+ var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
37
+ var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
38
+ var import_chunk_67KWF6KB = require("./chunk-67KWF6KB.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
- var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
41
- var import_chunk_NZDTAI2U = require("./chunk-NZDTAI2U.js");
40
+ var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
41
+ var import_chunk_MUJIYA44 = require("./chunk-MUJIYA44.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -48,11 +48,11 @@ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVW
48
48
  var debug = (0, import_debug.default)("prisma:mergeSchemas");
49
49
  var MergeSchemasError = class extends Error {
50
50
  constructor(params) {
51
- const constructedErrorMessage = (0, import_chunk_25RJ7YTB.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
51
+ const constructedErrorMessage = (0, import_chunk_H3T4L34H.$)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
52
52
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
53
53
  return `${reason}
54
54
  ${errorCodeMessage}
55
- ${(0, import_chunk_C47SCASR.relativizePathInPSLError)(message)}`;
55
+ ${(0, import_chunk_WMIBAVWZ.relativizePathInPSLError)(message)}`;
56
56
  }).with({ _tag: "unparsed" }, ({ message, reason }) => {
57
57
  const detailsHeader = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)("Details:"));
58
58
  return `${reason}
@@ -60,12 +60,12 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: mergeSchemas]`;
63
- super((0, import_chunk_E2GS2B3X.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_67KWF6KB.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "MergeSchemasError";
65
65
  }
66
66
  };
67
67
  function mergeSchemas(options) {
68
- const debugErrorType = (0, import_chunk_CXEMRKV4.createDebugErrorType)(debug, "mergeSchemasWasm");
68
+ const debugErrorType = (0, import_chunk_IAEMHQAC.createDebugErrorType)(debug, "mergeSchemasWasm");
69
69
  debug(`Using mergeSchemas Wasm`);
70
70
  const mergeSchemasEither = (0, import_function.pipe)(
71
71
  (0, import_chunk_7MD6344A.tryCatch)(
@@ -73,7 +73,7 @@ function mergeSchemas(options) {
73
73
  const params = JSON.stringify({
74
74
  schema: options.schemas
75
75
  });
76
- return import_chunk_NZDTAI2U.prismaSchemaWasm.merge_schemas(params);
76
+ return import_chunk_MUJIYA44.prismaSchemaWasm.merge_schemas(params);
77
77
  },
78
78
  (e) => ({
79
79
  type: "wasm-error",
@@ -85,7 +85,7 @@ function mergeSchemas(options) {
85
85
  if ((0, import_chunk_7MD6344A.isRight)(mergeSchemasEither)) {
86
86
  return mergeSchemasEither.right;
87
87
  }
88
- const error = (0, import_chunk_25RJ7YTB.z)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
88
+ const error = (0, import_chunk_H3T4L34H.$)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
89
89
  debugErrorType(e);
90
90
  console.error("");
91
91
  if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
@@ -108,7 +108,7 @@ function mergeSchemas(options) {
108
108
  return panic;
109
109
  }
110
110
  const errorOutput = e.error.message;
111
- return new MergeSchemasError((0, import_chunk_CXEMRKV4.parseQueryEngineError)({ errorOutput, reason: e.reason }));
111
+ return new MergeSchemasError((0, import_chunk_IAEMHQAC.parseQueryEngineError)({ errorOutput, reason: e.reason }));
112
112
  }).exhaustive();
113
113
  throw error;
114
114
  }
@@ -0,0 +1,177 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var chunk_JMZHUHCC_exports = {};
30
+ __export(chunk_JMZHUHCC_exports, {
31
+ getEnginesInfo: () => getEnginesInfo,
32
+ getEnginesMetaInfo: () => getEnginesMetaInfo,
33
+ resolveEngine: () => resolveEngine
34
+ });
35
+ module.exports = __toCommonJS(chunk_JMZHUHCC_exports);
36
+ var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
37
+ var import_chunk_G7LL2H2O = require("./chunk-G7LL2H2O.js");
38
+ var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
39
+ var import_chunk_FPHZVRV4 = require("./chunk-FPHZVRV4.js");
40
+ var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
41
+ var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
42
+ var import_engines = require("@prisma/engines");
43
+ var import_fetch_engine = require("@prisma/fetch-engine");
44
+ var import_path = __toESM(require("path"));
45
+ var import_function2 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
46
+ var none2 = import_chunk_7MD6344A.none;
47
+ var some2 = import_chunk_7MD6344A.some;
48
+ var getRight = function(ma) {
49
+ return ma._tag === "Left" ? none2 : some2(ma.right);
50
+ };
51
+ var _map = function(fa, f) {
52
+ return (0, import_chunk_7MD6344A.pipe)(fa, map(f));
53
+ };
54
+ var _ap = function(fab, fa) {
55
+ return (0, import_chunk_7MD6344A.pipe)(fab, ap(fa));
56
+ };
57
+ var URI = "Option";
58
+ var map = function(f) {
59
+ return function(fa) {
60
+ return isNone(fa) ? none2 : some2(f(fa.value));
61
+ };
62
+ };
63
+ var Functor = {
64
+ URI,
65
+ map: _map
66
+ };
67
+ var as2 = (0, import_chunk_7MD6344A.dual)(2, (0, import_chunk_7MD6344A.as)(Functor));
68
+ var asUnit2 = (0, import_chunk_7MD6344A.asUnit)(Functor);
69
+ var ap = function(fa) {
70
+ return function(fab) {
71
+ return isNone(fab) ? none2 : isNone(fa) ? none2 : some2(fab.value(fa.value));
72
+ };
73
+ };
74
+ var flatMap = /* @__PURE__ */ (0, import_chunk_7MD6344A.dual)(2, function(ma, f) {
75
+ return isNone(ma) ? none2 : f(ma.value);
76
+ });
77
+ var Chain = {
78
+ URI,
79
+ map: _map,
80
+ ap: _ap,
81
+ chain: flatMap
82
+ };
83
+ var orElse = (0, import_chunk_7MD6344A.dual)(2, function(self, that) {
84
+ return isNone(self) ? that() : self;
85
+ });
86
+ var fromEither2 = getRight;
87
+ var FromEither = {
88
+ URI,
89
+ fromEither: fromEither2
90
+ };
91
+ var isSome2 = import_chunk_7MD6344A.isSome;
92
+ var isNone = function(fa) {
93
+ return fa._tag === "None";
94
+ };
95
+ var matchW = function(onNone, onSome) {
96
+ return function(ma) {
97
+ return isNone(ma) ? onNone() : onSome(ma.value);
98
+ };
99
+ };
100
+ var match = matchW;
101
+ var fold = match;
102
+ var tap2 = /* @__PURE__ */ (0, import_chunk_7MD6344A.dual)(2, (0, import_chunk_7MD6344A.tap)(Chain));
103
+ var tapEither2 = /* @__PURE__ */ (0, import_chunk_7MD6344A.dual)(2, (0, import_chunk_7MD6344A.tapEither)(FromEither, Chain));
104
+ var fromNullable = function(a) {
105
+ return a == null ? none2 : some2(a);
106
+ };
107
+ async function getEnginesMetaInfo() {
108
+ const cliQueryEngineBinaryType = (0, import_engines.getCliQueryEngineBinaryType)();
109
+ const engines = [
110
+ {
111
+ name: "query-engine",
112
+ type: cliQueryEngineBinaryType
113
+ },
114
+ {
115
+ name: "schema-engine",
116
+ type: import_fetch_engine.BinaryType.SchemaEngineBinary
117
+ }
118
+ ];
119
+ const enginePromises = engines.map(({ name, type }) => {
120
+ return resolveEngine(type).then((result) => [name, result]);
121
+ });
122
+ const engineMatrix = await Promise.all(enginePromises).then(Object.fromEntries);
123
+ const engineDataAcc = engines.map(({ name }) => {
124
+ const [engineInfo, errors] = getEnginesInfo(engineMatrix[name]);
125
+ return [{ [name]: engineInfo }, errors];
126
+ });
127
+ const engineMetaInfo = engineDataAcc.map((arr) => arr[0]);
128
+ const enginesMetaInfoErrors = engineDataAcc.flatMap((arr) => arr[1]);
129
+ return [engineMetaInfo, enginesMetaInfoErrors];
130
+ }
131
+ function getEnginesInfo(enginesInfo) {
132
+ const errors = [];
133
+ const resolved = (0, import_chunk_H3T4L34H.$)(enginesInfo).with({ fromEnvVar: import_chunk_H3T4L34H.N.when(isSome2) }, (_engineInfo) => {
134
+ return `, resolved by ${_engineInfo.fromEnvVar.value}`;
135
+ }).otherwise(() => "");
136
+ const absolutePath = (0, import_chunk_H3T4L34H.$)(enginesInfo).with({ path: import_chunk_H3T4L34H.N.when(import_chunk_7MD6344A.isRight) }, (_engineInfo) => {
137
+ return _engineInfo.path.right;
138
+ }).with({ path: import_chunk_H3T4L34H.N.when(import_chunk_7MD6344A.isLeft) }, (_engineInfo) => {
139
+ errors.push(_engineInfo.path.left);
140
+ return "E_CANNOT_RESOLVE_PATH";
141
+ }).exhaustive();
142
+ const version = (0, import_chunk_H3T4L34H.$)(enginesInfo).with({ version: import_chunk_H3T4L34H.N.when(import_chunk_7MD6344A.isRight) }, (_engineInfo) => {
143
+ return _engineInfo.version.right;
144
+ }).with({ version: import_chunk_H3T4L34H.N.when(import_chunk_7MD6344A.isLeft) }, (_engineInfo) => {
145
+ errors.push(_engineInfo.version.left);
146
+ return "E_CANNOT_RESOLVE_VERSION";
147
+ }).exhaustive();
148
+ const versionMessage = `${version} (at ${import_path.default.relative(process.cwd(), absolutePath)}${resolved})`;
149
+ return [versionMessage, errors];
150
+ }
151
+ async function resolveEngine(binaryName) {
152
+ const pathFromEnvOption = fromNullable((0, import_fetch_engine.getBinaryEnvVarPath)(binaryName));
153
+ const fromEnvVarOption = (0, import_function2.pipe)(
154
+ pathFromEnvOption,
155
+ map((p) => p.fromEnvVar)
156
+ );
157
+ const enginePathEither = await (0, import_function2.pipe)(
158
+ pathFromEnvOption,
159
+ fold(
160
+ () => (0, import_chunk_FPHZVRV4.safeResolveBinary)(binaryName),
161
+ (pathFromEnv) => (0, import_chunk_7MD6344A.right2)(pathFromEnv.path)
162
+ )
163
+ )();
164
+ const versionEither = await (0, import_function2.pipe)(
165
+ enginePathEither,
166
+ import_chunk_7MD6344A.fromEither,
167
+ (0, import_chunk_7MD6344A.chain)((enginePath) => {
168
+ return (0, import_chunk_G7LL2H2O.safeGetEngineVersion)(enginePath, binaryName);
169
+ })
170
+ )();
171
+ const engineInfo = {
172
+ path: enginePathEither,
173
+ version: versionEither,
174
+ fromEnvVar: fromEnvVarOption
175
+ };
176
+ return engineInfo;
177
+ }
@@ -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_D6NVMO5B_exports = {};
20
- __export(chunk_D6NVMO5B_exports, {
19
+ var chunk_KNNIRRTO_exports = {};
20
+ __export(chunk_KNNIRRTO_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_D6NVMO5B_exports);
24
- var import_chunk_PC7HPZQJ = require("./chunk-PC7HPZQJ.js");
23
+ module.exports = __toCommonJS(chunk_KNNIRRTO_exports);
24
+ var import_chunk_WYTN2XGW = require("./chunk-WYTN2XGW.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_PC7HPZQJ.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_WYTN2XGW.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -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_PC7HPZQJ_exports = {};
20
- __export(chunk_PC7HPZQJ_exports, {
19
+ var chunk_KPVPQQGU_exports = {};
20
+ __export(chunk_KPVPQQGU_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_PC7HPZQJ_exports);
24
- var import_chunk_6HMDWGVB = require("./chunk-6HMDWGVB.js");
25
- var packageJson = (0, import_chunk_6HMDWGVB.require_package)();
23
+ module.exports = __toCommonJS(chunk_KPVPQQGU_exports);
24
+ var import_chunk_KROMVQBD = require("./chunk-KROMVQBD.js");
25
+ var packageJson = (0, import_chunk_KROMVQBD.require_package)();
26
26
  var version = packageJson.version;