@prisma/internals 5.23.0-dev.2 → 5.23.0-dev.20

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 (71) hide show
  1. package/dist/{chunk-5I4BOTBV.js → chunk-5MCWLJSR.js} +3 -9
  2. package/dist/{chunk-LIB5PV7H.js → chunk-6THUAMGB.js} +5 -5
  3. package/dist/{chunk-IABMG3F4.js → chunk-77IC3DNO.js} +5 -5
  4. package/dist/{chunk-5UACJAAB.js → chunk-7PI4C55S.js} +13 -13
  5. package/dist/{chunk-4M4LPJPC.js → chunk-BDGDNUIL.js} +5 -5
  6. package/dist/{chunk-WMIBAVWZ.js → chunk-C47SCASR.js} +5 -5
  7. package/dist/{chunk-INHGTPT5.js → chunk-CQSMDDKM.js} +14 -14
  8. package/dist/{chunk-J3JE5NVO.js → chunk-CZDIXJEO.js} +56 -32
  9. package/dist/{chunk-FKO4FDX3.js → chunk-DTEXPX36.js} +12 -12
  10. package/dist/{chunk-SOG4ASAQ.js → chunk-EBU6N6T4.js} +6 -6
  11. package/dist/{chunk-PKY5WEUF.js → chunk-G5ET5ITV.js} +13 -13
  12. package/dist/{chunk-4ILHL6B6.js → chunk-H7DE4ZVH.js} +5 -5
  13. package/dist/{chunk-7NNOHWLC.js → chunk-HMF3VL6Z.js} +61 -172
  14. package/dist/{chunk-OSOXVAZB.js → chunk-HPF5G47V.js} +9 -9
  15. package/dist/{chunk-IAEMHQAC.js → chunk-I4467NNA.js} +5 -5
  16. package/dist/{chunk-DI7BWNGL.js → chunk-K6DMP57P.js} +5 -5
  17. package/dist/{chunk-7CTC3RVJ.js → chunk-KKG2ZZJE.js} +5 -5
  18. package/dist/{chunk-4NFLAUKD.js → chunk-KQOJB3ZW.js} +70 -70
  19. package/dist/{chunk-QEVSPE5U.js → chunk-LHLIU6FO.js} +5 -5
  20. package/dist/{chunk-3U2ANLD3.js → chunk-MGZOEY6N.js} +6 -6
  21. package/dist/{chunk-BQTOCOYU.js → chunk-NBU7LQCG.js} +5 -5
  22. package/dist/{chunk-SZKPXBSP.js → chunk-OTU7IKOX.js} +12 -12
  23. package/dist/{chunk-MJPMCOCJ.js → chunk-QADJGXRG.js} +61 -172
  24. package/dist/{chunk-CSRUIX22.js → chunk-RQ3C6TME.js} +11 -11
  25. package/dist/{chunk-KH4RKPJH.js → chunk-RUUX4JI7.js} +14 -14
  26. package/dist/{chunk-IXEZUAGW.js → chunk-S34YTBDJ.js} +5 -5
  27. package/dist/{chunk-FTS2IEWX.js → chunk-S57RMXZW.js} +5 -5
  28. package/dist/{chunk-XLYQ6PQW.js → chunk-SLBBRUQS.js} +15 -15
  29. package/dist/{chunk-WCRKL55L.js → chunk-V2ZF7ETH.js} +7 -7
  30. package/dist/{chunk-PK7HIANT.js → chunk-VEODS3ZR.js} +5 -5
  31. package/dist/{chunk-YDZVEVUG.js → chunk-VRT7T6MF.js} +73 -73
  32. package/dist/{chunk-ISIFDTAX.js → chunk-ZBCEU6ZR.js} +11 -11
  33. package/dist/{chunk-ZA3RMW2P.js → chunk-ZKAW5JSN.js} +5 -8
  34. package/dist/cli/checkUnsupportedDataProxy.js +25 -25
  35. package/dist/cli/getSchema.js +30 -30
  36. package/dist/cli/hashes.js +25 -25
  37. package/dist/engine-commands/errorHelpers.js +4 -4
  38. package/dist/engine-commands/formatSchema.js +24 -24
  39. package/dist/engine-commands/getConfig.js +12 -12
  40. package/dist/engine-commands/getDmmf.js +9 -9
  41. package/dist/engine-commands/index.js +33 -33
  42. package/dist/engine-commands/lintSchema.js +8 -8
  43. package/dist/engine-commands/mergeSchemas.js +9 -9
  44. package/dist/engine-commands/queryEngineCommons.js +6 -6
  45. package/dist/engine-commands/relativizePathInPSLError.js +2 -2
  46. package/dist/engine-commands/validate.js +9 -9
  47. package/dist/errorReporting.js +6 -6
  48. package/dist/get-generators/generatorResolvers/generatorResolvers.js +24 -24
  49. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +3 -3
  50. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +4 -4
  51. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +24 -24
  52. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +3 -3
  53. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +25 -25
  54. package/dist/get-generators/getGenerators.js +27 -27
  55. package/dist/getPackedPackage.js +2 -2
  56. package/dist/index.js +58 -58
  57. package/dist/{multipart-parser-LCETWFPE.js → multipart-parser-32AROPTR.js} +9 -6
  58. package/dist/sendPanic.js +24 -24
  59. package/dist/utils/cloudflareD1.js +2 -2
  60. package/dist/utils/getCommandWithExecutor.js +3 -3
  61. package/dist/utils/getEnvPaths.js +24 -24
  62. package/dist/utils/getGitHubIssueUrl.js +3 -3
  63. package/dist/utils/getVersionFromPackageJson.js +3 -3
  64. package/dist/utils/handlePanic.js +24 -24
  65. package/dist/utils/isCurrentBinInstalledGlobally.d.ts +1 -1
  66. package/dist/utils/isCurrentBinInstalledGlobally.js +2 -2
  67. package/dist/utils/loadEnvFile.js +24 -24
  68. package/dist/wasm.js +4 -4
  69. package/package.json +9 -9
  70. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.d.ts +0 -9
  71. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +0 -132
@@ -26,11 +26,10 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_7NNOHWLC_exports = {};
30
- __export2(chunk_7NNOHWLC_exports, {
29
+ var chunk_HMF3VL6Z_exports = {};
30
+ __export2(chunk_HMF3VL6Z_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
- checkYarnVersion: () => checkYarnVersion,
34
33
  debug: () => debug5,
35
34
  forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
36
35
  formatSchema: () => formatSchema,
@@ -56,10 +55,10 @@ __export2(chunk_7NNOHWLC_exports, {
56
55
  sendPanic: () => sendPanic,
57
56
  skipIndex: () => skipIndex
58
57
  });
59
- module.exports = __toCommonJS2(chunk_7NNOHWLC_exports);
60
- var import_chunk_IABMG3F4 = require("./chunk-IABMG3F4.js");
61
- var import_chunk_3U2ANLD3 = require("./chunk-3U2ANLD3.js");
62
- var import_chunk_FTS2IEWX = require("./chunk-FTS2IEWX.js");
58
+ module.exports = __toCommonJS2(chunk_HMF3VL6Z_exports);
59
+ var import_chunk_77IC3DNO = require("./chunk-77IC3DNO.js");
60
+ var import_chunk_MGZOEY6N = require("./chunk-MGZOEY6N.js");
61
+ var import_chunk_S57RMXZW = require("./chunk-S57RMXZW.js");
63
62
  var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
64
63
  var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
65
64
  var import_chunk_KEBDP2C3 = require("./chunk-KEBDP2C3.js");
@@ -77,27 +76,26 @@ var import_chunk_2MWIMEFK = require("./chunk-2MWIMEFK.js");
77
76
  var import_chunk_L6GBFCXG = require("./chunk-L6GBFCXG.js");
78
77
  var import_chunk_KDHESRKE = require("./chunk-KDHESRKE.js");
79
78
  var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
80
- var import_chunk_XLYQ6PQW = require("./chunk-XLYQ6PQW.js");
79
+ var import_chunk_SLBBRUQS = require("./chunk-SLBBRUQS.js");
81
80
  var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
82
81
  var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
83
82
  var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
84
- var import_chunk_4M4LPJPC = require("./chunk-4M4LPJPC.js");
85
- var import_chunk_SZKPXBSP = require("./chunk-SZKPXBSP.js");
86
- var import_chunk_INHGTPT5 = require("./chunk-INHGTPT5.js");
87
- var import_chunk_CSRUIX22 = require("./chunk-CSRUIX22.js");
83
+ var import_chunk_NBU7LQCG = require("./chunk-NBU7LQCG.js");
84
+ var import_chunk_DTEXPX36 = require("./chunk-DTEXPX36.js");
85
+ var import_chunk_RUUX4JI7 = require("./chunk-RUUX4JI7.js");
86
+ var import_chunk_RQ3C6TME = require("./chunk-RQ3C6TME.js");
88
87
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
89
88
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
90
- var import_chunk_QEVSPE5U = require("./chunk-QEVSPE5U.js");
89
+ var import_chunk_KKG2ZZJE = require("./chunk-KKG2ZZJE.js");
91
90
  var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
92
91
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
93
92
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
94
- var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
95
93
  var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
96
94
  var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
97
95
  var import_chunk_635TMBAP = require("./chunk-635TMBAP.js");
98
96
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
99
- var import_chunk_4NFLAUKD = require("./chunk-4NFLAUKD.js");
100
- var import_chunk_J3JE5NVO = require("./chunk-J3JE5NVO.js");
97
+ var import_chunk_KQOJB3ZW = require("./chunk-KQOJB3ZW.js");
98
+ var import_chunk_CZDIXJEO = require("./chunk-CZDIXJEO.js");
101
99
  var import_chunk_FUUQ6FJ4 = require("./chunk-FUUQ6FJ4.js");
102
100
  var import_chunk_KKMREGHN = require("./chunk-KKMREGHN.js");
103
101
  var import_chunk_AZNLB67U = require("./chunk-AZNLB67U.js");
@@ -441,7 +439,7 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
441
439
  module2.exports = readdirGlob;
442
440
  var fs8 = (0, import_chunk_WWAWV7DQ.__require)("fs");
443
441
  var { EventEmitter } = (0, import_chunk_WWAWV7DQ.__require)("events");
444
- var { Minimatch } = (0, import_chunk_J3JE5NVO.require_minimatch)();
442
+ var { Minimatch } = (0, import_chunk_CZDIXJEO.require_minimatch)();
445
443
  var { resolve } = (0, import_chunk_WWAWV7DQ.__require)("path");
446
444
  function readdir(dir2, strict) {
447
445
  return new Promise((resolve2, reject2) => {
@@ -456,12 +454,16 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
456
454
  }
457
455
  break;
458
456
  case "ENOTSUP":
457
+ // Operation not supported
459
458
  case "ENOENT":
459
+ // No such file or directory
460
460
  case "ENAMETOOLONG":
461
+ // Filename too long
461
462
  case "UNKNOWN":
462
463
  resolve2([]);
463
464
  break;
464
465
  case "ELOOP":
466
+ // Too many levels of symbolic links
465
467
  default:
466
468
  reject2(err);
467
469
  break;
@@ -2848,7 +2850,7 @@ var require_stream_writable = (0, import_chunk_WWAWV7DQ.__commonJS)({
2848
2850
  var Duplex;
2849
2851
  Writable.WritableState = WritableState;
2850
2852
  var util = Object.create(require_util());
2851
- util.inherits = (0, import_chunk_J3JE5NVO.require_inherits)();
2853
+ util.inherits = (0, import_chunk_CZDIXJEO.require_inherits)();
2852
2854
  var internalUtil = {
2853
2855
  deprecate: require_node()
2854
2856
  };
@@ -3286,7 +3288,7 @@ var require_stream_duplex = (0, import_chunk_WWAWV7DQ.__commonJS)({
3286
3288
  };
3287
3289
  module2.exports = Duplex;
3288
3290
  var util = Object.create(require_util());
3289
- util.inherits = (0, import_chunk_J3JE5NVO.require_inherits)();
3291
+ util.inherits = (0, import_chunk_CZDIXJEO.require_inherits)();
3290
3292
  var Readable = require_stream_readable();
3291
3293
  var Writable = require_stream_writable();
3292
3294
  util.inherits(Duplex, Readable);
@@ -3607,7 +3609,7 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
3607
3609
  return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
3608
3610
  }
3609
3611
  var util = Object.create(require_util());
3610
- util.inherits = (0, import_chunk_J3JE5NVO.require_inherits)();
3612
+ util.inherits = (0, import_chunk_CZDIXJEO.require_inherits)();
3611
3613
  var debugUtil = (0, import_chunk_WWAWV7DQ.__require)("util");
3612
3614
  var debug8 = void 0;
3613
3615
  if (debugUtil && debugUtil.debuglog) {
@@ -4274,7 +4276,7 @@ var require_stream_transform = (0, import_chunk_WWAWV7DQ.__commonJS)({
4274
4276
  module2.exports = Transform;
4275
4277
  var Duplex = require_stream_duplex();
4276
4278
  var util = Object.create(require_util());
4277
- util.inherits = (0, import_chunk_J3JE5NVO.require_inherits)();
4279
+ util.inherits = (0, import_chunk_CZDIXJEO.require_inherits)();
4278
4280
  util.inherits(Transform, Duplex);
4279
4281
  function afterTransform(er, data) {
4280
4282
  var ts = this._transformState;
@@ -4372,7 +4374,7 @@ var require_stream_passthrough = (0, import_chunk_WWAWV7DQ.__commonJS)({
4372
4374
  module2.exports = PassThrough;
4373
4375
  var Transform = require_stream_transform();
4374
4376
  var util = Object.create(require_util());
4375
- util.inherits = (0, import_chunk_J3JE5NVO.require_inherits)();
4377
+ util.inherits = (0, import_chunk_CZDIXJEO.require_inherits)();
4376
4378
  util.inherits(PassThrough, Transform);
4377
4379
  function PassThrough(options2) {
4378
4380
  if (!(this instanceof PassThrough)) return new PassThrough(options2);
@@ -5658,7 +5660,7 @@ var require_stream_writable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5658
5660
  var ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END;
5659
5661
  var ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
5660
5662
  var errorOrDestroy = destroyImpl.errorOrDestroy;
5661
- (0, import_chunk_J3JE5NVO.require_inherits)()(Writable, Stream);
5663
+ (0, import_chunk_CZDIXJEO.require_inherits)()(Writable, Stream);
5662
5664
  function nop() {
5663
5665
  }
5664
5666
  function WritableState(options2, stream, isDuplex) {
@@ -6100,7 +6102,7 @@ var require_stream_duplex2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
6100
6102
  module2.exports = Duplex;
6101
6103
  var Readable = require_stream_readable2();
6102
6104
  var Writable = require_stream_writable2();
6103
- (0, import_chunk_J3JE5NVO.require_inherits)()(Duplex, Readable);
6105
+ (0, import_chunk_CZDIXJEO.require_inherits)()(Duplex, Readable);
6104
6106
  {
6105
6107
  keys = objectKeys(Writable.prototype);
6106
6108
  for (v = 0; v < keys.length; v++) {
@@ -6877,7 +6879,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
6877
6879
  var StringDecoder;
6878
6880
  var createReadableStreamAsyncIterator;
6879
6881
  var from;
6880
- (0, import_chunk_J3JE5NVO.require_inherits)()(Readable, Stream);
6882
+ (0, import_chunk_CZDIXJEO.require_inherits)()(Readable, Stream);
6881
6883
  var errorOrDestroy = destroyImpl.errorOrDestroy;
6882
6884
  var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
6883
6885
  function prependListener(emitter, event, fn) {
@@ -7582,7 +7584,7 @@ var require_stream_transform2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
7582
7584
  var ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING;
7583
7585
  var ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
7584
7586
  var Duplex = require_stream_duplex2();
7585
- (0, import_chunk_J3JE5NVO.require_inherits)()(Transform, Duplex);
7587
+ (0, import_chunk_CZDIXJEO.require_inherits)()(Transform, Duplex);
7586
7588
  function afterTransform(er, data) {
7587
7589
  var ts = this._transformState;
7588
7590
  ts.transforming = false;
@@ -7676,7 +7678,7 @@ var require_stream_passthrough2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
7676
7678
  "use strict";
7677
7679
  module2.exports = PassThrough;
7678
7680
  var Transform = require_stream_transform2();
7679
- (0, import_chunk_J3JE5NVO.require_inherits)()(PassThrough, Transform);
7681
+ (0, import_chunk_CZDIXJEO.require_inherits)()(PassThrough, Transform);
7680
7682
  function PassThrough(options2) {
7681
7683
  if (!(this instanceof PassThrough)) return new PassThrough(options2);
7682
7684
  Transform.call(this, options2);
@@ -8550,7 +8552,7 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
8550
8552
  var difference = require_difference();
8551
8553
  var union = require_union();
8552
8554
  var isPlainObject = require_isPlainObject();
8553
- var glob = (0, import_chunk_J3JE5NVO.require_glob)();
8555
+ var glob = (0, import_chunk_CZDIXJEO.require_glob)();
8554
8556
  var file = module2.exports = {};
8555
8557
  var pathSeparatorRe = /[\/\\]/g;
8556
8558
  var processPatterns = function(patterns, fn) {
@@ -13800,6 +13802,8 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
13800
13802
  this.inc("patch", identifier, identifierBase);
13801
13803
  this.inc("pre", identifier, identifierBase);
13802
13804
  break;
13805
+ // If the input is a non-prerelease version, this acts the same as
13806
+ // prepatch.
13803
13807
  case "prerelease":
13804
13808
  if (this.prerelease.length === 0) {
13805
13809
  this.inc("patch", identifier, identifierBase);
@@ -13827,6 +13831,8 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
13827
13831
  }
13828
13832
  this.prerelease = [];
13829
13833
  break;
13834
+ // This probably shouldn't be used publicly.
13835
+ // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
13830
13836
  case "pre": {
13831
13837
  const base = Number(identifierBase) ? 1 : 0;
13832
13838
  if (!identifier && identifierBase === false) {
@@ -14707,7 +14713,6 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14707
14713
  }
14708
14714
  });
14709
14715
  var import_find_up = (0, import_chunk_WWAWV7DQ.__toESM)(require_find_up());
14710
- var import_execa = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_7XNZDY2V.require_execa)());
14711
14716
  var readFile = (0, import_util.promisify)(import_fs3.default.readFile);
14712
14717
  var stat = (0, import_util.promisify)(import_fs3.default.stat);
14713
14718
  var debug2 = (0, import_debug3.Debug)("prisma:getSchema");
@@ -14746,7 +14751,7 @@ async function readSchemaFromDirectory(schemaPath2) {
14746
14751
  }
14747
14752
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
14748
14753
  debug2("Loading config");
14749
- const config2 = await (0, import_chunk_INHGTPT5.getConfig)({
14754
+ const config2 = await (0, import_chunk_RUUX4JI7.getConfig)({
14750
14755
  datamodel: files,
14751
14756
  ignoreEnvVarErrors: true
14752
14757
  });
@@ -14813,14 +14818,9 @@ async function getSchemaWithPathInternal(schemaPathFromArgs, { cwd, argumentName
14813
14818
  if (defaultResult.ok) {
14814
14819
  return defaultResult;
14815
14820
  }
14816
- const yarnResult = await getSchemaFromYarn1Workspace(cwd, defaultResult.error.failures);
14817
- if (yarnResult.ok) {
14818
- return yarnResult;
14819
- }
14820
- const finalError = yarnResult.error.kind === "Yarn1WorkspaceSchemaNotFound" ? defaultResult.error : yarnResult.error;
14821
14821
  return {
14822
14822
  ok: false,
14823
- error: finalError
14823
+ error: defaultResult.error
14824
14824
  };
14825
14825
  }
14826
14826
  function renderLookupError(error) {
@@ -14855,7 +14855,7 @@ function renderDefaultLookupError(error, cwd) {
14855
14855
  return parts.join("\n");
14856
14856
  }
14857
14857
  async function getPrismaConfigFromPackageJson(cwd) {
14858
- const pkgJson = await (0, import_chunk_J3JE5NVO.readPackageUp)({ cwd, normalize: false });
14858
+ const pkgJson = await (0, import_chunk_CZDIXJEO.readPackageUp)({ cwd, normalize: false });
14859
14859
  const prismaPropertyFromPkgJson = pkgJson?.packageJson?.prisma;
14860
14860
  if (!pkgJson) {
14861
14861
  return null;
@@ -14895,47 +14895,6 @@ async function getSchemaFromPackageJson(cwd) {
14895
14895
  }
14896
14896
  return lookupResult;
14897
14897
  }
14898
- async function getSchemaFromYarn1Workspace(cwd, pastFailures) {
14899
- if (!process.env.npm_config_user_agent?.includes("yarn")) {
14900
- return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
14901
- }
14902
- let workspaces;
14903
- try {
14904
- const { stdout: version3 } = await import_execa.default.command("yarn --version", {
14905
- cwd
14906
- });
14907
- if (version3.startsWith("2")) {
14908
- return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
14909
- }
14910
- const { stdout } = await import_execa.default.command("yarn workspaces info --json", {
14911
- cwd
14912
- });
14913
- const json = getJson(stdout);
14914
- workspaces = Object.values(json);
14915
- } catch {
14916
- return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
14917
- }
14918
- const workspaceRootDir = await findWorkspaceRoot(cwd);
14919
- if (!workspaceRootDir) {
14920
- return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
14921
- }
14922
- for (const workspace of workspaces) {
14923
- const workspacePath = import_path2.default.join(workspaceRootDir, workspace.location);
14924
- const workspaceSchema = await tryWorkspacePath(workspacePath, pastFailures);
14925
- if (workspaceSchema.ok) {
14926
- return workspaceSchema;
14927
- }
14928
- }
14929
- const rootPathSchema = await tryWorkspacePath(workspaceRootDir, pastFailures);
14930
- return rootPathSchema;
14931
- }
14932
- async function tryWorkspacePath(cwd, pastFailures) {
14933
- const pkgJson = await getSchemaFromPackageJson(cwd);
14934
- if (pkgJson.ok) {
14935
- return pkgJson;
14936
- }
14937
- return getDefaultSchema(cwd, pastFailures);
14938
- }
14939
14898
  async function getDefaultSchema(cwd, failures = []) {
14940
14899
  const schemaPrisma = {
14941
14900
  schemaPath: {
@@ -15014,44 +14973,6 @@ async function getSchema(schemaPathFromArgs) {
15014
14973
  const schemaPathResult = await getSchemaWithPath(schemaPathFromArgs);
15015
14974
  return schemaPathResult.schemas;
15016
14975
  }
15017
- function getJson(stdout) {
15018
- const firstCurly = stdout.indexOf("{");
15019
- const lastCurly = stdout.lastIndexOf("}");
15020
- const sliced = stdout.slice(firstCurly, lastCurly + 1);
15021
- return JSON.parse(sliced);
15022
- }
15023
- function isPkgJsonWorkspaceRoot(pkgJson) {
15024
- const workspaces = pkgJson.workspaces;
15025
- if (!workspaces) {
15026
- return false;
15027
- }
15028
- return Array.isArray(workspaces) || workspaces.packages !== void 0;
15029
- }
15030
- async function isNearestPkgJsonWorkspaceRoot(cwd) {
15031
- const pkgJson = await (0, import_chunk_J3JE5NVO.readPackageUp)({ cwd, normalize: false });
15032
- if (!pkgJson) {
15033
- return null;
15034
- }
15035
- return {
15036
- isRoot: isPkgJsonWorkspaceRoot(pkgJson.packageJson),
15037
- path: pkgJson.path
15038
- };
15039
- }
15040
- async function findWorkspaceRoot(cwd) {
15041
- let pkgJson = await isNearestPkgJsonWorkspaceRoot(cwd);
15042
- if (!pkgJson) {
15043
- return null;
15044
- }
15045
- if (pkgJson.isRoot === true) {
15046
- return import_path2.default.dirname(pkgJson.path);
15047
- }
15048
- const pkgJsonParentDir = import_path2.default.dirname(import_path2.default.dirname(pkgJson.path));
15049
- pkgJson = await isNearestPkgJsonWorkspaceRoot(pkgJsonParentDir);
15050
- if (!pkgJson || pkgJson.isRoot === false) {
15051
- return null;
15052
- }
15053
- return import_path2.default.dirname(pkgJson.path);
15054
- }
15055
14976
  var debug3 = (0, import_debug2.default)("prisma:loadEnv");
15056
14977
  async function getEnvPaths(schemaPath2, opts = { cwd: process.cwd() }) {
15057
14978
  const rootEnvPath = getProjectRootEnvPath({ cwd: opts.cwd }) ?? null;
@@ -15138,8 +15059,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
15138
15059
  if (argName.includes("schema")) {
15139
15060
  await loadEnvFile({ schemaPath: argValue, printMessage: false });
15140
15061
  const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
15141
- const config2 = await (0, import_chunk_INHGTPT5.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15142
- const url = (0, import_chunk_INHGTPT5.resolveUrl)((0, import_chunk_INHGTPT5.getEffectiveUrl)(config2.datasources[0]));
15062
+ const config2 = await (0, import_chunk_RUUX4JI7.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15063
+ const url = (0, import_chunk_RUUX4JI7.resolveUrl)((0, import_chunk_RUUX4JI7.getEffectiveUrl)(config2.datasources[0]));
15143
15064
  if (url?.startsWith("prisma://")) {
15144
15065
  return forbiddenCmdWithDataProxyFlagMessage(command);
15145
15066
  }
@@ -15160,7 +15081,7 @@ function getCLIPathHash() {
15160
15081
  const cliPath = process.argv[1];
15161
15082
  return import_crypto.default.createHash("sha256").update(cliPath).digest("hex").substring(0, 8);
15162
15083
  }
15163
- var import_p_map = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_J3JE5NVO.require_p_map)());
15084
+ var import_p_map = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_CZDIXJEO.require_p_map)());
15164
15085
  var debug4 = (0, import_debug6.default)("prisma:generator");
15165
15086
  async function checkTypeScriptVersion() {
15166
15087
  const minVersion = "4.1.0";
@@ -15186,42 +15107,10 @@ async function checkTypeScriptVersion() {
15186
15107
  } catch (e) {
15187
15108
  }
15188
15109
  }
15189
- function checkYarnVersion() {
15190
- if (process.env.npm_config_user_agent) {
15191
- const match = parseUserAgentString(process.env.npm_config_user_agent);
15192
- if (match) {
15193
- const { agent, major, minor, patch } = match;
15194
- if (agent === "yarn" && major === 1) {
15195
- const currentYarnVersion = `${major}.${minor}.${patch}`;
15196
- const minYarnVersion = "1.19.2";
15197
- if ((0, import_chunk_EUTJYQDW.semverLt)(currentYarnVersion, minYarnVersion)) {
15198
- import_chunk_AZNLB67U.logger_exports.warn(
15199
- `Your ${(0, import_chunk_PG5FDKSF.bold)("yarn")} has version ${currentYarnVersion}, which is outdated. Please update it to ${(0, import_chunk_PG5FDKSF.bold)(
15200
- minYarnVersion
15201
- )} or ${(0, import_chunk_PG5FDKSF.bold)("newer")} in order to use Prisma.`
15202
- );
15203
- }
15204
- }
15205
- }
15206
- }
15207
- }
15208
- function parseUserAgentString(str) {
15209
- const userAgentRegex = /(\w+)\/(\d+)\.(\d+)\.(\d+)/;
15210
- const match = userAgentRegex.exec(str);
15211
- if (match) {
15212
- const agent = match[1];
15213
- const major = parseInt(match[2]);
15214
- const minor = parseInt(match[3]);
15215
- const patch = parseInt(match[4]);
15216
- return { agent, major, minor, patch };
15217
- }
15218
- return null;
15219
- }
15220
15110
  var debug5 = (0, import_debug5.default)("prisma:generator");
15221
15111
  async function prismaClientResolver(baseDir, version3) {
15222
15112
  let prismaClientDir = await (0, import_chunk_KEBDP2C3.findPrismaClientDir)(baseDir);
15223
15113
  debug5("baseDir", baseDir);
15224
- checkYarnVersion();
15225
15114
  await checkTypeScriptVersion();
15226
15115
  if (!prismaClientDir && !process.env.PRISMA_GENERATE_SKIP_AUTOINSTALL) {
15227
15116
  let projectRoot = (0, import_chunk_J77ZIDXB.longestCommonPathPrefix)(baseDir, process.cwd());
@@ -15247,30 +15136,30 @@ async function prismaClientResolver(baseDir, version3) {
15247
15136
  );
15248
15137
  }
15249
15138
  const prismaCliDir = await (0, import_chunk_FUUQ6FJ4.resolvePkg)("prisma", { basedir: baseDir });
15250
- if (process.platform === "win32" && await (0, import_chunk_FTS2IEWX.isYarnUsed)(baseDir)) {
15139
+ if (process.platform === "win32" && await (0, import_chunk_S57RMXZW.isYarnUsed)(baseDir)) {
15251
15140
  const hasCli = (s2) => prismaCliDir !== void 0 ? s2 : "";
15252
15141
  const missingCli = (s2) => prismaCliDir === void 0 ? s2 : "";
15253
15142
  throw new Error(
15254
15143
  `Could not resolve ${missingCli(`${(0, import_chunk_PG5FDKSF.bold)("prisma")} and `)}${(0, import_chunk_PG5FDKSF.bold)(
15255
15144
  "@prisma/client"
15256
15145
  )} in the current project. Please install ${hasCli("it")}${missingCli("them")} with ${missingCli(
15257
- `${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "add", "prisma", "-D")}`))} and `
15258
- )}${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "add", "@prisma/client")}`))}, and rerun ${(0, import_chunk_PG5FDKSF.bold)(
15259
- await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "execute", "prisma generate")
15146
+ `${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "add", "prisma", "-D")}`))} and `
15147
+ )}${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "add", "@prisma/client")}`))}, and rerun ${(0, import_chunk_PG5FDKSF.bold)(
15148
+ await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "execute", "prisma generate")
15260
15149
  )} \u{1F64F}.`
15261
15150
  );
15262
15151
  }
15263
15152
  if (!prismaCliDir) {
15264
- await (0, import_chunk_IABMG3F4.runPackageCmd)(projectRoot, "add", `prisma@${version3 ?? "latest"}`, "-D", "--silent");
15153
+ await (0, import_chunk_77IC3DNO.runPackageCmd)(projectRoot, "add", `prisma@${version3 ?? "latest"}`, "-D", "--silent");
15265
15154
  }
15266
- await (0, import_chunk_IABMG3F4.runPackageCmd)(projectRoot, "add", `@prisma/client@${version3 ?? "latest"}`, "--silent");
15155
+ await (0, import_chunk_77IC3DNO.runPackageCmd)(projectRoot, "add", `@prisma/client@${version3 ?? "latest"}`, "--silent");
15267
15156
  prismaClientDir = await (0, import_chunk_KEBDP2C3.findPrismaClientDir)(import_path4.default.join(".", baseDir));
15268
15157
  if (!prismaClientDir) {
15269
15158
  throw new Error(
15270
15159
  `Could not resolve @prisma/client despite the installation that we just tried.
15271
15160
  Please try to install it by hand with ${(0, import_chunk_PG5FDKSF.bold)(
15272
- (0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "add", "@prisma/client")}`)
15273
- )} and rerun ${(0, import_chunk_PG5FDKSF.bold)(await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "execute", "prisma generate"))} \u{1F64F}.`
15161
+ (0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "add", "@prisma/client")}`)
15162
+ )} and rerun ${(0, import_chunk_PG5FDKSF.bold)(await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "execute", "prisma generate"))} \u{1F64F}.`
15274
15163
  );
15275
15164
  }
15276
15165
  console.info(
@@ -15282,7 +15171,7 @@ Please try to install it by hand with ${(0, import_chunk_PG5FDKSF.bold)(
15282
15171
  throw new Error(
15283
15172
  `Could not resolve @prisma/client.
15284
15173
  Please try to install it with ${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)("npm install @prisma/client"))} and rerun ${(0, import_chunk_PG5FDKSF.bold)(
15285
- await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "execute", "prisma generate")
15174
+ await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "execute", "prisma generate")
15286
15175
  )} \u{1F64F}.`
15287
15176
  );
15288
15177
  }
@@ -15343,7 +15232,7 @@ async function getGenerators(options) {
15343
15232
  prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
15344
15233
  }
15345
15234
  }
15346
- const config = await (0, import_chunk_INHGTPT5.getConfig)({
15235
+ const config = await (0, import_chunk_RUUX4JI7.getConfig)({
15347
15236
  datamodel: schemas,
15348
15237
  datamodelPath: schemaPath,
15349
15238
  prismaPath,
@@ -15354,7 +15243,7 @@ async function getGenerators(options) {
15354
15243
  }
15355
15244
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
15356
15245
  const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
15357
- const dmmf = await (0, import_chunk_CSRUIX22.getDMMF)({
15246
+ const dmmf = await (0, import_chunk_RQ3C6TME.getDMMF)({
15358
15247
  datamodel: schemas,
15359
15248
  datamodelPath: schemaPath,
15360
15249
  prismaPath,
@@ -15415,7 +15304,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
15415
15304
  fromEnvVar: "null"
15416
15305
  };
15417
15306
  }
15418
- const datamodel = (0, import_chunk_SZKPXBSP.mergeSchemas)({ schemas });
15307
+ const datamodel = (0, import_chunk_DTEXPX36.mergeSchemas)({ schemas });
15419
15308
  const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
15420
15309
  const options2 = {
15421
15310
  datamodel,
@@ -15498,7 +15387,7 @@ generator gen {
15498
15387
  debug6({ generatorBinaryPaths });
15499
15388
  generator.setBinaryPaths(generatorBinaryPaths);
15500
15389
  if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
15501
- const customDmmf = await (0, import_chunk_CSRUIX22.getDMMF)({
15390
+ const customDmmf = await (0, import_chunk_RQ3C6TME.getDMMF)({
15502
15391
  datamodel: schemas,
15503
15392
  datamodelPath: schemaPath,
15504
15393
  prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
@@ -15666,16 +15555,16 @@ async function sendPanic({
15666
15555
  sqlDump: void 0,
15667
15556
  dbVersion
15668
15557
  };
15669
- const signedUrl = await (0, import_chunk_4NFLAUKD.createErrorReport)(params);
15558
+ const signedUrl = await (0, import_chunk_KQOJB3ZW.createErrorReport)(params);
15670
15559
  try {
15671
15560
  if (error.schemaPath) {
15672
15561
  const zip = await makeErrorZip(error);
15673
- await (0, import_chunk_4NFLAUKD.uploadZip)(zip, signedUrl);
15562
+ await (0, import_chunk_KQOJB3ZW.uploadZip)(zip, signedUrl);
15674
15563
  }
15675
15564
  } catch (zipUploadError) {
15676
15565
  console.error(`Error uploading zip file: ${zipUploadError.message}`);
15677
15566
  }
15678
- const id = await (0, import_chunk_4NFLAUKD.makeErrorReportCompleted)(signedUrl);
15567
+ const id = await (0, import_chunk_KQOJB3ZW.makeErrorReportCompleted)(signedUrl);
15679
15568
  return id;
15680
15569
  }
15681
15570
  function concatSchemaForReport(schemaFiles) {
@@ -15782,7 +15671,7 @@ ${(0, import_chunk_PG5FDKSF.bold)("Thanks a lot for your help! \u{1F64F}")}`);
15782
15671
  console.error(`${(0, import_chunk_PG5FDKSF.gray)("Error report submission failed due to: ")}`, error2);
15783
15672
  }
15784
15673
  }
15785
- await (0, import_chunk_XLYQ6PQW.wouldYouLikeToCreateANewIssue)({
15674
+ await (0, import_chunk_SLBBRUQS.wouldYouLikeToCreateANewIssue)({
15786
15675
  prompt: !shouldSubmitReport,
15787
15676
  error,
15788
15677
  cliVersion: cliVersion2,
@@ -15796,7 +15685,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15796
15685
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
15797
15686
  handleFormatPanic(
15798
15687
  () => {
15799
- import_chunk_QEVSPE5U.prismaSchemaWasm.debug_panic();
15688
+ import_chunk_KKG2ZZJE.prismaSchemaWasm.debug_panic();
15800
15689
  },
15801
15690
  { schemas: schemas2 }
15802
15691
  );
@@ -15816,12 +15705,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15816
15705
  () => {
15817
15706
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
15818
15707
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
15819
- const lintDiagnostics2 = (0, import_chunk_4M4LPJPC.lintSchema)({ schemas: formattedMultipleSchemas2 });
15708
+ const lintDiagnostics2 = (0, import_chunk_NBU7LQCG.lintSchema)({ schemas: formattedMultipleSchemas2 });
15820
15709
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
15821
15710
  },
15822
15711
  { schemas: schemas2 }
15823
15712
  );
15824
- const lintWarnings = (0, import_chunk_4M4LPJPC.getLintWarningsAsText)(lintDiagnostics);
15713
+ const lintWarnings = (0, import_chunk_NBU7LQCG.getLintWarningsAsText)(lintDiagnostics);
15825
15714
  if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
15826
15715
  console.warn(lintWarnings);
15827
15716
  }
@@ -15851,7 +15740,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
15851
15740
  }
15852
15741
  }
15853
15742
  function formatWasm(schema, documentFormattingParams) {
15854
- const formattedSchema = import_chunk_QEVSPE5U.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15743
+ const formattedSchema = import_chunk_KKG2ZZJE.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15855
15744
  return formattedSchema;
15856
15745
  }
15857
15746
  /*! Bundled license information:
@@ -26,24 +26,24 @@ 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_OSOXVAZB_exports = {};
30
- __export(chunk_OSOXVAZB_exports, {
29
+ var chunk_HPF5G47V_exports = {};
30
+ __export(chunk_HPF5G47V_exports, {
31
31
  locateLocalCloudflareD1: () => locateLocalCloudflareD1
32
32
  });
33
- module.exports = __toCommonJS(chunk_OSOXVAZB_exports);
33
+ module.exports = __toCommonJS(chunk_HPF5G47V_exports);
34
34
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
35
35
  var import_chunk_KKMREGHN = require("./chunk-KKMREGHN.js");
36
36
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
37
- var import_path = __toESM(require("path"));
38
- var import_process = __toESM(require("process"));
37
+ var import_node_path = __toESM(require("node:path"));
38
+ var import_node_process = __toESM(require("node:process"));
39
39
  var import_fast_glob = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_KKMREGHN.require_out)());
40
40
  var import_globby = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_KKMREGHN.require_globby)());
41
- var defaultD1DirPath = import_path.default.join(".wrangler", "state", "v3", "d1", "miniflare-D1DatabaseObject");
41
+ var defaultD1DirPath = import_node_path.default.join(".wrangler", "state", "v3", "d1", "miniflare-D1DatabaseObject");
42
42
  async function locateLocalCloudflareD1({ arg }) {
43
- const cwd = import_process.default.cwd();
44
- const d1DirPath = import_path.default.posix.join(cwd, defaultD1DirPath);
43
+ const cwd = import_node_process.default.cwd();
44
+ const d1DirPath = import_node_path.default.posix.join(cwd, defaultD1DirPath);
45
45
  const pathConverted = (0, import_fast_glob.convertPathToPattern)(d1DirPath);
46
- const d1Databases = await (0, import_globby.default)(import_path.default.posix.join(pathConverted, "*.sqlite"), {});
46
+ const d1Databases = await (0, import_globby.default)(import_node_path.default.posix.join(pathConverted, "*.sqlite"), {});
47
47
  if (d1Databases.length === 0) {
48
48
  throw new Error(
49
49
  `No Cloudflare D1 databases found in ${defaultD1DirPath}. Did you run \`wrangler d1 create <DATABASE_NAME>\` and \`wrangler dev\`?`
@@ -26,15 +26,15 @@ 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_IAEMHQAC_exports = {};
30
- __export(chunk_IAEMHQAC_exports, {
29
+ var chunk_I4467NNA_exports = {};
30
+ __export(chunk_I4467NNA_exports, {
31
31
  createDebugErrorType: () => createDebugErrorType,
32
32
  createSchemaValidationError: () => createSchemaValidationError,
33
33
  parseQueryEngineError: () => parseQueryEngineError,
34
34
  unlinkTempDatamodelPath: () => unlinkTempDatamodelPath
35
35
  });
36
- module.exports = __toCommonJS(chunk_IAEMHQAC_exports);
37
- var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
36
+ module.exports = __toCommonJS(chunk_I4467NNA_exports);
37
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
38
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
39
39
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
40
40
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
@@ -71,7 +71,7 @@ function parseQueryEngineError({ errorOutput, reason }) {
71
71
  () => ({ _tag: "unparsed", message: errorOutput, reason })
72
72
  ),
73
73
  (0, import_chunk_7MD6344A.map)((errorOutputAsJSON) => {
74
- const defaultMessage = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)((0, import_chunk_WMIBAVWZ.relativizePathInPSLError)(errorOutputAsJSON.message)));
74
+ const defaultMessage = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)((0, import_chunk_C47SCASR.relativizePathInPSLError)(errorOutputAsJSON.message)));
75
75
  const getConfigErrorInit = (0, import_chunk_H3T4L34H.$)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
76
76
  return {
77
77
  reason: createSchemaValidationError(reason),
@@ -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_DI7BWNGL_exports = {};
20
- __export(chunk_DI7BWNGL_exports, {
19
+ var chunk_K6DMP57P_exports = {};
20
+ __export(chunk_K6DMP57P_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_DI7BWNGL_exports);
24
- var import_chunk_IXEZUAGW = require("./chunk-IXEZUAGW.js");
23
+ module.exports = __toCommonJS(chunk_K6DMP57P_exports);
24
+ var import_chunk_S34YTBDJ = require("./chunk-S34YTBDJ.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_IXEZUAGW.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_S34YTBDJ.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -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_7CTC3RVJ_exports = {};
30
- __export(chunk_7CTC3RVJ_exports, {
29
+ var chunk_KKG2ZZJE_exports = {};
30
+ __export(chunk_KKG2ZZJE_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  wasm_exports: () => wasm_exports
34
34
  });
35
- module.exports = __toCommonJS(chunk_7CTC3RVJ_exports);
36
- var import_chunk_SOG4ASAQ = require("./chunk-SOG4ASAQ.js");
35
+ module.exports = __toCommonJS(chunk_KKG2ZZJE_exports);
36
+ var import_chunk_VEODS3ZR = require("./chunk-VEODS3ZR.js");
37
37
  var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
38
38
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
39
39
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -42,6 +42,6 @@ var wasm_exports = {};
42
42
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
43
43
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
44
44
  });
45
- var { dependencies } = (0, import_chunk_SOG4ASAQ.require_package)();
45
+ var { dependencies } = (0, import_chunk_VEODS3ZR.require_package)();
46
46
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();