@prisma/internals 7.10.0-dev.2 → 7.10.0-dev.21

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 (47) hide show
  1. package/dist/{chunk-B3AOONBY.js → chunk-22S7OKAE.js} +10 -10
  2. package/dist/{chunk-L2BUQUNG.js → chunk-3FC2IETP.js} +5 -5
  3. package/dist/{chunk-EBLNHWW6.js → chunk-3VD46SL7.js} +9 -9
  4. package/dist/{chunk-AWZAOJRY.js → chunk-4CVZKYNS.js} +5 -5
  5. package/dist/{chunk-MD47SEWA.js → chunk-6G6UDLJZ.js} +14 -14
  6. package/dist/{chunk-6PILE32P.js → chunk-6QMGKJXI.js} +17 -17
  7. package/dist/{chunk-TZJROXB3.js → chunk-6Z766KGR.js} +6 -6
  8. package/dist/{chunk-55VLOA5R.js → chunk-7JVIMWL6.js} +14 -14
  9. package/dist/{chunk-WYC4YSOB.js → chunk-BKT6ULO5.js} +13 -13
  10. package/dist/{chunk-GZLJZGHX.js → chunk-DUDEWDFC.js} +7 -7
  11. package/dist/{chunk-KV7Z2TFQ.js → chunk-EBMNBGC2.js} +5 -5
  12. package/dist/{chunk-ZB2V476P.js → chunk-EQOD2M33.js} +10 -10
  13. package/dist/{chunk-YXCPS3WU.js → chunk-FRVJZOHP.js} +6 -6
  14. package/dist/{chunk-LZ2DP3UC.js → chunk-GZXEG6LD.js} +5 -5
  15. package/dist/{chunk-3GIVRMID.js → chunk-HUAS7N7M.js} +5 -5
  16. package/dist/{chunk-GZY7QBBF.js → chunk-JPMULYWV.js} +5 -5
  17. package/dist/{chunk-DPECJANV.js → chunk-L5WGZLIX.js} +15 -15
  18. package/dist/{chunk-VNNZDBYK.js → chunk-LKEBUK2C.js} +5 -5
  19. package/dist/{chunk-IPODTOYM.js → chunk-RYEXXNMW.js} +5 -5
  20. package/dist/{chunk-JB7D7QBL.js → chunk-U3Y3OHAR.js} +17 -17
  21. package/dist/{chunk-5P4WR3QW.js → chunk-VZPJTD4R.js} +13 -13
  22. package/dist/{chunk-CKEAAB42.js → chunk-XAUTI5A2.js} +6 -6
  23. package/dist/chunk-YNDZCLVL.js +307 -0
  24. package/dist/{chunk-4YZJJPK2.js → chunk-YVPSSX24.js} +15 -15
  25. package/dist/{chunk-7IKUTPWQ.js → chunk-YXB6APHS.js} +5 -5
  26. package/dist/{chunk-PP22IZ7I.js → chunk-ZB2EMLG6.js} +5 -5
  27. package/dist/cli/checkUnsupportedDataProxy.js +18 -18
  28. package/dist/cli/schemaContext.js +19 -19
  29. package/dist/engine-commands/errorHelpers.js +4 -4
  30. package/dist/engine-commands/formatSchema.js +17 -17
  31. package/dist/engine-commands/getConfig.js +9 -9
  32. package/dist/engine-commands/getDmmf.js +10 -10
  33. package/dist/engine-commands/getEnginesInfo.js +4 -4
  34. package/dist/engine-commands/index.js +28 -28
  35. package/dist/engine-commands/lintSchema.js +8 -8
  36. package/dist/engine-commands/mergeSchemas.js +9 -9
  37. package/dist/engine-commands/queryEngineCommons.js +6 -6
  38. package/dist/engine-commands/validate.js +9 -9
  39. package/dist/get-generators/getGenerators.js +20 -20
  40. package/dist/index.js +39 -39
  41. package/dist/sendPanic.js +3 -3
  42. package/dist/utils/getGitHubIssueUrl.js +4 -4
  43. package/dist/utils/getVersionFromPackageJson.js +3 -3
  44. package/dist/utils/handlePanic.js +5 -5
  45. package/dist/wasm.js +5 -5
  46. package/package.json +14 -14
  47. package/dist/chunk-XKZ6CBLA.js +0 -281
@@ -26,28 +26,28 @@ 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_ZB2V476P_exports = {};
30
- __export(chunk_ZB2V476P_exports, {
29
+ var chunk_EQOD2M33_exports = {};
30
+ __export(chunk_EQOD2M33_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  externalToInternalDmmf: () => import_get_dmmf2.externalToInternalDmmf,
33
33
  getDMMF: () => getDMMF,
34
34
  getInternalDMMF: () => getInternalDMMF
35
35
  });
36
- module.exports = __toCommonJS(chunk_ZB2V476P_exports);
36
+ module.exports = __toCommonJS(chunk_EQOD2M33_exports);
37
37
  var import_chunk_IL7PSY44 = require("./chunk-IL7PSY44.js");
38
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
39
- var import_chunk_GZY7QBBF = require("./chunk-GZY7QBBF.js");
40
- var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
38
+ var import_chunk_6Z766KGR = require("./chunk-6Z766KGR.js");
39
+ var import_chunk_EBMNBGC2 = require("./chunk-EBMNBGC2.js");
40
+ var import_chunk_YNDZCLVL = require("./chunk-YNDZCLVL.js");
41
41
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
42
42
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
43
43
  var import_debug = __toESM(require("@prisma/debug"));
44
44
  var import_get_dmmf = require("@prisma/get-dmmf");
45
45
  var import_get_dmmf2 = require("@prisma/get-dmmf");
46
46
  var debug = (0, import_debug.default)("prisma:getDMMF");
47
- var debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getDmmfWasm");
47
+ var debugErrorType = (0, import_chunk_6Z766KGR.createDebugErrorType)(debug, "getDmmfWasm");
48
48
  var GetDmmfError = class extends Error {
49
49
  constructor(params) {
50
- const constructedErrorMessage = (0, import_chunk_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
50
+ const constructedErrorMessage = (0, import_chunk_YNDZCLVL.M)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
51
51
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
52
52
  return `${reason}
53
53
  ${errorCodeMessage}
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: getDmmf]`;
62
- super((0, import_chunk_GZY7QBBF.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_EBMNBGC2.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "GetDmmfError";
64
64
  }
65
65
  };
@@ -100,5 +100,5 @@ function mapWasmPanicToGetDmmfError(error, reason) {
100
100
  return panic;
101
101
  }
102
102
  const errorOutput = error.message;
103
- return new GetDmmfError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason }));
103
+ return new GetDmmfError((0, import_chunk_6Z766KGR.parseQueryEngineError)({ errorOutput, reason }));
104
104
  }
@@ -26,12 +26,12 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_YXCPS3WU_exports = {};
30
- __export(chunk_YXCPS3WU_exports, {
29
+ var chunk_FRVJZOHP_exports = {};
30
+ __export(chunk_FRVJZOHP_exports, {
31
31
  sendPanic: () => sendPanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_YXCPS3WU_exports);
34
- var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
33
+ module.exports = __toCommonJS(chunk_FRVJZOHP_exports);
34
+ var import_chunk_YNDZCLVL = require("./chunk-YNDZCLVL.js");
35
35
  var import_chunk_5AI4FIZ3 = require("./chunk-5AI4FIZ3.js");
36
36
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
37
37
  var import_node_util = require("node:util");
@@ -1772,9 +1772,9 @@ async function sendPanic({
1772
1772
  }) {
1773
1773
  let dbVersion;
1774
1774
  if (error.area === "LIFT_CLI") {
1775
- const getDatabaseVersionParams = (0, import_chunk_XKZ6CBLA.z)({
1775
+ const getDatabaseVersionParams = (0, import_chunk_YNDZCLVL.M)({
1776
1776
  introspectionUrl: error.introspectionUrl
1777
- }).with({ introspectionUrl: import_chunk_XKZ6CBLA.N.not(void 0) }, ({ introspectionUrl }) => {
1777
+ }).with({ introspectionUrl: import_chunk_YNDZCLVL.z.not(void 0) }, ({ introspectionUrl }) => {
1778
1778
  return {
1779
1779
  datasource: {
1780
1780
  tag: "ConnectionString",
@@ -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_LZ2DP3UC_exports = {};
20
- __export(chunk_LZ2DP3UC_exports, {
19
+ var chunk_GZXEG6LD_exports = {};
20
+ __export(chunk_GZXEG6LD_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_LZ2DP3UC_exports);
23
+ module.exports = __toCommonJS(chunk_GZXEG6LD_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) {
@@ -62,7 +62,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
62
62
  empathic: "2.0.0",
63
63
  "escape-string-regexp": "5.0.0",
64
64
  execa: "8.0.1",
65
- "find-up": "7.0.0",
65
+ "find-up": "8.0.0",
66
66
  "fp-ts": "2.16.9",
67
67
  "fs-extra": "11.3.0",
68
68
  "global-directory": "4.0.0",
@@ -85,7 +85,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
85
85
  tempy: "1.0.1",
86
86
  "terminal-link": "4.0.0",
87
87
  tmp: "0.2.3",
88
- "ts-pattern": "5.6.2",
88
+ "ts-pattern": "5.9.0",
89
89
  "ts-toolbelt": "9.6.0",
90
90
  typescript: "5.4.5",
91
91
  yarn: "1.22.22"
@@ -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_3GIVRMID_exports = {};
20
- __export(chunk_3GIVRMID_exports, {
19
+ var chunk_HUAS7N7M_exports = {};
20
+ __export(chunk_HUAS7N7M_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_3GIVRMID_exports);
24
- var import_chunk_LZ2DP3UC = require("./chunk-LZ2DP3UC.js");
25
- var packageJson = (0, import_chunk_LZ2DP3UC.require_package)();
23
+ module.exports = __toCommonJS(chunk_HUAS7N7M_exports);
24
+ var import_chunk_XAUTI5A2 = require("./chunk-XAUTI5A2.js");
25
+ var packageJson = (0, import_chunk_XAUTI5A2.require_package)();
26
26
  var version = packageJson.version;
@@ -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_GZY7QBBF_exports = {};
20
- __export(chunk_GZY7QBBF_exports, {
19
+ var chunk_JPMULYWV_exports = {};
20
+ __export(chunk_JPMULYWV_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_GZY7QBBF_exports);
23
+ module.exports = __toCommonJS(chunk_JPMULYWV_exports);
24
24
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
25
- var import_chunk_3GIVRMID = require("./chunk-3GIVRMID.js");
25
+ var import_chunk_HUAS7N7M = require("./chunk-HUAS7N7M.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_3GIVRMID.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_HUAS7N7M.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -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_DPECJANV_exports = {};
30
- __export(chunk_DPECJANV_exports, {
29
+ var chunk_L5WGZLIX_exports = {};
30
+ __export(chunk_L5WGZLIX_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig
33
33
  });
34
- module.exports = __toCommonJS(chunk_DPECJANV_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
34
+ module.exports = __toCommonJS(chunk_L5WGZLIX_exports);
35
+ var import_chunk_6Z766KGR = require("./chunk-6Z766KGR.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_KV7Z2TFQ = require("./chunk-KV7Z2TFQ.js");
39
- var import_chunk_AWZAOJRY = require("./chunk-AWZAOJRY.js");
38
+ var import_chunk_JPMULYWV = require("./chunk-JPMULYWV.js");
39
+ var import_chunk_4CVZKYNS = require("./chunk-4CVZKYNS.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
- var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
+ var import_chunk_YNDZCLVL = require("./chunk-YNDZCLVL.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
44
44
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -49,7 +49,7 @@ var debug = (0, import_debug.default)("prisma:getConfig");
49
49
  var SCHEMA_VALIDATION_ERROR_CODE = "P1012";
50
50
  var GetConfigError = class extends Error {
51
51
  constructor(params) {
52
- const constructedErrorMessage = (0, import_chunk_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
52
+ const constructedErrorMessage = (0, import_chunk_YNDZCLVL.M)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
53
53
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
54
54
  return `${reason}
55
55
  ${errorCodeMessage}
@@ -61,22 +61,22 @@ ${detailsHeader} ${message}`;
61
61
  }).exhaustive();
62
62
  const errorMessageWithContext = `${constructedErrorMessage}
63
63
  [Context: getConfig]`;
64
- super((0, import_chunk_KV7Z2TFQ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
+ super((0, import_chunk_JPMULYWV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
65
65
  this.name = "GetConfigError";
66
66
  }
67
67
  };
68
68
  async function getConfig(options) {
69
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getConfigWasm");
69
+ const debugErrorType = (0, import_chunk_6Z766KGR.createDebugErrorType)(debug, "getConfigWasm");
70
70
  debug(`Using getConfig Wasm`);
71
71
  const configEither = (0, import_function.pipe)(
72
72
  (0, import_chunk_5DBOS77Y.tryCatch)(
73
73
  () => {
74
74
  if (process.env.FORCE_PANIC_GET_CONFIG) {
75
75
  debug("Triggering a Rust panic...");
76
- import_chunk_AWZAOJRY.prismaSchemaWasm.debug_panic();
76
+ import_chunk_4CVZKYNS.prismaSchemaWasm.debug_panic();
77
77
  }
78
78
  const params = JSON.stringify({ prismaSchema: options.datamodel });
79
- return import_chunk_AWZAOJRY.prismaSchemaWasm.get_config(params);
79
+ return import_chunk_4CVZKYNS.prismaSchemaWasm.get_config(params);
80
80
  },
81
81
  (e) => ({
82
82
  type: "wasm-error",
@@ -117,7 +117,7 @@ async function getConfig(options) {
117
117
  }
118
118
  return Promise.resolve(data);
119
119
  }
120
- const error = (0, import_chunk_XKZ6CBLA.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
120
+ const error = (0, import_chunk_YNDZCLVL.M)(configEither.left).with({ type: "wasm-error" }, (e) => {
121
121
  debugErrorType(e);
122
122
  if ((0, import_chunk_LMVSIVKQ.isWasmPanic)(e.error)) {
123
123
  const { message, stack } = (0, import_chunk_LMVSIVKQ.getWasmError)(e.error);
@@ -134,12 +134,12 @@ async function getConfig(options) {
134
134
  return panic;
135
135
  }
136
136
  const errorOutput = e.error.message;
137
- return new GetConfigError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
137
+ return new GetConfigError((0, import_chunk_6Z766KGR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
138
138
  }).with({ type: "validation-error" }, (e) => {
139
139
  return new GetConfigError({
140
140
  _tag: "parsed",
141
141
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
142
- reason: (0, import_chunk_TZJROXB3.createSchemaValidationError)(e.reason),
142
+ reason: (0, import_chunk_6Z766KGR.createSchemaValidationError)(e.reason),
143
143
  message: formatErrors(e.error)
144
144
  });
145
145
  }).otherwise((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_VNNZDBYK_exports = {};
20
- __export(chunk_VNNZDBYK_exports, {
19
+ var chunk_LKEBUK2C_exports = {};
20
+ __export(chunk_LKEBUK2C_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_VNNZDBYK_exports);
24
- var import_chunk_CKEAAB42 = require("./chunk-CKEAAB42.js");
25
- var packageJson = (0, import_chunk_CKEAAB42.require_package)();
23
+ module.exports = __toCommonJS(chunk_LKEBUK2C_exports);
24
+ var import_chunk_GZXEG6LD = require("./chunk-GZXEG6LD.js");
25
+ var packageJson = (0, import_chunk_GZXEG6LD.require_package)();
26
26
  var version = packageJson.version;
@@ -16,20 +16,20 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_IPODTOYM_exports = {};
20
- __export(chunk_IPODTOYM_exports, {
19
+ var chunk_RYEXXNMW_exports = {};
20
+ __export(chunk_RYEXXNMW_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_IPODTOYM_exports);
28
- var import_chunk_AWZAOJRY = require("./chunk-AWZAOJRY.js");
27
+ module.exports = __toCommonJS(chunk_RYEXXNMW_exports);
28
+ var import_chunk_4CVZKYNS = require("./chunk-4CVZKYNS.js");
29
29
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
30
30
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
31
31
  function lintSchema({ schemas }) {
32
- const lintResult = import_chunk_AWZAOJRY.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_4CVZKYNS.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -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_JB7D7QBL_exports = {};
30
- __export(chunk_JB7D7QBL_exports, {
29
+ var chunk_U3Y3OHAR_exports = {};
30
+ __export(chunk_U3Y3OHAR_exports, {
31
31
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
32
32
  forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
33
33
  formatSchema: () => formatSchema,
@@ -40,7 +40,7 @@ __export(chunk_JB7D7QBL_exports, {
40
40
  processSchemaResult: () => processSchemaResult,
41
41
  skipIndex: () => skipIndex
42
42
  });
43
- module.exports = __toCommonJS(chunk_JB7D7QBL_exports);
43
+ module.exports = __toCommonJS(chunk_U3Y3OHAR_exports);
44
44
  var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
45
45
  var import_chunk_DZ4QWHTB = require("./chunk-DZ4QWHTB.js");
46
46
  var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
@@ -50,15 +50,15 @@ var import_chunk_NUKBOD54 = require("./chunk-NUKBOD54.js");
50
50
  var import_chunk_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
51
51
  var import_chunk_BGMZPA2F = require("./chunk-BGMZPA2F.js");
52
52
  var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
53
- var import_chunk_DPECJANV = require("./chunk-DPECJANV.js");
54
- var import_chunk_B3AOONBY = require("./chunk-B3AOONBY.js");
55
- var import_chunk_IPODTOYM = require("./chunk-IPODTOYM.js");
56
- var import_chunk_WYC4YSOB = require("./chunk-WYC4YSOB.js");
53
+ var import_chunk_L5WGZLIX = require("./chunk-L5WGZLIX.js");
54
+ var import_chunk_22S7OKAE = require("./chunk-22S7OKAE.js");
55
+ var import_chunk_RYEXXNMW = require("./chunk-RYEXXNMW.js");
56
+ var import_chunk_BKT6ULO5 = require("./chunk-BKT6ULO5.js");
57
57
  var import_chunk_2BXDHSSY = require("./chunk-2BXDHSSY.js");
58
- var import_chunk_AWZAOJRY = require("./chunk-AWZAOJRY.js");
58
+ var import_chunk_4CVZKYNS = require("./chunk-4CVZKYNS.js");
59
59
  var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
60
60
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
61
- var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
61
+ var import_chunk_YNDZCLVL = require("./chunk-YNDZCLVL.js");
62
62
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
63
63
  var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
64
64
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
@@ -76,7 +76,7 @@ var debug = (0, import_debug.default)("prisma:format");
76
76
  async function formatSchema({ schemas }, inputFormattingOptions) {
77
77
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
78
78
  handleFormatPanic(() => {
79
- import_chunk_AWZAOJRY.prismaSchemaWasm.debug_panic();
79
+ import_chunk_4CVZKYNS.prismaSchemaWasm.debug_panic();
80
80
  });
81
81
  }
82
82
  const defaultFormattingOptions = {
@@ -93,10 +93,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
93
93
  const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
94
94
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
95
95
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
96
- const lintDiagnostics2 = (0, import_chunk_IPODTOYM.lintSchema)({ schemas: formattedMultipleSchemas2 });
96
+ const lintDiagnostics2 = (0, import_chunk_RYEXXNMW.lintSchema)({ schemas: formattedMultipleSchemas2 });
97
97
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
98
98
  });
99
- const lintWarnings = (0, import_chunk_IPODTOYM.getLintWarningsAsText)(lintDiagnostics);
99
+ const lintWarnings = (0, import_chunk_RYEXXNMW.getLintWarningsAsText)(lintDiagnostics);
100
100
  if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
101
101
  console.warn(lintWarnings);
102
102
  }
@@ -123,7 +123,7 @@ function handleFormatPanic(tryCb) {
123
123
  }
124
124
  }
125
125
  function formatWasm(schema, documentFormattingParams) {
126
- const formattedSchema = import_chunk_AWZAOJRY.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
126
+ const formattedSchema = import_chunk_4CVZKYNS.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
127
127
  return formattedSchema;
128
128
  }
129
129
  async function loadSchemaContext({ schemaPath, printLoadMessage, allowNull, schemaPathArgumentName, cwd } = {
@@ -152,7 +152,7 @@ async function processSchemaResult({
152
152
  if (printLoadMessage) {
153
153
  (0, import_chunk_2BXDHSSY.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
154
154
  }
155
- const configFromPsl = await (0, import_chunk_DPECJANV.getConfig)({ datamodel: schemaResult.schemas });
155
+ const configFromPsl = await (0, import_chunk_L5WGZLIX.getConfig)({ datamodel: schemaResult.schemas });
156
156
  const primaryDatasource = configFromPsl.datasources.at(0);
157
157
  return {
158
158
  schemaFiles: schemaResult.schemas,
@@ -206,7 +206,7 @@ async function getGenerators(options) {
206
206
  throw new Error(import_chunk_BGMZPA2F.missingDatasource);
207
207
  }
208
208
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
209
- const dmmf = await (0, import_chunk_B3AOONBY.getDMMF)({ datamodel: schemaContext.schemaFiles });
209
+ const dmmf = await (0, import_chunk_22S7OKAE.getDMMF)({ datamodel: schemaContext.schemaFiles });
210
210
  if (dmmf.datamodel.models.length === 0 && !allowNoModels) {
211
211
  if (schemaContext.primaryDatasource.provider === "mongodb") {
212
212
  throw new Error(import_chunk_NUKBOD54.missingModelMessageMongoDB);
@@ -226,7 +226,7 @@ async function getGenerators(options) {
226
226
  type: "rpc",
227
227
  generatorPath: providerValue
228
228
  };
229
- const generatorInstance = (0, import_chunk_XKZ6CBLA.z)(generatorDefinition).with({ type: "in-process" }, ({ generator }) => new import_chunk_BPDMLM32.InProcessGenerator(generatorConfig, generator)).with(
229
+ const generatorInstance = (0, import_chunk_YNDZCLVL.M)(generatorDefinition).with({ type: "in-process" }, ({ generator }) => new import_chunk_BPDMLM32.InProcessGenerator(generatorConfig, generator)).with(
230
230
  { type: "rpc" },
231
231
  ({ generatorPath, isNode }) => new import_chunk_BPDMLM32.JsonRpcGenerator(generatorPath, generatorConfig, isNode)
232
232
  ).exhaustive();
@@ -254,7 +254,7 @@ You need to define \`output\` in the generator block in the schema file.`
254
254
  fromEnvVar: null
255
255
  };
256
256
  }
257
- const datamodel = (0, import_chunk_WYC4YSOB.mergeSchemas)({ schemas: schemaContext.schemaFiles });
257
+ const datamodel = (0, import_chunk_BKT6ULO5.mergeSchemas)({ schemas: schemaContext.schemaFiles });
258
258
  const options2 = {
259
259
  datamodel,
260
260
  datasources: schemaContext.datasources,
@@ -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_5P4WR3QW_exports = {};
30
- __export(chunk_5P4WR3QW_exports, {
29
+ var chunk_VZPJTD4R_exports = {};
30
+ __export(chunk_VZPJTD4R_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_5P4WR3QW_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
34
+ module.exports = __toCommonJS(chunk_VZPJTD4R_exports);
35
+ var import_chunk_6Z766KGR = require("./chunk-6Z766KGR.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_GZY7QBBF = require("./chunk-GZY7QBBF.js");
39
- var import_chunk_PP22IZ7I = require("./chunk-PP22IZ7I.js");
38
+ var import_chunk_EBMNBGC2 = require("./chunk-EBMNBGC2.js");
39
+ var import_chunk_ZB2EMLG6 = require("./chunk-ZB2EMLG6.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
- var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
+ var import_chunk_YNDZCLVL = require("./chunk-YNDZCLVL.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
44
44
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -47,7 +47,7 @@ var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57
47
47
  var debug = (0, import_debug.default)("prisma:mergeSchemas");
48
48
  var MergeSchemasError = class extends Error {
49
49
  constructor(params) {
50
- const constructedErrorMessage = (0, import_chunk_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
50
+ const constructedErrorMessage = (0, import_chunk_YNDZCLVL.M)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
51
51
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
52
52
  return `${reason}
53
53
  ${errorCodeMessage}
@@ -59,12 +59,12 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_GZY7QBBF.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_EBMNBGC2.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
66
66
  function mergeSchemas(options) {
67
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "mergeSchemasWasm");
67
+ const debugErrorType = (0, import_chunk_6Z766KGR.createDebugErrorType)(debug, "mergeSchemasWasm");
68
68
  debug(`Using mergeSchemas Wasm`);
69
69
  const mergeSchemasEither = (0, import_function.pipe)(
70
70
  (0, import_chunk_5DBOS77Y.tryCatch)(
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_PP22IZ7I.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_ZB2EMLG6.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -84,7 +84,7 @@ function mergeSchemas(options) {
84
84
  if ((0, import_chunk_5DBOS77Y.isRight)(mergeSchemasEither)) {
85
85
  return mergeSchemasEither.right;
86
86
  }
87
- const error = (0, import_chunk_XKZ6CBLA.z)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
87
+ const error = (0, import_chunk_YNDZCLVL.M)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
88
88
  debugErrorType(e);
89
89
  console.error("");
90
90
  if ((0, import_chunk_LMVSIVKQ.isWasmPanic)(e.error)) {
@@ -104,7 +104,7 @@ function mergeSchemas(options) {
104
104
  return panic;
105
105
  }
106
106
  const errorOutput = e.error.message;
107
- return new MergeSchemasError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
107
+ return new MergeSchemasError((0, import_chunk_6Z766KGR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
108
108
  }).exhaustive();
109
109
  throw error;
110
110
  }
@@ -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_CKEAAB42_exports = {};
20
- __export(chunk_CKEAAB42_exports, {
19
+ var chunk_XAUTI5A2_exports = {};
20
+ __export(chunk_XAUTI5A2_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_CKEAAB42_exports);
23
+ module.exports = __toCommonJS(chunk_XAUTI5A2_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: "7.10.0-dev.2",
29
+ version: "7.10.0-dev.21",
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",
@@ -62,7 +62,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
62
62
  empathic: "2.0.0",
63
63
  "escape-string-regexp": "5.0.0",
64
64
  execa: "8.0.1",
65
- "find-up": "7.0.0",
65
+ "find-up": "8.0.0",
66
66
  "fp-ts": "2.16.9",
67
67
  "fs-extra": "11.3.0",
68
68
  "global-directory": "4.0.0",
@@ -85,7 +85,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
85
85
  tempy: "1.0.1",
86
86
  "terminal-link": "4.0.0",
87
87
  tmp: "0.2.3",
88
- "ts-pattern": "5.6.2",
88
+ "ts-pattern": "5.9.0",
89
89
  "ts-toolbelt": "9.6.0",
90
90
  typescript: "5.4.5",
91
91
  yarn: "1.22.22"