@prisma/internals 6.19.0-integration-next.16 → 6.19.0-integration-engines-6-19-0-32-next-568b222d0ab829bbbe5f2fd48ed587836813346c.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 (85) hide show
  1. package/dist/{chunk-SIMRXUXR.js → chunk-2MJTY4KQ.js} +5 -5
  2. package/dist/chunk-3FP46GUV.js +471 -0
  3. package/dist/chunk-46ABODUM.js +186 -0
  4. package/dist/{chunk-VRGMXDRD.js → chunk-4CGPN5SR.js} +6 -3
  5. package/dist/{chunk-INJO27TY.js → chunk-4HCWAIVZ.js} +15 -9
  6. package/dist/{chunk-GL7OANR6.js → chunk-4JCVHBYR.js} +5 -5
  7. package/dist/{chunk-2ONERNWE.js → chunk-DK5SCKNO.js} +5 -5
  8. package/dist/{chunk-FMYHDVAC.js → chunk-DSG2XXJJ.js} +7 -7
  9. package/dist/{chunk-R3RVIOOH.js → chunk-DX7WJ45H.js} +5 -5
  10. package/dist/{chunk-FUYRCYVL.js → chunk-ERSH2BQA.js} +8 -3
  11. package/dist/{chunk-OKVM3CW4.js → chunk-EYVG6XQS.js} +39 -3
  12. package/dist/{chunk-5XFNC2RY.js → chunk-F2OZV76L.js} +7 -7
  13. package/dist/{chunk-R3J2O23S.js → chunk-FCYHZHVW.js} +4 -4
  14. package/dist/{chunk-5NV3W7KM.js → chunk-FYZCPL2Z.js} +4 -4
  15. package/dist/{chunk-HL6M6I6N.js → chunk-GMW36QQF.js} +7 -7
  16. package/dist/{chunk-GSH4BXBI.js → chunk-HFFWZTVM.js} +6 -4
  17. package/dist/{chunk-5W3BSMTH.js → chunk-HO5HRHFZ.js} +6 -3
  18. package/dist/{chunk-25QIR2OA.js → chunk-IKIW52QS.js} +8 -8
  19. package/dist/{chunk-RXUFT5US.js → chunk-ISSTUMGH.js} +8 -8
  20. package/dist/{chunk-6OLUZD6G.js → chunk-JD36HS5L.js} +15 -9
  21. package/dist/{chunk-XQFPAFQE.js → chunk-LBEUT2S6.js} +5 -5
  22. package/dist/{chunk-A7LJSXBL.js → chunk-N3UPGHTD.js} +49 -31
  23. package/dist/{chunk-5FUXDJAN.js → chunk-OAT7ZJED.js} +9 -5
  24. package/dist/{chunk-XCUYCN3Z.js → chunk-PWLNUJDJ.js} +5 -5
  25. package/dist/{chunk-MH5DW7MH.js → chunk-PZEUONUZ.js} +7 -7
  26. package/dist/chunk-PZMRR772.js +41 -0
  27. package/dist/{chunk-6GH4RAXF.js → chunk-RIACS7RB.js} +5 -5
  28. package/dist/{chunk-HC7ALJJ2.js → chunk-RKDOMYIG.js} +49 -31
  29. package/dist/{chunk-B22EOFPW.js → chunk-RS2R7COT.js} +6 -3
  30. package/dist/{chunk-SVPXYUIM.js → chunk-SH2TNBI6.js} +8 -7
  31. package/dist/chunk-T2PM5TKT.js +55 -0
  32. package/dist/{chunk-3GU5WOTV.js → chunk-TGOAMULH.js} +9 -8
  33. package/dist/{chunk-63H7LVQK.js → chunk-U2GOPCRA.js} +5 -5
  34. package/dist/{chunk-SYOFVVNN.js → chunk-UHI6VYFX.js} +5 -5
  35. package/dist/{chunk-BLBFB7XV.js → chunk-UQUWZJVN.js} +7 -7
  36. package/dist/{chunk-NDSHLEAN.js → chunk-VDOBMNYY.js} +8 -8
  37. package/dist/{chunk-ARC7TW3L.js → chunk-WFNB7VRA.js} +14 -4
  38. package/dist/{chunk-CAACRLTC.js → chunk-YU52YNDP.js} +8 -8
  39. package/dist/{chunk-I6IIL2R7.js → chunk-ZKW5OHDA.js} +5 -5
  40. package/dist/cli/checkUnsupportedDataProxy.js +45 -41
  41. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +45 -41
  42. package/dist/cli/getGeneratorSuccessMessage.js +3 -2
  43. package/dist/cli/getSchema.d.ts +15 -1
  44. package/dist/cli/getSchema.js +5 -4
  45. package/dist/cli/hashes.js +4 -4
  46. package/dist/cli/schemaContext.d.ts +3 -1
  47. package/dist/cli/schemaContext.js +45 -41
  48. package/dist/client/getClientEngineType.d.ts +1 -0
  49. package/dist/client/getClientEngineType.js +3 -3
  50. package/dist/dotenvExpand.d.ts +35 -0
  51. package/dist/dotenvExpand.js +25 -0
  52. package/dist/engine-commands/errorHelpers.js +4 -4
  53. package/dist/engine-commands/formatSchema.js +44 -40
  54. package/dist/engine-commands/getConfig.d.ts +1 -0
  55. package/dist/engine-commands/getConfig.js +11 -11
  56. package/dist/engine-commands/getDmmf.js +8 -8
  57. package/dist/engine-commands/getEngineVersion.js +6 -6
  58. package/dist/engine-commands/getEnginesInfo.d.ts +1 -0
  59. package/dist/engine-commands/getEnginesInfo.js +7 -7
  60. package/dist/engine-commands/index.js +56 -52
  61. package/dist/engine-commands/lintSchema.js +9 -9
  62. package/dist/engine-commands/mergeSchemas.js +8 -8
  63. package/dist/engine-commands/validate.js +8 -8
  64. package/dist/get-generators/getGenerators.d.ts +1 -0
  65. package/dist/get-generators/getGenerators.js +47 -43
  66. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  67. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  68. package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
  69. package/dist/index.d.ts +4 -0
  70. package/dist/index.js +89 -82
  71. package/dist/resolveBinary.js +7 -7
  72. package/dist/schemaEngineCommands.js +8 -8
  73. package/dist/sendPanic.js +2 -2
  74. package/dist/utils/canPrompt.js +3 -3
  75. package/dist/utils/getEnvPaths.d.ts +14 -0
  76. package/dist/utils/getEnvPaths.js +29 -0
  77. package/dist/utils/getVersionFromPackageJson.js +3 -3
  78. package/dist/utils/handlePanic.js +6 -6
  79. package/dist/utils/loadEnvFile.d.ts +10 -0
  80. package/dist/utils/loadEnvFile.js +30 -0
  81. package/dist/utils/serializeQueryEngineName.js +2 -2
  82. package/dist/utils/tryLoadEnvs.d.ts +25 -0
  83. package/dist/utils/tryLoadEnvs.js +30 -0
  84. package/dist/wasm.js +5 -5
  85. package/package.json +16 -15
@@ -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_SVPXYUIM_exports = {};
20
- __export(chunk_SVPXYUIM_exports, {
19
+ var chunk_SH2TNBI6_exports = {};
20
+ __export(chunk_SH2TNBI6_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_SVPXYUIM_exports);
23
+ module.exports = __toCommonJS(chunk_SH2TNBI6_exports);
24
24
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
25
25
  var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
26
26
  "package.json"(exports, module2) {
@@ -59,11 +59,12 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
59
59
  "@swc/jest": "0.2.37",
60
60
  "@types/babel__helper-validator-identifier": "7.15.2",
61
61
  "@types/jest": "29.5.14",
62
- "@types/node": "~20.19.0",
62
+ "@types/node": "18.19.76",
63
63
  "@types/resolve": "1.20.6",
64
64
  archiver: "6.0.2",
65
65
  "checkpoint-client": "1.1.33",
66
66
  "cli-truncate": "4.0.0",
67
+ dotenv: "16.5.0",
67
68
  empathic: "2.0.0",
68
69
  "escape-string-regexp": "5.0.0",
69
70
  execa: "8.0.1",
@@ -108,14 +109,14 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
108
109
  "@prisma/generator": "workspace:*",
109
110
  "@prisma/generator-helper": "workspace:*",
110
111
  "@prisma/get-platform": "workspace:*",
111
- "@prisma/prisma-schema-wasm": "6.19.0-31.next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23",
112
- "@prisma/schema-engine-wasm": "6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732",
112
+ "@prisma/prisma-schema-wasm": "6.19.0-32.next-568b222d0ab829bbbe5f2fd48ed587836813346c",
113
+ "@prisma/schema-engine-wasm": "6.19.0-32.next-568b222d0ab829bbbe5f2fd48ed587836813346c",
113
114
  "@prisma/schema-files-loader": "workspace:*",
114
115
  arg: "5.0.2",
115
116
  prompts: "2.4.2"
116
117
  },
117
118
  peerDependencies: {
118
- typescript: ">=5.4.0"
119
+ typescript: ">=5.1.0"
119
120
  },
120
121
  peerDependenciesMeta: {
121
122
  typescript: {
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_T2PM5TKT_exports = {};
20
+ __export(chunk_T2PM5TKT_exports, {
21
+ dotenvExpand: () => dotenvExpand
22
+ });
23
+ module.exports = __toCommonJS(chunk_T2PM5TKT_exports);
24
+ function dotenvExpand(config) {
25
+ const environment = config.ignoreProcessEnv ? {} : process.env;
26
+ const interpolate = (envValue) => {
27
+ const matches = envValue.match(/(.?\${(?:[a-zA-Z0-9_]+)?})/g);
28
+ return matches?.reduce(function(newEnv, match) {
29
+ const parts = /(.?)\${([a-zA-Z0-9_]+)?}/g.exec(match);
30
+ if (!parts) {
31
+ return newEnv;
32
+ }
33
+ const prefix = parts[1];
34
+ let value, replacePart;
35
+ if (prefix === "\\") {
36
+ replacePart = parts[0];
37
+ value = replacePart.replace("\\$", "$");
38
+ } else {
39
+ const key = parts[2];
40
+ replacePart = parts[0].substring(prefix.length);
41
+ value = Object.hasOwnProperty.call(environment, key) ? environment[key] : config.parsed[key] || "";
42
+ value = interpolate(value);
43
+ }
44
+ return newEnv.replace(replacePart, value);
45
+ }, envValue) ?? envValue;
46
+ };
47
+ for (const configKey in config.parsed) {
48
+ const value = Object.hasOwnProperty.call(environment, configKey) ? environment[configKey] : config.parsed[configKey];
49
+ config.parsed[configKey] = interpolate(value);
50
+ }
51
+ for (const processKey in config.parsed) {
52
+ environment[processKey] = config.parsed[processKey];
53
+ }
54
+ return config;
55
+ }
@@ -16,17 +16,17 @@ 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_3GU5WOTV_exports = {};
20
- __export(chunk_3GU5WOTV_exports, {
19
+ var chunk_TGOAMULH_exports = {};
20
+ __export(chunk_TGOAMULH_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_3GU5WOTV_exports);
23
+ module.exports = __toCommonJS(chunk_TGOAMULH_exports);
24
24
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
25
25
  var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
26
26
  "package.json"(exports, module2) {
27
27
  module2.exports = {
28
28
  name: "@prisma/internals",
29
- version: "6.19.0-integration-next.16",
29
+ version: "6.19.0-integration-engines-6-19-0-32-next-568b222d0ab829bbbe5f2fd48ed587836813346c.1",
30
30
  description: "This package is intended for Prisma's internal use",
31
31
  main: "dist/index.js",
32
32
  types: "dist/index.d.ts",
@@ -59,11 +59,12 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
59
59
  "@swc/jest": "0.2.37",
60
60
  "@types/babel__helper-validator-identifier": "7.15.2",
61
61
  "@types/jest": "29.5.14",
62
- "@types/node": "~20.19.0",
62
+ "@types/node": "18.19.76",
63
63
  "@types/resolve": "1.20.6",
64
64
  archiver: "6.0.2",
65
65
  "checkpoint-client": "1.1.33",
66
66
  "cli-truncate": "4.0.0",
67
+ dotenv: "16.5.0",
67
68
  empathic: "2.0.0",
68
69
  "escape-string-regexp": "5.0.0",
69
70
  execa: "8.0.1",
@@ -108,14 +109,14 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
108
109
  "@prisma/generator": "workspace:*",
109
110
  "@prisma/generator-helper": "workspace:*",
110
111
  "@prisma/get-platform": "workspace:*",
111
- "@prisma/prisma-schema-wasm": "6.19.0-31.next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23",
112
- "@prisma/schema-engine-wasm": "6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732",
112
+ "@prisma/prisma-schema-wasm": "6.19.0-32.next-568b222d0ab829bbbe5f2fd48ed587836813346c",
113
+ "@prisma/schema-engine-wasm": "6.19.0-32.next-568b222d0ab829bbbe5f2fd48ed587836813346c",
113
114
  "@prisma/schema-files-loader": "workspace:*",
114
115
  arg: "5.0.2",
115
116
  prompts: "2.4.2"
116
117
  },
117
118
  peerDependencies: {
118
- typescript: ">=5.4.0"
119
+ typescript: ">=5.1.0"
119
120
  },
120
121
  peerDependenciesMeta: {
121
122
  typescript: {
@@ -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_63H7LVQK_exports = {};
20
- __export(chunk_63H7LVQK_exports, {
19
+ var chunk_U2GOPCRA_exports = {};
20
+ __export(chunk_U2GOPCRA_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_63H7LVQK_exports);
24
- var import_chunk_XQFPAFQE = require("./chunk-XQFPAFQE.js");
23
+ module.exports = __toCommonJS(chunk_U2GOPCRA_exports);
24
+ var import_chunk_LBEUT2S6 = require("./chunk-LBEUT2S6.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_XQFPAFQE.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_LBEUT2S6.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,17 +16,17 @@ 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_SYOFVVNN_exports = {};
20
- __export(chunk_SYOFVVNN_exports, {
19
+ var chunk_UHI6VYFX_exports = {};
20
+ __export(chunk_UHI6VYFX_exports, {
21
21
  SchemaEngineExitCode: () => SchemaEngineExitCode,
22
22
  canConnectToDatabase: () => canConnectToDatabase,
23
23
  createDatabase: () => createDatabase,
24
24
  dropDatabase: () => dropDatabase,
25
25
  execaCommand: () => execaCommand
26
26
  });
27
- module.exports = __toCommonJS(chunk_SYOFVVNN_exports);
27
+ module.exports = __toCommonJS(chunk_UHI6VYFX_exports);
28
28
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
29
- var import_chunk_5NV3W7KM = require("./chunk-5NV3W7KM.js");
29
+ var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
30
30
  var import_fetch_engine = require("@prisma/fetch-engine");
31
31
  var SchemaEngineExitCode = /* @__PURE__ */ ((SchemaEngineExitCode2) => {
32
32
  SchemaEngineExitCode2[SchemaEngineExitCode2["Success"] = 0] = "Success";
@@ -139,7 +139,7 @@ async function execaCommand({
139
139
  schemaEnginePath,
140
140
  engineCommandName
141
141
  }) {
142
- schemaEnginePath = schemaEnginePath || await (0, import_chunk_5NV3W7KM.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
142
+ schemaEnginePath = schemaEnginePath || await (0, import_chunk_FYZCPL2Z.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
143
143
  try {
144
144
  return await (0, import_chunk_JOIHHXR6.execa)(schemaEnginePath, ["cli", "--datasource", connectionString, engineCommandName], {
145
145
  cwd,
@@ -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_BLBFB7XV_exports = {};
30
- __export(chunk_BLBFB7XV_exports, {
29
+ var chunk_UQUWZJVN_exports = {};
30
+ __export(chunk_UQUWZJVN_exports, {
31
31
  handlePanic: () => handlePanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_BLBFB7XV_exports);
33
+ module.exports = __toCommonJS(chunk_UQUWZJVN_exports);
34
34
  var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
35
35
  var import_chunk_7IKUTPWQ = require("./chunk-7IKUTPWQ.js");
36
- var import_chunk_R3J2O23S = require("./chunk-R3J2O23S.js");
37
- var import_chunk_GSH4BXBI = require("./chunk-GSH4BXBI.js");
36
+ var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
37
+ var import_chunk_HFFWZTVM = require("./chunk-HFFWZTVM.js");
38
38
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
39
39
  var import_prompts = __toESM(require("prompts"));
40
40
  async function handlePanic(args) {
41
- if (!(0, import_chunk_R3J2O23S.canPrompt)()) {
41
+ if (!(0, import_chunk_FCYHZHVW.canPrompt)()) {
42
42
  throw args.error;
43
43
  }
44
44
  await panicDialog(args);
@@ -79,7 +79,7 @@ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_I6WLABB2.link)(
79
79
  if (shouldSubmitReport) {
80
80
  try {
81
81
  console.log("Submitting...");
82
- const reportId = await (0, import_chunk_GSH4BXBI.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
82
+ const reportId = await (0, import_chunk_HFFWZTVM.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
83
83
  console.log(`
84
84
  ${(0, import_chunk_PG5FDKSF.bold)(`We successfully received the error report id: ${reportId}`)}`);
85
85
  console.log(`
@@ -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_NDSHLEAN_exports = {};
30
- __export(chunk_NDSHLEAN_exports, {
29
+ var chunk_VDOBMNYY_exports = {};
30
+ __export(chunk_VDOBMNYY_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_NDSHLEAN_exports);
34
+ module.exports = __toCommonJS(chunk_VDOBMNYY_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_63H7LVQK = require("./chunk-63H7LVQK.js");
38
- var import_chunk_I6IIL2R7 = require("./chunk-I6IIL2R7.js");
37
+ var import_chunk_U2GOPCRA = require("./chunk-U2GOPCRA.js");
38
+ var import_chunk_DX7WJ45H = require("./chunk-DX7WJ45H.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_63H7LVQK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_U2GOPCRA.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_QUERY_ENGINE_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_I6IIL2R7.prismaSchemaWasm.debug_panic();
73
+ import_chunk_DX7WJ45H.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_I6IIL2R7.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_DX7WJ45H.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -26,12 +26,13 @@ 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_ARC7TW3L_exports = {};
30
- __export(chunk_ARC7TW3L_exports, {
29
+ var chunk_WFNB7VRA_exports = {};
30
+ __export(chunk_WFNB7VRA_exports, {
31
31
  getGeneratorSuccessMessage: () => getGeneratorSuccessMessage
32
32
  });
33
- module.exports = __toCommonJS(chunk_ARC7TW3L_exports);
33
+ module.exports = __toCommonJS(chunk_WFNB7VRA_exports);
34
34
  var import_chunk_XYCIH36R = require("./chunk-XYCIH36R.js");
35
+ var import_chunk_ERSH2BQA = require("./chunk-ERSH2BQA.js");
35
36
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
36
37
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
37
38
  var import_path = __toESM(require("path"));
@@ -44,7 +45,16 @@ function getGeneratorSuccessMessage(generator, time) {
44
45
  function formatVersion(generator) {
45
46
  const version = generator.manifest?.version;
46
47
  if (generator.getProvider() === "prisma-client-js") {
47
- return `v${version ?? "?.?.?"}`;
48
+ const engineType = (0, import_chunk_ERSH2BQA.getClientEngineType)(generator.config);
49
+ let engineHint = "";
50
+ if (generator.options?.noEngine) {
51
+ engineHint = ", engine=none";
52
+ } else if (engineType === "binary") {
53
+ engineHint = ", engine=binary";
54
+ } else if (engineType === "library") {
55
+ engineHint = "";
56
+ }
57
+ return `v${version ?? "?.?.?"}${engineHint}`;
48
58
  }
49
59
  return version;
50
60
  }
@@ -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_CAACRLTC_exports = {};
30
- __export(chunk_CAACRLTC_exports, {
29
+ var chunk_YU52YNDP_exports = {};
30
+ __export(chunk_YU52YNDP_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_CAACRLTC_exports);
34
+ module.exports = __toCommonJS(chunk_YU52YNDP_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
37
37
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
- var import_chunk_2ONERNWE = require("./chunk-2ONERNWE.js");
39
- var import_chunk_R3RVIOOH = require("./chunk-R3RVIOOH.js");
38
+ var import_chunk_U2GOPCRA = require("./chunk-U2GOPCRA.js");
39
+ var import_chunk_DX7WJ45H = require("./chunk-DX7WJ45H.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,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: validate]`;
62
- super((0, import_chunk_2ONERNWE.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_U2GOPCRA.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
@@ -71,13 +71,13 @@ function validate(options) {
71
71
  () => {
72
72
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_R3RVIOOH.prismaSchemaWasm.debug_panic();
74
+ import_chunk_DX7WJ45H.prismaSchemaWasm.debug_panic();
75
75
  }
76
76
  const params = JSON.stringify({
77
77
  prismaSchema: options.schemas,
78
78
  noColor: Boolean(process.env.NO_COLOR)
79
79
  });
80
- import_chunk_R3RVIOOH.prismaSchemaWasm.validate(params);
80
+ import_chunk_DX7WJ45H.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -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_I6IIL2R7_exports = {};
30
- __export(chunk_I6IIL2R7_exports, {
29
+ var chunk_ZKW5OHDA_exports = {};
30
+ __export(chunk_ZKW5OHDA_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_I6IIL2R7_exports);
37
- var import_chunk_3GU5WOTV = require("./chunk-3GU5WOTV.js");
36
+ module.exports = __toCommonJS(chunk_ZKW5OHDA_exports);
37
+ var import_chunk_TGOAMULH = require("./chunk-TGOAMULH.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_3GU5WOTV.require_package)();
49
+ var { dependencies } = (0, import_chunk_TGOAMULH.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -18,37 +18,42 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var checkUnsupportedDataProxy_exports = {};
20
20
  __export(checkUnsupportedDataProxy_exports, {
21
- checkUnsupportedDataProxy: () => import_chunk_A7LJSXBL.checkUnsupportedDataProxy,
22
- forbiddenCmdWithDataProxyFlagMessage: () => import_chunk_A7LJSXBL.forbiddenCmdWithDataProxyFlagMessage
21
+ checkUnsupportedDataProxy: () => import_chunk_RKDOMYIG.checkUnsupportedDataProxy,
22
+ forbiddenCmdWithDataProxyFlagMessage: () => import_chunk_RKDOMYIG.forbiddenCmdWithDataProxyFlagMessage
23
23
  });
24
24
  module.exports = __toCommonJS(checkUnsupportedDataProxy_exports);
25
- var import_chunk_A7LJSXBL = require("../chunk-A7LJSXBL.js");
26
- var import_chunk_X77CS5RK = require("../chunk-X77CS5RK.js");
27
- var import_chunk_5XFNC2RY = require("../chunk-5XFNC2RY.js");
28
- var import_chunk_B22EOFPW = require("../chunk-B22EOFPW.js");
29
- var import_chunk_VRGMXDRD = require("../chunk-VRGMXDRD.js");
25
+ var import_chunk_RKDOMYIG = require("../chunk-RKDOMYIG.js");
30
26
  var import_chunk_X3P4J7WW = require("../chunk-X3P4J7WW.js");
31
27
  var import_chunk_LRU47BGE = require("../chunk-LRU47BGE.js");
32
- var import_chunk_PFYALFCY = require("../chunk-PFYALFCY.js");
33
- var import_chunk_5W3BSMTH = require("../chunk-5W3BSMTH.js");
34
- var import_chunk_ANU3HEGF = require("../chunk-ANU3HEGF.js");
35
28
  var import_chunk_OSHZ4P3G = require("../chunk-OSHZ4P3G.js");
36
- var import_chunk_2SDPW6AX = require("../chunk-2SDPW6AX.js");
29
+ var import_chunk_X77CS5RK = require("../chunk-X77CS5RK.js");
30
+ var import_chunk_F2OZV76L = require("../chunk-F2OZV76L.js");
31
+ var import_chunk_RS2R7COT = require("../chunk-RS2R7COT.js");
32
+ var import_chunk_4CGPN5SR = require("../chunk-4CGPN5SR.js");
37
33
  var import_chunk_GXW4NTU2 = require("../chunk-GXW4NTU2.js");
38
34
  var import_chunk_5FJ3MENK = require("../chunk-5FJ3MENK.js");
39
- var import_chunk_7B5PXS6N = require("../chunk-7B5PXS6N.js");
40
- var import_chunk_UGR6KLZN = require("../chunk-UGR6KLZN.js");
41
- var import_chunk_CGFNDGGI = require("../chunk-CGFNDGGI.js");
35
+ var import_chunk_PFYALFCY = require("../chunk-PFYALFCY.js");
36
+ var import_chunk_HO5HRHFZ = require("../chunk-HO5HRHFZ.js");
37
+ var import_chunk_ANU3HEGF = require("../chunk-ANU3HEGF.js");
42
38
  var import_chunk_LRBXMV4B = require("../chunk-LRBXMV4B.js");
43
39
  var import_chunk_7QC5VORA = require("../chunk-7QC5VORA.js");
44
40
  var import_chunk_AX5N26KG = require("../chunk-AX5N26KG.js");
41
+ var import_chunk_2SDPW6AX = require("../chunk-2SDPW6AX.js");
42
+ var import_chunk_PZMRR772 = require("../chunk-PZMRR772.js");
43
+ var import_chunk_7B5PXS6N = require("../chunk-7B5PXS6N.js");
44
+ var import_chunk_UGR6KLZN = require("../chunk-UGR6KLZN.js");
45
+ var import_chunk_CGFNDGGI = require("../chunk-CGFNDGGI.js");
45
46
  var import_chunk_XXTPN4LB = require("../chunk-XXTPN4LB.js");
46
47
  var import_chunk_2IOZUH3U = require("../chunk-2IOZUH3U.js");
47
48
  var import_chunk_JTKAT4KZ = require("../chunk-JTKAT4KZ.js");
48
49
  var import_chunk_RBDYOTWB = require("../chunk-RBDYOTWB.js");
49
50
  var import_chunk_ZKWDIAVF = require("../chunk-ZKWDIAVF.js");
51
+ var import_chunk_CUD726EK = require("../chunk-CUD726EK.js");
52
+ var import_chunk_BERN76ZI = require("../chunk-BERN76ZI.js");
53
+ var import_chunk_46ABODUM = require("../chunk-46ABODUM.js");
54
+ var import_chunk_3FP46GUV = require("../chunk-3FP46GUV.js");
50
55
  var import_chunk_RFB2U4GQ = require("../chunk-RFB2U4GQ.js");
51
- var import_chunk_BLBFB7XV = require("../chunk-BLBFB7XV.js");
56
+ var import_chunk_UQUWZJVN = require("../chunk-UQUWZJVN.js");
52
57
  var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
53
58
  var import_chunk_7IKUTPWQ = require("../chunk-7IKUTPWQ.js");
54
59
  var import_chunk_WV4QHCSM = require("../chunk-WV4QHCSM.js");
@@ -58,67 +63,68 @@ var import_chunk_CRVLHWC5 = require("../chunk-CRVLHWC5.js");
58
63
  var import_chunk_75BIJ5PX = require("../chunk-75BIJ5PX.js");
59
64
  var import_chunk_TQFONRJP = require("../chunk-TQFONRJP.js");
60
65
  var import_chunk_J77ZIDXB = require("../chunk-J77ZIDXB.js");
61
- var import_chunk_CUD726EK = require("../chunk-CUD726EK.js");
62
- var import_chunk_BERN76ZI = require("../chunk-BERN76ZI.js");
66
+ var import_chunk_HW5RCZSE = require("../chunk-HW5RCZSE.js");
63
67
  var import_chunk_Y4TOGY6I = require("../chunk-Y4TOGY6I.js");
64
68
  var import_chunk_IL7PSY44 = require("../chunk-IL7PSY44.js");
65
69
  var import_chunk_DODIJPCS = require("../chunk-DODIJPCS.js");
66
70
  var import_chunk_L6KOIJJ5 = require("../chunk-L6KOIJJ5.js");
67
71
  var import_chunk_NIWBAJZV = require("../chunk-NIWBAJZV.js");
68
- var import_chunk_R3J2O23S = require("../chunk-R3J2O23S.js");
69
- var import_chunk_ICFLO5JW = require("../chunk-ICFLO5JW.js");
72
+ var import_chunk_FCYHZHVW = require("../chunk-FCYHZHVW.js");
70
73
  var import_chunk_H4NI2RIK = require("../chunk-H4NI2RIK.js");
71
- var import_chunk_RXUFT5US = require("../chunk-RXUFT5US.js");
74
+ var import_chunk_ICFLO5JW = require("../chunk-ICFLO5JW.js");
75
+ var import_chunk_ISSTUMGH = require("../chunk-ISSTUMGH.js");
72
76
  var import_chunk_TQCLUNM2 = require("../chunk-TQCLUNM2.js");
73
77
  var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
74
78
  var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
75
79
  var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
76
80
  var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
77
- var import_chunk_HW5RCZSE = require("../chunk-HW5RCZSE.js");
78
- var import_chunk_INJO27TY = require("../chunk-INJO27TY.js");
79
- var import_chunk_NDSHLEAN = require("../chunk-NDSHLEAN.js");
80
- var import_chunk_HL6M6I6N = require("../chunk-HL6M6I6N.js");
81
- var import_chunk_5FUXDJAN = require("../chunk-5FUXDJAN.js");
81
+ var import_chunk_JD36HS5L = require("../chunk-JD36HS5L.js");
82
+ var import_chunk_IKIW52QS = require("../chunk-IKIW52QS.js");
83
+ var import_chunk_GMW36QQF = require("../chunk-GMW36QQF.js");
84
+ var import_chunk_OAT7ZJED = require("../chunk-OAT7ZJED.js");
82
85
  var import_chunk_6TTRTZXU = require("../chunk-6TTRTZXU.js");
83
86
  var import_chunk_DZYINYAA = require("../chunk-DZYINYAA.js");
84
- var import_chunk_SIMRXUXR = require("../chunk-SIMRXUXR.js");
85
- var import_chunk_FMYHDVAC = require("../chunk-FMYHDVAC.js");
87
+ var import_chunk_RIACS7RB = require("../chunk-RIACS7RB.js");
88
+ var import_chunk_DSG2XXJJ = require("../chunk-DSG2XXJJ.js");
86
89
  var import_chunk_TZJROXB3 = require("../chunk-TZJROXB3.js");
87
90
  var import_chunk_C47SCASR = require("../chunk-C47SCASR.js");
88
91
  var import_chunk_R6QH57HZ = require("../chunk-R6QH57HZ.js");
89
92
  var import_chunk_J7ZPY2XA = require("../chunk-J7ZPY2XA.js");
90
- var import_chunk_GL7OANR6 = require("../chunk-GL7OANR6.js");
93
+ var import_chunk_4JCVHBYR = require("../chunk-4JCVHBYR.js");
94
+ var import_chunk_EYVG6XQS = require("../chunk-EYVG6XQS.js");
91
95
  var import_chunk_D4VZUY3O = require("../chunk-D4VZUY3O.js");
92
- var import_chunk_FUYRCYVL = require("../chunk-FUYRCYVL.js");
93
- var import_chunk_63H7LVQK = require("../chunk-63H7LVQK.js");
94
- var import_chunk_XQFPAFQE = require("../chunk-XQFPAFQE.js");
96
+ var import_chunk_DK5SCKNO = require("../chunk-DK5SCKNO.js");
97
+ var import_chunk_PWLNUJDJ = require("../chunk-PWLNUJDJ.js");
95
98
  var import_chunk_QN6PSQY7 = require("../chunk-QN6PSQY7.js");
96
99
  var import_chunk_DTPFRZWV = require("../chunk-DTPFRZWV.js");
97
- var import_chunk_I6IIL2R7 = require("../chunk-I6IIL2R7.js");
98
- var import_chunk_3GU5WOTV = require("../chunk-3GU5WOTV.js");
100
+ var import_chunk_ZKW5OHDA = require("../chunk-ZKW5OHDA.js");
101
+ var import_chunk_TGOAMULH = require("../chunk-TGOAMULH.js");
99
102
  var import_chunk_6JE6QGSJ = require("../chunk-6JE6QGSJ.js");
100
103
  var import_chunk_BCQZ6JQE = require("../chunk-BCQZ6JQE.js");
101
- var import_chunk_ARC7TW3L = require("../chunk-ARC7TW3L.js");
104
+ var import_chunk_WFNB7VRA = require("../chunk-WFNB7VRA.js");
102
105
  var import_chunk_XYCIH36R = require("../chunk-XYCIH36R.js");
103
- var import_chunk_OKVM3CW4 = require("../chunk-OKVM3CW4.js");
106
+ var import_chunk_ERSH2BQA = require("../chunk-ERSH2BQA.js");
107
+ var import_chunk_ZJWZK45Z = require("../chunk-ZJWZK45Z.js");
104
108
  var import_chunk_2B26F5N3 = require("../chunk-2B26F5N3.js");
105
- var import_chunk_SYOFVVNN = require("../chunk-SYOFVVNN.js");
109
+ var import_chunk_UHI6VYFX = require("../chunk-UHI6VYFX.js");
106
110
  var import_chunk_JOIHHXR6 = require("../chunk-JOIHHXR6.js");
107
- var import_chunk_5NV3W7KM = require("../chunk-5NV3W7KM.js");
108
- var import_chunk_IDINCQMN = require("../chunk-IDINCQMN.js");
111
+ var import_chunk_FYZCPL2Z = require("../chunk-FYZCPL2Z.js");
109
112
  var import_chunk_M3GBKLGE = require("../chunk-M3GBKLGE.js");
113
+ var import_chunk_IDINCQMN = require("../chunk-IDINCQMN.js");
110
114
  var import_chunk_TWSLDIFL = require("../chunk-TWSLDIFL.js");
111
115
  var import_chunk_5DBOS77Y = require("../chunk-5DBOS77Y.js");
112
- var import_chunk_GSH4BXBI = require("../chunk-GSH4BXBI.js");
116
+ var import_chunk_HFFWZTVM = require("../chunk-HFFWZTVM.js");
113
117
  var import_chunk_KDHESRKE = require("../chunk-KDHESRKE.js");
114
118
  var import_chunk_XKZ6CBLA = require("../chunk-XKZ6CBLA.js");
115
119
  var import_chunk_LMVSIVKQ = require("../chunk-LMVSIVKQ.js");
116
120
  var import_chunk_BPDMLM32 = require("../chunk-BPDMLM32.js");
117
121
  var import_chunk_IOIAK7V7 = require("../chunk-IOIAK7V7.js");
122
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
118
123
  var import_chunk_WXRVYSYN = require("../chunk-WXRVYSYN.js");
119
124
  var import_chunk_SBUSVJCV = require("../chunk-SBUSVJCV.js");
120
125
  var import_chunk_LYFOJ5NK = require("../chunk-LYFOJ5NK.js");
121
126
  var import_chunk_LPNBWFQ3 = require("../chunk-LPNBWFQ3.js");
127
+ var import_chunk_T2PM5TKT = require("../chunk-T2PM5TKT.js");
122
128
  var import_chunk_5AI4FIZ3 = require("../chunk-5AI4FIZ3.js");
123
129
  var import_chunk_NVNI2SRU = require("../chunk-NVNI2SRU.js");
124
130
  var import_chunk_BVJP43JS = require("../chunk-BVJP43JS.js");
@@ -126,6 +132,4 @@ var import_chunk_KDP6C3CB = require("../chunk-KDP6C3CB.js");
126
132
  var import_chunk_JOIIWB3U = require("../chunk-JOIIWB3U.js");
127
133
  var import_chunk_UMM35VP5 = require("../chunk-UMM35VP5.js");
128
134
  var import_chunk_5VQNKCKW = require("../chunk-5VQNKCKW.js");
129
- var import_chunk_ZJWZK45Z = require("../chunk-ZJWZK45Z.js");
130
- var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
131
135
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");