@prisma/internals 6.20.0-integration-feat-prisma-7-config.3 → 6.20.0-integration-oidc-truster-publishers.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-VFZCLI5X.js → chunk-26ZV6OR7.js} +5 -5
  2. package/dist/{chunk-5FTKVAG5.js → chunk-2GUGGLPK.js} +97 -40
  3. package/dist/chunk-3FP46GUV.js +471 -0
  4. package/dist/chunk-46ABODUM.js +186 -0
  5. package/dist/{chunk-GJSFP4V4.js → chunk-4CGPN5SR.js} +9 -3
  6. package/dist/{chunk-GL7OANR6.js → chunk-4JCVHBYR.js} +5 -5
  7. package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
  8. package/dist/{chunk-LS2GZ6B3.js → chunk-5VHPFZRR.js} +11 -11
  9. package/dist/{chunk-73HXEN2A.js → chunk-6LDZU7KZ.js} +5 -5
  10. package/dist/{chunk-VHE2A7YV.js → chunk-6MO7MVPQ.js} +11 -11
  11. package/dist/chunk-6TTRTZXU.js +37 -0
  12. package/dist/{chunk-SMJRM3EM.js → chunk-75BIJ5PX.js} +9 -9
  13. package/dist/{chunk-MYLPCGTT.js → chunk-7QC5VORA.js} +5 -5
  14. package/dist/{chunk-TGA7DC5A.js → chunk-AX5N26KG.js} +9 -14
  15. package/dist/{chunk-QSVWJ2S2.js → chunk-BVJP43JS.js} +784 -13
  16. package/dist/{chunk-B2BNIZB2.js → chunk-CCLAMTCA.js} +8 -7
  17. package/dist/{chunk-3ZWEK4N6.js → chunk-CPCSIALL.js} +5 -5
  18. package/dist/chunk-D4VDA2TZ.js +66 -0
  19. package/dist/chunk-DZYINYAA.js +68 -0
  20. package/dist/{chunk-E355HAZP.js → chunk-E4H6V3Z4.js} +11 -11
  21. package/dist/chunk-ERSH2BQA.js +58 -0
  22. package/dist/{chunk-OKVM3CW4.js → chunk-EYVG6XQS.js} +39 -3
  23. package/dist/{chunk-5MHUYAV3.js → chunk-F2OZV76L.js} +9 -9
  24. package/dist/{chunk-O4JHL7XP.js → chunk-FHZ5QJLR.js} +5 -5
  25. package/dist/{chunk-HNRMSI3R.js → chunk-FYZCPL2Z.js} +8 -5
  26. package/dist/{chunk-22HIO2UL.js → chunk-GMW36QQF.js} +7 -7
  27. package/dist/{chunk-LD5PU7J5.js → chunk-GVZIPRAQ.js} +97 -40
  28. package/dist/{chunk-BUQN4WLU.js → chunk-HFFWZTVM.js} +9 -7
  29. package/dist/{chunk-CGLLQXZE.js → chunk-HHG4DGHC.js} +12 -11
  30. package/dist/{chunk-5W3BSMTH.js → chunk-HO5HRHFZ.js} +6 -3
  31. package/dist/{chunk-SDDES4ZN.js → chunk-HTUTYKBP.js} +12 -12
  32. package/dist/{chunk-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
  33. package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
  34. package/dist/{chunk-LA5QBRTU.js → chunk-IUXRC7ZP.js} +20 -14
  35. package/dist/{chunk-QOZ7USPD.js → chunk-JOIIWB3U.js} +159 -193
  36. package/dist/{chunk-UGVSG4YK.js → chunk-JTS4UPHJ.js} +5 -5
  37. package/dist/{chunk-24ZPBDBI.js → chunk-LV27YCGC.js} +11 -11
  38. package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
  39. package/dist/{chunk-H5STSTVK.js → chunk-OAT7ZJED.js} +20 -7
  40. package/dist/chunk-PZMRR772.js +41 -0
  41. package/dist/{chunk-SLV6CI6L.js → chunk-QJ3QPUM5.js} +5 -5
  42. package/dist/{chunk-5I4ERIIY.js → chunk-RS2R7COT.js} +9 -3
  43. package/dist/{chunk-Z2RQHZ3W.js → chunk-SOKSKSEX.js} +20 -14
  44. package/dist/chunk-T2PM5TKT.js +55 -0
  45. package/dist/{chunk-GVDRC4TL.js → chunk-TBR6SNKL.js} +5 -5
  46. package/dist/{chunk-FNXXQZUZ.js → chunk-TEOXRLQU.js} +9 -8
  47. package/dist/{chunk-MLFKBBDL.js → chunk-TQFONRJP.js} +5 -5
  48. package/dist/{chunk-WSZXPLJQ.js → chunk-TZJROXB3.js} +4 -4
  49. package/dist/{chunk-WJKBKH3Y.js → chunk-UHI6VYFX.js} +5 -5
  50. package/dist/{chunk-BM3JIFQT.js → chunk-UQUWZJVN.js} +7 -7
  51. package/dist/{chunk-2Q43C56O.js → chunk-WEU72JRD.js} +5 -5
  52. package/dist/{chunk-ARC7TW3L.js → chunk-WFNB7VRA.js} +14 -4
  53. package/dist/{chunk-C5YUUOQW.js → chunk-WYQJ4JWO.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
@@ -26,20 +26,20 @@ 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_LA5QBRTU_exports = {};
30
- __export(chunk_LA5QBRTU_exports, {
29
+ var chunk_IUXRC7ZP_exports = {};
30
+ __export(chunk_IUXRC7ZP_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig,
33
33
  getDirectUrl: () => getDirectUrl,
34
34
  getEffectiveUrl: () => getEffectiveUrl,
35
35
  resolveUrl: () => resolveUrl
36
36
  });
37
- module.exports = __toCommonJS(chunk_LA5QBRTU_exports);
38
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
39
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
+ module.exports = __toCommonJS(chunk_IUXRC7ZP_exports);
38
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
40
39
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
- var import_chunk_2Q43C56O = require("./chunk-2Q43C56O.js");
42
- var import_chunk_3ZWEK4N6 = require("./chunk-3ZWEK4N6.js");
40
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
+ var import_chunk_WEU72JRD = require("./chunk-WEU72JRD.js");
42
+ var import_chunk_CPCSIALL = require("./chunk-CPCSIALL.js");
43
43
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
44
44
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
45
45
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -64,7 +64,7 @@ ${detailsHeader} ${message}`;
64
64
  }).exhaustive();
65
65
  const errorMessageWithContext = `${constructedErrorMessage}
66
66
  [Context: getConfig]`;
67
- super((0, import_chunk_2Q43C56O.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_WEU72JRD.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -82,17 +82,23 @@ function resolveUrl(envValue) {
82
82
  return urlFromValue ?? urlEnvVarValue;
83
83
  }
84
84
  async function getConfig(options) {
85
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getConfigWasm");
85
+ const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getConfigWasm");
86
86
  debug(`Using getConfig Wasm`);
87
87
  const configEither = (0, import_function.pipe)(
88
88
  (0, import_chunk_5DBOS77Y.tryCatch)(
89
89
  () => {
90
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
91
91
  debug("Triggering a Rust panic...");
92
- import_chunk_3ZWEK4N6.prismaSchemaWasm.debug_panic();
92
+ import_chunk_CPCSIALL.prismaSchemaWasm.debug_panic();
93
93
  }
94
- const params = JSON.stringify({ prismaSchema: options.datamodel });
95
- return import_chunk_3ZWEK4N6.prismaSchemaWasm.get_config(params);
94
+ const params = JSON.stringify({
95
+ prismaSchema: options.datamodel,
96
+ datasourceOverrides: {},
97
+ ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
98
+ env: process.env
99
+ });
100
+ const data = import_chunk_CPCSIALL.prismaSchemaWasm.get_config(params);
101
+ return data;
96
102
  },
97
103
  (e) => ({
98
104
  type: "wasm-error",
@@ -150,12 +156,12 @@ async function getConfig(options) {
150
156
  return panic;
151
157
  }
152
158
  const errorOutput = e.error.message;
153
- return new GetConfigError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
159
+ return new GetConfigError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
154
160
  }).with({ type: "validation-error" }, (e) => {
155
161
  return new GetConfigError({
156
162
  _tag: "parsed",
157
163
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
158
- reason: (0, import_chunk_WSZXPLJQ.createSchemaValidationError)(e.reason),
164
+ reason: (0, import_chunk_TZJROXB3.createSchemaValidationError)(e.reason),
159
165
  message: formatErrors(e.error)
160
166
  });
161
167
  }).otherwise((e) => {
@@ -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,15 +16,15 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_UGVSG4YK_exports = {};
20
- __export(chunk_UGVSG4YK_exports, {
19
+ var chunk_JTS4UPHJ_exports = {};
20
+ __export(chunk_JTS4UPHJ_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_UGVSG4YK_exports);
23
+ module.exports = __toCommonJS(chunk_JTS4UPHJ_exports);
24
+ var import_chunk_QJ3QPUM5 = require("./chunk-QJ3QPUM5.js");
24
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
25
- var import_chunk_SLV6CI6L = require("./chunk-SLV6CI6L.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_SLV6CI6L.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_QJ3QPUM5.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -26,16 +26,16 @@ 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_24ZPBDBI_exports = {};
30
- __export(chunk_24ZPBDBI_exports, {
29
+ var chunk_LV27YCGC_exports = {};
30
+ __export(chunk_LV27YCGC_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_24ZPBDBI_exports);
35
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
34
+ module.exports = __toCommonJS(chunk_LV27YCGC_exports);
35
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_2Q43C56O = require("./chunk-2Q43C56O.js");
38
- var import_chunk_3ZWEK4N6 = require("./chunk-3ZWEK4N6.js");
37
+ var import_chunk_JTS4UPHJ = require("./chunk-JTS4UPHJ.js");
38
+ var import_chunk_FHZ5QJLR = require("./chunk-FHZ5QJLR.js");
39
39
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
41
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -58,25 +58,25 @@ ${detailsHeader} ${message}`;
58
58
  }).exhaustive();
59
59
  const errorMessageWithContext = `${constructedErrorMessage}
60
60
  [Context: getDmmf]`;
61
- super((0, import_chunk_2Q43C56O.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_JTS4UPHJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
62
  this.name = "GetDmmfError";
63
63
  }
64
64
  };
65
65
  async function getDMMF(options) {
66
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getDmmfWasm");
66
+ const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getDmmfWasm");
67
67
  debug(`Using getDmmf Wasm`);
68
68
  const dmmfPipeline = (0, import_function.pipe)(
69
69
  (0, import_chunk_5DBOS77Y.tryCatch)(
70
70
  () => {
71
71
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_3ZWEK4N6.prismaSchemaWasm.debug_panic();
73
+ import_chunk_FHZ5QJLR.prismaSchemaWasm.debug_panic();
74
74
  }
75
75
  const params = JSON.stringify({
76
76
  prismaSchema: options.datamodel,
77
77
  noColor: Boolean(process.env.NO_COLOR)
78
78
  });
79
- const data = import_chunk_3ZWEK4N6.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_FHZ5QJLR.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -124,7 +124,7 @@ async function getDMMF(options) {
124
124
  return panic;
125
125
  }
126
126
  const errorOutput = e.error.message;
127
- return new GetDmmfError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
127
+ return new GetDmmfError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
128
128
  }).with({ type: "parse-json" }, (e) => {
129
129
  debugErrorType(e);
130
130
  return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });