@prisma/internals 5.20.0-dev.1 → 5.20.0-dev.3

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 (50) hide show
  1. package/dist/{chunk-ZO7J3PDO.js → chunk-2W6WHLMW.js} +5 -5
  2. package/dist/{chunk-MO2HIZV7.js → chunk-6ILI6DCK.js} +5 -5
  3. package/dist/{chunk-2CPWCR6K.js → chunk-6YLSZT5D.js} +5 -5
  4. package/dist/{chunk-3ALPKVEU.js → chunk-7UPH5GTL.js} +4 -4
  5. package/dist/{chunk-5CCEIYLC.js → chunk-AOUUZYTM.js} +5 -5
  6. package/dist/{chunk-4KH2K2J6.js → chunk-CQKCZW72.js} +8 -8
  7. package/dist/{chunk-ZWKXZT54.js → chunk-CZWOAAKN.js} +5 -5
  8. package/dist/{chunk-V6OZDE2N.js → chunk-IL6IQEUG.js} +8 -8
  9. package/dist/{chunk-KNPU77PE.js → chunk-KQ33OIUX.js} +8 -8
  10. package/dist/{chunk-F56KJXLX.js → chunk-KZCCGVAQ.js} +7 -7
  11. package/dist/{chunk-RCOC7TF2.js → chunk-L7LAHOK6.js} +5 -5
  12. package/dist/{chunk-FKYIHFZ3.js → chunk-MH24S6RW.js} +8 -8
  13. package/dist/{chunk-2UIDFJHY.js → chunk-MJBIBELO.js} +5 -5
  14. package/dist/{chunk-7P3SMYZA.js → chunk-NHN7WKPR.js} +7 -7
  15. package/dist/{chunk-VBJSOQVQ.js → chunk-OFSUUB5B.js} +8 -8
  16. package/dist/{chunk-IIMD6TQD.js → chunk-RLLLBODR.js} +19 -19
  17. package/dist/{chunk-CC2LJK3E.js → chunk-VTETYZ4T.js} +795 -24
  18. package/dist/{chunk-IEKNMUOI.js → chunk-WE37XLTV.js} +8 -8
  19. package/dist/{chunk-MJIGEQYQ.js → chunk-XJ66Z2RB.js} +5 -5
  20. package/dist/{chunk-QXLLZQDP.js → chunk-YDJCTSHA.js} +5 -5
  21. package/dist/cli/checkUnsupportedDataProxy.js +12 -12
  22. package/dist/cli/getSchema.js +17 -17
  23. package/dist/cli/hashes.js +12 -12
  24. package/dist/engine-commands/errorHelpers.js +4 -4
  25. package/dist/engine-commands/formatSchema.js +11 -11
  26. package/dist/engine-commands/getConfig.js +10 -10
  27. package/dist/engine-commands/getDmmf.js +7 -7
  28. package/dist/engine-commands/index.js +20 -20
  29. package/dist/engine-commands/lintSchema.js +8 -8
  30. package/dist/engine-commands/mergeSchemas.js +7 -7
  31. package/dist/engine-commands/validate.js +7 -7
  32. package/dist/get-generators/generatorResolvers/generatorResolvers.js +11 -11
  33. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +11 -11
  34. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.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 +39 -39
  38. package/dist/sendPanic.js +11 -11
  39. package/dist/utils/getEnvPaths.js +11 -11
  40. package/dist/utils/getVersionFromPackageJson.js +3 -3
  41. package/dist/utils/handlePanic.js +11 -11
  42. package/dist/utils/loadEnvFile.js +11 -11
  43. package/dist/wasm.js +4 -4
  44. package/package.json +8 -8
  45. package/dist/chunk-2DXAGCPS.js +0 -177
  46. package/dist/chunk-5XRQ7ONW.js +0 -122
  47. package/dist/chunk-QIVUAERL.js +0 -2202
  48. package/dist/chunk-QJZIYUVB.js +0 -110
  49. package/dist/chunk-TFSZCVKC.js +0 -166
  50. package/dist/chunk-V2VWODV3.js +0 -54
@@ -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_IIMD6TQD_exports = {};
30
- __export2(chunk_IIMD6TQD_exports, {
29
+ var chunk_RLLLBODR_exports = {};
30
+ __export2(chunk_RLLLBODR_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
33
  checkYarnVersion: () => checkYarnVersion,
@@ -56,7 +56,7 @@ __export2(chunk_IIMD6TQD_exports, {
56
56
  sendPanic: () => sendPanic,
57
57
  skipIndex: () => skipIndex
58
58
  });
59
- module.exports = __toCommonJS2(chunk_IIMD6TQD_exports);
59
+ module.exports = __toCommonJS2(chunk_RLLLBODR_exports);
60
60
  var import_chunk_IABMG3F4 = require("./chunk-IABMG3F4.js");
61
61
  var import_chunk_3U2ANLD3 = require("./chunk-3U2ANLD3.js");
62
62
  var import_chunk_FTS2IEWX = require("./chunk-FTS2IEWX.js");
@@ -81,13 +81,13 @@ var import_chunk_XLYQ6PQW = require("./chunk-XLYQ6PQW.js");
81
81
  var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
82
82
  var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
83
83
  var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
84
- var import_chunk_5CCEIYLC = require("./chunk-5CCEIYLC.js");
85
- var import_chunk_7P3SMYZA = require("./chunk-7P3SMYZA.js");
86
- var import_chunk_VBJSOQVQ = require("./chunk-VBJSOQVQ.js");
87
- var import_chunk_KNPU77PE = require("./chunk-KNPU77PE.js");
84
+ var import_chunk_AOUUZYTM = require("./chunk-AOUUZYTM.js");
85
+ var import_chunk_KZCCGVAQ = require("./chunk-KZCCGVAQ.js");
86
+ var import_chunk_MH24S6RW = require("./chunk-MH24S6RW.js");
87
+ var import_chunk_KQ33OIUX = require("./chunk-KQ33OIUX.js");
88
88
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
89
89
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
90
- var import_chunk_2UIDFJHY = require("./chunk-2UIDFJHY.js");
90
+ var import_chunk_MJBIBELO = require("./chunk-MJBIBELO.js");
91
91
  var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
92
92
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
93
93
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
@@ -15517,7 +15517,7 @@ async function readSchemaFromDirectory(schemaPath2) {
15517
15517
  }
15518
15518
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
15519
15519
  debug2("Loading config");
15520
- const config2 = await (0, import_chunk_VBJSOQVQ.getConfig)({
15520
+ const config2 = await (0, import_chunk_MH24S6RW.getConfig)({
15521
15521
  datamodel: files,
15522
15522
  ignoreEnvVarErrors: true
15523
15523
  });
@@ -15909,8 +15909,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
15909
15909
  if (argName.includes("schema")) {
15910
15910
  await loadEnvFile({ schemaPath: argValue, printMessage: false });
15911
15911
  const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
15912
- const config2 = await (0, import_chunk_VBJSOQVQ.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15913
- const url = (0, import_chunk_VBJSOQVQ.resolveUrl)((0, import_chunk_VBJSOQVQ.getEffectiveUrl)(config2.datasources[0]));
15912
+ const config2 = await (0, import_chunk_MH24S6RW.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15913
+ const url = (0, import_chunk_MH24S6RW.resolveUrl)((0, import_chunk_MH24S6RW.getEffectiveUrl)(config2.datasources[0]));
15914
15914
  if (url?.startsWith("prisma://")) {
15915
15915
  return forbiddenCmdWithDataProxyFlagMessage(command);
15916
15916
  }
@@ -16114,7 +16114,7 @@ async function getGenerators(options) {
16114
16114
  prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
16115
16115
  }
16116
16116
  }
16117
- const config = await (0, import_chunk_VBJSOQVQ.getConfig)({
16117
+ const config = await (0, import_chunk_MH24S6RW.getConfig)({
16118
16118
  datamodel: schemas,
16119
16119
  datamodelPath: schemaPath,
16120
16120
  prismaPath,
@@ -16125,7 +16125,7 @@ async function getGenerators(options) {
16125
16125
  }
16126
16126
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
16127
16127
  const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
16128
- const dmmf = await (0, import_chunk_KNPU77PE.getDMMF)({
16128
+ const dmmf = await (0, import_chunk_KQ33OIUX.getDMMF)({
16129
16129
  datamodel: schemas,
16130
16130
  datamodelPath: schemaPath,
16131
16131
  prismaPath,
@@ -16186,7 +16186,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
16186
16186
  fromEnvVar: "null"
16187
16187
  };
16188
16188
  }
16189
- const datamodel = (0, import_chunk_7P3SMYZA.mergeSchemas)({ schemas });
16189
+ const datamodel = (0, import_chunk_KZCCGVAQ.mergeSchemas)({ schemas });
16190
16190
  const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
16191
16191
  const options2 = {
16192
16192
  datamodel,
@@ -16269,7 +16269,7 @@ generator gen {
16269
16269
  debug6({ generatorBinaryPaths });
16270
16270
  generator.setBinaryPaths(generatorBinaryPaths);
16271
16271
  if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
16272
- const customDmmf = await (0, import_chunk_KNPU77PE.getDMMF)({
16272
+ const customDmmf = await (0, import_chunk_KQ33OIUX.getDMMF)({
16273
16273
  datamodel: schemas,
16274
16274
  datamodelPath: schemaPath,
16275
16275
  prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
@@ -16567,7 +16567,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
16567
16567
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
16568
16568
  handleFormatPanic(
16569
16569
  () => {
16570
- import_chunk_2UIDFJHY.prismaSchemaWasm.debug_panic();
16570
+ import_chunk_MJBIBELO.prismaSchemaWasm.debug_panic();
16571
16571
  },
16572
16572
  { schemas: schemas2 }
16573
16573
  );
@@ -16587,12 +16587,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
16587
16587
  () => {
16588
16588
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
16589
16589
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
16590
- const lintDiagnostics2 = (0, import_chunk_5CCEIYLC.lintSchema)({ schemas: formattedMultipleSchemas2 });
16590
+ const lintDiagnostics2 = (0, import_chunk_AOUUZYTM.lintSchema)({ schemas: formattedMultipleSchemas2 });
16591
16591
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
16592
16592
  },
16593
16593
  { schemas: schemas2 }
16594
16594
  );
16595
- const lintWarnings = (0, import_chunk_5CCEIYLC.getLintWarningsAsText)(lintDiagnostics);
16595
+ const lintWarnings = (0, import_chunk_AOUUZYTM.getLintWarningsAsText)(lintDiagnostics);
16596
16596
  if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
16597
16597
  console.warn(lintWarnings);
16598
16598
  }
@@ -16622,7 +16622,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
16622
16622
  }
16623
16623
  }
16624
16624
  function formatWasm(schema, documentFormattingParams) {
16625
- const formattedSchema = import_chunk_2UIDFJHY.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
16625
+ const formattedSchema = import_chunk_MJBIBELO.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
16626
16626
  return formattedSchema;
16627
16627
  }
16628
16628
  /*! Bundled license information: