@prisma/internals 7.10.0-dev.4 → 7.10.0-dev.41

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-MD47SEWA.js → chunk-3EP7IZ7L.js} +14 -14
  2. package/dist/{chunk-EBLNHWW6.js → chunk-3VD46SL7.js} +9 -9
  3. package/dist/{chunk-3GIVRMID.js → chunk-4LTRNH4Z.js} +5 -5
  4. package/dist/{chunk-5QIQC2ED.js → chunk-4Y2SWMUE.js} +5 -5
  5. package/dist/{chunk-OJTHEQ3F.js → chunk-5ATFUSM4.js} +13 -13
  6. package/dist/{chunk-66LHESRM.js → chunk-65ZWMVGM.js} +10 -10
  7. package/dist/{chunk-6PILE32P.js → chunk-6AW3B2B4.js} +17 -17
  8. package/dist/{chunk-TZJROXB3.js → chunk-6Z766KGR.js} +6 -6
  9. package/dist/{chunk-5E6NOTGL.js → chunk-AFM7ITEF.js} +14 -14
  10. package/dist/{chunk-MA5U7LWX.js → chunk-DOHCKVAQ.js} +5 -5
  11. package/dist/{chunk-GZLJZGHX.js → chunk-DUDEWDFC.js} +7 -7
  12. package/dist/{chunk-LZ2DP3UC.js → chunk-EU5HJO5I.js} +7 -7
  13. package/dist/{chunk-VDDHAUY7.js → chunk-F255J7BV.js} +17 -17
  14. package/dist/{chunk-YXCPS3WU.js → chunk-FRVJZOHP.js} +6 -6
  15. package/dist/{chunk-PP22IZ7I.js → chunk-H2UQQUTK.js} +5 -5
  16. package/dist/{chunk-LVRCRS26.js → chunk-JMR4SZO6.js} +15 -15
  17. package/dist/{chunk-2GF6ENF5.js → chunk-KXKIQGO5.js} +5 -5
  18. package/dist/{chunk-ZB2V476P.js → chunk-LX4XTVX3.js} +10 -10
  19. package/dist/{chunk-TKVTYHOD.js → chunk-NHVJ7SRZ.js} +5 -5
  20. package/dist/{chunk-4YZJJPK2.js → chunk-UNDN4OUD.js} +15 -15
  21. package/dist/{chunk-L2BUQUNG.js → chunk-WC7KCTJO.js} +5 -5
  22. package/dist/{chunk-5P4WR3QW.js → chunk-WL3XGKZO.js} +13 -13
  23. package/dist/{chunk-GZY7QBBF.js → chunk-XHPEM7UC.js} +5 -5
  24. package/dist/{chunk-RRGOIBX4.js → chunk-Y3IJB5ON.js} +8 -8
  25. package/dist/chunk-YNDZCLVL.js +307 -0
  26. package/dist/{chunk-7IKUTPWQ.js → chunk-YXB6APHS.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 +16 -16
  47. package/dist/chunk-XKZ6CBLA.js +0 -281
@@ -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_VDDHAUY7_exports = {};
30
- __export(chunk_VDDHAUY7_exports, {
29
+ var chunk_F255J7BV_exports = {};
30
+ __export(chunk_F255J7BV_exports, {
31
31
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
32
32
  forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
33
33
  formatSchema: () => formatSchema,
@@ -40,7 +40,7 @@ __export(chunk_VDDHAUY7_exports, {
40
40
  processSchemaResult: () => processSchemaResult,
41
41
  skipIndex: () => skipIndex
42
42
  });
43
- module.exports = __toCommonJS(chunk_VDDHAUY7_exports);
43
+ module.exports = __toCommonJS(chunk_F255J7BV_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_LVRCRS26 = require("./chunk-LVRCRS26.js");
54
- var import_chunk_66LHESRM = require("./chunk-66LHESRM.js");
55
- var import_chunk_2GF6ENF5 = require("./chunk-2GF6ENF5.js");
56
- var import_chunk_OJTHEQ3F = require("./chunk-OJTHEQ3F.js");
53
+ var import_chunk_UNDN4OUD = require("./chunk-UNDN4OUD.js");
54
+ var import_chunk_65ZWMVGM = require("./chunk-65ZWMVGM.js");
55
+ var import_chunk_KXKIQGO5 = require("./chunk-KXKIQGO5.js");
56
+ var import_chunk_5ATFUSM4 = require("./chunk-5ATFUSM4.js");
57
57
  var import_chunk_2BXDHSSY = require("./chunk-2BXDHSSY.js");
58
- var import_chunk_MA5U7LWX = require("./chunk-MA5U7LWX.js");
58
+ var import_chunk_H2UQQUTK = require("./chunk-H2UQQUTK.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_MA5U7LWX.prismaSchemaWasm.debug_panic();
79
+ import_chunk_H2UQQUTK.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_2GF6ENF5.lintSchema)({ schemas: formattedMultipleSchemas2 });
96
+ const lintDiagnostics2 = (0, import_chunk_KXKIQGO5.lintSchema)({ schemas: formattedMultipleSchemas2 });
97
97
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
98
98
  });
99
- const lintWarnings = (0, import_chunk_2GF6ENF5.getLintWarningsAsText)(lintDiagnostics);
99
+ const lintWarnings = (0, import_chunk_KXKIQGO5.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_MA5U7LWX.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
126
+ const formattedSchema = import_chunk_H2UQQUTK.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_LVRCRS26.getConfig)({ datamodel: schemaResult.schemas });
155
+ const configFromPsl = await (0, import_chunk_UNDN4OUD.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_66LHESRM.getDMMF)({ datamodel: schemaContext.schemaFiles });
209
+ const dmmf = await (0, import_chunk_65ZWMVGM.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_OJTHEQ3F.mergeSchemas)({ schemas: schemaContext.schemaFiles });
257
+ const datamodel = (0, import_chunk_5ATFUSM4.mergeSchemas)({ schemas: schemaContext.schemaFiles });
258
258
  const options2 = {
259
259
  datamodel,
260
260
  datasources: schemaContext.datasources,
@@ -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",
@@ -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_PP22IZ7I_exports = {};
30
- __export(chunk_PP22IZ7I_exports, {
29
+ var chunk_H2UQQUTK_exports = {};
30
+ __export(chunk_H2UQQUTK_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_PP22IZ7I_exports);
37
- var import_chunk_LZ2DP3UC = require("./chunk-LZ2DP3UC.js");
36
+ module.exports = __toCommonJS(chunk_H2UQQUTK_exports);
37
+ var import_chunk_Y3IJB5ON = require("./chunk-Y3IJB5ON.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_LZ2DP3UC.require_package)();
49
+ var { dependencies } = (0, import_chunk_Y3IJB5ON.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -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_LVRCRS26_exports = {};
30
- __export(chunk_LVRCRS26_exports, {
29
+ var chunk_JMR4SZO6_exports = {};
30
+ __export(chunk_JMR4SZO6_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig
33
33
  });
34
- module.exports = __toCommonJS(chunk_LVRCRS26_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
34
+ module.exports = __toCommonJS(chunk_JMR4SZO6_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_5QIQC2ED = require("./chunk-5QIQC2ED.js");
39
- var import_chunk_MA5U7LWX = require("./chunk-MA5U7LWX.js");
38
+ var import_chunk_XHPEM7UC = require("./chunk-XHPEM7UC.js");
39
+ var import_chunk_DOHCKVAQ = require("./chunk-DOHCKVAQ.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_5QIQC2ED.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
+ super((0, import_chunk_XHPEM7UC.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_MA5U7LWX.prismaSchemaWasm.debug_panic();
76
+ import_chunk_DOHCKVAQ.prismaSchemaWasm.debug_panic();
77
77
  }
78
78
  const params = JSON.stringify({ prismaSchema: options.datamodel });
79
- return import_chunk_MA5U7LWX.prismaSchemaWasm.get_config(params);
79
+ return import_chunk_DOHCKVAQ.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,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_2GF6ENF5_exports = {};
20
- __export(chunk_2GF6ENF5_exports, {
19
+ var chunk_KXKIQGO5_exports = {};
20
+ __export(chunk_KXKIQGO5_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_2GF6ENF5_exports);
28
- var import_chunk_MA5U7LWX = require("./chunk-MA5U7LWX.js");
27
+ module.exports = __toCommonJS(chunk_KXKIQGO5_exports);
28
+ var import_chunk_H2UQQUTK = require("./chunk-H2UQQUTK.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_MA5U7LWX.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_H2UQQUTK.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -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_LX4XTVX3_exports = {};
30
+ __export(chunk_LX4XTVX3_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_LX4XTVX3_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_XHPEM7UC = require("./chunk-XHPEM7UC.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_XHPEM7UC.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
  }
@@ -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_TKVTYHOD_exports = {};
20
- __export(chunk_TKVTYHOD_exports, {
19
+ var chunk_NHVJ7SRZ_exports = {};
20
+ __export(chunk_NHVJ7SRZ_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_TKVTYHOD_exports);
24
- var import_chunk_RRGOIBX4 = require("./chunk-RRGOIBX4.js");
25
- var packageJson = (0, import_chunk_RRGOIBX4.require_package)();
23
+ module.exports = __toCommonJS(chunk_NHVJ7SRZ_exports);
24
+ var import_chunk_Y3IJB5ON = require("./chunk-Y3IJB5ON.js");
25
+ var packageJson = (0, import_chunk_Y3IJB5ON.require_package)();
26
26
  var version = packageJson.version;
@@ -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_4YZJJPK2_exports = {};
30
- __export(chunk_4YZJJPK2_exports, {
29
+ var chunk_UNDN4OUD_exports = {};
30
+ __export(chunk_UNDN4OUD_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig
33
33
  });
34
- module.exports = __toCommonJS(chunk_4YZJJPK2_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
34
+ module.exports = __toCommonJS(chunk_UNDN4OUD_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_4Y2SWMUE = require("./chunk-4Y2SWMUE.js");
39
+ var import_chunk_H2UQQUTK = require("./chunk-H2UQQUTK.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_GZY7QBBF.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
+ super((0, import_chunk_4Y2SWMUE.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_PP22IZ7I.prismaSchemaWasm.debug_panic();
76
+ import_chunk_H2UQQUTK.prismaSchemaWasm.debug_panic();
77
77
  }
78
78
  const params = JSON.stringify({ prismaSchema: options.datamodel });
79
- return import_chunk_PP22IZ7I.prismaSchemaWasm.get_config(params);
79
+ return import_chunk_H2UQQUTK.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,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_L2BUQUNG_exports = {};
20
- __export(chunk_L2BUQUNG_exports, {
19
+ var chunk_WC7KCTJO_exports = {};
20
+ __export(chunk_WC7KCTJO_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_L2BUQUNG_exports);
28
- var import_chunk_PP22IZ7I = require("./chunk-PP22IZ7I.js");
27
+ module.exports = __toCommonJS(chunk_WC7KCTJO_exports);
28
+ var import_chunk_DOHCKVAQ = require("./chunk-DOHCKVAQ.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_PP22IZ7I.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_DOHCKVAQ.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -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_WL3XGKZO_exports = {};
30
+ __export(chunk_WL3XGKZO_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_WL3XGKZO_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_XHPEM7UC = require("./chunk-XHPEM7UC.js");
39
+ var import_chunk_DOHCKVAQ = require("./chunk-DOHCKVAQ.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_XHPEM7UC.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_DOHCKVAQ.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,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_XHPEM7UC_exports = {};
20
+ __export(chunk_XHPEM7UC_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_GZY7QBBF_exports);
23
+ module.exports = __toCommonJS(chunk_XHPEM7UC_exports);
24
24
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
25
- var import_chunk_3GIVRMID = require("./chunk-3GIVRMID.js");
25
+ var import_chunk_4LTRNH4Z = require("./chunk-4LTRNH4Z.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_3GIVRMID.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_4LTRNH4Z.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_RRGOIBX4_exports = {};
20
- __export(chunk_RRGOIBX4_exports, {
19
+ var chunk_Y3IJB5ON_exports = {};
20
+ __export(chunk_Y3IJB5ON_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_RRGOIBX4_exports);
23
+ module.exports = __toCommonJS(chunk_Y3IJB5ON_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.4",
29
+ version: "7.10.0-dev.41",
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"
@@ -101,8 +101,8 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
101
101
  "@prisma/generator-helper": "workspace:*",
102
102
  "@prisma/get-dmmf": "workspace:*",
103
103
  "@prisma/get-platform": "workspace:*",
104
- "@prisma/prisma-schema-wasm": "7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad",
105
- "@prisma/schema-engine-wasm": "7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad",
104
+ "@prisma/prisma-schema-wasm": "7.10.0-1.6d040c802892de6d56c7e0061b7a10b3e6a0c7a0",
105
+ "@prisma/schema-engine-wasm": "7.10.0-1.6d040c802892de6d56c7e0061b7a10b3e6a0c7a0",
106
106
  "@prisma/schema-files-loader": "workspace:*",
107
107
  "@streamparser/json": "0.0.22",
108
108
  arg: "5.0.2",