@prisma/internals 6.20.0-integration-feat-prisma-7-config.4 → 6.20.0-integration-engines-6-20-0-1-integration-oidc-truster-publishers-e28d8c7807dc95db08a9a866250934b3aac2c89b.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 (116) hide show
  1. package/dist/{chunk-B2BNIZB2.js → chunk-2NO2JKZ5.js} +8 -7
  2. package/dist/{chunk-N6RUOMFQ.js → chunk-2NYEQR5W.js} +5 -5
  3. package/dist/{chunk-USWUUAD2.js → chunk-2O3VYQLI.js} +11 -11
  4. package/dist/chunk-3FP46GUV.js +471 -0
  5. package/dist/{chunk-VHE2A7YV.js → chunk-3U76J22D.js} +11 -11
  6. package/dist/chunk-46ABODUM.js +186 -0
  7. package/dist/{chunk-GJSFP4V4.js → chunk-4CGPN5SR.js} +9 -3
  8. package/dist/{chunk-GL7OANR6.js → chunk-4JCVHBYR.js} +5 -5
  9. package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
  10. package/dist/{chunk-YN4MD4NY.js → chunk-6NU5L5WI.js} +12 -12
  11. package/dist/chunk-6TTRTZXU.js +37 -0
  12. package/dist/{chunk-SMJRM3EM.js → chunk-75BIJ5PX.js} +9 -9
  13. package/dist/{chunk-WBLG3WYC.js → chunk-77IREUT5.js} +20 -14
  14. package/dist/{chunk-MYLPCGTT.js → chunk-7QC5VORA.js} +5 -5
  15. package/dist/{chunk-TGA7DC5A.js → chunk-AX5N26KG.js} +9 -14
  16. package/dist/{chunk-5FTKVAG5.js → chunk-BAKQDFDR.js} +97 -40
  17. package/dist/{chunk-TLOMW2S7.js → chunk-BFR6BYIF.js} +97 -40
  18. package/dist/{chunk-QSVWJ2S2.js → chunk-BVJP43JS.js} +784 -13
  19. package/dist/{chunk-3ZWEK4N6.js → chunk-CXIZ2XKS.js} +5 -5
  20. package/dist/chunk-D4VDA2TZ.js +66 -0
  21. package/dist/chunk-DZYINYAA.js +68 -0
  22. package/dist/chunk-ERSH2BQA.js +58 -0
  23. package/dist/{chunk-OKVM3CW4.js → chunk-EYVG6XQS.js} +39 -3
  24. package/dist/{chunk-5MHUYAV3.js → chunk-F2OZV76L.js} +9 -9
  25. package/dist/{chunk-24ZPBDBI.js → chunk-FOLY7PXH.js} +11 -11
  26. package/dist/{chunk-2Q43C56O.js → chunk-FQYGFHOV.js} +5 -5
  27. package/dist/{chunk-HNRMSI3R.js → chunk-FYZCPL2Z.js} +8 -5
  28. package/dist/{chunk-VFZCLI5X.js → chunk-GLZZMW23.js} +5 -5
  29. package/dist/{chunk-22HIO2UL.js → chunk-GMW36QQF.js} +7 -7
  30. package/dist/{chunk-BUQN4WLU.js → chunk-HFFWZTVM.js} +9 -7
  31. package/dist/{chunk-CGLLQXZE.js → chunk-HHG4DGHC.js} +12 -11
  32. package/dist/{chunk-5W3BSMTH.js → chunk-HO5HRHFZ.js} +6 -3
  33. package/dist/{chunk-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
  34. package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
  35. package/dist/{chunk-QOZ7USPD.js → chunk-JOIIWB3U.js} +159 -193
  36. package/dist/{chunk-73HXEN2A.js → chunk-JW3XTFPO.js} +5 -5
  37. package/dist/{chunk-UHN4BR3K.js → chunk-KI2DKJN3.js} +5 -5
  38. package/dist/{chunk-YWVCZKBM.js → chunk-KNRW6B23.js} +11 -11
  39. package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
  40. package/dist/{chunk-H5STSTVK.js → chunk-OAT7ZJED.js} +20 -7
  41. package/dist/{chunk-SVJBSZKZ.js → chunk-PEE6ENIU.js} +9 -8
  42. package/dist/chunk-PZMRR772.js +41 -0
  43. package/dist/{chunk-SPQV2DVP.js → chunk-ROIGE6HI.js} +5 -5
  44. package/dist/{chunk-5I4ERIIY.js → chunk-RS2R7COT.js} +9 -3
  45. package/dist/chunk-T2PM5TKT.js +55 -0
  46. package/dist/{chunk-MLFKBBDL.js → chunk-TQFONRJP.js} +5 -5
  47. package/dist/{chunk-WSZXPLJQ.js → chunk-TZJROXB3.js} +4 -4
  48. package/dist/{chunk-WJKBKH3Y.js → chunk-UHI6VYFX.js} +5 -5
  49. package/dist/{chunk-BM3JIFQT.js → chunk-UQUWZJVN.js} +7 -7
  50. package/dist/{chunk-ARC7TW3L.js → chunk-WFNB7VRA.js} +14 -4
  51. package/dist/{chunk-LA5QBRTU.js → chunk-X5SLQREP.js} +20 -14
  52. package/dist/{chunk-66KS6FZC.js → chunk-XZ2N3HZX.js} +5 -5
  53. package/dist/{chunk-C5YUUOQW.js → chunk-YUX64XCQ.js} +12 -12
  54. package/dist/cli/checkUnsupportedDataProxy.js +60 -53
  55. package/dist/cli/checkUnsupportedSchemaEngineWasm.d.ts +22 -0
  56. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +135 -0
  57. package/dist/cli/getGeneratorSuccessMessage.js +3 -2
  58. package/dist/cli/getSchema.d.ts +15 -1
  59. package/dist/cli/getSchema.js +5 -4
  60. package/dist/cli/hashes.js +4 -4
  61. package/dist/cli/schemaContext.d.ts +11 -2
  62. package/dist/cli/schemaContext.js +60 -53
  63. package/dist/client/getClientEngineType.d.ts +7 -0
  64. package/dist/client/getClientEngineType.js +26 -0
  65. package/dist/dotenvExpand.d.ts +35 -0
  66. package/dist/dotenvExpand.js +25 -0
  67. package/dist/engine-commands/errorHelpers.js +4 -4
  68. package/dist/engine-commands/formatSchema.js +59 -52
  69. package/dist/engine-commands/getConfig.d.ts +1 -0
  70. package/dist/engine-commands/getConfig.js +13 -13
  71. package/dist/engine-commands/getDmmf.js +10 -10
  72. package/dist/engine-commands/getEngineVersion.js +9 -6
  73. package/dist/engine-commands/getEnginesInfo.d.ts +1 -0
  74. package/dist/engine-commands/getEnginesInfo.js +9 -7
  75. package/dist/engine-commands/index.js +71 -64
  76. package/dist/engine-commands/lintSchema.js +9 -9
  77. package/dist/engine-commands/mergeSchemas.js +10 -10
  78. package/dist/engine-commands/queryEngineCommons.js +6 -6
  79. package/dist/engine-commands/validate.js +10 -10
  80. package/dist/errorReporting.js +6 -6
  81. package/dist/get-generators/getGenerators.d.ts +1 -0
  82. package/dist/get-generators/getGenerators.js +62 -55
  83. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  84. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  85. package/dist/get-generators/utils/getBinaryPathsByVersion.js +5 -6
  86. package/dist/getPackedPackage.js +3 -4
  87. package/dist/index.d.ts +10 -1
  88. package/dist/index.js +112 -95
  89. package/dist/{multipart-parser-UV3WZSWW.js → multipart-parser-3AFJFP6K.js} +6 -6
  90. package/dist/resolveBinary.js +7 -8
  91. package/dist/schemaEngineCommands.js +8 -9
  92. package/dist/sendPanic.js +4 -4
  93. package/dist/utils/cloudflareD1.d.ts +5 -0
  94. package/dist/utils/cloudflareD1.js +27 -0
  95. package/dist/utils/drawBox.js +2 -2
  96. package/dist/utils/fs-functional.js +10 -10
  97. package/dist/utils/fs-utils.js +8 -8
  98. package/dist/utils/getEnvPaths.d.ts +14 -0
  99. package/dist/utils/getEnvPaths.js +29 -0
  100. package/dist/utils/getVersionFromPackageJson.js +3 -3
  101. package/dist/utils/handleEngineLoadingErrors.d.ts +8 -0
  102. package/dist/utils/handleEngineLoadingErrors.js +27 -0
  103. package/dist/utils/handlePanic.js +6 -6
  104. package/dist/utils/link.js +2 -2
  105. package/dist/utils/load.d.ts +6 -0
  106. package/dist/utils/load.js +28 -0
  107. package/dist/utils/loadEnvFile.d.ts +10 -0
  108. package/dist/utils/loadEnvFile.js +30 -0
  109. package/dist/utils/missingDatasource.js +3 -3
  110. package/dist/utils/missingGeneratorMessage.js +5 -5
  111. package/dist/utils/serializeQueryEngineName.js +2 -2
  112. package/dist/utils/tryLoadEnvs.d.ts +25 -0
  113. package/dist/utils/tryLoadEnvs.js +30 -0
  114. package/dist/wasm.js +5 -5
  115. package/package.json +16 -15
  116. package/dist/chunk-DYV47NUW.js +0 -796
@@ -16,139 +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_QOZ7USPD_exports = {};
20
- __export(chunk_QOZ7USPD_exports, {
19
+ var chunk_JOIIWB3U_exports = {};
20
+ __export(chunk_JOIIWB3U_exports, {
21
21
  require_globby: () => require_globby,
22
22
  require_is_glob: () => require_is_glob,
23
+ require_out: () => require_out4,
23
24
  require_slash: () => require_slash
24
25
  });
25
- module.exports = __toCommonJS(chunk_QOZ7USPD_exports);
26
+ module.exports = __toCommonJS(chunk_JOIIWB3U_exports);
26
27
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
27
- var require_array_union = (0, import_chunk_4VNS5WPM.__commonJS)({
28
- "../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module2) {
29
- "use strict";
30
- module2.exports = (...arguments_) => {
31
- return [...new Set([].concat(...arguments_))];
32
- };
33
- }
34
- });
35
- var require_merge2 = (0, import_chunk_4VNS5WPM.__commonJS)({
36
- "../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js"(exports, module2) {
37
- "use strict";
38
- var Stream = (0, import_chunk_4VNS5WPM.__require)("stream");
39
- var PassThrough = Stream.PassThrough;
40
- var slice = Array.prototype.slice;
41
- module2.exports = merge2;
42
- function merge2() {
43
- const streamsQueue = [];
44
- const args = slice.call(arguments);
45
- let merging = false;
46
- let options = args[args.length - 1];
47
- if (options && !Array.isArray(options) && options.pipe == null) {
48
- args.pop();
49
- } else {
50
- options = {};
51
- }
52
- const doEnd = options.end !== false;
53
- const doPipeError = options.pipeError === true;
54
- if (options.objectMode == null) {
55
- options.objectMode = true;
56
- }
57
- if (options.highWaterMark == null) {
58
- options.highWaterMark = 64 * 1024;
59
- }
60
- const mergedStream = PassThrough(options);
61
- function addStream() {
62
- for (let i = 0, len = arguments.length; i < len; i++) {
63
- streamsQueue.push(pauseStreams(arguments[i], options));
64
- }
65
- mergeStream();
66
- return this;
67
- }
68
- function mergeStream() {
69
- if (merging) {
70
- return;
71
- }
72
- merging = true;
73
- let streams = streamsQueue.shift();
74
- if (!streams) {
75
- process.nextTick(endStream);
76
- return;
77
- }
78
- if (!Array.isArray(streams)) {
79
- streams = [streams];
80
- }
81
- let pipesCount = streams.length + 1;
82
- function next() {
83
- if (--pipesCount > 0) {
84
- return;
85
- }
86
- merging = false;
87
- mergeStream();
88
- }
89
- function pipe(stream) {
90
- function onend() {
91
- stream.removeListener("merge2UnpipeEnd", onend);
92
- stream.removeListener("end", onend);
93
- if (doPipeError) {
94
- stream.removeListener("error", onerror);
95
- }
96
- next();
97
- }
98
- function onerror(err) {
99
- mergedStream.emit("error", err);
100
- }
101
- if (stream._readableState.endEmitted) {
102
- return next();
103
- }
104
- stream.on("merge2UnpipeEnd", onend);
105
- stream.on("end", onend);
106
- if (doPipeError) {
107
- stream.on("error", onerror);
108
- }
109
- stream.pipe(mergedStream, { end: false });
110
- stream.resume();
111
- }
112
- for (let i = 0; i < streams.length; i++) {
113
- pipe(streams[i]);
114
- }
115
- next();
116
- }
117
- function endStream() {
118
- merging = false;
119
- mergedStream.emit("queueDrain");
120
- if (doEnd) {
121
- mergedStream.end();
122
- }
123
- }
124
- mergedStream.setMaxListeners(0);
125
- mergedStream.add = addStream;
126
- mergedStream.on("unpipe", function(stream) {
127
- stream.emit("merge2UnpipeEnd");
128
- });
129
- if (args.length) {
130
- addStream.apply(null, args);
131
- }
132
- return mergedStream;
133
- }
134
- function pauseStreams(streams, options) {
135
- if (!Array.isArray(streams)) {
136
- if (!streams._readableState && streams.pipe) {
137
- streams = streams.pipe(PassThrough(options));
138
- }
139
- if (!streams._readableState || !streams.pause || !streams.pipe) {
140
- throw new Error("Only readable stream can be merged.");
141
- }
142
- streams.pause();
143
- } else {
144
- for (let i = 0, len = streams.length; i < len; i++) {
145
- streams[i] = pauseStreams(streams[i], options);
146
- }
147
- }
148
- return streams;
149
- }
150
- }
151
- });
152
28
  var require_array = (0, import_chunk_4VNS5WPM.__commonJS)({
153
29
  "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
154
30
  "use strict";
@@ -3314,6 +3190,123 @@ var require_pattern = (0, import_chunk_4VNS5WPM.__commonJS)({
3314
3190
  exports.isAbsolute = isAbsolute;
3315
3191
  }
3316
3192
  });
3193
+ var require_merge2 = (0, import_chunk_4VNS5WPM.__commonJS)({
3194
+ "../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js"(exports, module2) {
3195
+ "use strict";
3196
+ var Stream = (0, import_chunk_4VNS5WPM.__require)("stream");
3197
+ var PassThrough = Stream.PassThrough;
3198
+ var slice = Array.prototype.slice;
3199
+ module2.exports = merge2;
3200
+ function merge2() {
3201
+ const streamsQueue = [];
3202
+ const args = slice.call(arguments);
3203
+ let merging = false;
3204
+ let options = args[args.length - 1];
3205
+ if (options && !Array.isArray(options) && options.pipe == null) {
3206
+ args.pop();
3207
+ } else {
3208
+ options = {};
3209
+ }
3210
+ const doEnd = options.end !== false;
3211
+ const doPipeError = options.pipeError === true;
3212
+ if (options.objectMode == null) {
3213
+ options.objectMode = true;
3214
+ }
3215
+ if (options.highWaterMark == null) {
3216
+ options.highWaterMark = 64 * 1024;
3217
+ }
3218
+ const mergedStream = PassThrough(options);
3219
+ function addStream() {
3220
+ for (let i = 0, len = arguments.length; i < len; i++) {
3221
+ streamsQueue.push(pauseStreams(arguments[i], options));
3222
+ }
3223
+ mergeStream();
3224
+ return this;
3225
+ }
3226
+ function mergeStream() {
3227
+ if (merging) {
3228
+ return;
3229
+ }
3230
+ merging = true;
3231
+ let streams = streamsQueue.shift();
3232
+ if (!streams) {
3233
+ process.nextTick(endStream);
3234
+ return;
3235
+ }
3236
+ if (!Array.isArray(streams)) {
3237
+ streams = [streams];
3238
+ }
3239
+ let pipesCount = streams.length + 1;
3240
+ function next() {
3241
+ if (--pipesCount > 0) {
3242
+ return;
3243
+ }
3244
+ merging = false;
3245
+ mergeStream();
3246
+ }
3247
+ function pipe(stream) {
3248
+ function onend() {
3249
+ stream.removeListener("merge2UnpipeEnd", onend);
3250
+ stream.removeListener("end", onend);
3251
+ if (doPipeError) {
3252
+ stream.removeListener("error", onerror);
3253
+ }
3254
+ next();
3255
+ }
3256
+ function onerror(err) {
3257
+ mergedStream.emit("error", err);
3258
+ }
3259
+ if (stream._readableState.endEmitted) {
3260
+ return next();
3261
+ }
3262
+ stream.on("merge2UnpipeEnd", onend);
3263
+ stream.on("end", onend);
3264
+ if (doPipeError) {
3265
+ stream.on("error", onerror);
3266
+ }
3267
+ stream.pipe(mergedStream, { end: false });
3268
+ stream.resume();
3269
+ }
3270
+ for (let i = 0; i < streams.length; i++) {
3271
+ pipe(streams[i]);
3272
+ }
3273
+ next();
3274
+ }
3275
+ function endStream() {
3276
+ merging = false;
3277
+ mergedStream.emit("queueDrain");
3278
+ if (doEnd) {
3279
+ mergedStream.end();
3280
+ }
3281
+ }
3282
+ mergedStream.setMaxListeners(0);
3283
+ mergedStream.add = addStream;
3284
+ mergedStream.on("unpipe", function(stream) {
3285
+ stream.emit("merge2UnpipeEnd");
3286
+ });
3287
+ if (args.length) {
3288
+ addStream.apply(null, args);
3289
+ }
3290
+ return mergedStream;
3291
+ }
3292
+ function pauseStreams(streams, options) {
3293
+ if (!Array.isArray(streams)) {
3294
+ if (!streams._readableState && streams.pipe) {
3295
+ streams = streams.pipe(PassThrough(options));
3296
+ }
3297
+ if (!streams._readableState || !streams.pause || !streams.pipe) {
3298
+ throw new Error("Only readable stream can be merged.");
3299
+ }
3300
+ streams.pause();
3301
+ } else {
3302
+ for (let i = 0, len = streams.length; i < len; i++) {
3303
+ streams[i] = pauseStreams(streams[i], options);
3304
+ }
3305
+ }
3306
+ return streams;
3307
+ }
3308
+ }
3309
+ });
3317
3310
  var require_stream = (0, import_chunk_4VNS5WPM.__commonJS)({
3318
3311
  "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
3319
3312
  "use strict";
@@ -3971,7 +3964,7 @@ var require_out2 = (0, import_chunk_4VNS5WPM.__commonJS)({
3971
3964
  }
3972
3965
  });
3973
3966
  var require_reusify = (0, import_chunk_4VNS5WPM.__commonJS)({
3974
- "../../node_modules/.pnpm/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module2) {
3967
+ "../../node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.js"(exports, module2) {
3975
3968
  "use strict";
3976
3969
  function reusify(Constructor) {
3977
3970
  var head = new Constructor();
@@ -4000,17 +3993,17 @@ var require_reusify = (0, import_chunk_4VNS5WPM.__commonJS)({
4000
3993
  }
4001
3994
  });
4002
3995
  var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4003
- "../../node_modules/.pnpm/fastq@1.19.1/node_modules/fastq/queue.js"(exports, module2) {
3996
+ "../../node_modules/.pnpm/fastq@1.15.0/node_modules/fastq/queue.js"(exports, module2) {
4004
3997
  "use strict";
4005
3998
  var reusify = require_reusify();
4006
- function fastqueue(context, worker, _concurrency) {
3999
+ function fastqueue(context, worker, concurrency) {
4007
4000
  if (typeof context === "function") {
4008
- _concurrency = worker;
4001
+ concurrency = worker;
4009
4002
  worker = context;
4010
4003
  context = null;
4011
4004
  }
4012
- if (!(_concurrency >= 1)) {
4013
- throw new Error("fastqueue concurrency must be equal to or greater than 1");
4005
+ if (concurrency < 1) {
4006
+ throw new Error("fastqueue concurrency must be greater than 1");
4014
4007
  }
4015
4008
  var cache = reusify(Task);
4016
4009
  var queueHead = null;
@@ -4023,20 +4016,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4023
4016
  saturated: noop,
4024
4017
  pause,
4025
4018
  paused: false,
4026
- get concurrency() {
4027
- return _concurrency;
4028
- },
4029
- set concurrency(value) {
4030
- if (!(value >= 1)) {
4031
- throw new Error("fastqueue concurrency must be equal to or greater than 1");
4032
- }
4033
- _concurrency = value;
4034
- if (self.paused) return;
4035
- for (; queueHead && _running < _concurrency; ) {
4036
- _running++;
4037
- release();
4038
- }
4039
- },
4019
+ concurrency,
4040
4020
  running,
4041
4021
  resume,
4042
4022
  idle,
@@ -4076,12 +4056,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4076
4056
  function resume() {
4077
4057
  if (!self.paused) return;
4078
4058
  self.paused = false;
4079
- if (queueHead === null) {
4080
- _running++;
4081
- release();
4082
- return;
4083
- }
4084
- for (; queueHead && _running < _concurrency; ) {
4059
+ for (var i = 0; i < self.concurrency; i++) {
4085
4060
  _running++;
4086
4061
  release();
4087
4062
  }
@@ -4096,7 +4071,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4096
4071
  current.value = value;
4097
4072
  current.callback = done || noop;
4098
4073
  current.errorHandler = errorHandler;
4099
- if (_running >= _concurrency || self.paused) {
4074
+ if (_running === self.concurrency || self.paused) {
4100
4075
  if (queueTail) {
4101
4076
  queueTail.next = current;
4102
4077
  queueTail = current;
@@ -4116,8 +4091,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4116
4091
  current.release = release;
4117
4092
  current.value = value;
4118
4093
  current.callback = done || noop;
4119
- current.errorHandler = errorHandler;
4120
- if (_running >= _concurrency || self.paused) {
4094
+ if (_running === self.concurrency || self.paused) {
4121
4095
  if (queueHead) {
4122
4096
  current.next = queueHead;
4123
4097
  queueHead = current;
@@ -4136,7 +4110,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4136
4110
  cache.release(holder);
4137
4111
  }
4138
4112
  var next = queueHead;
4139
- if (next && _running <= _concurrency) {
4113
+ if (next) {
4140
4114
  if (!self.paused) {
4141
4115
  if (queueTail === queueHead) {
4142
4116
  queueTail = null;
@@ -4192,9 +4166,9 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4192
4166
  self.release(self);
4193
4167
  };
4194
4168
  }
4195
- function queueAsPromised(context, worker, _concurrency) {
4169
+ function queueAsPromised(context, worker, concurrency) {
4196
4170
  if (typeof context === "function") {
4197
- _concurrency = worker;
4171
+ concurrency = worker;
4198
4172
  worker = context;
4199
4173
  context = null;
4200
4174
  }
@@ -4203,7 +4177,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4203
4177
  cb(null, res);
4204
4178
  }, cb);
4205
4179
  }
4206
- var queue = fastqueue(context, asyncWrapper, _concurrency);
4180
+ var queue = fastqueue(context, asyncWrapper, concurrency);
4207
4181
  var pushCb = queue.push;
4208
4182
  var unshiftCb = queue.unshift;
4209
4183
  queue.push = push;
@@ -4237,19 +4211,17 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4237
4211
  return p;
4238
4212
  }
4239
4213
  function drained() {
4240
- var p = new Promise(function(resolve) {
4241
- process.nextTick(function() {
4242
- if (queue.idle()) {
4243
- resolve();
4244
- } else {
4245
- var previousDrain = queue.drain;
4246
- queue.drain = function() {
4247
- if (typeof previousDrain === "function") previousDrain();
4248
- resolve();
4249
- queue.drain = previousDrain;
4250
- };
4251
- }
4214
+ if (queue.idle()) {
4215
+ return new Promise(function(resolve) {
4216
+ resolve();
4252
4217
  });
4218
+ }
4219
+ var previousDrain = queue.drain;
4220
+ var p = new Promise(function(resolve) {
4221
+ queue.drain = function() {
4222
+ previousDrain();
4223
+ resolve();
4224
+ };
4253
4225
  });
4254
4226
  return p;
4255
4227
  }
@@ -5379,6 +5351,14 @@ var require_out4 = (0, import_chunk_4VNS5WPM.__commonJS)({
5379
5351
  module2.exports = FastGlob;
5380
5352
  }
5381
5353
  });
5354
+ var require_array_union = (0, import_chunk_4VNS5WPM.__commonJS)({
5355
+ "../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module2) {
5356
+ "use strict";
5357
+ module2.exports = (...arguments_) => {
5358
+ return [...new Set([].concat(...arguments_))];
5359
+ };
5360
+ }
5361
+ });
5382
5362
  var require_path_type = (0, import_chunk_4VNS5WPM.__commonJS)({
5383
5363
  "../../node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.js"(exports) {
5384
5364
  "use strict";
@@ -5481,7 +5461,7 @@ var require_dir_glob = (0, import_chunk_4VNS5WPM.__commonJS)({
5481
5461
  }
5482
5462
  });
5483
5463
  var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
5484
- "../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js"(exports, module2) {
5464
+ "../../node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.js"(exports, module2) {
5485
5465
  "use strict";
5486
5466
  function makeArray(subject) {
5487
5467
  return Array.isArray(subject) ? subject : [subject];
@@ -5513,32 +5493,18 @@ var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
5513
5493
  return slashes.slice(0, length - length % 2);
5514
5494
  };
5515
5495
  var REPLACERS = [
5516
- [
5517
- // remove BOM
5518
- // TODO:
5519
- // Other similar zero-width characters?
5520
- /^\uFEFF/,
5521
- () => EMPTY
5522
- ],
5523
5496
  // > Trailing spaces are ignored unless they are quoted with backslash ("\")
5524
5497
  [
5525
5498
  // (a\ ) -> (a )
5526
5499
  // (a ) -> (a)
5527
- // (a ) -> (a)
5528
5500
  // (a \ ) -> (a )
5529
- /((?:\\\\)*?)(\\?\s+)$/,
5530
- (_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
5501
+ /\\?\s+$/,
5502
+ (match) => match.indexOf("\\") === 0 ? SPACE : EMPTY
5531
5503
  ],
5532
5504
  // replace (\ ) with ' '
5533
- // (\ ) -> ' '
5534
- // (\\ ) -> '\\ '
5535
- // (\\\ ) -> '\\ '
5536
5505
  [
5537
- /(\\+?)\s/g,
5538
- (_, m1) => {
5539
- const { length } = m1;
5540
- return m1.slice(0, length - length % 2) + SPACE;
5541
- }
5506
+ /\\\s/g,
5507
+ () => SPACE
5542
5508
  ],
5543
5509
  // Escape metacharacters
5544
5510
  // which is written down by users but means special for regular expressions.
@@ -5673,7 +5639,7 @@ var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
5673
5639
  let source = regexCache[pattern];
5674
5640
  if (!source) {
5675
5641
  source = REPLACERS.reduce(
5676
- (prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)),
5642
+ (prev, current) => prev.replace(current[0], current[1].bind(pattern)),
5677
5643
  pattern
5678
5644
  );
5679
5645
  regexCache[pattern] = source;
@@ -16,20 +16,20 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_73HXEN2A_exports = {};
20
- __export(chunk_73HXEN2A_exports, {
19
+ var chunk_JW3XTFPO_exports = {};
20
+ __export(chunk_JW3XTFPO_exports, {
21
21
  getLintWarnings: () => getLintWarnings,
22
22
  getLintWarningsAsText: () => getLintWarningsAsText,
23
23
  handleLintPanic: () => handleLintPanic,
24
24
  lintSchema: () => lintSchema,
25
25
  warningToString: () => warningToString
26
26
  });
27
- module.exports = __toCommonJS(chunk_73HXEN2A_exports);
28
- var import_chunk_3ZWEK4N6 = require("./chunk-3ZWEK4N6.js");
27
+ module.exports = __toCommonJS(chunk_JW3XTFPO_exports);
28
+ var import_chunk_CXIZ2XKS = require("./chunk-CXIZ2XKS.js");
29
29
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
30
30
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
31
31
  function lintSchema({ schemas }) {
32
- const lintResult = import_chunk_3ZWEK4N6.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_CXIZ2XKS.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -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_UHN4BR3K_exports = {};
30
- __export(chunk_UHN4BR3K_exports, {
29
+ var chunk_KI2DKJN3_exports = {};
30
+ __export(chunk_KI2DKJN3_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  schemaEngineWasmVersion: () => schemaEngineWasmVersion,
34
34
  wasm_exports: () => wasm_exports
35
35
  });
36
- module.exports = __toCommonJS(chunk_UHN4BR3K_exports);
37
- var import_chunk_SVJBSZKZ = require("./chunk-SVJBSZKZ.js");
36
+ module.exports = __toCommonJS(chunk_KI2DKJN3_exports);
37
+ var import_chunk_2NO2JKZ5 = require("./chunk-2NO2JKZ5.js");
38
38
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
39
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
40
40
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -46,6 +46,6 @@ var wasm_exports = {};
46
46
  });
47
47
  var globalWithPanicRegistry = globalThis;
48
48
  globalWithPanicRegistry.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
49
- var { dependencies } = (0, import_chunk_SVJBSZKZ.require_package)();
49
+ var { dependencies } = (0, import_chunk_2NO2JKZ5.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -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_YWVCZKBM_exports = {};
30
- __export(chunk_YWVCZKBM_exports, {
29
+ var chunk_KNRW6B23_exports = {};
30
+ __export(chunk_KNRW6B23_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_YWVCZKBM_exports);
35
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
34
+ module.exports = __toCommonJS(chunk_KNRW6B23_exports);
35
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
37
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_N6RUOMFQ = require("./chunk-N6RUOMFQ.js");
39
- var import_chunk_UHN4BR3K = require("./chunk-UHN4BR3K.js");
37
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
+ var import_chunk_FQYGFHOV = require("./chunk-FQYGFHOV.js");
39
+ var import_chunk_CXIZ2XKS = require("./chunk-CXIZ2XKS.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");
@@ -59,12 +59,12 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_N6RUOMFQ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_FQYGFHOV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
66
66
  function mergeSchemas(options) {
67
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "mergeSchemasWasm");
67
+ const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "mergeSchemasWasm");
68
68
  debug(`Using mergeSchemas Wasm`);
69
69
  const mergeSchemasEither = (0, import_function.pipe)(
70
70
  (0, import_chunk_5DBOS77Y.tryCatch)(
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_UHN4BR3K.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_CXIZ2XKS.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -104,7 +104,7 @@ function mergeSchemas(options) {
104
104
  return panic;
105
105
  }
106
106
  const errorOutput = e.error.message;
107
- return new MergeSchemasError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
107
+ return new MergeSchemasError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
108
108
  }).exhaustive();
109
109
  throw error;
110
110
  }