@prisma/internals 6.6.0-dev.29 → 6.6.0-dev.30

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 (50) hide show
  1. package/dist/{chunk-EDPM4TAT.js → chunk-2ZPYYZJB.js} +5 -5
  2. package/dist/{chunk-6NGSWOJ2.js → chunk-4VX3SCSY.js} +7 -7
  3. package/dist/{chunk-TYHSGPVG.js → chunk-5ELQCMKU.js} +5 -5
  4. package/dist/{chunk-BKFFD3K3.js → chunk-63UICP6I.js} +5 -5
  5. package/dist/{chunk-HU4MELC4.js → chunk-67ZYNR2V.js} +5 -5
  6. package/dist/{chunk-CQPAFPZS.js → chunk-6K6EHLCH.js} +28 -28
  7. package/dist/{chunk-6MKM2Y64.js → chunk-6OPHYVCL.js} +5 -5
  8. package/dist/{chunk-V3C2TMWM.js → chunk-AMOV4PS4.js} +28 -28
  9. package/dist/{chunk-PTGGTC2X.js → chunk-E7CSPTYY.js} +5 -5
  10. package/dist/{chunk-RRUPCUEK.js → chunk-EL7UDAZP.js} +8 -8
  11. package/dist/{chunk-XXDGZSJ4.js → chunk-FNA4EAZ6.js} +136 -149
  12. package/dist/{chunk-7MS6PDSK.js → chunk-HI3MXINR.js} +5 -5
  13. package/dist/{chunk-DB2ZXQNZ.js → chunk-HL5VFJX4.js} +6 -6
  14. package/dist/{chunk-TXO7SYD5.js → chunk-LJAZFFBF.js} +4 -4
  15. package/dist/{chunk-KIKNJN6E.js → chunk-LMKDA2TU.js} +5 -5
  16. package/dist/{chunk-YIFSM2JM.js → chunk-MHWH2PHS.js} +8 -8
  17. package/dist/{chunk-ZBZ7CJXT.js → chunk-MRLXY5TT.js} +5 -5
  18. package/dist/{chunk-QODB7AUQ.js → chunk-NRKSZ6TI.js} +5 -5
  19. package/dist/{chunk-LOUKMUSU.js → chunk-QP2MIEEK.js} +8 -8
  20. package/dist/{chunk-QGCWSCAS.js → chunk-U76NRW2U.js} +8 -8
  21. package/dist/{chunk-6ZNAFJ6H.js → chunk-VCLRUTLD.js} +8 -8
  22. package/dist/{chunk-Z4NZOOL2.js → chunk-X2YZOSPP.js} +7 -7
  23. package/dist/{chunk-YPUOGZEE.js → chunk-YU6PNVRN.js} +8 -8
  24. package/dist/cli/checkUnsupportedDataProxy.js +15 -15
  25. package/dist/cli/getSchema.js +19 -19
  26. package/dist/cli/hashes.js +15 -15
  27. package/dist/cli/schemaContext.js +14 -14
  28. package/dist/engine-commands/errorHelpers.js +4 -4
  29. package/dist/engine-commands/formatSchema.js +14 -14
  30. package/dist/engine-commands/getConfig.js +10 -10
  31. package/dist/engine-commands/getDmmf.js +7 -7
  32. package/dist/engine-commands/index.js +23 -23
  33. package/dist/engine-commands/lintSchema.js +8 -8
  34. package/dist/engine-commands/mergeSchemas.js +7 -7
  35. package/dist/engine-commands/validate.js +7 -7
  36. package/dist/get-generators/generatorResolvers/generatorResolvers.js +14 -14
  37. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +14 -14
  38. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +15 -15
  39. package/dist/get-generators/getGenerators.js +17 -17
  40. package/dist/index.js +45 -45
  41. package/dist/sendPanic.js +14 -14
  42. package/dist/utils/getEnvPaths.js +14 -14
  43. package/dist/utils/getVersionFromPackageJson.js +3 -3
  44. package/dist/utils/handlePanic.js +14 -14
  45. package/dist/utils/link.js +2 -2
  46. package/dist/utils/loadEnvFile.js +14 -14
  47. package/dist/utils/missingDatasource.js +3 -3
  48. package/dist/utils/missingGeneratorMessage.js +5 -5
  49. package/dist/wasm.js +4 -4
  50. package/package.json +9 -9
@@ -16,138 +16,13 @@ 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_XXDGZSJ4_exports = {};
20
- __export(chunk_XXDGZSJ4_exports, {
19
+ var chunk_FNA4EAZ6_exports = {};
20
+ __export(chunk_FNA4EAZ6_exports, {
21
21
  link: () => link
22
22
  });
23
- module.exports = __toCommonJS(chunk_XXDGZSJ4_exports);
23
+ module.exports = __toCommonJS(chunk_FNA4EAZ6_exports);
24
24
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
25
25
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
26
- var require_ansi_escapes = (0, import_chunk_2ESYSVXG.__commonJS)({
27
- "../../node_modules/.pnpm/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js"(exports, module2) {
28
- "use strict";
29
- var ansiEscapes = module2.exports;
30
- module2.exports.default = ansiEscapes;
31
- var ESC = "\x1B[";
32
- var OSC = "\x1B]";
33
- var BEL = "\x07";
34
- var SEP = ";";
35
- var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
36
- ansiEscapes.cursorTo = (x, y) => {
37
- if (typeof x !== "number") {
38
- throw new TypeError("The `x` argument is required");
39
- }
40
- if (typeof y !== "number") {
41
- return ESC + (x + 1) + "G";
42
- }
43
- return ESC + (y + 1) + ";" + (x + 1) + "H";
44
- };
45
- ansiEscapes.cursorMove = (x, y) => {
46
- if (typeof x !== "number") {
47
- throw new TypeError("The `x` argument is required");
48
- }
49
- let ret = "";
50
- if (x < 0) {
51
- ret += ESC + -x + "D";
52
- } else if (x > 0) {
53
- ret += ESC + x + "C";
54
- }
55
- if (y < 0) {
56
- ret += ESC + -y + "A";
57
- } else if (y > 0) {
58
- ret += ESC + y + "B";
59
- }
60
- return ret;
61
- };
62
- ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
63
- ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
64
- ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
65
- ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
66
- ansiEscapes.cursorLeft = ESC + "G";
67
- ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
68
- ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
69
- ansiEscapes.cursorGetPosition = ESC + "6n";
70
- ansiEscapes.cursorNextLine = ESC + "E";
71
- ansiEscapes.cursorPrevLine = ESC + "F";
72
- ansiEscapes.cursorHide = ESC + "?25l";
73
- ansiEscapes.cursorShow = ESC + "?25h";
74
- ansiEscapes.eraseLines = (count) => {
75
- let clear = "";
76
- for (let i = 0; i < count; i++) {
77
- clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
78
- }
79
- if (count) {
80
- clear += ansiEscapes.cursorLeft;
81
- }
82
- return clear;
83
- };
84
- ansiEscapes.eraseEndLine = ESC + "K";
85
- ansiEscapes.eraseStartLine = ESC + "1K";
86
- ansiEscapes.eraseLine = ESC + "2K";
87
- ansiEscapes.eraseDown = ESC + "J";
88
- ansiEscapes.eraseUp = ESC + "1J";
89
- ansiEscapes.eraseScreen = ESC + "2J";
90
- ansiEscapes.scrollUp = ESC + "S";
91
- ansiEscapes.scrollDown = ESC + "T";
92
- ansiEscapes.clearScreen = "\x1Bc";
93
- ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : (
94
- // 1. Erases the screen (Only done in case `2` is not supported)
95
- // 2. Erases the whole screen including scrollback buffer
96
- // 3. Moves cursor to the top-left position
97
- // More info: https://www.real-world-systems.com/docs/ANSIcode.html
98
- `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`
99
- );
100
- ansiEscapes.beep = BEL;
101
- ansiEscapes.link = (text, url) => {
102
- return [
103
- OSC,
104
- "8",
105
- SEP,
106
- SEP,
107
- url,
108
- BEL,
109
- text,
110
- OSC,
111
- "8",
112
- SEP,
113
- SEP,
114
- BEL
115
- ].join("");
116
- };
117
- ansiEscapes.image = (buffer, options = {}) => {
118
- let ret = `${OSC}1337;File=inline=1`;
119
- if (options.width) {
120
- ret += `;width=${options.width}`;
121
- }
122
- if (options.height) {
123
- ret += `;height=${options.height}`;
124
- }
125
- if (options.preserveAspectRatio === false) {
126
- ret += ";preserveAspectRatio=0";
127
- }
128
- return ret + ":" + buffer.toString("base64") + BEL;
129
- };
130
- ansiEscapes.iTerm = {
131
- setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
132
- annotation: (message, options = {}) => {
133
- let ret = `${OSC}1337;`;
134
- const hasX = typeof options.x !== "undefined";
135
- const hasY = typeof options.y !== "undefined";
136
- if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
137
- throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
138
- }
139
- message = message.replace(/\|/g, "");
140
- ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
141
- if (options.length > 0) {
142
- ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
143
- } else {
144
- ret += message;
145
- }
146
- return ret + BEL;
147
- }
148
- };
149
- }
150
- });
151
26
  var require_has_flag = (0, import_chunk_2ESYSVXG.__commonJS)({
152
27
  "../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module2) {
153
28
  "use strict";
@@ -339,29 +214,141 @@ var require_supports_hyperlinks = (0, import_chunk_2ESYSVXG.__commonJS)({
339
214
  };
340
215
  }
341
216
  });
342
- var require_terminal_link = (0, import_chunk_2ESYSVXG.__commonJS)({
343
- "../../node_modules/.pnpm/terminal-link@2.1.1/node_modules/terminal-link/index.js"(exports, module2) {
344
- "use strict";
345
- var ansiEscapes = require_ansi_escapes();
346
- var supportsHyperlinks = require_supports_hyperlinks();
347
- var terminalLink2 = (text, url, { target = "stdout", ...options } = {}) => {
348
- if (!supportsHyperlinks[target]) {
349
- if (options.fallback === false) {
350
- return text;
351
- }
352
- return typeof options.fallback === "function" ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`;
353
- }
354
- return ansiEscapes.link(text, url);
355
- };
356
- module2.exports = (text, url, options = {}) => terminalLink2(text, url, options);
357
- module2.exports.stderr = (text, url, options = {}) => terminalLink2(text, url, { target: "stderr", ...options });
358
- module2.exports.isSupported = supportsHyperlinks.stdout;
359
- module2.exports.stderr.isSupported = supportsHyperlinks.stderr;
217
+ var ESC = "\x1B[";
218
+ var OSC = "\x1B]";
219
+ var BEL = "\x07";
220
+ var SEP = ";";
221
+ var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
222
+ var ansiEscapes = {};
223
+ ansiEscapes.cursorTo = (x, y) => {
224
+ if (typeof x !== "number") {
225
+ throw new TypeError("The `x` argument is required");
360
226
  }
361
- });
362
- var import_terminal_link = (0, import_chunk_2ESYSVXG.__toESM)(require_terminal_link());
227
+ if (typeof y !== "number") {
228
+ return ESC + (x + 1) + "G";
229
+ }
230
+ return ESC + (y + 1) + ";" + (x + 1) + "H";
231
+ };
232
+ ansiEscapes.cursorMove = (x, y) => {
233
+ if (typeof x !== "number") {
234
+ throw new TypeError("The `x` argument is required");
235
+ }
236
+ let returnValue = "";
237
+ if (x < 0) {
238
+ returnValue += ESC + -x + "D";
239
+ } else if (x > 0) {
240
+ returnValue += ESC + x + "C";
241
+ }
242
+ if (y < 0) {
243
+ returnValue += ESC + -y + "A";
244
+ } else if (y > 0) {
245
+ returnValue += ESC + y + "B";
246
+ }
247
+ return returnValue;
248
+ };
249
+ ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
250
+ ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
251
+ ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
252
+ ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
253
+ ansiEscapes.cursorLeft = ESC + "G";
254
+ ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
255
+ ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
256
+ ansiEscapes.cursorGetPosition = ESC + "6n";
257
+ ansiEscapes.cursorNextLine = ESC + "E";
258
+ ansiEscapes.cursorPrevLine = ESC + "F";
259
+ ansiEscapes.cursorHide = ESC + "?25l";
260
+ ansiEscapes.cursorShow = ESC + "?25h";
261
+ ansiEscapes.eraseLines = (count) => {
262
+ let clear = "";
263
+ for (let i = 0; i < count; i++) {
264
+ clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
265
+ }
266
+ if (count) {
267
+ clear += ansiEscapes.cursorLeft;
268
+ }
269
+ return clear;
270
+ };
271
+ ansiEscapes.eraseEndLine = ESC + "K";
272
+ ansiEscapes.eraseStartLine = ESC + "1K";
273
+ ansiEscapes.eraseLine = ESC + "2K";
274
+ ansiEscapes.eraseDown = ESC + "J";
275
+ ansiEscapes.eraseUp = ESC + "1J";
276
+ ansiEscapes.eraseScreen = ESC + "2J";
277
+ ansiEscapes.scrollUp = ESC + "S";
278
+ ansiEscapes.scrollDown = ESC + "T";
279
+ ansiEscapes.clearScreen = "\x1Bc";
280
+ ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : (
281
+ // 1. Erases the screen (Only done in case `2` is not supported)
282
+ // 2. Erases the whole screen including scrollback buffer
283
+ // 3. Moves cursor to the top-left position
284
+ // More info: https://www.real-world-systems.com/docs/ANSIcode.html
285
+ `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`
286
+ );
287
+ ansiEscapes.beep = BEL;
288
+ ansiEscapes.link = (text, url) => {
289
+ return [
290
+ OSC,
291
+ "8",
292
+ SEP,
293
+ SEP,
294
+ url,
295
+ BEL,
296
+ text,
297
+ OSC,
298
+ "8",
299
+ SEP,
300
+ SEP,
301
+ BEL
302
+ ].join("");
303
+ };
304
+ ansiEscapes.image = (buffer, options = {}) => {
305
+ let returnValue = `${OSC}1337;File=inline=1`;
306
+ if (options.width) {
307
+ returnValue += `;width=${options.width}`;
308
+ }
309
+ if (options.height) {
310
+ returnValue += `;height=${options.height}`;
311
+ }
312
+ if (options.preserveAspectRatio === false) {
313
+ returnValue += ";preserveAspectRatio=0";
314
+ }
315
+ return returnValue + ":" + buffer.toString("base64") + BEL;
316
+ };
317
+ ansiEscapes.iTerm = {
318
+ setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
319
+ annotation: (message, options = {}) => {
320
+ let returnValue = `${OSC}1337;`;
321
+ const hasX = typeof options.x !== "undefined";
322
+ const hasY = typeof options.y !== "undefined";
323
+ if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
324
+ throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
325
+ }
326
+ message = message.replace(/\|/g, "");
327
+ returnValue += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
328
+ if (options.length > 0) {
329
+ returnValue += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
330
+ } else {
331
+ returnValue += message;
332
+ }
333
+ return returnValue + BEL;
334
+ }
335
+ };
336
+ var ansi_escapes_default = ansiEscapes;
337
+ var import_supports_hyperlinks = (0, import_chunk_2ESYSVXG.__toESM)(require_supports_hyperlinks(), 1);
338
+ function terminalLink(text, url, { target = "stdout", ...options } = {}) {
339
+ if (!import_supports_hyperlinks.default[target]) {
340
+ if (options.fallback === false) {
341
+ return text;
342
+ }
343
+ return typeof options.fallback === "function" ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`;
344
+ }
345
+ return ansi_escapes_default.link(text, url);
346
+ }
347
+ terminalLink.isSupported = import_supports_hyperlinks.default.stdout;
348
+ terminalLink.stderr = (text, url, options = {}) => terminalLink(text, url, { target: "stderr", ...options });
349
+ terminalLink.stderr.isSupported = import_supports_hyperlinks.default.stderr;
363
350
  function link(url) {
364
- return (0, import_terminal_link.default)(url, url, {
351
+ return terminalLink(url, url, {
365
352
  fallback: (url2) => (0, import_chunk_PG5FDKSF.underline)(url2)
366
353
  });
367
354
  }
@@ -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_7MS6PDSK_exports = {};
20
- __export(chunk_7MS6PDSK_exports, {
19
+ var chunk_HI3MXINR_exports = {};
20
+ __export(chunk_HI3MXINR_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_7MS6PDSK_exports);
24
- var import_chunk_BKFFD3K3 = require("./chunk-BKFFD3K3.js");
23
+ module.exports = __toCommonJS(chunk_HI3MXINR_exports);
24
+ var import_chunk_MRLXY5TT = require("./chunk-MRLXY5TT.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_BKFFD3K3.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_MRLXY5TT.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,14 +16,14 @@ 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_DB2ZXQNZ_exports = {};
20
- __export(chunk_DB2ZXQNZ_exports, {
19
+ var chunk_HL5VFJX4_exports = {};
20
+ __export(chunk_HL5VFJX4_exports, {
21
21
  missingGeneratorMessage: () => missingGeneratorMessage,
22
22
  missingModelMessage: () => missingModelMessage,
23
23
  missingModelMessageMongoDB: () => missingModelMessageMongoDB
24
24
  });
25
- module.exports = __toCommonJS(chunk_DB2ZXQNZ_exports);
26
- var import_chunk_XXDGZSJ4 = require("./chunk-XXDGZSJ4.js");
25
+ module.exports = __toCommonJS(chunk_HL5VFJX4_exports);
26
+ var import_chunk_FNA4EAZ6 = require("./chunk-FNA4EAZ6.js");
27
27
  var import_chunk_VNIE2AZB = require("./chunk-VNIE2AZB.js");
28
28
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
29
29
  var missingGeneratorMessage = `
@@ -52,7 +52,7 @@ ${(0, import_chunk_PG5FDKSF.bold)(
52
52
  )}
53
53
 
54
54
  More information in our documentation:
55
- ${(0, import_chunk_XXDGZSJ4.link)("https://pris.ly/d/prisma-schema")}
55
+ ${(0, import_chunk_FNA4EAZ6.link)("https://pris.ly/d/prisma-schema")}
56
56
  `;
57
57
  var missingModelMessageMongoDB = `
58
58
  You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
@@ -69,5 +69,5 @@ ${(0, import_chunk_PG5FDKSF.bold)(
69
69
  )}
70
70
 
71
71
  More information in our documentation:
72
- ${(0, import_chunk_XXDGZSJ4.link)("https://pris.ly/d/prisma-schema")}
72
+ ${(0, import_chunk_FNA4EAZ6.link)("https://pris.ly/d/prisma-schema")}
73
73
  `;
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_TXO7SYD5_exports = {};
20
- __export(chunk_TXO7SYD5_exports, {
19
+ var chunk_LJAZFFBF_exports = {};
20
+ __export(chunk_LJAZFFBF_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_TXO7SYD5_exports);
23
+ module.exports = __toCommonJS(chunk_LJAZFFBF_exports);
24
24
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
25
25
  var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
26
26
  "package.json"(exports, module2) {
@@ -96,7 +96,7 @@ var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
96
96
  "strip-indent": "4.0.0",
97
97
  "temp-dir": "2.0.0",
98
98
  tempy: "1.0.1",
99
- "terminal-link": "2.1.1",
99
+ "terminal-link": "3.0.0",
100
100
  tmp: "0.2.3",
101
101
  "ts-node": "10.9.2",
102
102
  "ts-pattern": "5.6.2",
@@ -16,21 +16,21 @@ 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_KIKNJN6E_exports = {};
20
- __export(chunk_KIKNJN6E_exports, {
19
+ var chunk_LMKDA2TU_exports = {};
20
+ __export(chunk_LMKDA2TU_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_KIKNJN6E_exports);
27
+ module.exports = __toCommonJS(chunk_LMKDA2TU_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_QODB7AUQ = require("./chunk-QODB7AUQ.js");
29
+ var import_chunk_6OPHYVCL = require("./chunk-6OPHYVCL.js");
30
30
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
31
31
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
32
32
  function lintSchema({ schemas }) {
33
- const lintResult = import_chunk_QODB7AUQ.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_6OPHYVCL.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }
@@ -26,22 +26,22 @@ 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_YIFSM2JM_exports = {};
30
- __export(chunk_YIFSM2JM_exports, {
29
+ var chunk_MHWH2PHS_exports = {};
30
+ __export(chunk_MHWH2PHS_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_YIFSM2JM_exports);
37
+ module.exports = __toCommonJS(chunk_MHWH2PHS_exports);
38
38
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
39
39
  var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
40
40
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
41
41
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
42
- var import_chunk_7MS6PDSK = require("./chunk-7MS6PDSK.js");
42
+ var import_chunk_67ZYNR2V = require("./chunk-67ZYNR2V.js");
43
43
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
44
- var import_chunk_QODB7AUQ = require("./chunk-QODB7AUQ.js");
44
+ var import_chunk_6OPHYVCL = require("./chunk-6OPHYVCL.js");
45
45
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
46
46
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
47
47
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
65
65
  }).exhaustive();
66
66
  const errorMessageWithContext = `${constructedErrorMessage}
67
67
  [Context: getConfig]`;
68
- super((0, import_chunk_7MS6PDSK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
+ super((0, import_chunk_67ZYNR2V.addVersionDetailsToErrorMessage)(errorMessageWithContext));
69
69
  this.name = "GetConfigError";
70
70
  }
71
71
  };
@@ -90,7 +90,7 @@ async function getConfig(options) {
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_QODB7AUQ.prismaSchemaWasm.debug_panic();
93
+ import_chunk_6OPHYVCL.prismaSchemaWasm.debug_panic();
94
94
  }
95
95
  const params = JSON.stringify({
96
96
  prismaSchema: options.datamodel,
@@ -98,7 +98,7 @@ async function getConfig(options) {
98
98
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
99
99
  env: process.env
100
100
  });
101
- const data = import_chunk_QODB7AUQ.prismaSchemaWasm.get_config(params);
101
+ const data = import_chunk_6OPHYVCL.prismaSchemaWasm.get_config(params);
102
102
  return data;
103
103
  },
104
104
  (e) => ({
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_ZBZ7CJXT_exports = {};
20
- __export(chunk_ZBZ7CJXT_exports, {
19
+ var chunk_MRLXY5TT_exports = {};
20
+ __export(chunk_MRLXY5TT_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_ZBZ7CJXT_exports);
24
- var import_chunk_PTGGTC2X = require("./chunk-PTGGTC2X.js");
25
- var packageJson = (0, import_chunk_PTGGTC2X.require_package)();
23
+ module.exports = __toCommonJS(chunk_MRLXY5TT_exports);
24
+ var import_chunk_LJAZFFBF = require("./chunk-LJAZFFBF.js");
25
+ var packageJson = (0, import_chunk_LJAZFFBF.require_package)();
26
26
  var version = packageJson.version;
@@ -26,14 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_QODB7AUQ_exports = {};
30
- __export(chunk_QODB7AUQ_exports, {
29
+ var chunk_NRKSZ6TI_exports = {};
30
+ __export(chunk_NRKSZ6TI_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  wasm_exports: () => wasm_exports
34
34
  });
35
- module.exports = __toCommonJS(chunk_QODB7AUQ_exports);
36
- var import_chunk_TXO7SYD5 = require("./chunk-TXO7SYD5.js");
35
+ module.exports = __toCommonJS(chunk_NRKSZ6TI_exports);
36
+ var import_chunk_LJAZFFBF = require("./chunk-LJAZFFBF.js");
37
37
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
38
38
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
39
39
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -42,6 +42,6 @@ var wasm_exports = {};
42
42
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
43
43
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
44
44
  });
45
- var { dependencies } = (0, import_chunk_TXO7SYD5.require_package)();
45
+ var { dependencies } = (0, import_chunk_LJAZFFBF.require_package)();
46
46
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
@@ -26,18 +26,18 @@ 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_LOUKMUSU_exports = {};
30
- __export(chunk_LOUKMUSU_exports, {
29
+ var chunk_QP2MIEEK_exports = {};
30
+ __export(chunk_QP2MIEEK_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_LOUKMUSU_exports);
34
+ module.exports = __toCommonJS(chunk_QP2MIEEK_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
37
37
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
38
- var import_chunk_7MS6PDSK = require("./chunk-7MS6PDSK.js");
38
+ var import_chunk_67ZYNR2V = require("./chunk-67ZYNR2V.js");
39
39
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
- var import_chunk_QODB7AUQ = require("./chunk-QODB7AUQ.js");
40
+ var import_chunk_6OPHYVCL = require("./chunk-6OPHYVCL.js");
41
41
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
42
42
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: getDmmf]`;
63
- super((0, import_chunk_7MS6PDSK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_67ZYNR2V.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "GetDmmfError";
65
65
  }
66
66
  };
@@ -90,13 +90,13 @@ async function getDMMF(options) {
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_QODB7AUQ.prismaSchemaWasm.debug_panic();
93
+ import_chunk_6OPHYVCL.prismaSchemaWasm.debug_panic();
94
94
  }
95
95
  const params = JSON.stringify({
96
96
  prismaSchema: datamodel,
97
97
  noColor: Boolean(process.env.NO_COLOR)
98
98
  });
99
- const data = import_chunk_QODB7AUQ.prismaSchemaWasm.get_dmmf(params);
99
+ const data = import_chunk_6OPHYVCL.prismaSchemaWasm.get_dmmf(params);
100
100
  return data;
101
101
  },
102
102
  (e) => ({
@@ -26,18 +26,18 @@ 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_QGCWSCAS_exports = {};
30
- __export(chunk_QGCWSCAS_exports, {
29
+ var chunk_U76NRW2U_exports = {};
30
+ __export(chunk_U76NRW2U_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_QGCWSCAS_exports);
34
+ module.exports = __toCommonJS(chunk_U76NRW2U_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
37
37
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
38
- var import_chunk_HU4MELC4 = require("./chunk-HU4MELC4.js");
38
+ var import_chunk_HI3MXINR = require("./chunk-HI3MXINR.js");
39
39
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
- var import_chunk_6MKM2Y64 = require("./chunk-6MKM2Y64.js");
40
+ var import_chunk_NRKSZ6TI = require("./chunk-NRKSZ6TI.js");
41
41
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
42
42
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: getDmmf]`;
63
- super((0, import_chunk_HU4MELC4.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_HI3MXINR.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "GetDmmfError";
65
65
  }
66
66
  };
@@ -90,13 +90,13 @@ async function getDMMF(options) {
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_6MKM2Y64.prismaSchemaWasm.debug_panic();
93
+ import_chunk_NRKSZ6TI.prismaSchemaWasm.debug_panic();
94
94
  }
95
95
  const params = JSON.stringify({
96
96
  prismaSchema: datamodel,
97
97
  noColor: Boolean(process.env.NO_COLOR)
98
98
  });
99
- const data = import_chunk_6MKM2Y64.prismaSchemaWasm.get_dmmf(params);
99
+ const data = import_chunk_NRKSZ6TI.prismaSchemaWasm.get_dmmf(params);
100
100
  return data;
101
101
  },
102
102
  (e) => ({
@@ -26,19 +26,19 @@ 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_6ZNAFJ6H_exports = {};
30
- __export(chunk_6ZNAFJ6H_exports, {
29
+ var chunk_VCLRUTLD_exports = {};
30
+ __export(chunk_VCLRUTLD_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_6ZNAFJ6H_exports);
34
+ module.exports = __toCommonJS(chunk_VCLRUTLD_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
37
37
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
38
38
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
39
- var import_chunk_HU4MELC4 = require("./chunk-HU4MELC4.js");
39
+ var import_chunk_HI3MXINR = require("./chunk-HI3MXINR.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
- var import_chunk_6MKM2Y64 = require("./chunk-6MKM2Y64.js");
41
+ var import_chunk_NRKSZ6TI = require("./chunk-NRKSZ6TI.js");
42
42
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: validate]`;
63
- super((0, import_chunk_HU4MELC4.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_HI3MXINR.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "ValidateError";
65
65
  }
66
66
  };
@@ -72,13 +72,13 @@ function validate(options) {
72
72
  () => {
73
73
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
74
74
  debug("Triggering a Rust panic...");
75
- import_chunk_6MKM2Y64.prismaSchemaWasm.debug_panic();
75
+ import_chunk_NRKSZ6TI.prismaSchemaWasm.debug_panic();
76
76
  }
77
77
  const params = JSON.stringify({
78
78
  prismaSchema: options.schemas,
79
79
  noColor: Boolean(process.env.NO_COLOR)
80
80
  });
81
- import_chunk_6MKM2Y64.prismaSchemaWasm.validate(params);
81
+ import_chunk_NRKSZ6TI.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  type: "wasm-error",