@prisma/internals 7.7.0-dev.3 → 7.7.0-dev.5

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 (51) hide show
  1. package/dist/{chunk-IN7DJEWK.js → chunk-3Y5ZLWOH.js} +7 -7
  2. package/dist/{chunk-Q75TMXCR.js → chunk-6I5EQPM7.js} +5 -5
  3. package/dist/{chunk-ZI7BX3VK.js → chunk-DVMCRKSY.js} +7 -7
  4. package/dist/{chunk-PKOQQT7I.js → chunk-DZ4QWHTB.js} +5 -5
  5. package/dist/{chunk-IDINCQMN.js → chunk-E476ARWS.js} +6 -7
  6. package/dist/{chunk-H5RJM5KP.js → chunk-EZT2M4Z7.js} +5 -5
  7. package/dist/{chunk-OBFJDH7C.js → chunk-HUKX6SK2.js} +8 -8
  8. package/dist/{chunk-VPHYIISP.js → chunk-JK5WQKJF.js} +5 -5
  9. package/dist/{chunk-YV4IFLW4.js → chunk-JPZYSRK3.js} +262 -15
  10. package/dist/{chunk-5BRXEOYH.js → chunk-K2EOOA2X.js} +5 -5
  11. package/dist/{chunk-2GPDFPDR.js → chunk-KARIQA23.js} +7 -7
  12. package/dist/{chunk-2HPKSKDE.js → chunk-NFSRS3ET.js} +5 -5
  13. package/dist/{chunk-BXIKQUP5.js → chunk-PTPRBA7K.js} +289 -93
  14. package/dist/{chunk-57ZFKPEC.js → chunk-Q53Z2MAO.js} +8 -8
  15. package/dist/{chunk-Q5XW7CMJ.js → chunk-QVJ2BXKF.js} +9 -9
  16. package/dist/{chunk-YJVCIN4F.js → chunk-T3R75LJS.js} +5 -5
  17. package/dist/{chunk-M32TYUAI.js → chunk-TBOIOJW5.js} +5 -5
  18. package/dist/{chunk-XV2QLA4M.js → chunk-TBTQBU6S.js} +19 -19
  19. package/dist/{chunk-ELUS2FGF.js → chunk-UOIOPEYB.js} +4 -4
  20. package/dist/{chunk-3TFDMTMW.js → chunk-VFNP7Q3Y.js} +481 -466
  21. package/dist/{chunk-DQWKFZPY.js → chunk-WMYLXKKD.js} +5 -5
  22. package/dist/{chunk-UINW4OZY.js → chunk-WRATAHFA.js} +5 -5
  23. package/dist/cli/checkUnsupportedDataProxy.js +22 -22
  24. package/dist/cli/schemaContext.js +23 -23
  25. package/dist/engine-commands/errorHelpers.js +4 -4
  26. package/dist/engine-commands/formatSchema.js +21 -21
  27. package/dist/engine-commands/getConfig.js +7 -7
  28. package/dist/engine-commands/getDmmf.js +8 -8
  29. package/dist/engine-commands/getEngineVersion.js +5 -5
  30. package/dist/engine-commands/getEnginesInfo.js +6 -6
  31. package/dist/engine-commands/index.js +33 -33
  32. package/dist/engine-commands/lintSchema.js +8 -8
  33. package/dist/engine-commands/mergeSchemas.js +7 -7
  34. package/dist/engine-commands/validate.js +7 -7
  35. package/dist/get-generators/getGenerators.js +24 -24
  36. package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -3
  37. package/dist/getPackedPackage.js +3 -3
  38. package/dist/index.js +52 -52
  39. package/dist/resolveBinary.js +7 -7
  40. package/dist/schemaEngineCommands.js +8 -8
  41. package/dist/utils/__tests__/isCi.test.js +16 -16
  42. package/dist/utils/__tests__/isInteractive.test.js +14 -14
  43. package/dist/utils/callOnce.test.js +17 -17
  44. package/dist/utils/fs-functional.js +10 -10
  45. package/dist/utils/fs-utils.js +8 -8
  46. package/dist/utils/getVersionFromPackageJson.js +3 -3
  47. package/dist/utils/max.test.js +11 -11
  48. package/dist/utils/path.test.js +30 -30
  49. package/dist/utils/prismaPostgres.test.js +23 -23
  50. package/dist/wasm.js +5 -5
  51. package/package.json +12 -12
@@ -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_BXIKQUP5_exports = {};
30
- __export(chunk_BXIKQUP5_exports, {
29
+ var chunk_PTPRBA7K_exports = {};
30
+ __export(chunk_PTPRBA7K_exports, {
31
31
  getPackedPackage: () => getPackedPackage,
32
32
  require_p_map: () => require_p_map
33
33
  });
34
- module.exports = __toCommonJS(chunk_BXIKQUP5_exports);
34
+ module.exports = __toCommonJS(chunk_PTPRBA7K_exports);
35
35
  var import_chunk_KDP6C3CB = require("./chunk-KDP6C3CB.js");
36
- var import_chunk_YV4IFLW4 = require("./chunk-YV4IFLW4.js");
36
+ var import_chunk_JPZYSRK3 = require("./chunk-JPZYSRK3.js");
37
37
  var import_chunk_UMM35VP5 = require("./chunk-UMM35VP5.js");
38
38
  var import_chunk_5VQNKCKW = require("./chunk-5VQNKCKW.js");
39
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -303,7 +303,7 @@ var require_lib2 = (0, import_chunk_4VNS5WPM.__commonJS)({
303
303
  }
304
304
  });
305
305
  var require_path = (0, import_chunk_4VNS5WPM.__commonJS)({
306
- "../../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/lib/path.js"(exports, module2) {
306
+ "../../node_modules/.pnpm/minimatch@5.1.9/node_modules/minimatch/lib/path.js"(exports, module2) {
307
307
  "use strict";
308
308
  var isWindows = typeof process === "object" && process && process.platform === "win32";
309
309
  module2.exports = isWindows ? { sep: "\\" } : { sep: "/" };
@@ -366,7 +366,7 @@ var require_balanced_match = (0, import_chunk_4VNS5WPM.__commonJS)({
366
366
  }
367
367
  });
368
368
  var require_brace_expansion = (0, import_chunk_4VNS5WPM.__commonJS)({
369
- "../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports, module2) {
369
+ "../../node_modules/.pnpm/brace-expansion@2.0.2/node_modules/brace-expansion/index.js"(exports, module2) {
370
370
  "use strict";
371
371
  var balanced = require_balanced_match();
372
372
  module2.exports = expandTop;
@@ -441,7 +441,7 @@ var require_brace_expansion = (0, import_chunk_4VNS5WPM.__commonJS)({
441
441
  var isSequence = isNumericSequence || isAlphaSequence;
442
442
  var isOptions = m.body.indexOf(",") >= 0;
443
443
  if (!isSequence && !isOptions) {
444
- if (m.post.match(/,.*\}/)) {
444
+ if (m.post.match(/,(?!,).*\}/)) {
445
445
  str = m.pre + "{" + m.body + escClose + m.post;
446
446
  return expand(str);
447
447
  }
@@ -515,7 +515,7 @@ var require_brace_expansion = (0, import_chunk_4VNS5WPM.__commonJS)({
515
515
  }
516
516
  });
517
517
  var require_minimatch = (0, import_chunk_4VNS5WPM.__commonJS)({
518
- "../../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/minimatch.js"(exports, module2) {
518
+ "../../node_modules/.pnpm/minimatch@5.1.9/node_modules/minimatch/minimatch.js"(exports, module2) {
519
519
  "use strict";
520
520
  var minimatch = module2.exports = (p, pattern, options = {}) => {
521
521
  assertValidPattern(pattern);
@@ -610,6 +610,7 @@ var require_minimatch = (0, import_chunk_4VNS5WPM.__commonJS)({
610
610
  assertValidPattern(pattern);
611
611
  if (!options) options = {};
612
612
  this.options = options;
613
+ this.maxGlobstarRecursion = options.maxGlobstarRecursion !== void 0 ? options.maxGlobstarRecursion : 200;
613
614
  this.set = [];
614
615
  this.pattern = pattern;
615
616
  this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
@@ -666,51 +667,146 @@ var require_minimatch = (0, import_chunk_4VNS5WPM.__commonJS)({
666
667
  // out of pattern, then that's fine, as long as all
667
668
  // the parts match.
668
669
  matchOne(file, pattern, partial) {
669
- var options = this.options;
670
- this.debug(
671
- "matchOne",
672
- { "this": this, file, pattern }
673
- );
674
- this.debug("matchOne", file.length, pattern.length);
675
- for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
676
- this.debug("matchOne loop");
677
- var p = pattern[pi];
678
- var f = file[fi];
679
- this.debug(pattern, p, f);
680
- if (p === false) return false;
681
- if (p === GLOBSTAR) {
682
- this.debug("GLOBSTAR", [pattern, p, f]);
683
- var fr = fi;
684
- var pr = pi + 1;
685
- if (pr === pl) {
686
- this.debug("** at the end");
687
- for (; fi < fl; fi++) {
688
- if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".") return false;
689
- }
690
- return true;
670
+ if (pattern.indexOf(GLOBSTAR) !== -1) {
671
+ return this._matchGlobstar(file, pattern, partial, 0, 0);
672
+ }
673
+ return this._matchOne(file, pattern, partial, 0, 0);
674
+ }
675
+ _matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
676
+ let firstgs = -1;
677
+ for (let i = patternIndex; i < pattern.length; i++) {
678
+ if (pattern[i] === GLOBSTAR) {
679
+ firstgs = i;
680
+ break;
681
+ }
682
+ }
683
+ let lastgs = -1;
684
+ for (let i = pattern.length - 1; i >= 0; i--) {
685
+ if (pattern[i] === GLOBSTAR) {
686
+ lastgs = i;
687
+ break;
688
+ }
689
+ }
690
+ const head = pattern.slice(patternIndex, firstgs);
691
+ const body = partial ? pattern.slice(firstgs + 1) : pattern.slice(firstgs + 1, lastgs);
692
+ const tail = partial ? [] : pattern.slice(lastgs + 1);
693
+ if (head.length) {
694
+ const fileHead = file.slice(fileIndex, fileIndex + head.length);
695
+ if (!this._matchOne(fileHead, head, partial, 0, 0)) {
696
+ return false;
697
+ }
698
+ fileIndex += head.length;
699
+ }
700
+ let fileTailMatch = 0;
701
+ if (tail.length) {
702
+ if (tail.length + fileIndex > file.length) return false;
703
+ const tailStart = file.length - tail.length;
704
+ if (this._matchOne(file, tail, partial, tailStart, 0)) {
705
+ fileTailMatch = tail.length;
706
+ } else {
707
+ if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
708
+ return false;
691
709
  }
692
- while (fr < fl) {
693
- var swallowee = file[fr];
694
- this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
695
- if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
696
- this.debug("globstar found match!", fr, fl, swallowee);
697
- return true;
698
- } else {
699
- if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
700
- this.debug("dot detected!", file, fr, pattern, pr);
701
- break;
702
- }
703
- this.debug("globstar swallow a segment, and continue");
704
- fr++;
705
- }
710
+ if (!this._matchOne(file, tail, partial, tailStart - 1, 0)) {
711
+ return false;
706
712
  }
707
- if (partial) {
708
- this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
709
- if (fr === fl) return true;
713
+ fileTailMatch = tail.length + 1;
714
+ }
715
+ }
716
+ if (!body.length) {
717
+ let sawSome = !!fileTailMatch;
718
+ for (let i = fileIndex; i < file.length - fileTailMatch; i++) {
719
+ const f = String(file[i]);
720
+ sawSome = true;
721
+ if (f === "." || f === ".." || !this.options.dot && f.charAt(0) === ".") {
722
+ return false;
710
723
  }
724
+ }
725
+ return partial || sawSome;
726
+ }
727
+ const bodySegments = [[[], 0]];
728
+ let currentBody = bodySegments[0];
729
+ let nonGsParts = 0;
730
+ const nonGsPartsSums = [0];
731
+ for (const b of body) {
732
+ if (b === GLOBSTAR) {
733
+ nonGsPartsSums.push(nonGsParts);
734
+ currentBody = [[], 0];
735
+ bodySegments.push(currentBody);
736
+ } else {
737
+ currentBody[0].push(b);
738
+ nonGsParts++;
739
+ }
740
+ }
741
+ let idx = bodySegments.length - 1;
742
+ const fileLength = file.length - fileTailMatch;
743
+ for (const b of bodySegments) {
744
+ b[1] = fileLength - (nonGsPartsSums[idx--] + b[0].length);
745
+ }
746
+ return !!this._matchGlobStarBodySections(
747
+ file,
748
+ bodySegments,
749
+ fileIndex,
750
+ 0,
751
+ partial,
752
+ 0,
753
+ !!fileTailMatch
754
+ );
755
+ }
756
+ // return false for "nope, not matching"
757
+ // return null for "not matching, cannot keep trying"
758
+ _matchGlobStarBodySections(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
759
+ const bs = bodySegments[bodyIndex];
760
+ if (!bs) {
761
+ for (let i = fileIndex; i < file.length; i++) {
762
+ sawTail = true;
763
+ const f = file[i];
764
+ if (f === "." || f === ".." || !this.options.dot && f.charAt(0) === ".") {
765
+ return false;
766
+ }
767
+ }
768
+ return sawTail;
769
+ }
770
+ const [body, after] = bs;
771
+ while (fileIndex <= after) {
772
+ const m = this._matchOne(
773
+ file.slice(0, fileIndex + body.length),
774
+ body,
775
+ partial,
776
+ fileIndex,
777
+ 0
778
+ );
779
+ if (m && globStarDepth < this.maxGlobstarRecursion) {
780
+ const sub = this._matchGlobStarBodySections(
781
+ file,
782
+ bodySegments,
783
+ fileIndex + body.length,
784
+ bodyIndex + 1,
785
+ partial,
786
+ globStarDepth + 1,
787
+ sawTail
788
+ );
789
+ if (sub !== false) {
790
+ return sub;
791
+ }
792
+ }
793
+ const f = file[fileIndex];
794
+ if (f === "." || f === ".." || !this.options.dot && f.charAt(0) === ".") {
711
795
  return false;
712
796
  }
713
- var hit;
797
+ fileIndex++;
798
+ }
799
+ return partial || null;
800
+ }
801
+ _matchOne(file, pattern, partial, fileIndex, patternIndex) {
802
+ let fi, pi, fl, pl;
803
+ for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
804
+ this.debug("matchOne loop");
805
+ const p = pattern[pi];
806
+ const f = file[fi];
807
+ this.debug(pattern, p, f);
808
+ if (p === false || p === GLOBSTAR) return false;
809
+ let hit;
714
810
  if (typeof p === "string") {
715
811
  hit = f === p;
716
812
  this.debug("string match", p, f, hit);
@@ -817,6 +913,7 @@ var require_minimatch = (0, import_chunk_4VNS5WPM.__commonJS)({
817
913
  re += c;
818
914
  continue;
819
915
  }
916
+ if (c === "*" && stateChar === "*") continue;
820
917
  this.debug("call clearStateChar %j", stateChar);
821
918
  clearStateChar();
822
919
  stateChar = c;
@@ -4002,7 +4099,7 @@ var require_concat_map = (0, import_chunk_4VNS5WPM.__commonJS)({
4002
4099
  }
4003
4100
  });
4004
4101
  var require_brace_expansion2 = (0, import_chunk_4VNS5WPM.__commonJS)({
4005
- "../../node_modules/.pnpm/brace-expansion@1.1.11/node_modules/brace-expansion/index.js"(exports, module2) {
4102
+ "../../node_modules/.pnpm/brace-expansion@1.1.12/node_modules/brace-expansion/index.js"(exports, module2) {
4006
4103
  "use strict";
4007
4104
  var concatMap = require_concat_map();
4008
4105
  var balanced = require_balanced_match();
@@ -4070,7 +4167,7 @@ var require_brace_expansion2 = (0, import_chunk_4VNS5WPM.__commonJS)({
4070
4167
  var isSequence = isNumericSequence || isAlphaSequence;
4071
4168
  var isOptions = m.body.indexOf(",") >= 0;
4072
4169
  if (!isSequence && !isOptions) {
4073
- if (m.post.match(/,.*\}/)) {
4170
+ if (m.post.match(/,(?!,).*\}/)) {
4074
4171
  str = m.pre + "{" + m.body + escClose + m.post;
4075
4172
  return expand(str);
4076
4173
  }
@@ -4145,7 +4242,7 @@ var require_brace_expansion2 = (0, import_chunk_4VNS5WPM.__commonJS)({
4145
4242
  }
4146
4243
  });
4147
4244
  var require_minimatch2 = (0, import_chunk_4VNS5WPM.__commonJS)({
4148
- "../../node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports, module2) {
4245
+ "../../node_modules/.pnpm/minimatch@3.1.5/node_modules/minimatch/minimatch.js"(exports, module2) {
4149
4246
  "use strict";
4150
4247
  module2.exports = minimatch;
4151
4248
  minimatch.Minimatch = Minimatch;
@@ -4250,6 +4347,7 @@ var require_minimatch2 = (0, import_chunk_4VNS5WPM.__commonJS)({
4250
4347
  pattern = pattern.split(path2.sep).join("/");
4251
4348
  }
4252
4349
  this.options = options;
4350
+ this.maxGlobstarRecursion = options.maxGlobstarRecursion !== void 0 ? options.maxGlobstarRecursion : 200;
4253
4351
  this.set = [];
4254
4352
  this.pattern = pattern;
4255
4353
  this.regexp = null;
@@ -4407,6 +4505,7 @@ var require_minimatch2 = (0, import_chunk_4VNS5WPM.__commonJS)({
4407
4505
  re += c;
4408
4506
  continue;
4409
4507
  }
4508
+ if (c === "*" && stateChar === "*") continue;
4410
4509
  self.debug("call clearStateChar %j", stateChar);
4411
4510
  clearStateChar();
4412
4511
  stateChar = c;
@@ -4645,50 +4744,147 @@ var require_minimatch2 = (0, import_chunk_4VNS5WPM.__commonJS)({
4645
4744
  return this.negate;
4646
4745
  };
4647
4746
  Minimatch.prototype.matchOne = function(file, pattern, partial) {
4648
- var options = this.options;
4649
- this.debug(
4650
- "matchOne",
4651
- { "this": this, file, pattern }
4652
- );
4653
- this.debug("matchOne", file.length, pattern.length);
4654
- for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
4655
- this.debug("matchOne loop");
4656
- var p = pattern[pi];
4657
- var f = file[fi];
4658
- this.debug(pattern, p, f);
4659
- if (p === false) return false;
4660
- if (p === GLOBSTAR) {
4661
- this.debug("GLOBSTAR", [pattern, p, f]);
4662
- var fr = fi;
4663
- var pr = pi + 1;
4664
- if (pr === pl) {
4665
- this.debug("** at the end");
4666
- for (; fi < fl; fi++) {
4667
- if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".") return false;
4668
- }
4669
- return true;
4747
+ if (pattern.indexOf(GLOBSTAR) !== -1) {
4748
+ return this._matchGlobstar(file, pattern, partial, 0, 0);
4749
+ }
4750
+ return this._matchOne(file, pattern, partial, 0, 0);
4751
+ };
4752
+ Minimatch.prototype._matchGlobstar = function(file, pattern, partial, fileIndex, patternIndex) {
4753
+ var i;
4754
+ var firstgs = -1;
4755
+ for (i = patternIndex; i < pattern.length; i++) {
4756
+ if (pattern[i] === GLOBSTAR) {
4757
+ firstgs = i;
4758
+ break;
4759
+ }
4760
+ }
4761
+ var lastgs = -1;
4762
+ for (i = pattern.length - 1; i >= 0; i--) {
4763
+ if (pattern[i] === GLOBSTAR) {
4764
+ lastgs = i;
4765
+ break;
4766
+ }
4767
+ }
4768
+ var head = pattern.slice(patternIndex, firstgs);
4769
+ var body = partial ? pattern.slice(firstgs + 1) : pattern.slice(firstgs + 1, lastgs);
4770
+ var tail = partial ? [] : pattern.slice(lastgs + 1);
4771
+ if (head.length) {
4772
+ var fileHead = file.slice(fileIndex, fileIndex + head.length);
4773
+ if (!this._matchOne(fileHead, head, partial, 0, 0)) {
4774
+ return false;
4775
+ }
4776
+ fileIndex += head.length;
4777
+ }
4778
+ var fileTailMatch = 0;
4779
+ if (tail.length) {
4780
+ if (tail.length + fileIndex > file.length) return false;
4781
+ var tailStart = file.length - tail.length;
4782
+ if (this._matchOne(file, tail, partial, tailStart, 0)) {
4783
+ fileTailMatch = tail.length;
4784
+ } else {
4785
+ if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
4786
+ return false;
4670
4787
  }
4671
- while (fr < fl) {
4672
- var swallowee = file[fr];
4673
- this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
4674
- if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
4675
- this.debug("globstar found match!", fr, fl, swallowee);
4676
- return true;
4677
- } else {
4678
- if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
4679
- this.debug("dot detected!", file, fr, pattern, pr);
4680
- break;
4681
- }
4682
- this.debug("globstar swallow a segment, and continue");
4683
- fr++;
4684
- }
4788
+ tailStart--;
4789
+ if (!this._matchOne(file, tail, partial, tailStart, 0)) {
4790
+ return false;
4685
4791
  }
4686
- if (partial) {
4687
- this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
4688
- if (fr === fl) return true;
4792
+ fileTailMatch = tail.length + 1;
4793
+ }
4794
+ }
4795
+ if (!body.length) {
4796
+ var sawSome = !!fileTailMatch;
4797
+ for (i = fileIndex; i < file.length - fileTailMatch; i++) {
4798
+ var f = String(file[i]);
4799
+ sawSome = true;
4800
+ if (f === "." || f === ".." || !this.options.dot && f.charAt(0) === ".") {
4801
+ return false;
4689
4802
  }
4803
+ }
4804
+ return partial || sawSome;
4805
+ }
4806
+ var bodySegments = [[[], 0]];
4807
+ var currentBody = bodySegments[0];
4808
+ var nonGsParts = 0;
4809
+ var nonGsPartsSums = [0];
4810
+ for (var bi = 0; bi < body.length; bi++) {
4811
+ var b = body[bi];
4812
+ if (b === GLOBSTAR) {
4813
+ nonGsPartsSums.push(nonGsParts);
4814
+ currentBody = [[], 0];
4815
+ bodySegments.push(currentBody);
4816
+ } else {
4817
+ currentBody[0].push(b);
4818
+ nonGsParts++;
4819
+ }
4820
+ }
4821
+ var idx = bodySegments.length - 1;
4822
+ var fileLength = file.length - fileTailMatch;
4823
+ for (var si = 0; si < bodySegments.length; si++) {
4824
+ bodySegments[si][1] = fileLength - (nonGsPartsSums[idx--] + bodySegments[si][0].length);
4825
+ }
4826
+ return !!this._matchGlobStarBodySections(
4827
+ file,
4828
+ bodySegments,
4829
+ fileIndex,
4830
+ 0,
4831
+ partial,
4832
+ 0,
4833
+ !!fileTailMatch
4834
+ );
4835
+ };
4836
+ Minimatch.prototype._matchGlobStarBodySections = function(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
4837
+ var bs = bodySegments[bodyIndex];
4838
+ if (!bs) {
4839
+ for (var i = fileIndex; i < file.length; i++) {
4840
+ sawTail = true;
4841
+ var f = file[i];
4842
+ if (f === "." || f === ".." || !this.options.dot && f.charAt(0) === ".") {
4843
+ return false;
4844
+ }
4845
+ }
4846
+ return sawTail;
4847
+ }
4848
+ var body = bs[0];
4849
+ var after = bs[1];
4850
+ while (fileIndex <= after) {
4851
+ var m = this._matchOne(
4852
+ file.slice(0, fileIndex + body.length),
4853
+ body,
4854
+ partial,
4855
+ fileIndex,
4856
+ 0
4857
+ );
4858
+ if (m && globStarDepth < this.maxGlobstarRecursion) {
4859
+ var sub = this._matchGlobStarBodySections(
4860
+ file,
4861
+ bodySegments,
4862
+ fileIndex + body.length,
4863
+ bodyIndex + 1,
4864
+ partial,
4865
+ globStarDepth + 1,
4866
+ sawTail
4867
+ );
4868
+ if (sub !== false) {
4869
+ return sub;
4870
+ }
4871
+ }
4872
+ var f = file[fileIndex];
4873
+ if (f === "." || f === ".." || !this.options.dot && f.charAt(0) === ".") {
4690
4874
  return false;
4691
4875
  }
4876
+ fileIndex++;
4877
+ }
4878
+ return partial || null;
4879
+ };
4880
+ Minimatch.prototype._matchOne = function(file, pattern, partial, fileIndex, patternIndex) {
4881
+ var fi, pi, fl, pl;
4882
+ for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
4883
+ this.debug("matchOne loop");
4884
+ var p = pattern[pi];
4885
+ var f = file[fi];
4886
+ this.debug(pattern, p, f);
4887
+ if (p === false || p === GLOBSTAR) return false;
4692
4888
  var hit;
4693
4889
  if (typeof p === "string") {
4694
4890
  hit = f === p;
@@ -6254,9 +6450,9 @@ var require_del = (0, import_chunk_4VNS5WPM.__commonJS)({
6254
6450
  "use strict";
6255
6451
  var { promisify } = (0, import_chunk_4VNS5WPM.__require)("util");
6256
6452
  var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
6257
- var globby = (0, import_chunk_YV4IFLW4.require_globby)();
6258
- var isGlob = (0, import_chunk_YV4IFLW4.require_is_glob)();
6259
- var slash = (0, import_chunk_YV4IFLW4.require_slash)();
6453
+ var globby = (0, import_chunk_JPZYSRK3.require_globby)();
6454
+ var isGlob = (0, import_chunk_JPZYSRK3.require_is_glob)();
6455
+ var slash = (0, import_chunk_JPZYSRK3.require_slash)();
6260
6456
  var gracefulFs = require_graceful_fs();
6261
6457
  var isPathCwd = require_is_path_cwd();
6262
6458
  var isPathInside = require_is_path_inside();
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_57ZFKPEC_exports = {};
30
- __export(chunk_57ZFKPEC_exports, {
29
+ var chunk_Q53Z2MAO_exports = {};
30
+ __export(chunk_Q53Z2MAO_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig
33
33
  });
34
- module.exports = __toCommonJS(chunk_57ZFKPEC_exports);
34
+ module.exports = __toCommonJS(chunk_Q53Z2MAO_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_UINW4OZY = require("./chunk-UINW4OZY.js");
39
- var import_chunk_2HPKSKDE = require("./chunk-2HPKSKDE.js");
38
+ var import_chunk_WRATAHFA = require("./chunk-WRATAHFA.js");
39
+ var import_chunk_NFSRS3ET = require("./chunk-NFSRS3ET.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -61,7 +61,7 @@ ${detailsHeader} ${message}`;
61
61
  }).exhaustive();
62
62
  const errorMessageWithContext = `${constructedErrorMessage}
63
63
  [Context: getConfig]`;
64
- super((0, import_chunk_UINW4OZY.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
+ super((0, import_chunk_WRATAHFA.addVersionDetailsToErrorMessage)(errorMessageWithContext));
65
65
  this.name = "GetConfigError";
66
66
  }
67
67
  };
@@ -73,10 +73,10 @@ async function getConfig(options) {
73
73
  () => {
74
74
  if (process.env.FORCE_PANIC_GET_CONFIG) {
75
75
  debug("Triggering a Rust panic...");
76
- import_chunk_2HPKSKDE.prismaSchemaWasm.debug_panic();
76
+ import_chunk_NFSRS3ET.prismaSchemaWasm.debug_panic();
77
77
  }
78
78
  const params = JSON.stringify({ prismaSchema: options.datamodel });
79
- return import_chunk_2HPKSKDE.prismaSchemaWasm.get_config(params);
79
+ return import_chunk_NFSRS3ET.prismaSchemaWasm.get_config(params);
80
80
  },
81
81
  (e) => ({
82
82
  type: "wasm-error",
@@ -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_Q5XW7CMJ_exports = {};
30
- __export(chunk_Q5XW7CMJ_exports, {
29
+ var chunk_QVJ2BXKF_exports = {};
30
+ __export(chunk_QVJ2BXKF_exports, {
31
31
  createDirIfNotExists: () => createDirIfNotExists2,
32
32
  fs_functional_exports: () => fs_functional_exports,
33
33
  getFilesInDir: () => getFilesInDir2,
@@ -37,8 +37,8 @@ __export(chunk_Q5XW7CMJ_exports, {
37
37
  removeFile: () => removeFile,
38
38
  writeFile: () => writeFile2
39
39
  });
40
- module.exports = __toCommonJS(chunk_Q5XW7CMJ_exports);
41
- var import_chunk_5BRXEOYH = require("./chunk-5BRXEOYH.js");
40
+ module.exports = __toCommonJS(chunk_QVJ2BXKF_exports);
41
+ var import_chunk_K2EOOA2X = require("./chunk-K2EOOA2X.js");
42
42
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
43
43
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
44
44
  var import_promises = __toESM(require("fs/promises"));
@@ -3981,13 +3981,13 @@ var fs_functional_exports = {};
3981
3981
  });
3982
3982
  var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57HZ.require_function)());
3983
3983
  var TE = (0, import_chunk_4VNS5WPM.__toESM)(require_TaskEither());
3984
- var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_5BRXEOYH.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
3985
- var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_5BRXEOYH.writeFile)(params), createTaggedSystemError("fs-write-file", params));
3986
- var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_5BRXEOYH.removeEmptyDirs)(dir), createTaggedSystemError("fs-remove-empty-dirs", { dir }));
3984
+ var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_K2EOOA2X.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
3985
+ var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_K2EOOA2X.writeFile)(params), createTaggedSystemError("fs-write-file", params));
3986
+ var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_K2EOOA2X.removeEmptyDirs)(dir), createTaggedSystemError("fs-remove-empty-dirs", { dir }));
3987
3987
  var removeDir = (dir) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.rm(dir, { recursive: true }), createTaggedSystemError("fs-remove-dir", { dir })));
3988
3988
  var removeFile = (filePath) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.unlink(filePath), createTaggedSystemError("fs-remove-file", { filePath })));
3989
- var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_5BRXEOYH.getNestedFoldersInDir)(dir);
3990
- var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_5BRXEOYH.getFilesInDir)(dir, pattern);
3989
+ var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_K2EOOA2X.getNestedFoldersInDir)(dir);
3990
+ var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_K2EOOA2X.getFilesInDir)(dir, pattern);
3991
3991
  function createTaggedSystemError(type, meta) {
3992
3992
  return (e) => ({
3993
3993
  type,
@@ -16,17 +16,17 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_YJVCIN4F_exports = {};
20
- __export(chunk_YJVCIN4F_exports, {
19
+ var chunk_T3R75LJS_exports = {};
20
+ __export(chunk_T3R75LJS_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_YJVCIN4F_exports);
27
+ module.exports = __toCommonJS(chunk_T3R75LJS_exports);
28
28
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
29
- var import_chunk_DQWKFZPY = require("./chunk-DQWKFZPY.js");
29
+ var import_chunk_WMYLXKKD = require("./chunk-WMYLXKKD.js");
30
30
  var import_fetch_engine = require("@prisma/fetch-engine");
31
31
  var SchemaEngineExitCode = /* @__PURE__ */ ((SchemaEngineExitCode2) => {
32
32
  SchemaEngineExitCode2[SchemaEngineExitCode2["Success"] = 0] = "Success";
@@ -137,7 +137,7 @@ async function execaCommand({
137
137
  schemaEnginePath,
138
138
  engineCommandName
139
139
  }) {
140
- schemaEnginePath = schemaEnginePath || await (0, import_chunk_DQWKFZPY.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
140
+ schemaEnginePath = schemaEnginePath || await (0, import_chunk_WMYLXKKD.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
141
141
  try {
142
142
  return await (0, import_chunk_JOIHHXR6.execa)(
143
143
  schemaEnginePath,
@@ -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_M32TYUAI_exports = {};
20
- __export(chunk_M32TYUAI_exports, {
19
+ var chunk_TBOIOJW5_exports = {};
20
+ __export(chunk_TBOIOJW5_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_M32TYUAI_exports);
24
- var import_chunk_ELUS2FGF = require("./chunk-ELUS2FGF.js");
25
- var packageJson = (0, import_chunk_ELUS2FGF.require_package)();
23
+ module.exports = __toCommonJS(chunk_TBOIOJW5_exports);
24
+ var import_chunk_UOIOPEYB = require("./chunk-UOIOPEYB.js");
25
+ var packageJson = (0, import_chunk_UOIOPEYB.require_package)();
26
26
  var version = packageJson.version;