@prisma/internals 7.10.0-dev.9 → 7.10.0-integration-fix-prisma-publish-token.1

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 (62) hide show
  1. package/dist/{chunk-3OH47HQH.js → chunk-3IMRWXIL.js} +15 -15
  2. package/dist/{chunk-EBLNHWW6.js → chunk-3VD46SL7.js} +9 -9
  3. package/dist/{chunk-4YZJJPK2.js → chunk-56SGK3FA.js} +15 -15
  4. package/dist/{chunk-H2BTM6QL.js → chunk-5AOTWAVM.js} +14 -14
  5. package/dist/{chunk-AQYN6BFL.js → chunk-5BDP445D.js} +5 -5
  6. package/dist/{chunk-GZY7QBBF.js → chunk-5WRIOIZY.js} +5 -5
  7. package/dist/{chunk-LZ2DP3UC.js → chunk-6QMQ2JYG.js} +7 -7
  8. package/dist/{chunk-TZJROXB3.js → chunk-6Z766KGR.js} +6 -6
  9. package/dist/{chunk-JFFNC4AF.js → chunk-72IC6XXC.js} +5 -5
  10. package/dist/{chunk-KAH2NIWC.js → chunk-74RGCSUJ.js} +5 -5
  11. package/dist/{chunk-5P4WR3QW.js → chunk-7BDW72TQ.js} +13 -13
  12. package/dist/{chunk-3GIVRMID.js → chunk-CF53A7EF.js} +5 -5
  13. package/dist/{chunk-6PILE32P.js → chunk-CULHNO63.js} +29 -29
  14. package/dist/{chunk-GZLJZGHX.js → chunk-DUDEWDFC.js} +7 -7
  15. package/dist/{chunk-MD47SEWA.js → chunk-EWPXLBGE.js} +14 -14
  16. package/dist/{chunk-YXCPS3WU.js → chunk-FRVJZOHP.js} +6 -6
  17. package/dist/{chunk-T3LF4DKH.js → chunk-ISZV63ZU.js} +10 -10
  18. package/dist/{chunk-QKQKSUQO.js → chunk-JFXHOFJA.js} +5 -5
  19. package/dist/{chunk-VMG6ENBV.js → chunk-KVCNBZ75.js} +5 -5
  20. package/dist/{chunk-NZ7DJZZM.js → chunk-MV7NEBFP.js} +8 -8
  21. package/dist/{chunk-SH3LMKTB.js → chunk-PKF53VLJ.js} +5 -5
  22. package/dist/{chunk-PP22IZ7I.js → chunk-Q3A43VXT.js} +5 -5
  23. package/dist/{chunk-L2BUQUNG.js → chunk-QBNYSYZK.js} +5 -5
  24. package/dist/{chunk-6S5MN3NA.js → chunk-QMNPESAP.js} +4 -4
  25. package/dist/{chunk-ZB2V476P.js → chunk-R47SFJ5Z.js} +10 -10
  26. package/dist/{chunk-2BXDHSSY.js → chunk-TPCPXGC5.js} +5 -5
  27. package/dist/{chunk-CR3WUS3D.js → chunk-VUGB2H7M.js} +29 -29
  28. package/dist/{chunk-NUKBOD54.js → chunk-WFMA7DI5.js} +26 -22
  29. package/dist/{chunk-XGQEVNKT.js → chunk-XAAVALN7.js} +13 -13
  30. package/dist/chunk-YNDZCLVL.js +307 -0
  31. package/dist/{chunk-7IKUTPWQ.js → chunk-YXB6APHS.js} +5 -5
  32. package/dist/cli/checkUnsupportedDataProxy.d.ts +5 -5
  33. package/dist/cli/checkUnsupportedDataProxy.js +23 -23
  34. package/dist/cli/completion-values.js +24 -24
  35. package/dist/cli/getSchema.js +7 -7
  36. package/dist/cli/hashes.js +4 -4
  37. package/dist/cli/schemaContext.js +24 -24
  38. package/dist/engine-commands/errorHelpers.js +4 -4
  39. package/dist/engine-commands/formatSchema.js +22 -22
  40. package/dist/engine-commands/getConfig.js +9 -9
  41. package/dist/engine-commands/getDmmf.js +10 -10
  42. package/dist/engine-commands/getEnginesInfo.js +4 -4
  43. package/dist/engine-commands/index.js +33 -33
  44. package/dist/engine-commands/lintSchema.js +8 -8
  45. package/dist/engine-commands/mergeSchemas.js +9 -9
  46. package/dist/engine-commands/queryEngineCommons.js +6 -6
  47. package/dist/engine-commands/validate.js +9 -9
  48. package/dist/get-generators/getGenerators.d.ts +1 -0
  49. package/dist/get-generators/getGenerators.js +25 -25
  50. package/dist/index.js +75 -75
  51. package/dist/migrateTypes.d.ts +1 -1
  52. package/dist/sendPanic.js +3 -3
  53. package/dist/utils/getGitHubIssueUrl.js +4 -4
  54. package/dist/utils/getVersionFromPackageJson.js +3 -3
  55. package/dist/utils/handlePanic.js +5 -5
  56. package/dist/utils/missingGeneratorMessage.d.ts +3 -3
  57. package/dist/utils/missingGeneratorMessage.js +4 -4
  58. package/dist/utils/validatePrismaConfigWithDatasource.d.ts +2 -2
  59. package/dist/utils/validatePrismaConfigWithDatasource.js +3 -3
  60. package/dist/wasm.js +5 -5
  61. package/package.json +16 -16
  62. 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_6PILE32P_exports = {};
30
- __export(chunk_6PILE32P_exports, {
29
+ var chunk_CULHNO63_exports = {};
30
+ __export(chunk_CULHNO63_exports, {
31
31
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
32
32
  forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
33
33
  formatSchema: () => formatSchema,
@@ -40,25 +40,25 @@ __export(chunk_6PILE32P_exports, {
40
40
  processSchemaResult: () => processSchemaResult,
41
41
  skipIndex: () => skipIndex
42
42
  });
43
- module.exports = __toCommonJS(chunk_6PILE32P_exports);
43
+ module.exports = __toCommonJS(chunk_CULHNO63_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");
47
47
  var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
48
48
  var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
49
- var import_chunk_NUKBOD54 = require("./chunk-NUKBOD54.js");
49
+ var import_chunk_WFMA7DI5 = require("./chunk-WFMA7DI5.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_4YZJJPK2 = require("./chunk-4YZJJPK2.js");
54
- var import_chunk_ZB2V476P = require("./chunk-ZB2V476P.js");
55
- var import_chunk_L2BUQUNG = require("./chunk-L2BUQUNG.js");
56
- var import_chunk_5P4WR3QW = require("./chunk-5P4WR3QW.js");
57
- var import_chunk_2BXDHSSY = require("./chunk-2BXDHSSY.js");
58
- var import_chunk_PP22IZ7I = require("./chunk-PP22IZ7I.js");
53
+ var import_chunk_56SGK3FA = require("./chunk-56SGK3FA.js");
54
+ var import_chunk_ISZV63ZU = require("./chunk-ISZV63ZU.js");
55
+ var import_chunk_72IC6XXC = require("./chunk-72IC6XXC.js");
56
+ var import_chunk_7BDW72TQ = require("./chunk-7BDW72TQ.js");
57
+ var import_chunk_TPCPXGC5 = require("./chunk-TPCPXGC5.js");
58
+ var import_chunk_Q3A43VXT = require("./chunk-Q3A43VXT.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_PP22IZ7I.prismaSchemaWasm.debug_panic();
79
+ import_chunk_Q3A43VXT.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_L2BUQUNG.lintSchema)({ schemas: formattedMultipleSchemas2 });
96
+ const lintDiagnostics2 = (0, import_chunk_72IC6XXC.lintSchema)({ schemas: formattedMultipleSchemas2 });
97
97
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
98
98
  });
99
- const lintWarnings = (0, import_chunk_L2BUQUNG.getLintWarningsAsText)(lintDiagnostics);
99
+ const lintWarnings = (0, import_chunk_72IC6XXC.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_PP22IZ7I.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
126
+ const formattedSchema = import_chunk_Q3A43VXT.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
127
127
  return formattedSchema;
128
128
  }
129
129
  async function loadSchemaContext({ schemaPath, printLoadMessage, allowNull, schemaPathArgumentName, cwd } = {
@@ -135,10 +135,10 @@ async function loadSchemaContext({ schemaPath, printLoadMessage, allowNull, sche
135
135
  }) {
136
136
  let schemaResult = null;
137
137
  if (allowNull) {
138
- schemaResult = await (0, import_chunk_2BXDHSSY.getSchemaWithPathOptional)({ schemaPath, cwd, argumentName: schemaPathArgumentName });
138
+ schemaResult = await (0, import_chunk_TPCPXGC5.getSchemaWithPathOptional)({ schemaPath, cwd, argumentName: schemaPathArgumentName });
139
139
  if (!schemaResult) return null;
140
140
  } else {
141
- schemaResult = await (0, import_chunk_2BXDHSSY.getSchemaWithPath)({ schemaPath, cwd, argumentName: schemaPathArgumentName });
141
+ schemaResult = await (0, import_chunk_TPCPXGC5.getSchemaWithPath)({ schemaPath, cwd, argumentName: schemaPathArgumentName });
142
142
  }
143
143
  return processSchemaResult({ schemaResult, printLoadMessage, cwd });
144
144
  }
@@ -150,9 +150,9 @@ async function processSchemaResult({
150
150
  const loadedFromPathForLogMessages = import_node_path.default.relative(cwd, schemaResult.schemaPath);
151
151
  const schemaRootDir = schemaResult.schemaRootDir || cwd;
152
152
  if (printLoadMessage) {
153
- (0, import_chunk_2BXDHSSY.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
153
+ (0, import_chunk_TPCPXGC5.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
154
154
  }
155
- const configFromPsl = await (0, import_chunk_4YZJJPK2.getConfig)({ datamodel: schemaResult.schemas });
155
+ const configFromPsl = await (0, import_chunk_56SGK3FA.getConfig)({ datamodel: schemaResult.schemas });
156
156
  const primaryDatasource = configFromPsl.datasources.at(0);
157
157
  return {
158
158
  schemaFiles: schemaResult.schemas,
@@ -206,12 +206,12 @@ 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_ZB2V476P.getDMMF)({ datamodel: schemaContext.schemaFiles });
209
+ const dmmf = await (0, import_chunk_ISZV63ZU.getDMMF)({ datamodel: schemaContext.schemaFiles });
210
210
  if (dmmf.datamodel.models.length === 0 && !allowNoModels) {
211
211
  if (schemaContext.primaryDatasource.provider === "mongodb") {
212
- throw new Error(import_chunk_NUKBOD54.missingModelMessageMongoDB);
212
+ throw new Error((0, import_chunk_WFMA7DI5.missingModelMessageMongoDB)(options.cliCommand));
213
213
  }
214
- throw new Error(import_chunk_NUKBOD54.missingModelMessage);
214
+ throw new Error((0, import_chunk_WFMA7DI5.missingModelMessage)(options.cliCommand));
215
215
  }
216
216
  const generatorConfigs = filterGenerators(overrideGenerators || schemaContext.generators, generatorNames);
217
217
  await validateGenerators(generatorConfigs);
@@ -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_5P4WR3QW.mergeSchemas)({ schemas: schemaContext.schemaFiles });
257
+ const datamodel = (0, import_chunk_7BDW72TQ.mergeSchemas)({ schemas: schemaContext.schemaFiles });
258
258
  const options2 = {
259
259
  datamodel,
260
260
  datasources: schemaContext.datasources,
@@ -422,17 +422,17 @@ function filterGenerators(generators, generatorNames) {
422
422
  }
423
423
  return filtered;
424
424
  }
425
- var forbiddenCmdWithDataProxyFlagMessage = (cmd) => `
426
- Using an Accelerate URL is not supported for this CLI command ${(0, import_chunk_PG5FDKSF.green)(`prisma ${cmd}`)} yet.
427
- Please use a direct connection to your database in \`prisma.config.ts\`.
425
+ var forbiddenCmdWithDataProxyFlagMessage = (command) => `
426
+ Using an Accelerate URL is not supported for this CLI command ${(0, import_chunk_PG5FDKSF.green)(command)} yet.
427
+ Please use a direct connection to your database in \`prisma7.config.ts\`.
428
428
 
429
429
  More information about this limitation: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/accelerate-limitations")}
430
430
  `;
431
431
  function checkUnsupportedDataProxy({
432
- cmd,
432
+ command,
433
433
  validatedConfig
434
434
  }) {
435
435
  if (validatedConfig.datasource.url.startsWith("prisma://")) {
436
- throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
436
+ throw new Error(forbiddenCmdWithDataProxyFlagMessage(command));
437
437
  }
438
438
  }
@@ -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_GZLJZGHX_exports = {};
30
- __export(chunk_GZLJZGHX_exports, {
29
+ var chunk_DUDEWDFC_exports = {};
30
+ __export(chunk_DUDEWDFC_exports, {
31
31
  handlePanic: () => handlePanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_GZLJZGHX_exports);
33
+ module.exports = __toCommonJS(chunk_DUDEWDFC_exports);
34
34
  var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
35
- var import_chunk_7IKUTPWQ = require("./chunk-7IKUTPWQ.js");
35
+ var import_chunk_YXB6APHS = require("./chunk-YXB6APHS.js");
36
36
  var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
37
- var import_chunk_YXCPS3WU = require("./chunk-YXCPS3WU.js");
37
+ var import_chunk_FRVJZOHP = require("./chunk-FRVJZOHP.js");
38
38
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
39
39
  var import_prompts = __toESM(require("prompts"));
40
40
  async function handlePanic(args) {
@@ -79,7 +79,7 @@ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_I6WLABB2.link)(
79
79
  if (shouldSubmitReport) {
80
80
  try {
81
81
  console.log("Submitting...");
82
- const reportId = await (0, import_chunk_YXCPS3WU.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
82
+ const reportId = await (0, import_chunk_FRVJZOHP.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
83
83
  console.log(`
84
84
  ${(0, import_chunk_PG5FDKSF.bold)(`We successfully received the error report id: ${reportId}`)}`);
85
85
  console.log(`
@@ -90,7 +90,7 @@ ${(0, import_chunk_PG5FDKSF.bold)("Thanks a lot for your help! \u{1F64F}")}`);
90
90
  console.error(`${(0, import_chunk_PG5FDKSF.gray)("Error report submission failed due to: ")}`, error2);
91
91
  }
92
92
  }
93
- await (0, import_chunk_7IKUTPWQ.wouldYouLikeToCreateANewIssue)({
93
+ await (0, import_chunk_YXB6APHS.wouldYouLikeToCreateANewIssue)({
94
94
  prompt: !shouldSubmitReport,
95
95
  error,
96
96
  cliVersion,
@@ -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_MD47SEWA_exports = {};
30
- __export(chunk_MD47SEWA_exports, {
29
+ var chunk_EWPXLBGE_exports = {};
30
+ __export(chunk_EWPXLBGE_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_MD47SEWA_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
34
+ module.exports = __toCommonJS(chunk_EWPXLBGE_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_5WRIOIZY = require("./chunk-5WRIOIZY.js");
39
+ var import_chunk_5BDP445D = require("./chunk-5BDP445D.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:validate");
48
48
  var ValidateError = 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,25 +59,25 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: validate]`;
62
- super((0, import_chunk_GZY7QBBF.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_5WRIOIZY.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
66
66
  function validate(options) {
67
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "validateWasm");
67
+ const debugErrorType = (0, import_chunk_6Z766KGR.createDebugErrorType)(debug, "validateWasm");
68
68
  debug(`Using validate Wasm`);
69
69
  const validateEither = (0, import_function.pipe)(
70
70
  (0, import_chunk_5DBOS77Y.tryCatch)(
71
71
  () => {
72
72
  if (process.env.FORCE_PANIC_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_PP22IZ7I.prismaSchemaWasm.debug_panic();
74
+ import_chunk_5BDP445D.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_PP22IZ7I.prismaSchemaWasm.validate(params);
80
+ import_chunk_5BDP445D.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -89,7 +89,7 @@ function validate(options) {
89
89
  if ((0, import_chunk_5DBOS77Y.isRight)(validateEither)) {
90
90
  return;
91
91
  }
92
- const error = (0, import_chunk_XKZ6CBLA.z)(validateEither.left).with({ type: "wasm-error" }, (e) => {
92
+ const error = (0, import_chunk_YNDZCLVL.M)(validateEither.left).with({ type: "wasm-error" }, (e) => {
93
93
  debugErrorType(e);
94
94
  console.error("");
95
95
  if ((0, import_chunk_LMVSIVKQ.isWasmPanic)(e.error)) {
@@ -109,7 +109,7 @@ function validate(options) {
109
109
  return panic;
110
110
  }
111
111
  const errorOutput = e.error.message;
112
- return new ValidateError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
112
+ return new ValidateError((0, import_chunk_6Z766KGR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
113
113
  }).exhaustive();
114
114
  throw error;
115
115
  }
@@ -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,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_T3LF4DKH_exports = {};
30
- __export(chunk_T3LF4DKH_exports, {
29
+ var chunk_ISZV63ZU_exports = {};
30
+ __export(chunk_ISZV63ZU_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_T3LF4DKH_exports);
36
+ module.exports = __toCommonJS(chunk_ISZV63ZU_exports);
37
37
  var import_chunk_IL7PSY44 = require("./chunk-IL7PSY44.js");
38
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
39
- var import_chunk_VMG6ENBV = require("./chunk-VMG6ENBV.js");
40
- var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
38
+ var import_chunk_6Z766KGR = require("./chunk-6Z766KGR.js");
39
+ var import_chunk_KVCNBZ75 = require("./chunk-KVCNBZ75.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_VMG6ENBV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_KVCNBZ75.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,12 +16,12 @@ 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_QKQKSUQO_exports = {};
20
- __export(chunk_QKQKSUQO_exports, {
19
+ var chunk_JFXHOFJA_exports = {};
20
+ __export(chunk_JFXHOFJA_exports, {
21
21
  ConfigValidationError: () => ConfigValidationError,
22
22
  validatePrismaConfigWithDatasource: () => validatePrismaConfigWithDatasource
23
23
  });
24
- module.exports = __toCommonJS(chunk_QKQKSUQO_exports);
24
+ module.exports = __toCommonJS(chunk_JFXHOFJA_exports);
25
25
  var import_chunk_ANU3HEGF = require("./chunk-ANU3HEGF.js");
26
26
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
27
27
  var ConfigValidationError = class extends Error {
@@ -35,11 +35,11 @@ function isValidPrismaConfig(prismaConfig) {
35
35
  }
36
36
  function validatePrismaConfigWithDatasource({
37
37
  config,
38
- cmd
38
+ command
39
39
  }) {
40
40
  if (!isValidPrismaConfig(config)) {
41
41
  throw new ConfigValidationError(
42
- `The ${(0, import_chunk_PG5FDKSF.red)(`datasource.url`)} property is required in your Prisma config file when using ${(0, import_chunk_PG5FDKSF.green)(`prisma ${cmd}`)}.`
42
+ `The ${(0, import_chunk_PG5FDKSF.red)(`datasource.url`)} property is required in your Prisma config file when using ${(0, import_chunk_PG5FDKSF.green)(command)}.`
43
43
  );
44
44
  }
45
45
  return config;
@@ -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_VMG6ENBV_exports = {};
20
- __export(chunk_VMG6ENBV_exports, {
19
+ var chunk_KVCNBZ75_exports = {};
20
+ __export(chunk_KVCNBZ75_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_VMG6ENBV_exports);
23
+ module.exports = __toCommonJS(chunk_KVCNBZ75_exports);
24
24
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
25
- var import_chunk_SH3LMKTB = require("./chunk-SH3LMKTB.js");
25
+ var import_chunk_CF53A7EF = require("./chunk-CF53A7EF.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_SH3LMKTB.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_CF53A7EF.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_NZ7DJZZM_exports = {};
20
- __export(chunk_NZ7DJZZM_exports, {
19
+ var chunk_MV7NEBFP_exports = {};
20
+ __export(chunk_MV7NEBFP_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_NZ7DJZZM_exports);
23
+ module.exports = __toCommonJS(chunk_MV7NEBFP_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.9",
29
+ version: "7.10.0-integration-fix-prisma-publish-token.1",
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-4.0edf323efd1d98336f3f0a68684b56f689b900d3",
105
+ "@prisma/schema-engine-wasm": "7.10.0-4.0edf323efd1d98336f3f0a68684b56f689b900d3",
106
106
  "@prisma/schema-files-loader": "workspace:*",
107
107
  "@streamparser/json": "0.0.22",
108
108
  arg: "5.0.2",
@@ -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_SH3LMKTB_exports = {};
20
- __export(chunk_SH3LMKTB_exports, {
19
+ var chunk_PKF53VLJ_exports = {};
20
+ __export(chunk_PKF53VLJ_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_SH3LMKTB_exports);
24
- var import_chunk_NZ7DJZZM = require("./chunk-NZ7DJZZM.js");
25
- var packageJson = (0, import_chunk_NZ7DJZZM.require_package)();
23
+ module.exports = __toCommonJS(chunk_PKF53VLJ_exports);
24
+ var import_chunk_6QMQ2JYG = require("./chunk-6QMQ2JYG.js");
25
+ var packageJson = (0, import_chunk_6QMQ2JYG.require_package)();
26
26
  var version = packageJson.version;
@@ -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_Q3A43VXT_exports = {};
30
+ __export(chunk_Q3A43VXT_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_Q3A43VXT_exports);
37
+ var import_chunk_MV7NEBFP = require("./chunk-MV7NEBFP.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_MV7NEBFP.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -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_QBNYSYZK_exports = {};
20
+ __export(chunk_QBNYSYZK_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_QBNYSYZK_exports);
28
+ var import_chunk_5BDP445D = require("./chunk-5BDP445D.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_5BDP445D.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -16,8 +16,8 @@ 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_6S5MN3NA_exports = {};
20
- __export(chunk_6S5MN3NA_exports, {
19
+ var chunk_QMNPESAP_exports = {};
20
+ __export(chunk_QMNPESAP_exports, {
21
21
  completionApiKeyHint: () => completionApiKeyHint,
22
22
  completionClientOutputPaths: () => completionClientOutputPaths,
23
23
  completionCompositeTypeDepths: () => completionCompositeTypeDepths,
@@ -42,13 +42,13 @@ __export(chunk_6S5MN3NA_exports, {
42
42
  completionStudioBrowsers: () => completionStudioBrowsers,
43
43
  completionStudioPorts: () => completionStudioPorts
44
44
  });
45
- module.exports = __toCommonJS(chunk_6S5MN3NA_exports);
45
+ module.exports = __toCommonJS(chunk_QMNPESAP_exports);
46
46
  var completionSchemaPaths = [
47
47
  { value: "prisma/schema.prisma", description: "Default schema path" },
48
48
  { value: "./schema.prisma", description: "Schema in project root" }
49
49
  ];
50
50
  var completionConfigPaths = [
51
- { value: "prisma.config.ts", description: "Default config path" }
51
+ { value: "prisma7.config.ts", description: "Default config path" }
52
52
  ];
53
53
  var completionDatasourceUrls = [
54
54
  { value: "postgresql://", description: "PostgreSQL connection string" },
@@ -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_R47SFJ5Z_exports = {};
30
+ __export(chunk_R47SFJ5Z_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_R47SFJ5Z_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_5WRIOIZY = require("./chunk-5WRIOIZY.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_5WRIOIZY.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
  }