@prisma/internals 6.5.0-dev.54 → 6.5.0-dev.56

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 (49) hide show
  1. package/dist/Generator.js +2 -2
  2. package/dist/WasmPanicRegistry.js +2 -2
  3. package/dist/{chunk-76UB634F.js → chunk-2OLURLK6.js} +12 -12
  4. package/dist/{chunk-GZYLX3LR.js → chunk-3BUJ76XG.js} +5 -5
  5. package/dist/{chunk-CRQY54NT.js → chunk-4BIM67DA.js} +24 -24
  6. package/dist/{chunk-IHA6I74X.js → chunk-6M7MJQCV.js} +24 -24
  7. package/dist/{chunk-A4QWQE3W.js → chunk-ATFQZVBS.js} +11 -4
  8. package/dist/{chunk-WP26QRVO.js → chunk-BOSKBIEW.js} +5 -5
  9. package/dist/{chunk-HOZFIXMD.js → chunk-BPZFDGKN.js} +5 -4
  10. package/dist/{chunk-IUW7RHPT.js → chunk-CL5EJJ3G.js} +8 -8
  11. package/dist/{chunk-O3DWZYDE.js → chunk-DQGTDMKZ.js} +12 -12
  12. package/dist/{chunk-EPB2EZMT.js → chunk-EPF2VC52.js} +4 -4
  13. package/dist/{chunk-GYJORHUJ.js → chunk-FIAOONJQ.js} +11 -11
  14. package/dist/{chunk-FHRP6WKY.js → chunk-FS2RY36X.js} +7 -7
  15. package/dist/{chunk-DBEZY3L3.js → chunk-G2D55CLD.js} +5 -5
  16. package/dist/{chunk-MUCSHEXZ.js → chunk-G4DBNDZH.js} +11 -11
  17. package/dist/{chunk-7MRJNQW6.js → chunk-KJTSTIRI.js} +12 -12
  18. package/dist/{chunk-HGDLGARE.js → chunk-KOWCXTHQ.js} +5 -5
  19. package/dist/{chunk-6ULYATK6.js → chunk-M546VQV7.js} +7 -7
  20. package/dist/{chunk-CVK3BDCS.js → chunk-NXUFEMSP.js} +12 -12
  21. package/dist/{chunk-NG6XV4UC.js → chunk-QOQKKNBU.js} +12 -12
  22. package/dist/{chunk-DJSUZZ3Z.js → chunk-QWUWOTTM.js} +5 -5
  23. package/dist/{chunk-YVPGWCTJ.js → chunk-UB7B3VT4.js} +8 -8
  24. package/dist/{chunk-X52BU4GK.js → chunk-ZP5B4U6D.js} +12 -12
  25. package/dist/{chunk-635TMBAP.js → chunk-ZYW3HGSH.js} +8 -4
  26. package/dist/cli/checkUnsupportedDataProxy.js +15 -15
  27. package/dist/cli/getSchema.js +19 -19
  28. package/dist/cli/hashes.js +15 -15
  29. package/dist/engine-commands/errorHelpers.js +4 -4
  30. package/dist/engine-commands/formatSchema.js +14 -14
  31. package/dist/engine-commands/getConfig.js +12 -12
  32. package/dist/engine-commands/getDmmf.js +9 -9
  33. package/dist/engine-commands/index.js +23 -23
  34. package/dist/engine-commands/lintSchema.js +10 -10
  35. package/dist/engine-commands/mergeSchemas.js +9 -9
  36. package/dist/engine-commands/validate.js +9 -9
  37. package/dist/get-generators/generatorResolvers/generatorResolvers.js +14 -14
  38. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +14 -14
  39. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +15 -15
  40. package/dist/get-generators/getGenerators.js +17 -17
  41. package/dist/index.js +46 -46
  42. package/dist/panic.js +6 -6
  43. package/dist/sendPanic.js +14 -14
  44. package/dist/utils/getEnvPaths.js +14 -14
  45. package/dist/utils/getVersionFromPackageJson.js +3 -3
  46. package/dist/utils/handlePanic.js +14 -14
  47. package/dist/utils/loadEnvFile.js +14 -14
  48. package/dist/wasm.js +5 -5
  49. package/package.json +9 -9
package/dist/Generator.js CHANGED
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var Generator_exports = {};
20
20
  __export(Generator_exports, {
21
- Generator: () => import_chunk_635TMBAP.Generator
21
+ Generator: () => import_chunk_ZYW3HGSH.Generator
22
22
  });
23
23
  module.exports = __toCommonJS(Generator_exports);
24
- var import_chunk_635TMBAP = require("./chunk-635TMBAP.js");
24
+ var import_chunk_ZYW3HGSH = require("./chunk-ZYW3HGSH.js");
25
25
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
26
26
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
27
27
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var WasmPanicRegistry_exports = {};
20
20
  __export(WasmPanicRegistry_exports, {
21
- WasmPanicRegistry: () => import_chunk_HOZFIXMD.WasmPanicRegistry
21
+ WasmPanicRegistry: () => import_chunk_BPZFDGKN.WasmPanicRegistry
22
22
  });
23
23
  module.exports = __toCommonJS(WasmPanicRegistry_exports);
24
- var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
24
+ var import_chunk_BPZFDGKN = require("./chunk-BPZFDGKN.js");
25
25
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
@@ -26,23 +26,23 @@ 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_76UB634F_exports = {};
30
- __export(chunk_76UB634F_exports, {
29
+ var chunk_2OLURLK6_exports = {};
30
+ __export(chunk_2OLURLK6_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig,
33
33
  getDirectUrl: () => getDirectUrl,
34
34
  getEffectiveUrl: () => getEffectiveUrl,
35
35
  resolveUrl: () => resolveUrl
36
36
  });
37
- module.exports = __toCommonJS(chunk_76UB634F_exports);
37
+ module.exports = __toCommonJS(chunk_2OLURLK6_exports);
38
38
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
39
39
  var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
40
40
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
- var import_chunk_WP26QRVO = require("./chunk-WP26QRVO.js");
41
+ var import_chunk_QWUWOTTM = require("./chunk-QWUWOTTM.js");
42
42
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
43
43
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
44
- var import_chunk_FHRP6WKY = require("./chunk-FHRP6WKY.js");
45
- var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
44
+ var import_chunk_FS2RY36X = require("./chunk-FS2RY36X.js");
45
+ var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
46
46
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
47
47
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
48
48
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
65
65
  }).exhaustive();
66
66
  const errorMessageWithContext = `${constructedErrorMessage}
67
67
  [Context: getConfig]`;
68
- super((0, import_chunk_WP26QRVO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
+ super((0, import_chunk_QWUWOTTM.addVersionDetailsToErrorMessage)(errorMessageWithContext));
69
69
  this.name = "GetConfigError";
70
70
  }
71
71
  };
@@ -90,7 +90,7 @@ async function getConfig(options) {
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_FHRP6WKY.prismaSchemaWasm.debug_panic();
93
+ import_chunk_FS2RY36X.prismaSchemaWasm.debug_panic();
94
94
  }
95
95
  const params = JSON.stringify({
96
96
  prismaSchema: options.datamodel,
@@ -98,7 +98,7 @@ async function getConfig(options) {
98
98
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
99
99
  env: process.env
100
100
  });
101
- const data = import_chunk_FHRP6WKY.prismaSchemaWasm.get_config(params);
101
+ const data = import_chunk_FS2RY36X.prismaSchemaWasm.get_config(params);
102
102
  return data;
103
103
  },
104
104
  (e) => ({
@@ -142,9 +142,9 @@ async function getConfig(options) {
142
142
  }
143
143
  const error = (0, import_chunk_XKZ6CBLA.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
144
144
  debugErrorType(e);
145
- if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
146
- const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e.error);
147
- const panic = new import_chunk_A4QWQE3W.RustPanic(
145
+ if ((0, import_chunk_ATFQZVBS.isWasmPanic)(e.error)) {
146
+ const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e.error);
147
+ const panic = new import_chunk_ATFQZVBS.RustPanic(
148
148
  /* message */
149
149
  message,
150
150
  /* rustStack */
@@ -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_GZYLX3LR_exports = {};
20
- __export(chunk_GZYLX3LR_exports, {
19
+ var chunk_3BUJ76XG_exports = {};
20
+ __export(chunk_3BUJ76XG_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_GZYLX3LR_exports);
24
- var import_chunk_DBEZY3L3 = require("./chunk-DBEZY3L3.js");
25
- var packageJson = (0, import_chunk_DBEZY3L3.require_package)();
23
+ module.exports = __toCommonJS(chunk_3BUJ76XG_exports);
24
+ var import_chunk_EPF2VC52 = require("./chunk-EPF2VC52.js");
25
+ var packageJson = (0, import_chunk_EPF2VC52.require_package)();
26
26
  var version = packageJson.version;
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_CRQY54NT_exports = {};
30
- __export2(chunk_CRQY54NT_exports, {
29
+ var chunk_4BIM67DA_exports = {};
30
+ __export2(chunk_4BIM67DA_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
33
  debug: () => debug5,
@@ -54,7 +54,7 @@ __export2(chunk_CRQY54NT_exports, {
54
54
  sendPanic: () => sendPanic,
55
55
  skipIndex: () => skipIndex
56
56
  });
57
- module.exports = __toCommonJS2(chunk_CRQY54NT_exports);
57
+ module.exports = __toCommonJS2(chunk_4BIM67DA_exports);
58
58
  var import_chunk_S57RMXZW = require("./chunk-S57RMXZW.js");
59
59
  var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
60
60
  var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
@@ -79,18 +79,18 @@ var import_chunk_AC6EAR56 = require("./chunk-AC6EAR56.js");
79
79
  var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
80
80
  var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
81
81
  var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
82
- var import_chunk_IUW7RHPT = require("./chunk-IUW7RHPT.js");
83
- var import_chunk_MUCSHEXZ = require("./chunk-MUCSHEXZ.js");
84
- var import_chunk_7MRJNQW6 = require("./chunk-7MRJNQW6.js");
85
- var import_chunk_CVK3BDCS = require("./chunk-CVK3BDCS.js");
82
+ var import_chunk_UB7B3VT4 = require("./chunk-UB7B3VT4.js");
83
+ var import_chunk_FIAOONJQ = require("./chunk-FIAOONJQ.js");
84
+ var import_chunk_KJTSTIRI = require("./chunk-KJTSTIRI.js");
85
+ var import_chunk_ZP5B4U6D = require("./chunk-ZP5B4U6D.js");
86
86
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
87
87
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
88
- var import_chunk_6ULYATK6 = require("./chunk-6ULYATK6.js");
89
- var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
88
+ var import_chunk_M546VQV7 = require("./chunk-M546VQV7.js");
89
+ var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
90
90
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
91
91
  var import_chunk_GXDYIY4M = require("./chunk-GXDYIY4M.js");
92
92
  var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
93
- var import_chunk_635TMBAP = require("./chunk-635TMBAP.js");
93
+ var import_chunk_ZYW3HGSH = require("./chunk-ZYW3HGSH.js");
94
94
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
95
95
  var import_chunk_KQOJB3ZW = require("./chunk-KQOJB3ZW.js");
96
96
  var import_chunk_IZ57EPVG = require("./chunk-IZ57EPVG.js");
@@ -14750,7 +14750,7 @@ async function readSchemaFromDirectory(schemaPath2) {
14750
14750
  }
14751
14751
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
14752
14752
  debug2("Loading config");
14753
- const config2 = await (0, import_chunk_7MRJNQW6.getConfig)({
14753
+ const config2 = await (0, import_chunk_KJTSTIRI.getConfig)({
14754
14754
  datamodel: files,
14755
14755
  ignoreEnvVarErrors: true
14756
14756
  });
@@ -15076,8 +15076,8 @@ async function checkUnsupportedDataProxyMessage(command, args, schemaPathFromCon
15076
15076
  if (argName.includes("schema")) {
15077
15077
  await loadEnvFile({ schemaPath: argValue, printMessage: false, config: (0, import_config.defaultTestConfig)() });
15078
15078
  const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
15079
- const config2 = await (0, import_chunk_7MRJNQW6.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15080
- const url = (0, import_chunk_7MRJNQW6.resolveUrl)((0, import_chunk_7MRJNQW6.getEffectiveUrl)(config2.datasources[0]));
15079
+ const config2 = await (0, import_chunk_KJTSTIRI.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15080
+ const url = (0, import_chunk_KJTSTIRI.resolveUrl)((0, import_chunk_KJTSTIRI.getEffectiveUrl)(config2.datasources[0]));
15081
15081
  if (url?.startsWith("prisma://")) {
15082
15082
  return forbiddenCmdWithDataProxyFlagMessage(command);
15083
15083
  }
@@ -15250,7 +15250,7 @@ async function getGenerators(options) {
15250
15250
  prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
15251
15251
  }
15252
15252
  }
15253
- const config = await (0, import_chunk_7MRJNQW6.getConfig)({
15253
+ const config = await (0, import_chunk_KJTSTIRI.getConfig)({
15254
15254
  datamodel: schemas,
15255
15255
  datamodelPath: schemaPath,
15256
15256
  prismaPath,
@@ -15261,7 +15261,7 @@ async function getGenerators(options) {
15261
15261
  }
15262
15262
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
15263
15263
  const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
15264
- const dmmf = await (0, import_chunk_CVK3BDCS.getDMMF)({
15264
+ const dmmf = await (0, import_chunk_ZP5B4U6D.getDMMF)({
15265
15265
  datamodel: schemas,
15266
15266
  datamodelPath: schemaPath,
15267
15267
  prismaPath,
@@ -15292,7 +15292,7 @@ async function getGenerators(options) {
15292
15292
  paths2 = await generatorResolvers[providerValue](baseDir, cliVersion);
15293
15293
  generatorPath = paths2.generatorPath;
15294
15294
  }
15295
- const generatorInstance = new import_chunk_635TMBAP.Generator(generatorPath, generator, paths2?.isNode);
15295
+ const generatorInstance = new import_chunk_ZYW3HGSH.Generator(generatorPath, generator, paths2?.isNode);
15296
15296
  await generatorInstance.init();
15297
15297
  if (generator.output) {
15298
15298
  generator.output = {
@@ -15322,7 +15322,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
15322
15322
  fromEnvVar: "null"
15323
15323
  };
15324
15324
  }
15325
- const datamodel = (0, import_chunk_MUCSHEXZ.mergeSchemas)({ schemas });
15325
+ const datamodel = (0, import_chunk_FIAOONJQ.mergeSchemas)({ schemas });
15326
15326
  const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
15327
15327
  const options2 = {
15328
15328
  datamodel,
@@ -15405,7 +15405,7 @@ generator gen {
15405
15405
  debug6({ generatorBinaryPaths });
15406
15406
  generator.setBinaryPaths(generatorBinaryPaths);
15407
15407
  if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
15408
- const customDmmf = await (0, import_chunk_CVK3BDCS.getDMMF)({
15408
+ const customDmmf = await (0, import_chunk_ZP5B4U6D.getDMMF)({
15409
15409
  datamodel: schemas,
15410
15410
  datamodelPath: schemaPath,
15411
15411
  prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
@@ -15703,7 +15703,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15703
15703
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
15704
15704
  handleFormatPanic(
15705
15705
  () => {
15706
- import_chunk_6ULYATK6.prismaSchemaWasm.debug_panic();
15706
+ import_chunk_M546VQV7.prismaSchemaWasm.debug_panic();
15707
15707
  },
15708
15708
  { schemas: schemas2 }
15709
15709
  );
@@ -15723,12 +15723,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15723
15723
  () => {
15724
15724
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
15725
15725
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
15726
- const lintDiagnostics2 = (0, import_chunk_IUW7RHPT.lintSchema)({ schemas: formattedMultipleSchemas2 });
15726
+ const lintDiagnostics2 = (0, import_chunk_UB7B3VT4.lintSchema)({ schemas: formattedMultipleSchemas2 });
15727
15727
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
15728
15728
  },
15729
15729
  { schemas: schemas2 }
15730
15730
  );
15731
- const lintWarnings = (0, import_chunk_IUW7RHPT.getLintWarningsAsText)(lintDiagnostics);
15731
+ const lintWarnings = (0, import_chunk_UB7B3VT4.getLintWarningsAsText)(lintDiagnostics);
15732
15732
  if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
15733
15733
  console.warn(lintWarnings);
15734
15734
  }
@@ -15738,10 +15738,10 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
15738
15738
  try {
15739
15739
  return tryCb();
15740
15740
  } catch (e) {
15741
- const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e);
15741
+ const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e);
15742
15742
  debug7(`Error formatting schema: ${message}`);
15743
15743
  debug7(stack);
15744
- const panic = new import_chunk_A4QWQE3W.RustPanic(
15744
+ const panic = new import_chunk_ATFQZVBS.RustPanic(
15745
15745
  /* message */
15746
15746
  message,
15747
15747
  /* rustStack */
@@ -15758,7 +15758,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
15758
15758
  }
15759
15759
  }
15760
15760
  function formatWasm(schema, documentFormattingParams) {
15761
- const formattedSchema = import_chunk_6ULYATK6.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15761
+ const formattedSchema = import_chunk_M546VQV7.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15762
15762
  return formattedSchema;
15763
15763
  }
15764
15764
  /*! Bundled license information:
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_IHA6I74X_exports = {};
30
- __export2(chunk_IHA6I74X_exports, {
29
+ var chunk_6M7MJQCV_exports = {};
30
+ __export2(chunk_6M7MJQCV_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
33
  debug: () => debug5,
@@ -54,7 +54,7 @@ __export2(chunk_IHA6I74X_exports, {
54
54
  sendPanic: () => sendPanic,
55
55
  skipIndex: () => skipIndex
56
56
  });
57
- module.exports = __toCommonJS2(chunk_IHA6I74X_exports);
57
+ module.exports = __toCommonJS2(chunk_6M7MJQCV_exports);
58
58
  var import_chunk_S57RMXZW = require("./chunk-S57RMXZW.js");
59
59
  var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
60
60
  var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
@@ -79,18 +79,18 @@ var import_chunk_AC6EAR56 = require("./chunk-AC6EAR56.js");
79
79
  var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
80
80
  var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
81
81
  var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
82
- var import_chunk_YVPGWCTJ = require("./chunk-YVPGWCTJ.js");
83
- var import_chunk_GYJORHUJ = require("./chunk-GYJORHUJ.js");
84
- var import_chunk_76UB634F = require("./chunk-76UB634F.js");
85
- var import_chunk_X52BU4GK = require("./chunk-X52BU4GK.js");
82
+ var import_chunk_CL5EJJ3G = require("./chunk-CL5EJJ3G.js");
83
+ var import_chunk_G4DBNDZH = require("./chunk-G4DBNDZH.js");
84
+ var import_chunk_2OLURLK6 = require("./chunk-2OLURLK6.js");
85
+ var import_chunk_NXUFEMSP = require("./chunk-NXUFEMSP.js");
86
86
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
87
87
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
88
- var import_chunk_FHRP6WKY = require("./chunk-FHRP6WKY.js");
89
- var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
88
+ var import_chunk_FS2RY36X = require("./chunk-FS2RY36X.js");
89
+ var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
90
90
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
91
91
  var import_chunk_GXDYIY4M = require("./chunk-GXDYIY4M.js");
92
92
  var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
93
- var import_chunk_635TMBAP = require("./chunk-635TMBAP.js");
93
+ var import_chunk_ZYW3HGSH = require("./chunk-ZYW3HGSH.js");
94
94
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
95
95
  var import_chunk_KQOJB3ZW = require("./chunk-KQOJB3ZW.js");
96
96
  var import_chunk_IZ57EPVG = require("./chunk-IZ57EPVG.js");
@@ -14750,7 +14750,7 @@ async function readSchemaFromDirectory(schemaPath2) {
14750
14750
  }
14751
14751
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
14752
14752
  debug2("Loading config");
14753
- const config2 = await (0, import_chunk_76UB634F.getConfig)({
14753
+ const config2 = await (0, import_chunk_2OLURLK6.getConfig)({
14754
14754
  datamodel: files,
14755
14755
  ignoreEnvVarErrors: true
14756
14756
  });
@@ -15076,8 +15076,8 @@ async function checkUnsupportedDataProxyMessage(command, args, schemaPathFromCon
15076
15076
  if (argName.includes("schema")) {
15077
15077
  await loadEnvFile({ schemaPath: argValue, printMessage: false, config: (0, import_config.defaultTestConfig)() });
15078
15078
  const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
15079
- const config2 = await (0, import_chunk_76UB634F.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15080
- const url = (0, import_chunk_76UB634F.resolveUrl)((0, import_chunk_76UB634F.getEffectiveUrl)(config2.datasources[0]));
15079
+ const config2 = await (0, import_chunk_2OLURLK6.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15080
+ const url = (0, import_chunk_2OLURLK6.resolveUrl)((0, import_chunk_2OLURLK6.getEffectiveUrl)(config2.datasources[0]));
15081
15081
  if (url?.startsWith("prisma://")) {
15082
15082
  return forbiddenCmdWithDataProxyFlagMessage(command);
15083
15083
  }
@@ -15250,7 +15250,7 @@ async function getGenerators(options) {
15250
15250
  prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
15251
15251
  }
15252
15252
  }
15253
- const config = await (0, import_chunk_76UB634F.getConfig)({
15253
+ const config = await (0, import_chunk_2OLURLK6.getConfig)({
15254
15254
  datamodel: schemas,
15255
15255
  datamodelPath: schemaPath,
15256
15256
  prismaPath,
@@ -15261,7 +15261,7 @@ async function getGenerators(options) {
15261
15261
  }
15262
15262
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
15263
15263
  const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
15264
- const dmmf = await (0, import_chunk_X52BU4GK.getDMMF)({
15264
+ const dmmf = await (0, import_chunk_NXUFEMSP.getDMMF)({
15265
15265
  datamodel: schemas,
15266
15266
  datamodelPath: schemaPath,
15267
15267
  prismaPath,
@@ -15292,7 +15292,7 @@ async function getGenerators(options) {
15292
15292
  paths2 = await generatorResolvers[providerValue](baseDir, cliVersion);
15293
15293
  generatorPath = paths2.generatorPath;
15294
15294
  }
15295
- const generatorInstance = new import_chunk_635TMBAP.Generator(generatorPath, generator, paths2?.isNode);
15295
+ const generatorInstance = new import_chunk_ZYW3HGSH.Generator(generatorPath, generator, paths2?.isNode);
15296
15296
  await generatorInstance.init();
15297
15297
  if (generator.output) {
15298
15298
  generator.output = {
@@ -15322,7 +15322,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
15322
15322
  fromEnvVar: "null"
15323
15323
  };
15324
15324
  }
15325
- const datamodel = (0, import_chunk_GYJORHUJ.mergeSchemas)({ schemas });
15325
+ const datamodel = (0, import_chunk_G4DBNDZH.mergeSchemas)({ schemas });
15326
15326
  const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
15327
15327
  const options2 = {
15328
15328
  datamodel,
@@ -15405,7 +15405,7 @@ generator gen {
15405
15405
  debug6({ generatorBinaryPaths });
15406
15406
  generator.setBinaryPaths(generatorBinaryPaths);
15407
15407
  if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
15408
- const customDmmf = await (0, import_chunk_X52BU4GK.getDMMF)({
15408
+ const customDmmf = await (0, import_chunk_NXUFEMSP.getDMMF)({
15409
15409
  datamodel: schemas,
15410
15410
  datamodelPath: schemaPath,
15411
15411
  prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
@@ -15703,7 +15703,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15703
15703
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
15704
15704
  handleFormatPanic(
15705
15705
  () => {
15706
- import_chunk_FHRP6WKY.prismaSchemaWasm.debug_panic();
15706
+ import_chunk_FS2RY36X.prismaSchemaWasm.debug_panic();
15707
15707
  },
15708
15708
  { schemas: schemas2 }
15709
15709
  );
@@ -15723,12 +15723,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15723
15723
  () => {
15724
15724
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
15725
15725
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
15726
- const lintDiagnostics2 = (0, import_chunk_YVPGWCTJ.lintSchema)({ schemas: formattedMultipleSchemas2 });
15726
+ const lintDiagnostics2 = (0, import_chunk_CL5EJJ3G.lintSchema)({ schemas: formattedMultipleSchemas2 });
15727
15727
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
15728
15728
  },
15729
15729
  { schemas: schemas2 }
15730
15730
  );
15731
- const lintWarnings = (0, import_chunk_YVPGWCTJ.getLintWarningsAsText)(lintDiagnostics);
15731
+ const lintWarnings = (0, import_chunk_CL5EJJ3G.getLintWarningsAsText)(lintDiagnostics);
15732
15732
  if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
15733
15733
  console.warn(lintWarnings);
15734
15734
  }
@@ -15738,10 +15738,10 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
15738
15738
  try {
15739
15739
  return tryCb();
15740
15740
  } catch (e) {
15741
- const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e);
15741
+ const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e);
15742
15742
  debug7(`Error formatting schema: ${message}`);
15743
15743
  debug7(stack);
15744
- const panic = new import_chunk_A4QWQE3W.RustPanic(
15744
+ const panic = new import_chunk_ATFQZVBS.RustPanic(
15745
15745
  /* message */
15746
15746
  message,
15747
15747
  /* rustStack */
@@ -15758,7 +15758,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
15758
15758
  }
15759
15759
  }
15760
15760
  function formatWasm(schema, documentFormattingParams) {
15761
- const formattedSchema = import_chunk_FHRP6WKY.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15761
+ const formattedSchema = import_chunk_FS2RY36X.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15762
15762
  return formattedSchema;
15763
15763
  }
15764
15764
  /*! Bundled license information:
@@ -16,19 +16,26 @@ 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_A4QWQE3W_exports = {};
20
- __export(chunk_A4QWQE3W_exports, {
19
+ var chunk_ATFQZVBS_exports = {};
20
+ __export(chunk_ATFQZVBS_exports, {
21
21
  ErrorArea: () => ErrorArea,
22
22
  RustPanic: () => RustPanic,
23
23
  getWasmError: () => getWasmError,
24
24
  isRustPanic: () => isRustPanic,
25
25
  isWasmPanic: () => isWasmPanic
26
26
  });
27
- module.exports = __toCommonJS(chunk_A4QWQE3W_exports);
27
+ module.exports = __toCommonJS(chunk_ATFQZVBS_exports);
28
+ var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
28
29
  var RustPanic = class extends Error {
29
30
  constructor(message, rustStack, request, area, schemaPath, schema, introspectionUrl) {
30
31
  super(message);
31
- this.__typename = "RustPanic";
32
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "__typename", "RustPanic");
33
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "request");
34
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "rustStack");
35
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "area");
36
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "schemaPath");
37
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "schema");
38
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "introspectionUrl");
32
39
  this.name = "RustPanic";
33
40
  this.rustStack = rustStack;
34
41
  this.request = request;
@@ -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_WP26QRVO_exports = {};
20
- __export(chunk_WP26QRVO_exports, {
19
+ var chunk_BOSKBIEW_exports = {};
20
+ __export(chunk_BOSKBIEW_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_WP26QRVO_exports);
24
- var import_chunk_HGDLGARE = require("./chunk-HGDLGARE.js");
23
+ module.exports = __toCommonJS(chunk_BOSKBIEW_exports);
24
+ var import_chunk_3BUJ76XG = require("./chunk-3BUJ76XG.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_HGDLGARE.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_3BUJ76XG.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,14 +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_HOZFIXMD_exports = {};
20
- __export(chunk_HOZFIXMD_exports, {
19
+ var chunk_BPZFDGKN_exports = {};
20
+ __export(chunk_BPZFDGKN_exports, {
21
21
  WasmPanicRegistry: () => WasmPanicRegistry
22
22
  });
23
- module.exports = __toCommonJS(chunk_HOZFIXMD_exports);
23
+ module.exports = __toCommonJS(chunk_BPZFDGKN_exports);
24
+ var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
24
25
  var WasmPanicRegistry = class {
25
26
  constructor() {
26
- this.message = "";
27
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "message", "");
27
28
  }
28
29
  get() {
29
30
  return `${this.message}`;
@@ -16,21 +16,21 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_IUW7RHPT_exports = {};
20
- __export(chunk_IUW7RHPT_exports, {
19
+ var chunk_CL5EJJ3G_exports = {};
20
+ __export(chunk_CL5EJJ3G_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_IUW7RHPT_exports);
27
+ module.exports = __toCommonJS(chunk_CL5EJJ3G_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_6ULYATK6 = require("./chunk-6ULYATK6.js");
30
- var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
29
+ var import_chunk_FS2RY36X = require("./chunk-FS2RY36X.js");
30
+ var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
31
31
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
32
32
  function lintSchema({ schemas }) {
33
- const lintResult = import_chunk_6ULYATK6.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_FS2RY36X.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }
@@ -38,8 +38,8 @@ function handleLintPanic(tryCb, { schemas }) {
38
38
  try {
39
39
  return tryCb();
40
40
  } catch (e) {
41
- const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e);
42
- const panic = new import_chunk_A4QWQE3W.RustPanic(
41
+ const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e);
42
+ const panic = new import_chunk_ATFQZVBS.RustPanic(
43
43
  /* message */
44
44
  message,
45
45
  /* rustStack */
@@ -26,20 +26,20 @@ 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_O3DWZYDE_exports = {};
30
- __export(chunk_O3DWZYDE_exports, {
29
+ var chunk_DQGTDMKZ_exports = {};
30
+ __export(chunk_DQGTDMKZ_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_O3DWZYDE_exports);
34
+ module.exports = __toCommonJS(chunk_DQGTDMKZ_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_DJSUZZ3Z = require("./chunk-DJSUZZ3Z.js");
38
+ var import_chunk_BOSKBIEW = require("./chunk-BOSKBIEW.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
- var import_chunk_6ULYATK6 = require("./chunk-6ULYATK6.js");
42
- var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
41
+ var import_chunk_M546VQV7 = require("./chunk-M546VQV7.js");
42
+ var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
45
45
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: validate]`;
63
- super((0, import_chunk_DJSUZZ3Z.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_BOSKBIEW.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "ValidateError";
65
65
  }
66
66
  };
@@ -72,13 +72,13 @@ function validate(options) {
72
72
  () => {
73
73
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
74
74
  debug("Triggering a Rust panic...");
75
- import_chunk_6ULYATK6.prismaSchemaWasm.debug_panic();
75
+ import_chunk_M546VQV7.prismaSchemaWasm.debug_panic();
76
76
  }
77
77
  const params = JSON.stringify({
78
78
  prismaSchema: options.schemas,
79
79
  noColor: Boolean(process.env.NO_COLOR)
80
80
  });
81
- import_chunk_6ULYATK6.prismaSchemaWasm.validate(params);
81
+ import_chunk_M546VQV7.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  type: "wasm-error",
@@ -93,11 +93,11 @@ function validate(options) {
93
93
  const error = (0, import_chunk_XKZ6CBLA.z)(validateEither.left).with({ type: "wasm-error" }, (e) => {
94
94
  debugErrorType(e);
95
95
  console.error("");
96
- if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
97
- const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e.error);
96
+ if ((0, import_chunk_ATFQZVBS.isWasmPanic)(e.error)) {
97
+ const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e.error);
98
98
  debug(`Error validating schema: ${message}`);
99
99
  debug(stack);
100
- const panic = new import_chunk_A4QWQE3W.RustPanic(
100
+ const panic = new import_chunk_ATFQZVBS.RustPanic(
101
101
  /* message */
102
102
  message,
103
103
  /* rustStack */
@@ -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_EPB2EZMT_exports = {};
20
- __export(chunk_EPB2EZMT_exports, {
19
+ var chunk_EPF2VC52_exports = {};
20
+ __export(chunk_EPF2VC52_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_EPB2EZMT_exports);
23
+ module.exports = __toCommonJS(chunk_EPF2VC52_exports);
24
24
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
25
25
  var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
26
26
  "package.json"(exports, module2) {
@@ -111,7 +111,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
111
111
  "@prisma/fetch-engine": "workspace:*",
112
112
  "@prisma/generator-helper": "workspace:*",
113
113
  "@prisma/get-platform": "workspace:*",
114
- "@prisma/prisma-schema-wasm": "6.5.0-39.84310176c3f15859928b573ea73f2c1ec30188eb",
114
+ "@prisma/prisma-schema-wasm": "6.5.0-42.ebe92748df38ea968da11e62e111f2596014342a",
115
115
  "@prisma/schema-files-loader": "workspace:*",
116
116
  arg: "5.0.2",
117
117
  prompts: "2.4.2"