@prisma/internals 6.20.0-integration-next.18 → 6.20.0-integration-next.19

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 (70) hide show
  1. package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
  2. package/dist/{chunk-MLFKBBDL.js → chunk-5BRXEOYH.js} +5 -5
  3. package/dist/{chunk-R7L5ID34.js → chunk-63BLJTNP.js} +8 -8
  4. package/dist/{chunk-XHZ4TZUD.js → chunk-6XDWK3XF.js} +8 -8
  5. package/dist/{chunk-QWXKO4HW.js → chunk-AYH4F3GT.js} +5 -5
  6. package/dist/{chunk-7SF6QSKE.js → chunk-BGMZPA2F.js} +5 -5
  7. package/dist/{chunk-QSVWJ2S2.js → chunk-BXIKQUP5.js} +784 -13
  8. package/dist/{chunk-HNRMSI3R.js → chunk-FASYSGWP.js} +5 -5
  9. package/dist/{chunk-LHTJCI5U.js → chunk-GZLJZGHX.js} +7 -7
  10. package/dist/{chunk-3XC6WKUH.js → chunk-HHG4DGHC.js} +12 -11
  11. package/dist/{chunk-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
  12. package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
  13. package/dist/{chunk-CIGXHXCG.js → chunk-K4IC7NPI.js} +7 -7
  14. package/dist/{chunk-X4GBU23V.js → chunk-KV5M6BWD.js} +8 -8
  15. package/dist/{chunk-OPJUL5XV.js → chunk-L3CA44J3.js} +8 -8
  16. package/dist/{chunk-6WBK35XU.js → chunk-LC7WGKF4.js} +8 -8
  17. package/dist/{chunk-H5STSTVK.js → chunk-MNP6VO5F.js} +5 -5
  18. package/dist/{chunk-HQDG2BBX.js → chunk-NHM75P2J.js} +5 -5
  19. package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
  20. package/dist/{chunk-OV3PWX3C.js → chunk-PHCC4RQK.js} +7 -7
  21. package/dist/{chunk-5MHUYAV3.js → chunk-PKOQQT7I.js} +5 -5
  22. package/dist/{chunk-SMJRM3EM.js → chunk-Q5XW7CMJ.js} +9 -9
  23. package/dist/{chunk-D4EKBLXK.js → chunk-QIVZBMOD.js} +5 -5
  24. package/dist/{chunk-XIYRAW5R.js → chunk-TRAG7WPX.js} +5 -5
  25. package/dist/{chunk-2Z7PH5WX.js → chunk-UHJM7SPW.js} +5 -5
  26. package/dist/{chunk-SL44O4OA.js → chunk-UIA6QRTF.js} +5 -5
  27. package/dist/{chunk-G2X4QA7T.js → chunk-UJ4FJEBF.js} +6 -6
  28. package/dist/{chunk-AFGR5FNL.js → chunk-UUZVVTOP.js} +5 -5
  29. package/dist/{chunk-UYBRAYI3.js → chunk-UWRMCDMU.js} +26 -26
  30. package/dist/{chunk-PGLQ2MLS.js → chunk-UYMUOW4P.js} +26 -26
  31. package/dist/{chunk-22HIO2UL.js → chunk-V6DWK6TN.js} +7 -7
  32. package/dist/{chunk-7VXI23OO.js → chunk-VEEF3RT5.js} +5 -5
  33. package/dist/{chunk-U4HDQIEL.js → chunk-X7AYETVS.js} +8 -8
  34. package/dist/{chunk-34PI6TZD.js → chunk-XKNMUP66.js} +5 -5
  35. package/dist/{chunk-JKRK7KSQ.js → chunk-XV3WHAKH.js} +5 -5
  36. package/dist/{chunk-T2VFAHGM.js → chunk-XZDSAQEV.js} +7 -7
  37. package/dist/{chunk-QOZ7USPD.js → chunk-YV4IFLW4.js} +33 -68
  38. package/dist/{chunk-4B7YT7EE.js → chunk-YXCPS3WU.js} +6 -6
  39. package/dist/cli/checkUnsupportedDataProxy.js +30 -31
  40. package/dist/cli/schemaContext.js +31 -32
  41. package/dist/engine-commands/errorHelpers.js +4 -4
  42. package/dist/engine-commands/formatSchema.js +29 -30
  43. package/dist/engine-commands/getConfig.js +7 -7
  44. package/dist/engine-commands/getDmmf.js +7 -7
  45. package/dist/engine-commands/getEngineVersion.js +5 -6
  46. package/dist/engine-commands/getEnginesInfo.js +6 -7
  47. package/dist/engine-commands/index.js +39 -40
  48. package/dist/engine-commands/lintSchema.js +8 -8
  49. package/dist/engine-commands/mergeSchemas.js +7 -7
  50. package/dist/engine-commands/validate.js +7 -7
  51. package/dist/errorReporting.js +6 -6
  52. package/dist/get-generators/getGenerators.js +32 -33
  53. package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -4
  54. package/dist/getPackedPackage.js +3 -4
  55. package/dist/index.js +63 -64
  56. package/dist/{multipart-parser-UV3WZSWW.js → multipart-parser-3AFJFP6K.js} +6 -6
  57. package/dist/resolveBinary.js +7 -8
  58. package/dist/schemaEngineCommands.js +8 -9
  59. package/dist/sendPanic.js +4 -4
  60. package/dist/utils/drawBox.js +2 -2
  61. package/dist/utils/fs-functional.js +10 -10
  62. package/dist/utils/fs-utils.js +8 -8
  63. package/dist/utils/getVersionFromPackageJson.js +3 -3
  64. package/dist/utils/handlePanic.js +6 -6
  65. package/dist/utils/link.js +2 -2
  66. package/dist/utils/missingDatasource.js +3 -3
  67. package/dist/utils/missingGeneratorMessage.js +5 -5
  68. package/dist/wasm.js +5 -5
  69. package/package.json +13 -13
  70. package/dist/chunk-DYV47NUW.js +0 -796
@@ -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_MEOOYUIZ_exports = {};
30
- __export(chunk_MEOOYUIZ_exports, {
29
+ var chunk_5AI4FIZ3_exports = {};
30
+ __export(chunk_5AI4FIZ3_exports, {
31
31
  ErrorKind: () => ErrorKind,
32
32
  createErrorReport: () => createErrorReport,
33
33
  makeErrorReportCompleted: () => makeErrorReportCompleted,
34
34
  uploadZip: () => uploadZip
35
35
  });
36
- module.exports = __toCommonJS(chunk_MEOOYUIZ_exports);
37
- var import_chunk_KNNTV7IN = require("./chunk-KNNTV7IN.js");
36
+ module.exports = __toCommonJS(chunk_5AI4FIZ3_exports);
37
+ var import_chunk_NVNI2SRU = require("./chunk-NVNI2SRU.js");
38
38
  var import_fetch_engine = require("@prisma/fetch-engine");
39
39
  var import_node_http = __toESM(require("node:http"));
40
40
  var import_node_https = __toESM(require("node:https"));
@@ -151,8 +151,8 @@ var Body = class {
151
151
  } else if (ArrayBuffer.isView(body)) {
152
152
  body = import_node_buffer2.Buffer.from(body.buffer, body.byteOffset, body.byteLength);
153
153
  } else if (body instanceof import_node_stream2.default) {
154
- } else if (body instanceof import_chunk_KNNTV7IN.FormData) {
155
- body = (0, import_chunk_KNNTV7IN.formDataToBlob)(body);
154
+ } else if (body instanceof import_chunk_NVNI2SRU.FormData) {
155
+ body = (0, import_chunk_NVNI2SRU.formDataToBlob)(body);
156
156
  boundary = body.type.split("=")[1];
157
157
  } else {
158
158
  body = import_node_buffer2.Buffer.from(String(body));
@@ -196,14 +196,14 @@ var Body = class {
196
196
  async formData() {
197
197
  const ct = this.headers.get("content-type");
198
198
  if (ct.startsWith("application/x-www-form-urlencoded")) {
199
- const formData = new import_chunk_KNNTV7IN.FormData();
199
+ const formData = new import_chunk_NVNI2SRU.FormData();
200
200
  const parameters = new URLSearchParams(await this.text());
201
201
  for (const [name, value] of parameters) {
202
202
  formData.append(name, value);
203
203
  }
204
204
  return formData;
205
205
  }
206
- const { toFormData } = await import("./multipart-parser-UV3WZSWW.js");
206
+ const { toFormData } = await import("./multipart-parser-3AFJFP6K.js");
207
207
  return toFormData(this.body, ct);
208
208
  }
209
209
  /**
@@ -214,7 +214,7 @@ var Body = class {
214
214
  async blob() {
215
215
  const ct = this.headers && this.headers.get("content-type") || this[INTERNALS].body && this[INTERNALS].body.type || "";
216
216
  const buf = await this.arrayBuffer();
217
- return new import_chunk_KNNTV7IN.fetch_blob_default([buf], {
217
+ return new import_chunk_NVNI2SRU.fetch_blob_default([buf], {
218
218
  type: ct
219
219
  });
220
220
  }
@@ -342,7 +342,7 @@ var extractContentType = (body, request2) => {
342
342
  if (import_node_buffer2.Buffer.isBuffer(body) || import_node_util.types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
343
343
  return null;
344
344
  }
345
- if (body instanceof import_chunk_KNNTV7IN.FormData) {
345
+ if (body instanceof import_chunk_NVNI2SRU.FormData) {
346
346
  return `multipart/form-data; boundary=${request2[INTERNALS].boundary}`;
347
347
  }
348
348
  if (body && typeof body.getBoundary === "function") {
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_MLFKBBDL_exports = {};
30
- __export(chunk_MLFKBBDL_exports, {
29
+ var chunk_5BRXEOYH_exports = {};
30
+ __export(chunk_5BRXEOYH_exports, {
31
31
  createDirIfNotExists: () => createDirIfNotExists,
32
32
  fs_utils_exports: () => fs_utils_exports,
33
33
  getFilesInDir: () => getFilesInDir,
@@ -36,9 +36,9 @@ __export(chunk_MLFKBBDL_exports, {
36
36
  removeEmptyDirs: () => removeEmptyDirs,
37
37
  writeFile: () => writeFile
38
38
  });
39
- module.exports = __toCommonJS(chunk_MLFKBBDL_exports);
39
+ module.exports = __toCommonJS(chunk_5BRXEOYH_exports);
40
40
  var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
41
- var import_chunk_QOZ7USPD = require("./chunk-QOZ7USPD.js");
41
+ var import_chunk_YV4IFLW4 = require("./chunk-YV4IFLW4.js");
42
42
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
43
43
  var import_promises = __toESM(require("fs/promises"));
44
44
  var import_path = __toESM(require("path"));
@@ -51,7 +51,7 @@ var fs_utils_exports = {};
51
51
  removeEmptyDirs: () => removeEmptyDirs,
52
52
  writeFile: () => writeFile
53
53
  });
54
- var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_QOZ7USPD.require_globby)());
54
+ var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_YV4IFLW4.require_globby)());
55
55
  function createDirIfNotExists(dir) {
56
56
  return import_promises.default.mkdir(dir, { recursive: true });
57
57
  }
@@ -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_R7L5ID34_exports = {};
30
- __export(chunk_R7L5ID34_exports, {
29
+ var chunk_63BLJTNP_exports = {};
30
+ __export(chunk_63BLJTNP_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_R7L5ID34_exports);
34
+ module.exports = __toCommonJS(chunk_63BLJTNP_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_7VXI23OO = require("./chunk-7VXI23OO.js");
38
- var import_chunk_D4EKBLXK = require("./chunk-D4EKBLXK.js");
37
+ var import_chunk_UUZVVTOP = require("./chunk-UUZVVTOP.js");
38
+ var import_chunk_XV3WHAKH = require("./chunk-XV3WHAKH.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,7 +58,7 @@ ${detailsHeader} ${message}`;
58
58
  }).exhaustive();
59
59
  const errorMessageWithContext = `${constructedErrorMessage}
60
60
  [Context: getDmmf]`;
61
- super((0, import_chunk_7VXI23OO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_UUZVVTOP.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
62
  this.name = "GetDmmfError";
63
63
  }
64
64
  };
@@ -70,13 +70,13 @@ async function getDMMF(options) {
70
70
  () => {
71
71
  if (process.env.FORCE_PANIC_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_D4EKBLXK.prismaSchemaWasm.debug_panic();
73
+ import_chunk_XV3WHAKH.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_D4EKBLXK.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_XV3WHAKH.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -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_XHZ4TZUD_exports = {};
30
- __export(chunk_XHZ4TZUD_exports, {
29
+ var chunk_6XDWK3XF_exports = {};
30
+ __export(chunk_6XDWK3XF_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig
33
33
  });
34
- module.exports = __toCommonJS(chunk_XHZ4TZUD_exports);
34
+ module.exports = __toCommonJS(chunk_6XDWK3XF_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_7VXI23OO = require("./chunk-7VXI23OO.js");
39
- var import_chunk_D4EKBLXK = require("./chunk-D4EKBLXK.js");
38
+ var import_chunk_UUZVVTOP = require("./chunk-UUZVVTOP.js");
39
+ var import_chunk_XV3WHAKH = require("./chunk-XV3WHAKH.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -61,7 +61,7 @@ ${detailsHeader} ${message}`;
61
61
  }).exhaustive();
62
62
  const errorMessageWithContext = `${constructedErrorMessage}
63
63
  [Context: getConfig]`;
64
- super((0, import_chunk_7VXI23OO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
+ super((0, import_chunk_UUZVVTOP.addVersionDetailsToErrorMessage)(errorMessageWithContext));
65
65
  this.name = "GetConfigError";
66
66
  }
67
67
  };
@@ -73,10 +73,10 @@ async function getConfig(options) {
73
73
  () => {
74
74
  if (process.env.FORCE_PANIC_GET_CONFIG) {
75
75
  debug("Triggering a Rust panic...");
76
- import_chunk_D4EKBLXK.prismaSchemaWasm.debug_panic();
76
+ import_chunk_XV3WHAKH.prismaSchemaWasm.debug_panic();
77
77
  }
78
78
  const params = JSON.stringify({ prismaSchema: options.datamodel });
79
- return import_chunk_D4EKBLXK.prismaSchemaWasm.get_config(params);
79
+ return import_chunk_XV3WHAKH.prismaSchemaWasm.get_config(params);
80
80
  },
81
81
  (e) => ({
82
82
  type: "wasm-error",
@@ -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_QWXKO4HW_exports = {};
20
- __export(chunk_QWXKO4HW_exports, {
19
+ var chunk_AYH4F3GT_exports = {};
20
+ __export(chunk_AYH4F3GT_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_QWXKO4HW_exports);
24
- var import_chunk_HQDG2BBX = require("./chunk-HQDG2BBX.js");
25
- var packageJson = (0, import_chunk_HQDG2BBX.require_package)();
23
+ module.exports = __toCommonJS(chunk_AYH4F3GT_exports);
24
+ var import_chunk_NHM75P2J = require("./chunk-NHM75P2J.js");
25
+ var packageJson = (0, import_chunk_NHM75P2J.require_package)();
26
26
  var version = packageJson.version;
@@ -16,12 +16,12 @@ 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_7SF6QSKE_exports = {};
20
- __export(chunk_7SF6QSKE_exports, {
19
+ var chunk_BGMZPA2F_exports = {};
20
+ __export(chunk_BGMZPA2F_exports, {
21
21
  missingDatasource: () => missingDatasource
22
22
  });
23
- module.exports = __toCommonJS(chunk_7SF6QSKE_exports);
24
- var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
23
+ module.exports = __toCommonJS(chunk_BGMZPA2F_exports);
24
+ var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
25
25
  var import_chunk_VNIE2AZB = require("./chunk-VNIE2AZB.js");
26
26
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
27
27
  var missingDatasource = `
@@ -35,5 +35,5 @@ ${(0, import_chunk_PG5FDKSF.bold)(
35
35
  )}
36
36
 
37
37
  More information in our documentation:
38
- ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
38
+ ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
39
39
  `;