@prisma/internals 6.1.0-dev.6 → 6.1.0-integration-expose-deserialize-raw-result.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 (49) hide show
  1. package/dist/chunk-2DXAGCPS.js +177 -0
  2. package/dist/{chunk-BPVIS734.js → chunk-2PP7BHKH.js} +5 -5
  3. package/dist/{chunk-T2VXLVGG.js → chunk-4CLLOZ4P.js} +8 -8
  4. package/dist/chunk-5XRQ7ONW.js +122 -0
  5. package/dist/{chunk-554MKKH3.js → chunk-7XBTYHXU.js} +7 -7
  6. package/dist/{chunk-KJWAXEV6.js → chunk-AIHJCXER.js} +8 -8
  7. package/dist/{chunk-TWPTQSMV.js → chunk-AVNRICGK.js} +24 -795
  8. package/dist/{chunk-7RYHH5G3.js → chunk-D6COOP2R.js} +19 -19
  9. package/dist/{chunk-U3QQY3BZ.js → chunk-D7APN3FK.js} +5 -5
  10. package/dist/{chunk-IALDQ7X6.js → chunk-H3ES3W4I.js} +5 -5
  11. package/dist/{chunk-LUMF6XI2.js → chunk-IPS4ITPM.js} +5 -5
  12. package/dist/{chunk-RZF5ULON.js → chunk-LATZTP6I.js} +5 -5
  13. package/dist/{chunk-OIRBFJHE.js → chunk-LBUU2HOZ.js} +5 -5
  14. package/dist/{chunk-5FDWT2HS.js → chunk-NM5GRZUZ.js} +8 -8
  15. package/dist/{chunk-7KP3SUBL.js → chunk-OB2465FH.js} +5 -5
  16. package/dist/{chunk-TMD3MYB3.js → chunk-PC46MJ4M.js} +8 -8
  17. package/dist/{chunk-GE4H5C4C.js → chunk-PDG6GFQR.js} +5 -5
  18. package/dist/chunk-QIVUAERL.js +2202 -0
  19. package/dist/chunk-QJZIYUVB.js +110 -0
  20. package/dist/{chunk-AMSESUHL.js → chunk-RFYKY4ZX.js} +7 -7
  21. package/dist/{chunk-JRBQVHGW.js → chunk-RXBD6IHH.js} +8 -8
  22. package/dist/{chunk-JSAI2JAI.js → chunk-SIIR4XOP.js} +8 -8
  23. package/dist/{chunk-X7A5Y32H.js → chunk-SM6BW5WS.js} +5 -5
  24. package/dist/{chunk-737IQUJF.js → chunk-T2RTHBYQ.js} +4 -4
  25. package/dist/chunk-TFSZCVKC.js +166 -0
  26. package/dist/chunk-V2VWODV3.js +54 -0
  27. package/dist/cli/checkUnsupportedDataProxy.js +12 -12
  28. package/dist/cli/getSchema.js +17 -17
  29. package/dist/cli/hashes.js +12 -12
  30. package/dist/engine-commands/errorHelpers.js +4 -4
  31. package/dist/engine-commands/formatSchema.js +11 -11
  32. package/dist/engine-commands/getConfig.js +10 -10
  33. package/dist/engine-commands/getDmmf.js +7 -7
  34. package/dist/engine-commands/index.js +20 -20
  35. package/dist/engine-commands/lintSchema.js +8 -8
  36. package/dist/engine-commands/mergeSchemas.js +7 -7
  37. package/dist/engine-commands/validate.js +7 -7
  38. package/dist/get-generators/generatorResolvers/generatorResolvers.js +11 -11
  39. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +11 -11
  40. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +12 -12
  41. package/dist/get-generators/getGenerators.js +14 -14
  42. package/dist/index.js +39 -39
  43. package/dist/sendPanic.js +11 -11
  44. package/dist/utils/getEnvPaths.js +11 -11
  45. package/dist/utils/getVersionFromPackageJson.js +3 -3
  46. package/dist/utils/handlePanic.js +11 -11
  47. package/dist/utils/loadEnvFile.js +11 -11
  48. package/dist/wasm.js +4 -4
  49. package/package.json +8 -8
@@ -26,8 +26,8 @@ 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_TWPTQSMV_exports = {};
30
- __export2(chunk_TWPTQSMV_exports, {
29
+ var chunk_AVNRICGK_exports = {};
30
+ __export2(chunk_AVNRICGK_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
33
  debug: () => debug5,
@@ -55,7 +55,7 @@ __export2(chunk_TWPTQSMV_exports, {
55
55
  sendPanic: () => sendPanic,
56
56
  skipIndex: () => skipIndex
57
57
  });
58
- module.exports = __toCommonJS2(chunk_TWPTQSMV_exports);
58
+ module.exports = __toCommonJS2(chunk_AVNRICGK_exports);
59
59
  var import_chunk_77IC3DNO = require("./chunk-77IC3DNO.js");
60
60
  var import_chunk_MGZOEY6N = require("./chunk-MGZOEY6N.js");
61
61
  var import_chunk_S57RMXZW = require("./chunk-S57RMXZW.js");
@@ -63,7 +63,7 @@ var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
63
63
  var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
64
64
  var import_chunk_KEBDP2C3 = require("./chunk-KEBDP2C3.js");
65
65
  var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
66
- var import_chunk_D4MCOTL5 = require("./chunk-D4MCOTL5.js");
66
+ var import_chunk_5XRQ7ONW = require("./chunk-5XRQ7ONW.js");
67
67
  var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
68
68
  var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
69
69
  var import_chunk_ONHKZPSV = require("./chunk-ONHKZPSV.js");
@@ -80,17 +80,18 @@ var import_chunk_SLBBRUQS = require("./chunk-SLBBRUQS.js");
80
80
  var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
81
81
  var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
82
82
  var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
83
- var import_chunk_GE4H5C4C = require("./chunk-GE4H5C4C.js");
84
- var import_chunk_AMSESUHL = require("./chunk-AMSESUHL.js");
85
- var import_chunk_JRBQVHGW = require("./chunk-JRBQVHGW.js");
86
- var import_chunk_KJWAXEV6 = require("./chunk-KJWAXEV6.js");
83
+ var import_chunk_PDG6GFQR = require("./chunk-PDG6GFQR.js");
84
+ var import_chunk_RFYKY4ZX = require("./chunk-RFYKY4ZX.js");
85
+ var import_chunk_PC46MJ4M = require("./chunk-PC46MJ4M.js");
86
+ var import_chunk_4CLLOZ4P = require("./chunk-4CLLOZ4P.js");
87
87
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
88
88
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
89
- var import_chunk_X7A5Y32H = require("./chunk-X7A5Y32H.js");
89
+ var import_chunk_SM6BW5WS = require("./chunk-SM6BW5WS.js");
90
90
  var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
91
91
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
92
92
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
93
93
  var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
94
+ var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
94
95
  var import_chunk_635TMBAP = require("./chunk-635TMBAP.js");
95
96
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
96
97
  var import_chunk_KQOJB3ZW = require("./chunk-KQOJB3ZW.js");
@@ -2508,778 +2509,6 @@ var init_async = (0, import_chunk_WWAWV7DQ.__esm)({
2508
2509
  async_default = index;
2509
2510
  }
2510
2511
  });
2511
- var require_polyfills = (0, import_chunk_WWAWV7DQ.__commonJS)({
2512
- "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports2, module2) {
2513
- "use strict";
2514
- var constants2 = (0, import_chunk_WWAWV7DQ.__require)("constants");
2515
- var origCwd = process.cwd;
2516
- var cwd = null;
2517
- var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
2518
- process.cwd = function() {
2519
- if (!cwd)
2520
- cwd = origCwd.call(process);
2521
- return cwd;
2522
- };
2523
- try {
2524
- process.cwd();
2525
- } catch (er) {
2526
- }
2527
- if (typeof process.chdir === "function") {
2528
- chdir = process.chdir;
2529
- process.chdir = function(d2) {
2530
- cwd = null;
2531
- chdir.call(process, d2);
2532
- };
2533
- if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
2534
- }
2535
- var chdir;
2536
- module2.exports = patch;
2537
- function patch(fs8) {
2538
- if (constants2.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
2539
- patchLchmod(fs8);
2540
- }
2541
- if (!fs8.lutimes) {
2542
- patchLutimes(fs8);
2543
- }
2544
- fs8.chown = chownFix(fs8.chown);
2545
- fs8.fchown = chownFix(fs8.fchown);
2546
- fs8.lchown = chownFix(fs8.lchown);
2547
- fs8.chmod = chmodFix(fs8.chmod);
2548
- fs8.fchmod = chmodFix(fs8.fchmod);
2549
- fs8.lchmod = chmodFix(fs8.lchmod);
2550
- fs8.chownSync = chownFixSync(fs8.chownSync);
2551
- fs8.fchownSync = chownFixSync(fs8.fchownSync);
2552
- fs8.lchownSync = chownFixSync(fs8.lchownSync);
2553
- fs8.chmodSync = chmodFixSync(fs8.chmodSync);
2554
- fs8.fchmodSync = chmodFixSync(fs8.fchmodSync);
2555
- fs8.lchmodSync = chmodFixSync(fs8.lchmodSync);
2556
- fs8.stat = statFix(fs8.stat);
2557
- fs8.fstat = statFix(fs8.fstat);
2558
- fs8.lstat = statFix(fs8.lstat);
2559
- fs8.statSync = statFixSync(fs8.statSync);
2560
- fs8.fstatSync = statFixSync(fs8.fstatSync);
2561
- fs8.lstatSync = statFixSync(fs8.lstatSync);
2562
- if (fs8.chmod && !fs8.lchmod) {
2563
- fs8.lchmod = function(path8, mode, cb) {
2564
- if (cb) process.nextTick(cb);
2565
- };
2566
- fs8.lchmodSync = function() {
2567
- };
2568
- }
2569
- if (fs8.chown && !fs8.lchown) {
2570
- fs8.lchown = function(path8, uid, gid, cb) {
2571
- if (cb) process.nextTick(cb);
2572
- };
2573
- fs8.lchownSync = function() {
2574
- };
2575
- }
2576
- if (platform === "win32") {
2577
- fs8.rename = typeof fs8.rename !== "function" ? fs8.rename : function(fs$rename) {
2578
- function rename(from, to, cb) {
2579
- var start = Date.now();
2580
- var backoff = 0;
2581
- fs$rename(from, to, function CB(er) {
2582
- if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
2583
- setTimeout(function() {
2584
- fs8.stat(to, function(stater, st) {
2585
- if (stater && stater.code === "ENOENT")
2586
- fs$rename(from, to, CB);
2587
- else
2588
- cb(er);
2589
- });
2590
- }, backoff);
2591
- if (backoff < 100)
2592
- backoff += 10;
2593
- return;
2594
- }
2595
- if (cb) cb(er);
2596
- });
2597
- }
2598
- if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
2599
- return rename;
2600
- }(fs8.rename);
2601
- }
2602
- fs8.read = typeof fs8.read !== "function" ? fs8.read : function(fs$read) {
2603
- function read(fd, buffer, offset, length, position, callback_) {
2604
- var callback;
2605
- if (callback_ && typeof callback_ === "function") {
2606
- var eagCounter = 0;
2607
- callback = function(er, _2, __) {
2608
- if (er && er.code === "EAGAIN" && eagCounter < 10) {
2609
- eagCounter++;
2610
- return fs$read.call(fs8, fd, buffer, offset, length, position, callback);
2611
- }
2612
- callback_.apply(this, arguments);
2613
- };
2614
- }
2615
- return fs$read.call(fs8, fd, buffer, offset, length, position, callback);
2616
- }
2617
- if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
2618
- return read;
2619
- }(fs8.read);
2620
- fs8.readSync = typeof fs8.readSync !== "function" ? fs8.readSync : /* @__PURE__ */ function(fs$readSync) {
2621
- return function(fd, buffer, offset, length, position) {
2622
- var eagCounter = 0;
2623
- while (true) {
2624
- try {
2625
- return fs$readSync.call(fs8, fd, buffer, offset, length, position);
2626
- } catch (er) {
2627
- if (er.code === "EAGAIN" && eagCounter < 10) {
2628
- eagCounter++;
2629
- continue;
2630
- }
2631
- throw er;
2632
- }
2633
- }
2634
- };
2635
- }(fs8.readSync);
2636
- function patchLchmod(fs9) {
2637
- fs9.lchmod = function(path8, mode, callback) {
2638
- fs9.open(
2639
- path8,
2640
- constants2.O_WRONLY | constants2.O_SYMLINK,
2641
- mode,
2642
- function(err, fd) {
2643
- if (err) {
2644
- if (callback) callback(err);
2645
- return;
2646
- }
2647
- fs9.fchmod(fd, mode, function(err2) {
2648
- fs9.close(fd, function(err22) {
2649
- if (callback) callback(err2 || err22);
2650
- });
2651
- });
2652
- }
2653
- );
2654
- };
2655
- fs9.lchmodSync = function(path8, mode) {
2656
- var fd = fs9.openSync(path8, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
2657
- var threw = true;
2658
- var ret;
2659
- try {
2660
- ret = fs9.fchmodSync(fd, mode);
2661
- threw = false;
2662
- } finally {
2663
- if (threw) {
2664
- try {
2665
- fs9.closeSync(fd);
2666
- } catch (er) {
2667
- }
2668
- } else {
2669
- fs9.closeSync(fd);
2670
- }
2671
- }
2672
- return ret;
2673
- };
2674
- }
2675
- function patchLutimes(fs9) {
2676
- if (constants2.hasOwnProperty("O_SYMLINK") && fs9.futimes) {
2677
- fs9.lutimes = function(path8, at, mt, cb) {
2678
- fs9.open(path8, constants2.O_SYMLINK, function(er, fd) {
2679
- if (er) {
2680
- if (cb) cb(er);
2681
- return;
2682
- }
2683
- fs9.futimes(fd, at, mt, function(er2) {
2684
- fs9.close(fd, function(er22) {
2685
- if (cb) cb(er2 || er22);
2686
- });
2687
- });
2688
- });
2689
- };
2690
- fs9.lutimesSync = function(path8, at, mt) {
2691
- var fd = fs9.openSync(path8, constants2.O_SYMLINK);
2692
- var ret;
2693
- var threw = true;
2694
- try {
2695
- ret = fs9.futimesSync(fd, at, mt);
2696
- threw = false;
2697
- } finally {
2698
- if (threw) {
2699
- try {
2700
- fs9.closeSync(fd);
2701
- } catch (er) {
2702
- }
2703
- } else {
2704
- fs9.closeSync(fd);
2705
- }
2706
- }
2707
- return ret;
2708
- };
2709
- } else if (fs9.futimes) {
2710
- fs9.lutimes = function(_a, _b, _c, cb) {
2711
- if (cb) process.nextTick(cb);
2712
- };
2713
- fs9.lutimesSync = function() {
2714
- };
2715
- }
2716
- }
2717
- function chmodFix(orig) {
2718
- if (!orig) return orig;
2719
- return function(target, mode, cb) {
2720
- return orig.call(fs8, target, mode, function(er) {
2721
- if (chownErOk(er)) er = null;
2722
- if (cb) cb.apply(this, arguments);
2723
- });
2724
- };
2725
- }
2726
- function chmodFixSync(orig) {
2727
- if (!orig) return orig;
2728
- return function(target, mode) {
2729
- try {
2730
- return orig.call(fs8, target, mode);
2731
- } catch (er) {
2732
- if (!chownErOk(er)) throw er;
2733
- }
2734
- };
2735
- }
2736
- function chownFix(orig) {
2737
- if (!orig) return orig;
2738
- return function(target, uid, gid, cb) {
2739
- return orig.call(fs8, target, uid, gid, function(er) {
2740
- if (chownErOk(er)) er = null;
2741
- if (cb) cb.apply(this, arguments);
2742
- });
2743
- };
2744
- }
2745
- function chownFixSync(orig) {
2746
- if (!orig) return orig;
2747
- return function(target, uid, gid) {
2748
- try {
2749
- return orig.call(fs8, target, uid, gid);
2750
- } catch (er) {
2751
- if (!chownErOk(er)) throw er;
2752
- }
2753
- };
2754
- }
2755
- function statFix(orig) {
2756
- if (!orig) return orig;
2757
- return function(target, options2, cb) {
2758
- if (typeof options2 === "function") {
2759
- cb = options2;
2760
- options2 = null;
2761
- }
2762
- function callback(er, stats) {
2763
- if (stats) {
2764
- if (stats.uid < 0) stats.uid += 4294967296;
2765
- if (stats.gid < 0) stats.gid += 4294967296;
2766
- }
2767
- if (cb) cb.apply(this, arguments);
2768
- }
2769
- return options2 ? orig.call(fs8, target, options2, callback) : orig.call(fs8, target, callback);
2770
- };
2771
- }
2772
- function statFixSync(orig) {
2773
- if (!orig) return orig;
2774
- return function(target, options2) {
2775
- var stats = options2 ? orig.call(fs8, target, options2) : orig.call(fs8, target);
2776
- if (stats) {
2777
- if (stats.uid < 0) stats.uid += 4294967296;
2778
- if (stats.gid < 0) stats.gid += 4294967296;
2779
- }
2780
- return stats;
2781
- };
2782
- }
2783
- function chownErOk(er) {
2784
- if (!er)
2785
- return true;
2786
- if (er.code === "ENOSYS")
2787
- return true;
2788
- var nonroot = !process.getuid || process.getuid() !== 0;
2789
- if (nonroot) {
2790
- if (er.code === "EINVAL" || er.code === "EPERM")
2791
- return true;
2792
- }
2793
- return false;
2794
- }
2795
- }
2796
- }
2797
- });
2798
- var require_legacy_streams = (0, import_chunk_WWAWV7DQ.__commonJS)({
2799
- "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
2800
- "use strict";
2801
- var Stream = (0, import_chunk_WWAWV7DQ.__require)("stream").Stream;
2802
- module2.exports = legacy;
2803
- function legacy(fs8) {
2804
- return {
2805
- ReadStream,
2806
- WriteStream
2807
- };
2808
- function ReadStream(path8, options2) {
2809
- if (!(this instanceof ReadStream)) return new ReadStream(path8, options2);
2810
- Stream.call(this);
2811
- var self2 = this;
2812
- this.path = path8;
2813
- this.fd = null;
2814
- this.readable = true;
2815
- this.paused = false;
2816
- this.flags = "r";
2817
- this.mode = 438;
2818
- this.bufferSize = 64 * 1024;
2819
- options2 = options2 || {};
2820
- var keys = Object.keys(options2);
2821
- for (var index2 = 0, length = keys.length; index2 < length; index2++) {
2822
- var key = keys[index2];
2823
- this[key] = options2[key];
2824
- }
2825
- if (this.encoding) this.setEncoding(this.encoding);
2826
- if (this.start !== void 0) {
2827
- if ("number" !== typeof this.start) {
2828
- throw TypeError("start must be a Number");
2829
- }
2830
- if (this.end === void 0) {
2831
- this.end = Infinity;
2832
- } else if ("number" !== typeof this.end) {
2833
- throw TypeError("end must be a Number");
2834
- }
2835
- if (this.start > this.end) {
2836
- throw new Error("start must be <= end");
2837
- }
2838
- this.pos = this.start;
2839
- }
2840
- if (this.fd !== null) {
2841
- process.nextTick(function() {
2842
- self2._read();
2843
- });
2844
- return;
2845
- }
2846
- fs8.open(this.path, this.flags, this.mode, function(err, fd) {
2847
- if (err) {
2848
- self2.emit("error", err);
2849
- self2.readable = false;
2850
- return;
2851
- }
2852
- self2.fd = fd;
2853
- self2.emit("open", fd);
2854
- self2._read();
2855
- });
2856
- }
2857
- function WriteStream(path8, options2) {
2858
- if (!(this instanceof WriteStream)) return new WriteStream(path8, options2);
2859
- Stream.call(this);
2860
- this.path = path8;
2861
- this.fd = null;
2862
- this.writable = true;
2863
- this.flags = "w";
2864
- this.encoding = "binary";
2865
- this.mode = 438;
2866
- this.bytesWritten = 0;
2867
- options2 = options2 || {};
2868
- var keys = Object.keys(options2);
2869
- for (var index2 = 0, length = keys.length; index2 < length; index2++) {
2870
- var key = keys[index2];
2871
- this[key] = options2[key];
2872
- }
2873
- if (this.start !== void 0) {
2874
- if ("number" !== typeof this.start) {
2875
- throw TypeError("start must be a Number");
2876
- }
2877
- if (this.start < 0) {
2878
- throw new Error("start must be >= zero");
2879
- }
2880
- this.pos = this.start;
2881
- }
2882
- this.busy = false;
2883
- this._queue = [];
2884
- if (this.fd === null) {
2885
- this._open = fs8.open;
2886
- this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
2887
- this.flush();
2888
- }
2889
- }
2890
- }
2891
- }
2892
- });
2893
- var require_clone = (0, import_chunk_WWAWV7DQ.__commonJS)({
2894
- "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports2, module2) {
2895
- "use strict";
2896
- module2.exports = clone;
2897
- var getPrototypeOf = Object.getPrototypeOf || function(obj) {
2898
- return obj.__proto__;
2899
- };
2900
- function clone(obj) {
2901
- if (obj === null || typeof obj !== "object")
2902
- return obj;
2903
- if (obj instanceof Object)
2904
- var copy = { __proto__: getPrototypeOf(obj) };
2905
- else
2906
- var copy = /* @__PURE__ */ Object.create(null);
2907
- Object.getOwnPropertyNames(obj).forEach(function(key) {
2908
- Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
2909
- });
2910
- return copy;
2911
- }
2912
- }
2913
- });
2914
- var require_graceful_fs = (0, import_chunk_WWAWV7DQ.__commonJS)({
2915
- "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
2916
- "use strict";
2917
- var fs8 = (0, import_chunk_WWAWV7DQ.__require)("fs");
2918
- var polyfills = require_polyfills();
2919
- var legacy = require_legacy_streams();
2920
- var clone = require_clone();
2921
- var util = (0, import_chunk_WWAWV7DQ.__require)("util");
2922
- var gracefulQueue;
2923
- var previousSymbol;
2924
- if (typeof Symbol === "function" && typeof Symbol.for === "function") {
2925
- gracefulQueue = Symbol.for("graceful-fs.queue");
2926
- previousSymbol = Symbol.for("graceful-fs.previous");
2927
- } else {
2928
- gracefulQueue = "___graceful-fs.queue";
2929
- previousSymbol = "___graceful-fs.previous";
2930
- }
2931
- function noop() {
2932
- }
2933
- function publishQueue(context, queue3) {
2934
- Object.defineProperty(context, gracefulQueue, {
2935
- get: function() {
2936
- return queue3;
2937
- }
2938
- });
2939
- }
2940
- var debug8 = noop;
2941
- if (util.debuglog)
2942
- debug8 = util.debuglog("gfs4");
2943
- else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
2944
- debug8 = function() {
2945
- var m2 = util.format.apply(util, arguments);
2946
- m2 = "GFS4: " + m2.split(/\n/).join("\nGFS4: ");
2947
- console.error(m2);
2948
- };
2949
- if (!fs8[gracefulQueue]) {
2950
- queue2 = global[gracefulQueue] || [];
2951
- publishQueue(fs8, queue2);
2952
- fs8.close = function(fs$close) {
2953
- function close(fd, cb) {
2954
- return fs$close.call(fs8, fd, function(err) {
2955
- if (!err) {
2956
- resetQueue();
2957
- }
2958
- if (typeof cb === "function")
2959
- cb.apply(this, arguments);
2960
- });
2961
- }
2962
- Object.defineProperty(close, previousSymbol, {
2963
- value: fs$close
2964
- });
2965
- return close;
2966
- }(fs8.close);
2967
- fs8.closeSync = function(fs$closeSync) {
2968
- function closeSync(fd) {
2969
- fs$closeSync.apply(fs8, arguments);
2970
- resetQueue();
2971
- }
2972
- Object.defineProperty(closeSync, previousSymbol, {
2973
- value: fs$closeSync
2974
- });
2975
- return closeSync;
2976
- }(fs8.closeSync);
2977
- if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
2978
- process.on("exit", function() {
2979
- debug8(fs8[gracefulQueue]);
2980
- (0, import_chunk_WWAWV7DQ.__require)("assert").equal(fs8[gracefulQueue].length, 0);
2981
- });
2982
- }
2983
- }
2984
- var queue2;
2985
- if (!global[gracefulQueue]) {
2986
- publishQueue(global, fs8[gracefulQueue]);
2987
- }
2988
- module2.exports = patch(clone(fs8));
2989
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs8.__patched) {
2990
- module2.exports = patch(fs8);
2991
- fs8.__patched = true;
2992
- }
2993
- function patch(fs9) {
2994
- polyfills(fs9);
2995
- fs9.gracefulify = patch;
2996
- fs9.createReadStream = createReadStream;
2997
- fs9.createWriteStream = createWriteStream;
2998
- var fs$readFile = fs9.readFile;
2999
- fs9.readFile = readFile2;
3000
- function readFile2(path8, options2, cb) {
3001
- if (typeof options2 === "function")
3002
- cb = options2, options2 = null;
3003
- return go$readFile(path8, options2, cb);
3004
- function go$readFile(path9, options3, cb2, startTime) {
3005
- return fs$readFile(path9, options3, function(err) {
3006
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3007
- enqueue([go$readFile, [path9, options3, cb2], err, startTime || Date.now(), Date.now()]);
3008
- else {
3009
- if (typeof cb2 === "function")
3010
- cb2.apply(this, arguments);
3011
- }
3012
- });
3013
- }
3014
- }
3015
- var fs$writeFile = fs9.writeFile;
3016
- fs9.writeFile = writeFile;
3017
- function writeFile(path8, data, options2, cb) {
3018
- if (typeof options2 === "function")
3019
- cb = options2, options2 = null;
3020
- return go$writeFile(path8, data, options2, cb);
3021
- function go$writeFile(path9, data2, options3, cb2, startTime) {
3022
- return fs$writeFile(path9, data2, options3, function(err) {
3023
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3024
- enqueue([go$writeFile, [path9, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
3025
- else {
3026
- if (typeof cb2 === "function")
3027
- cb2.apply(this, arguments);
3028
- }
3029
- });
3030
- }
3031
- }
3032
- var fs$appendFile = fs9.appendFile;
3033
- if (fs$appendFile)
3034
- fs9.appendFile = appendFile;
3035
- function appendFile(path8, data, options2, cb) {
3036
- if (typeof options2 === "function")
3037
- cb = options2, options2 = null;
3038
- return go$appendFile(path8, data, options2, cb);
3039
- function go$appendFile(path9, data2, options3, cb2, startTime) {
3040
- return fs$appendFile(path9, data2, options3, function(err) {
3041
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3042
- enqueue([go$appendFile, [path9, data2, options3, cb2], err, startTime || Date.now(), Date.now()]);
3043
- else {
3044
- if (typeof cb2 === "function")
3045
- cb2.apply(this, arguments);
3046
- }
3047
- });
3048
- }
3049
- }
3050
- var fs$copyFile = fs9.copyFile;
3051
- if (fs$copyFile)
3052
- fs9.copyFile = copyFile;
3053
- function copyFile(src, dest, flags, cb) {
3054
- if (typeof flags === "function") {
3055
- cb = flags;
3056
- flags = 0;
3057
- }
3058
- return go$copyFile(src, dest, flags, cb);
3059
- function go$copyFile(src2, dest2, flags2, cb2, startTime) {
3060
- return fs$copyFile(src2, dest2, flags2, function(err) {
3061
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3062
- enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
3063
- else {
3064
- if (typeof cb2 === "function")
3065
- cb2.apply(this, arguments);
3066
- }
3067
- });
3068
- }
3069
- }
3070
- var fs$readdir = fs9.readdir;
3071
- fs9.readdir = readdir;
3072
- var noReaddirOptionVersions = /^v[0-5]\./;
3073
- function readdir(path8, options2, cb) {
3074
- if (typeof options2 === "function")
3075
- cb = options2, options2 = null;
3076
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path9, options3, cb2, startTime) {
3077
- return fs$readdir(path9, fs$readdirCallback(
3078
- path9,
3079
- options3,
3080
- cb2,
3081
- startTime
3082
- ));
3083
- } : function go$readdir2(path9, options3, cb2, startTime) {
3084
- return fs$readdir(path9, options3, fs$readdirCallback(
3085
- path9,
3086
- options3,
3087
- cb2,
3088
- startTime
3089
- ));
3090
- };
3091
- return go$readdir(path8, options2, cb);
3092
- function fs$readdirCallback(path9, options3, cb2, startTime) {
3093
- return function(err, files) {
3094
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3095
- enqueue([
3096
- go$readdir,
3097
- [path9, options3, cb2],
3098
- err,
3099
- startTime || Date.now(),
3100
- Date.now()
3101
- ]);
3102
- else {
3103
- if (files && files.sort)
3104
- files.sort();
3105
- if (typeof cb2 === "function")
3106
- cb2.call(this, err, files);
3107
- }
3108
- };
3109
- }
3110
- }
3111
- if (process.version.substr(0, 4) === "v0.8") {
3112
- var legStreams = legacy(fs9);
3113
- ReadStream = legStreams.ReadStream;
3114
- WriteStream = legStreams.WriteStream;
3115
- }
3116
- var fs$ReadStream = fs9.ReadStream;
3117
- if (fs$ReadStream) {
3118
- ReadStream.prototype = Object.create(fs$ReadStream.prototype);
3119
- ReadStream.prototype.open = ReadStream$open;
3120
- }
3121
- var fs$WriteStream = fs9.WriteStream;
3122
- if (fs$WriteStream) {
3123
- WriteStream.prototype = Object.create(fs$WriteStream.prototype);
3124
- WriteStream.prototype.open = WriteStream$open;
3125
- }
3126
- Object.defineProperty(fs9, "ReadStream", {
3127
- get: function() {
3128
- return ReadStream;
3129
- },
3130
- set: function(val) {
3131
- ReadStream = val;
3132
- },
3133
- enumerable: true,
3134
- configurable: true
3135
- });
3136
- Object.defineProperty(fs9, "WriteStream", {
3137
- get: function() {
3138
- return WriteStream;
3139
- },
3140
- set: function(val) {
3141
- WriteStream = val;
3142
- },
3143
- enumerable: true,
3144
- configurable: true
3145
- });
3146
- var FileReadStream = ReadStream;
3147
- Object.defineProperty(fs9, "FileReadStream", {
3148
- get: function() {
3149
- return FileReadStream;
3150
- },
3151
- set: function(val) {
3152
- FileReadStream = val;
3153
- },
3154
- enumerable: true,
3155
- configurable: true
3156
- });
3157
- var FileWriteStream = WriteStream;
3158
- Object.defineProperty(fs9, "FileWriteStream", {
3159
- get: function() {
3160
- return FileWriteStream;
3161
- },
3162
- set: function(val) {
3163
- FileWriteStream = val;
3164
- },
3165
- enumerable: true,
3166
- configurable: true
3167
- });
3168
- function ReadStream(path8, options2) {
3169
- if (this instanceof ReadStream)
3170
- return fs$ReadStream.apply(this, arguments), this;
3171
- else
3172
- return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
3173
- }
3174
- function ReadStream$open() {
3175
- var that = this;
3176
- open(that.path, that.flags, that.mode, function(err, fd) {
3177
- if (err) {
3178
- if (that.autoClose)
3179
- that.destroy();
3180
- that.emit("error", err);
3181
- } else {
3182
- that.fd = fd;
3183
- that.emit("open", fd);
3184
- that.read();
3185
- }
3186
- });
3187
- }
3188
- function WriteStream(path8, options2) {
3189
- if (this instanceof WriteStream)
3190
- return fs$WriteStream.apply(this, arguments), this;
3191
- else
3192
- return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
3193
- }
3194
- function WriteStream$open() {
3195
- var that = this;
3196
- open(that.path, that.flags, that.mode, function(err, fd) {
3197
- if (err) {
3198
- that.destroy();
3199
- that.emit("error", err);
3200
- } else {
3201
- that.fd = fd;
3202
- that.emit("open", fd);
3203
- }
3204
- });
3205
- }
3206
- function createReadStream(path8, options2) {
3207
- return new fs9.ReadStream(path8, options2);
3208
- }
3209
- function createWriteStream(path8, options2) {
3210
- return new fs9.WriteStream(path8, options2);
3211
- }
3212
- var fs$open = fs9.open;
3213
- fs9.open = open;
3214
- function open(path8, flags, mode, cb) {
3215
- if (typeof mode === "function")
3216
- cb = mode, mode = null;
3217
- return go$open(path8, flags, mode, cb);
3218
- function go$open(path9, flags2, mode2, cb2, startTime) {
3219
- return fs$open(path9, flags2, mode2, function(err, fd) {
3220
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3221
- enqueue([go$open, [path9, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
3222
- else {
3223
- if (typeof cb2 === "function")
3224
- cb2.apply(this, arguments);
3225
- }
3226
- });
3227
- }
3228
- }
3229
- return fs9;
3230
- }
3231
- function enqueue(elem) {
3232
- debug8("ENQUEUE", elem[0].name, elem[1]);
3233
- fs8[gracefulQueue].push(elem);
3234
- retry2();
3235
- }
3236
- var retryTimer;
3237
- function resetQueue() {
3238
- var now = Date.now();
3239
- for (var i = 0; i < fs8[gracefulQueue].length; ++i) {
3240
- if (fs8[gracefulQueue][i].length > 2) {
3241
- fs8[gracefulQueue][i][3] = now;
3242
- fs8[gracefulQueue][i][4] = now;
3243
- }
3244
- }
3245
- retry2();
3246
- }
3247
- function retry2() {
3248
- clearTimeout(retryTimer);
3249
- retryTimer = void 0;
3250
- if (fs8[gracefulQueue].length === 0)
3251
- return;
3252
- var elem = fs8[gracefulQueue].shift();
3253
- var fn = elem[0];
3254
- var args = elem[1];
3255
- var err = elem[2];
3256
- var startTime = elem[3];
3257
- var lastTime = elem[4];
3258
- if (startTime === void 0) {
3259
- debug8("RETRY", fn.name, args);
3260
- fn.apply(null, args);
3261
- } else if (Date.now() - startTime >= 6e4) {
3262
- debug8("TIMEOUT", fn.name, args);
3263
- var cb = args.pop();
3264
- if (typeof cb === "function")
3265
- cb.call(null, err);
3266
- } else {
3267
- var sinceAttempt = Date.now() - lastTime;
3268
- var sinceStart = Math.max(lastTime - startTime, 1);
3269
- var desiredDelay = Math.min(sinceStart * 1.2, 100);
3270
- if (sinceAttempt >= desiredDelay) {
3271
- debug8("RETRY", fn.name, args);
3272
- fn.apply(null, args.concat([startTime]));
3273
- } else {
3274
- fs8[gracefulQueue].push(elem);
3275
- }
3276
- }
3277
- if (retryTimer === void 0) {
3278
- retryTimer = setTimeout(retry2, 0);
3279
- }
3280
- }
3281
- }
3282
- });
3283
2512
  var require_process_nextick_args = (0, import_chunk_WWAWV7DQ.__commonJS)({
3284
2513
  "../../node_modules/.pnpm/process-nextick-args@2.0.1/node_modules/process-nextick-args/index.js"(exports2, module2) {
3285
2514
  "use strict";
@@ -9317,7 +8546,7 @@ var require_isPlainObject = (0, import_chunk_WWAWV7DQ.__commonJS)({
9317
8546
  var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
9318
8547
  "../../node_modules/.pnpm/archiver-utils@4.0.1/node_modules/archiver-utils/file.js"(exports2, module2) {
9319
8548
  "use strict";
9320
- var fs8 = require_graceful_fs();
8549
+ var fs8 = (0, import_chunk_QIVUAERL.require_graceful_fs)();
9321
8550
  var path8 = (0, import_chunk_WWAWV7DQ.__require)("path");
9322
8551
  var flatten = require_flatten();
9323
8552
  var difference = require_difference();
@@ -9469,7 +8698,7 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
9469
8698
  var require_archiver_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
9470
8699
  "../../node_modules/.pnpm/archiver-utils@4.0.1/node_modules/archiver-utils/index.js"(exports2, module2) {
9471
8700
  "use strict";
9472
- var fs8 = require_graceful_fs();
8701
+ var fs8 = (0, import_chunk_QIVUAERL.require_graceful_fs)();
9473
8702
  var path8 = (0, import_chunk_WWAWV7DQ.__require)("path");
9474
8703
  var lazystream = require_lazystream();
9475
8704
  var normalizePath = require_normalize_path();
@@ -15522,7 +14751,7 @@ async function readSchemaFromDirectory(schemaPath2) {
15522
14751
  }
15523
14752
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
15524
14753
  debug2("Loading config");
15525
- const config2 = await (0, import_chunk_JRBQVHGW.getConfig)({
14754
+ const config2 = await (0, import_chunk_PC46MJ4M.getConfig)({
15526
14755
  datamodel: files,
15527
14756
  ignoreEnvVarErrors: true
15528
14757
  });
@@ -15830,8 +15059,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
15830
15059
  if (argName.includes("schema")) {
15831
15060
  await loadEnvFile({ schemaPath: argValue, printMessage: false });
15832
15061
  const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
15833
- const config2 = await (0, import_chunk_JRBQVHGW.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15834
- const url = (0, import_chunk_JRBQVHGW.resolveUrl)((0, import_chunk_JRBQVHGW.getEffectiveUrl)(config2.datasources[0]));
15062
+ const config2 = await (0, import_chunk_PC46MJ4M.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15063
+ const url = (0, import_chunk_PC46MJ4M.resolveUrl)((0, import_chunk_PC46MJ4M.getEffectiveUrl)(config2.datasources[0]));
15835
15064
  if (url?.startsWith("prisma://")) {
15836
15065
  return forbiddenCmdWithDataProxyFlagMessage(command);
15837
15066
  }
@@ -16003,7 +15232,7 @@ async function getGenerators(options) {
16003
15232
  prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
16004
15233
  }
16005
15234
  }
16006
- const config = await (0, import_chunk_JRBQVHGW.getConfig)({
15235
+ const config = await (0, import_chunk_PC46MJ4M.getConfig)({
16007
15236
  datamodel: schemas,
16008
15237
  datamodelPath: schemaPath,
16009
15238
  prismaPath,
@@ -16014,7 +15243,7 @@ async function getGenerators(options) {
16014
15243
  }
16015
15244
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
16016
15245
  const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
16017
- const dmmf = await (0, import_chunk_KJWAXEV6.getDMMF)({
15246
+ const dmmf = await (0, import_chunk_4CLLOZ4P.getDMMF)({
16018
15247
  datamodel: schemas,
16019
15248
  datamodelPath: schemaPath,
16020
15249
  prismaPath,
@@ -16075,7 +15304,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
16075
15304
  fromEnvVar: "null"
16076
15305
  };
16077
15306
  }
16078
- const datamodel = (0, import_chunk_AMSESUHL.mergeSchemas)({ schemas });
15307
+ const datamodel = (0, import_chunk_RFYKY4ZX.mergeSchemas)({ schemas });
16079
15308
  const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
16080
15309
  const options2 = {
16081
15310
  datamodel,
@@ -16142,7 +15371,7 @@ generator gen {
16142
15371
  }
16143
15372
  }
16144
15373
  debug6("neededVersions", JSON.stringify(neededVersions, null, 2));
16145
- const binaryPathsByVersion = await (0, import_chunk_D4MCOTL5.getBinaryPathsByVersion)({
15374
+ const binaryPathsByVersion = await (0, import_chunk_5XRQ7ONW.getBinaryPathsByVersion)({
16146
15375
  neededVersions,
16147
15376
  binaryTarget,
16148
15377
  version,
@@ -16158,7 +15387,7 @@ generator gen {
16158
15387
  debug6({ generatorBinaryPaths });
16159
15388
  generator.setBinaryPaths(generatorBinaryPaths);
16160
15389
  if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
16161
- const customDmmf = await (0, import_chunk_KJWAXEV6.getDMMF)({
15390
+ const customDmmf = await (0, import_chunk_4CLLOZ4P.getDMMF)({
16162
15391
  datamodel: schemas,
16163
15392
  datamodelPath: schemaPath,
16164
15393
  prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
@@ -16456,7 +15685,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
16456
15685
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
16457
15686
  handleFormatPanic(
16458
15687
  () => {
16459
- import_chunk_X7A5Y32H.prismaSchemaWasm.debug_panic();
15688
+ import_chunk_SM6BW5WS.prismaSchemaWasm.debug_panic();
16460
15689
  },
16461
15690
  { schemas: schemas2 }
16462
15691
  );
@@ -16476,12 +15705,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
16476
15705
  () => {
16477
15706
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
16478
15707
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
16479
- const lintDiagnostics2 = (0, import_chunk_GE4H5C4C.lintSchema)({ schemas: formattedMultipleSchemas2 });
15708
+ const lintDiagnostics2 = (0, import_chunk_PDG6GFQR.lintSchema)({ schemas: formattedMultipleSchemas2 });
16480
15709
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
16481
15710
  },
16482
15711
  { schemas: schemas2 }
16483
15712
  );
16484
- const lintWarnings = (0, import_chunk_GE4H5C4C.getLintWarningsAsText)(lintDiagnostics);
15713
+ const lintWarnings = (0, import_chunk_PDG6GFQR.getLintWarningsAsText)(lintDiagnostics);
16485
15714
  if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
16486
15715
  console.warn(lintWarnings);
16487
15716
  }
@@ -16511,7 +15740,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
16511
15740
  }
16512
15741
  }
16513
15742
  function formatWasm(schema, documentFormattingParams) {
16514
- const formattedSchema = import_chunk_X7A5Y32H.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15743
+ const formattedSchema = import_chunk_SM6BW5WS.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
16515
15744
  return formattedSchema;
16516
15745
  }
16517
15746
  /*! Bundled license information: