@prisma/internals 6.6.0-dev.56 → 6.6.0-dev.58

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 (42) hide show
  1. package/dist/{chunk-2CR67TJT.js → chunk-3TFJMQ4N.js} +4 -4
  2. package/dist/{chunk-2CMKZNGP.js → chunk-7FA7GGK4.js} +8 -8
  3. package/dist/{chunk-OGCUCDZ7.js → chunk-AXZ6E37I.js} +5 -5
  4. package/dist/{chunk-SI2EMWV7.js → chunk-CJ5BQW2U.js} +18 -18
  5. package/dist/{chunk-X2CA5QBB.js → chunk-HM7KBDAH.js} +18 -18
  6. package/dist/{chunk-WFSO3GNA.js → chunk-HQF2XKUK.js} +5 -5
  7. package/dist/{chunk-WVNFXG35.js → chunk-IGJLNOSJ.js} +5 -5
  8. package/dist/{chunk-WKCFN36R.js → chunk-KK4LFDOR.js} +5 -5
  9. package/dist/{chunk-DE2TODOO.js → chunk-MBOLKZSS.js} +7 -7
  10. package/dist/{chunk-OX37QCYA.js → chunk-NAZNTEI6.js} +5 -5
  11. package/dist/{chunk-TOL7ASFO.js → chunk-PBDMN3UX.js} +5 -5
  12. package/dist/{chunk-X3NPQOIN.js → chunk-S54BUEJF.js} +7 -7
  13. package/dist/{chunk-4LEPM55O.js → chunk-SJTGFRIY.js} +8 -8
  14. package/dist/{chunk-ZZDQZQOQ.js → chunk-TI3QCOYR.js} +8 -8
  15. package/dist/{chunk-STY7YQDN.js → chunk-TJQK4HOJ.js} +8 -8
  16. package/dist/{chunk-W7O2ENPB.js → chunk-TPAYJAJV.js} +5 -5
  17. package/dist/{chunk-FZAYL6PS.js → chunk-UI7B22AM.js} +5 -5
  18. package/dist/{chunk-J72OZOSE.js → chunk-WSMKAUWP.js} +8 -8
  19. package/dist/{chunk-BD7L3WI4.js → chunk-WXILQIQF.js} +8 -8
  20. package/dist/{chunk-GA3QUNF6.js → chunk-YOIAL2YX.js} +5 -5
  21. package/dist/cli/checkUnsupportedDataProxy.js +12 -12
  22. package/dist/cli/getSchema.js +15 -15
  23. package/dist/cli/hashes.js +12 -12
  24. package/dist/cli/schemaContext.js +12 -12
  25. package/dist/engine-commands/errorHelpers.js +4 -4
  26. package/dist/engine-commands/formatSchema.js +11 -11
  27. package/dist/engine-commands/getConfig.js +10 -10
  28. package/dist/engine-commands/getDmmf.js +7 -7
  29. package/dist/engine-commands/index.js +20 -20
  30. package/dist/engine-commands/lintSchema.js +8 -8
  31. package/dist/engine-commands/mergeSchemas.js +7 -7
  32. package/dist/engine-commands/validate.js +7 -7
  33. package/dist/get-generators/generatorResolvers/generatorResolvers.js +11 -11
  34. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +11 -11
  35. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +12 -12
  36. package/dist/get-generators/getGenerators.js +14 -14
  37. package/dist/index.js +38 -38
  38. package/dist/utils/getEnvPaths.js +11 -11
  39. package/dist/utils/getVersionFromPackageJson.js +3 -3
  40. package/dist/utils/loadEnvFile.js +11 -11
  41. package/dist/wasm.js +4 -4
  42. package/package.json +11 -11
@@ -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_2CR67TJT_exports = {};
20
- __export(chunk_2CR67TJT_exports, {
19
+ var chunk_3TFJMQ4N_exports = {};
20
+ __export(chunk_3TFJMQ4N_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_2CR67TJT_exports);
23
+ module.exports = __toCommonJS(chunk_3TFJMQ4N_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) {
@@ -113,7 +113,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
113
113
  "@prisma/generator": "workspace:*",
114
114
  "@prisma/generator-helper": "workspace:*",
115
115
  "@prisma/get-platform": "workspace:*",
116
- "@prisma/prisma-schema-wasm": "6.6.0-27.ff4e67a11a395e489261256f882adb6d6a7eea11",
116
+ "@prisma/prisma-schema-wasm": "6.6.0-30.baa69bfeca2f318076d19b6ce650fd8c9b4cb452",
117
117
  "@prisma/schema-files-loader": "workspace:*",
118
118
  arg: "5.0.2",
119
119
  prompts: "2.4.2"
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_2CMKZNGP_exports = {};
30
- __export(chunk_2CMKZNGP_exports, {
29
+ var chunk_7FA7GGK4_exports = {};
30
+ __export(chunk_7FA7GGK4_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_2CMKZNGP_exports);
34
+ module.exports = __toCommonJS(chunk_7FA7GGK4_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_WVNFXG35 = require("./chunk-WVNFXG35.js");
39
- var import_chunk_GA3QUNF6 = require("./chunk-GA3QUNF6.js");
38
+ var import_chunk_IGJLNOSJ = require("./chunk-IGJLNOSJ.js");
39
+ var import_chunk_UI7B22AM = require("./chunk-UI7B22AM.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: validate]`;
62
- super((0, import_chunk_WVNFXG35.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_IGJLNOSJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
@@ -71,13 +71,13 @@ function validate(options) {
71
71
  () => {
72
72
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_GA3QUNF6.prismaSchemaWasm.debug_panic();
74
+ import_chunk_UI7B22AM.prismaSchemaWasm.debug_panic();
75
75
  }
76
76
  const params = JSON.stringify({
77
77
  prismaSchema: options.schemas,
78
78
  noColor: Boolean(process.env.NO_COLOR)
79
79
  });
80
- import_chunk_GA3QUNF6.prismaSchemaWasm.validate(params);
80
+ import_chunk_UI7B22AM.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_OGCUCDZ7_exports = {};
20
- __export(chunk_OGCUCDZ7_exports, {
19
+ var chunk_AXZ6E37I_exports = {};
20
+ __export(chunk_AXZ6E37I_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_OGCUCDZ7_exports);
24
- var import_chunk_2CR67TJT = require("./chunk-2CR67TJT.js");
25
- var packageJson = (0, import_chunk_2CR67TJT.require_package)();
23
+ module.exports = __toCommonJS(chunk_AXZ6E37I_exports);
24
+ var import_chunk_3TFJMQ4N = require("./chunk-3TFJMQ4N.js");
25
+ var packageJson = (0, import_chunk_3TFJMQ4N.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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_SI2EMWV7_exports = {};
30
- __export(chunk_SI2EMWV7_exports, {
29
+ var chunk_CJ5BQW2U_exports = {};
30
+ __export(chunk_CJ5BQW2U_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
33
  debug: () => debug4,
@@ -53,7 +53,7 @@ __export(chunk_SI2EMWV7_exports, {
53
53
  processSchemaResult: () => processSchemaResult,
54
54
  skipIndex: () => skipIndex
55
55
  });
56
- module.exports = __toCommonJS(chunk_SI2EMWV7_exports);
56
+ module.exports = __toCommonJS(chunk_CJ5BQW2U_exports);
57
57
  var import_chunk_QGJH4P4N = require("./chunk-QGJH4P4N.js");
58
58
  var import_chunk_GHHABGYW = require("./chunk-GHHABGYW.js");
59
59
  var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
@@ -72,11 +72,11 @@ var import_chunk_XLTQGAI2 = require("./chunk-XLTQGAI2.js");
72
72
  var import_chunk_HAGJ64PM = require("./chunk-HAGJ64PM.js");
73
73
  var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
74
74
  var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
75
- var import_chunk_TOL7ASFO = require("./chunk-TOL7ASFO.js");
76
- var import_chunk_DE2TODOO = require("./chunk-DE2TODOO.js");
77
- var import_chunk_STY7YQDN = require("./chunk-STY7YQDN.js");
78
- var import_chunk_ZZDQZQOQ = require("./chunk-ZZDQZQOQ.js");
79
- var import_chunk_FZAYL6PS = require("./chunk-FZAYL6PS.js");
75
+ var import_chunk_KK4LFDOR = require("./chunk-KK4LFDOR.js");
76
+ var import_chunk_MBOLKZSS = require("./chunk-MBOLKZSS.js");
77
+ var import_chunk_WSMKAUWP = require("./chunk-WSMKAUWP.js");
78
+ var import_chunk_TI3QCOYR = require("./chunk-TI3QCOYR.js");
79
+ var import_chunk_UI7B22AM = require("./chunk-UI7B22AM.js");
80
80
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
81
81
  var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
82
82
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -120,7 +120,7 @@ var debug = (0, import_debug2.default)("prisma:format");
120
120
  async function formatSchema({ schemas }, inputFormattingOptions) {
121
121
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
122
122
  handleFormatPanic(() => {
123
- import_chunk_FZAYL6PS.prismaSchemaWasm.debug_panic();
123
+ import_chunk_UI7B22AM.prismaSchemaWasm.debug_panic();
124
124
  });
125
125
  }
126
126
  const defaultFormattingOptions = {
@@ -137,10 +137,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
137
137
  const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
138
138
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
139
139
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
140
- const lintDiagnostics2 = (0, import_chunk_TOL7ASFO.lintSchema)({ schemas: formattedMultipleSchemas2 });
140
+ const lintDiagnostics2 = (0, import_chunk_KK4LFDOR.lintSchema)({ schemas: formattedMultipleSchemas2 });
141
141
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
142
142
  });
143
- const lintWarnings = (0, import_chunk_TOL7ASFO.getLintWarningsAsText)(lintDiagnostics);
143
+ const lintWarnings = (0, import_chunk_KK4LFDOR.getLintWarningsAsText)(lintDiagnostics);
144
144
  if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
145
145
  console.warn(lintWarnings);
146
146
  }
@@ -167,7 +167,7 @@ function handleFormatPanic(tryCb) {
167
167
  }
168
168
  }
169
169
  function formatWasm(schema, documentFormattingParams) {
170
- const formattedSchema = import_chunk_FZAYL6PS.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
170
+ const formattedSchema = import_chunk_UI7B22AM.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
171
171
  return formattedSchema;
172
172
  }
173
173
  var readFile = (0, import_util.promisify)(import_fs.default.readFile);
@@ -211,7 +211,7 @@ async function readSchemaFromDirectory(schemaPath2) {
211
211
  }
212
212
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
213
213
  debug2("Loading config");
214
- const config = await (0, import_chunk_STY7YQDN.getConfig)({
214
+ const config = await (0, import_chunk_WSMKAUWP.getConfig)({
215
215
  datamodel: files,
216
216
  ignoreEnvVarErrors: true
217
217
  });
@@ -421,7 +421,7 @@ async function processSchemaResult({
421
421
  if (printLoadMessage) {
422
422
  printSchemaLoadedMessage(loadedFromPathForLogMessages);
423
423
  }
424
- const configFromPsl = await (0, import_chunk_STY7YQDN.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
424
+ const configFromPsl = await (0, import_chunk_WSMKAUWP.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
425
425
  const primaryDatasource = configFromPsl.datasources.at(0);
426
426
  const schemaRootDir = schemaResult.schemaRootDir || cwd;
427
427
  return {
@@ -591,7 +591,7 @@ async function getGenerators(options) {
591
591
  }
592
592
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
593
593
  const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
594
- const dmmf = await (0, import_chunk_ZZDQZQOQ.getDMMF)({
594
+ const dmmf = await (0, import_chunk_TI3QCOYR.getDMMF)({
595
595
  datamodel: schemaContext.schemaFiles,
596
596
  previewFeatures
597
597
  });
@@ -649,7 +649,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
649
649
  fromEnvVar: null
650
650
  };
651
651
  }
652
- const datamodel = (0, import_chunk_DE2TODOO.mergeSchemas)({ schemas: schemaContext.schemaFiles });
652
+ const datamodel = (0, import_chunk_MBOLKZSS.mergeSchemas)({ schemas: schemaContext.schemaFiles });
653
653
  const envPaths = await getEnvPaths(schemaContext.schemaPath, { cwd: generator.output.value });
654
654
  const options2 = {
655
655
  datamodel,
@@ -733,7 +733,7 @@ generator gen {
733
733
  debug5({ generatorBinaryPaths });
734
734
  generator.setBinaryPaths(generatorBinaryPaths);
735
735
  if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
736
- const customDmmf = await (0, import_chunk_ZZDQZQOQ.getDMMF)({
736
+ const customDmmf = await (0, import_chunk_TI3QCOYR.getDMMF)({
737
737
  datamodel: schemaContext.schemaFiles,
738
738
  previewFeatures
739
739
  });
@@ -1008,7 +1008,7 @@ function checkUnsupportedDataProxy({
1008
1008
  }
1009
1009
  }
1010
1010
  if (!schemaContext2?.primaryDatasource) return;
1011
- const url = (0, import_chunk_STY7YQDN.resolveUrl)((0, import_chunk_STY7YQDN.getEffectiveUrl)(schemaContext2.primaryDatasource));
1011
+ const url = (0, import_chunk_WSMKAUWP.resolveUrl)((0, import_chunk_WSMKAUWP.getEffectiveUrl)(schemaContext2.primaryDatasource));
1012
1012
  if (url?.startsWith("prisma://")) {
1013
1013
  throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
1014
1014
  }
@@ -26,8 +26,8 @@ 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_X2CA5QBB_exports = {};
30
- __export(chunk_X2CA5QBB_exports, {
29
+ var chunk_HM7KBDAH_exports = {};
30
+ __export(chunk_HM7KBDAH_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
33
  debug: () => debug4,
@@ -53,7 +53,7 @@ __export(chunk_X2CA5QBB_exports, {
53
53
  processSchemaResult: () => processSchemaResult,
54
54
  skipIndex: () => skipIndex
55
55
  });
56
- module.exports = __toCommonJS(chunk_X2CA5QBB_exports);
56
+ module.exports = __toCommonJS(chunk_HM7KBDAH_exports);
57
57
  var import_chunk_QGJH4P4N = require("./chunk-QGJH4P4N.js");
58
58
  var import_chunk_GHHABGYW = require("./chunk-GHHABGYW.js");
59
59
  var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
@@ -72,11 +72,11 @@ var import_chunk_XLTQGAI2 = require("./chunk-XLTQGAI2.js");
72
72
  var import_chunk_HAGJ64PM = require("./chunk-HAGJ64PM.js");
73
73
  var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
74
74
  var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
75
- var import_chunk_WKCFN36R = require("./chunk-WKCFN36R.js");
76
- var import_chunk_X3NPQOIN = require("./chunk-X3NPQOIN.js");
77
- var import_chunk_J72OZOSE = require("./chunk-J72OZOSE.js");
78
- var import_chunk_BD7L3WI4 = require("./chunk-BD7L3WI4.js");
79
- var import_chunk_GA3QUNF6 = require("./chunk-GA3QUNF6.js");
75
+ var import_chunk_PBDMN3UX = require("./chunk-PBDMN3UX.js");
76
+ var import_chunk_S54BUEJF = require("./chunk-S54BUEJF.js");
77
+ var import_chunk_TJQK4HOJ = require("./chunk-TJQK4HOJ.js");
78
+ var import_chunk_WXILQIQF = require("./chunk-WXILQIQF.js");
79
+ var import_chunk_YOIAL2YX = require("./chunk-YOIAL2YX.js");
80
80
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
81
81
  var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
82
82
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -120,7 +120,7 @@ var debug = (0, import_debug2.default)("prisma:format");
120
120
  async function formatSchema({ schemas }, inputFormattingOptions) {
121
121
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
122
122
  handleFormatPanic(() => {
123
- import_chunk_GA3QUNF6.prismaSchemaWasm.debug_panic();
123
+ import_chunk_YOIAL2YX.prismaSchemaWasm.debug_panic();
124
124
  });
125
125
  }
126
126
  const defaultFormattingOptions = {
@@ -137,10 +137,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
137
137
  const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
138
138
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
139
139
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
140
- const lintDiagnostics2 = (0, import_chunk_WKCFN36R.lintSchema)({ schemas: formattedMultipleSchemas2 });
140
+ const lintDiagnostics2 = (0, import_chunk_PBDMN3UX.lintSchema)({ schemas: formattedMultipleSchemas2 });
141
141
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
142
142
  });
143
- const lintWarnings = (0, import_chunk_WKCFN36R.getLintWarningsAsText)(lintDiagnostics);
143
+ const lintWarnings = (0, import_chunk_PBDMN3UX.getLintWarningsAsText)(lintDiagnostics);
144
144
  if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
145
145
  console.warn(lintWarnings);
146
146
  }
@@ -167,7 +167,7 @@ function handleFormatPanic(tryCb) {
167
167
  }
168
168
  }
169
169
  function formatWasm(schema, documentFormattingParams) {
170
- const formattedSchema = import_chunk_GA3QUNF6.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
170
+ const formattedSchema = import_chunk_YOIAL2YX.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
171
171
  return formattedSchema;
172
172
  }
173
173
  var readFile = (0, import_util.promisify)(import_fs.default.readFile);
@@ -211,7 +211,7 @@ async function readSchemaFromDirectory(schemaPath2) {
211
211
  }
212
212
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
213
213
  debug2("Loading config");
214
- const config = await (0, import_chunk_J72OZOSE.getConfig)({
214
+ const config = await (0, import_chunk_TJQK4HOJ.getConfig)({
215
215
  datamodel: files,
216
216
  ignoreEnvVarErrors: true
217
217
  });
@@ -421,7 +421,7 @@ async function processSchemaResult({
421
421
  if (printLoadMessage) {
422
422
  printSchemaLoadedMessage(loadedFromPathForLogMessages);
423
423
  }
424
- const configFromPsl = await (0, import_chunk_J72OZOSE.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
424
+ const configFromPsl = await (0, import_chunk_TJQK4HOJ.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
425
425
  const primaryDatasource = configFromPsl.datasources.at(0);
426
426
  const schemaRootDir = schemaResult.schemaRootDir || cwd;
427
427
  return {
@@ -591,7 +591,7 @@ async function getGenerators(options) {
591
591
  }
592
592
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
593
593
  const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
594
- const dmmf = await (0, import_chunk_BD7L3WI4.getDMMF)({
594
+ const dmmf = await (0, import_chunk_WXILQIQF.getDMMF)({
595
595
  datamodel: schemaContext.schemaFiles,
596
596
  previewFeatures
597
597
  });
@@ -649,7 +649,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
649
649
  fromEnvVar: null
650
650
  };
651
651
  }
652
- const datamodel = (0, import_chunk_X3NPQOIN.mergeSchemas)({ schemas: schemaContext.schemaFiles });
652
+ const datamodel = (0, import_chunk_S54BUEJF.mergeSchemas)({ schemas: schemaContext.schemaFiles });
653
653
  const envPaths = await getEnvPaths(schemaContext.schemaPath, { cwd: generator.output.value });
654
654
  const options2 = {
655
655
  datamodel,
@@ -733,7 +733,7 @@ generator gen {
733
733
  debug5({ generatorBinaryPaths });
734
734
  generator.setBinaryPaths(generatorBinaryPaths);
735
735
  if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
736
- const customDmmf = await (0, import_chunk_BD7L3WI4.getDMMF)({
736
+ const customDmmf = await (0, import_chunk_WXILQIQF.getDMMF)({
737
737
  datamodel: schemaContext.schemaFiles,
738
738
  previewFeatures
739
739
  });
@@ -1008,7 +1008,7 @@ function checkUnsupportedDataProxy({
1008
1008
  }
1009
1009
  }
1010
1010
  if (!schemaContext2?.primaryDatasource) return;
1011
- const url = (0, import_chunk_J72OZOSE.resolveUrl)((0, import_chunk_J72OZOSE.getEffectiveUrl)(schemaContext2.primaryDatasource));
1011
+ const url = (0, import_chunk_TJQK4HOJ.resolveUrl)((0, import_chunk_TJQK4HOJ.getEffectiveUrl)(schemaContext2.primaryDatasource));
1012
1012
  if (url?.startsWith("prisma://")) {
1013
1013
  throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
1014
1014
  }
@@ -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_WFSO3GNA_exports = {};
20
- __export(chunk_WFSO3GNA_exports, {
19
+ var chunk_HQF2XKUK_exports = {};
20
+ __export(chunk_HQF2XKUK_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_WFSO3GNA_exports);
24
- var import_chunk_W7O2ENPB = require("./chunk-W7O2ENPB.js");
25
- var packageJson = (0, import_chunk_W7O2ENPB.require_package)();
23
+ module.exports = __toCommonJS(chunk_HQF2XKUK_exports);
24
+ var import_chunk_TPAYJAJV = require("./chunk-TPAYJAJV.js");
25
+ var packageJson = (0, import_chunk_TPAYJAJV.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_WVNFXG35_exports = {};
20
- __export(chunk_WVNFXG35_exports, {
19
+ var chunk_IGJLNOSJ_exports = {};
20
+ __export(chunk_IGJLNOSJ_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_WVNFXG35_exports);
24
- var import_chunk_OGCUCDZ7 = require("./chunk-OGCUCDZ7.js");
23
+ module.exports = __toCommonJS(chunk_IGJLNOSJ_exports);
24
+ var import_chunk_AXZ6E37I = require("./chunk-AXZ6E37I.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_OGCUCDZ7.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_AXZ6E37I.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -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_WKCFN36R_exports = {};
20
- __export(chunk_WKCFN36R_exports, {
19
+ var chunk_KK4LFDOR_exports = {};
20
+ __export(chunk_KK4LFDOR_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_WKCFN36R_exports);
28
- var import_chunk_GA3QUNF6 = require("./chunk-GA3QUNF6.js");
27
+ module.exports = __toCommonJS(chunk_KK4LFDOR_exports);
28
+ var import_chunk_UI7B22AM = require("./chunk-UI7B22AM.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_GA3QUNF6.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_UI7B22AM.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_DE2TODOO_exports = {};
30
- __export(chunk_DE2TODOO_exports, {
29
+ var chunk_MBOLKZSS_exports = {};
30
+ __export(chunk_MBOLKZSS_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_DE2TODOO_exports);
34
+ module.exports = __toCommonJS(chunk_MBOLKZSS_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_OX37QCYA = require("./chunk-OX37QCYA.js");
39
- var import_chunk_FZAYL6PS = require("./chunk-FZAYL6PS.js");
38
+ var import_chunk_IGJLNOSJ = require("./chunk-IGJLNOSJ.js");
39
+ var import_chunk_UI7B22AM = require("./chunk-UI7B22AM.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_OX37QCYA.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_IGJLNOSJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_FZAYL6PS.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_UI7B22AM.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -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_OX37QCYA_exports = {};
20
- __export(chunk_OX37QCYA_exports, {
19
+ var chunk_NAZNTEI6_exports = {};
20
+ __export(chunk_NAZNTEI6_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_OX37QCYA_exports);
24
- var import_chunk_WFSO3GNA = require("./chunk-WFSO3GNA.js");
23
+ module.exports = __toCommonJS(chunk_NAZNTEI6_exports);
24
+ var import_chunk_HQF2XKUK = require("./chunk-HQF2XKUK.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_WFSO3GNA.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_HQF2XKUK.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -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_TOL7ASFO_exports = {};
20
- __export(chunk_TOL7ASFO_exports, {
19
+ var chunk_PBDMN3UX_exports = {};
20
+ __export(chunk_PBDMN3UX_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_TOL7ASFO_exports);
28
- var import_chunk_FZAYL6PS = require("./chunk-FZAYL6PS.js");
27
+ module.exports = __toCommonJS(chunk_PBDMN3UX_exports);
28
+ var import_chunk_YOIAL2YX = require("./chunk-YOIAL2YX.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_FZAYL6PS.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_YOIAL2YX.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_X3NPQOIN_exports = {};
30
- __export(chunk_X3NPQOIN_exports, {
29
+ var chunk_S54BUEJF_exports = {};
30
+ __export(chunk_S54BUEJF_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_X3NPQOIN_exports);
34
+ module.exports = __toCommonJS(chunk_S54BUEJF_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_WVNFXG35 = require("./chunk-WVNFXG35.js");
39
- var import_chunk_GA3QUNF6 = require("./chunk-GA3QUNF6.js");
38
+ var import_chunk_NAZNTEI6 = require("./chunk-NAZNTEI6.js");
39
+ var import_chunk_YOIAL2YX = require("./chunk-YOIAL2YX.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_WVNFXG35.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_NAZNTEI6.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_GA3QUNF6.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_YOIAL2YX.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_4LEPM55O_exports = {};
30
- __export(chunk_4LEPM55O_exports, {
29
+ var chunk_SJTGFRIY_exports = {};
30
+ __export(chunk_SJTGFRIY_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_4LEPM55O_exports);
34
+ module.exports = __toCommonJS(chunk_SJTGFRIY_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_OX37QCYA = require("./chunk-OX37QCYA.js");
39
- var import_chunk_FZAYL6PS = require("./chunk-FZAYL6PS.js");
38
+ var import_chunk_NAZNTEI6 = require("./chunk-NAZNTEI6.js");
39
+ var import_chunk_YOIAL2YX = require("./chunk-YOIAL2YX.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: validate]`;
62
- super((0, import_chunk_OX37QCYA.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_NAZNTEI6.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
@@ -71,13 +71,13 @@ function validate(options) {
71
71
  () => {
72
72
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_FZAYL6PS.prismaSchemaWasm.debug_panic();
74
+ import_chunk_YOIAL2YX.prismaSchemaWasm.debug_panic();
75
75
  }
76
76
  const params = JSON.stringify({
77
77
  prismaSchema: options.schemas,
78
78
  noColor: Boolean(process.env.NO_COLOR)
79
79
  });
80
- import_chunk_FZAYL6PS.prismaSchemaWasm.validate(params);
80
+ import_chunk_YOIAL2YX.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -26,16 +26,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_ZZDQZQOQ_exports = {};
30
- __export(chunk_ZZDQZQOQ_exports, {
29
+ var chunk_TI3QCOYR_exports = {};
30
+ __export(chunk_TI3QCOYR_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_ZZDQZQOQ_exports);
34
+ module.exports = __toCommonJS(chunk_TI3QCOYR_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_OX37QCYA = require("./chunk-OX37QCYA.js");
38
- var import_chunk_FZAYL6PS = require("./chunk-FZAYL6PS.js");
37
+ var import_chunk_IGJLNOSJ = require("./chunk-IGJLNOSJ.js");
38
+ var import_chunk_UI7B22AM = require("./chunk-UI7B22AM.js");
39
39
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
41
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -58,7 +58,7 @@ ${detailsHeader} ${message}`;
58
58
  }).exhaustive();
59
59
  const errorMessageWithContext = `${constructedErrorMessage}
60
60
  [Context: getDmmf]`;
61
- super((0, import_chunk_OX37QCYA.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_IGJLNOSJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
62
  this.name = "GetDmmfError";
63
63
  }
64
64
  };
@@ -70,13 +70,13 @@ async function getDMMF(options) {
70
70
  () => {
71
71
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_FZAYL6PS.prismaSchemaWasm.debug_panic();
73
+ import_chunk_UI7B22AM.prismaSchemaWasm.debug_panic();
74
74
  }
75
75
  const params = JSON.stringify({
76
76
  prismaSchema: options.datamodel,
77
77
  noColor: Boolean(process.env.NO_COLOR)
78
78
  });
79
- const data = import_chunk_FZAYL6PS.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_UI7B22AM.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({