@prisma/internals 7.10.0-dev.5 → 7.10.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 (62) hide show
  1. package/dist/{chunk-ABMDX4EQ.js → chunk-3IMRWXIL.js} +15 -15
  2. package/dist/{chunk-EBLNHWW6.js → chunk-3VD46SL7.js} +9 -9
  3. package/dist/{chunk-AEI5DILY.js → chunk-5BDP445D.js} +5 -5
  4. package/dist/{chunk-4YZJJPK2.js → chunk-5P43324W.js} +15 -15
  5. package/dist/{chunk-GZY7QBBF.js → chunk-5WRIOIZY.js} +5 -5
  6. package/dist/{chunk-5SEUFFRY.js → chunk-6DUJVBF7.js} +29 -29
  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-KAH2NIWC.js → chunk-74RGCSUJ.js} +5 -5
  10. package/dist/{chunk-XAOAQYNN.js → chunk-AD2DKMII.js} +8 -8
  11. package/dist/{chunk-GZLJZGHX.js → chunk-DUDEWDFC.js} +7 -7
  12. package/dist/{chunk-2ZCAUSNJ.js → chunk-EWPXLBGE.js} +14 -14
  13. package/dist/{chunk-YXCPS3WU.js → chunk-FRVJZOHP.js} +6 -6
  14. package/dist/{chunk-MD47SEWA.js → chunk-HRNTJEMX.js} +14 -14
  15. package/dist/{chunk-HCOBBU2Q.js → chunk-IPVRPART.js} +5 -5
  16. package/dist/{chunk-QKQKSUQO.js → chunk-JFXHOFJA.js} +5 -5
  17. package/dist/{chunk-PP22IZ7I.js → chunk-JLFNVBTN.js} +5 -5
  18. package/dist/{chunk-PPSXRKJR.js → chunk-MBFQWFUB.js} +13 -13
  19. package/dist/{chunk-3RMP5ALU.js → chunk-MLTMKT3L.js} +5 -5
  20. package/dist/{chunk-3GIVRMID.js → chunk-PKF53VLJ.js} +5 -5
  21. package/dist/{chunk-L2BUQUNG.js → chunk-QBNYSYZK.js} +5 -5
  22. package/dist/{chunk-6S5MN3NA.js → chunk-QMNPESAP.js} +4 -4
  23. package/dist/{chunk-MAUT575G.js → chunk-R47SFJ5Z.js} +10 -10
  24. package/dist/{chunk-ZB2V476P.js → chunk-R4FWYJP7.js} +10 -10
  25. package/dist/{chunk-2BXDHSSY.js → chunk-TPCPXGC5.js} +5 -5
  26. package/dist/{chunk-6PILE32P.js → chunk-VUGB2H7M.js} +29 -29
  27. package/dist/{chunk-NUKBOD54.js → chunk-WFMA7DI5.js} +26 -22
  28. package/dist/{chunk-ZXAKMDG4.js → chunk-WOKQ6ZNV.js} +5 -5
  29. package/dist/{chunk-5P4WR3QW.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,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_2ZCAUSNJ_exports = {};
30
- __export(chunk_2ZCAUSNJ_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_2ZCAUSNJ_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_3RMP5ALU = require("./chunk-3RMP5ALU.js");
39
- var import_chunk_AEI5DILY = require("./chunk-AEI5DILY.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_3RMP5ALU.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_AEI5DILY.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_AEI5DILY.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,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_HRNTJEMX_exports = {};
30
+ __export(chunk_HRNTJEMX_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_HRNTJEMX_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_MLTMKT3L = require("./chunk-MLTMKT3L.js");
39
+ var import_chunk_JLFNVBTN = require("./chunk-JLFNVBTN.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_MLTMKT3L.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_JLFNVBTN.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_JLFNVBTN.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
  }
@@ -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_HCOBBU2Q_exports = {};
20
- __export(chunk_HCOBBU2Q_exports, {
19
+ var chunk_IPVRPART_exports = {};
20
+ __export(chunk_IPVRPART_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_HCOBBU2Q_exports);
24
- var import_chunk_XAOAQYNN = require("./chunk-XAOAQYNN.js");
25
- var packageJson = (0, import_chunk_XAOAQYNN.require_package)();
23
+ module.exports = __toCommonJS(chunk_IPVRPART_exports);
24
+ var import_chunk_AD2DKMII = require("./chunk-AD2DKMII.js");
25
+ var packageJson = (0, import_chunk_AD2DKMII.require_package)();
26
26
  var version = packageJson.version;
@@ -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;
@@ -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_JLFNVBTN_exports = {};
30
+ __export(chunk_JLFNVBTN_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_JLFNVBTN_exports);
37
+ var import_chunk_AD2DKMII = require("./chunk-AD2DKMII.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_AD2DKMII.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -26,19 +26,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_PPSXRKJR_exports = {};
30
- __export(chunk_PPSXRKJR_exports, {
29
+ var chunk_MBFQWFUB_exports = {};
30
+ __export(chunk_MBFQWFUB_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_PPSXRKJR_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
34
+ module.exports = __toCommonJS(chunk_MBFQWFUB_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_3RMP5ALU = require("./chunk-3RMP5ALU.js");
39
- var import_chunk_AEI5DILY = require("./chunk-AEI5DILY.js");
38
+ var import_chunk_MLTMKT3L = require("./chunk-MLTMKT3L.js");
39
+ var import_chunk_JLFNVBTN = require("./chunk-JLFNVBTN.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
- var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
+ var import_chunk_YNDZCLVL = require("./chunk-YNDZCLVL.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
44
44
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -47,7 +47,7 @@ var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57
47
47
  var debug = (0, import_debug.default)("prisma:mergeSchemas");
48
48
  var MergeSchemasError = class extends Error {
49
49
  constructor(params) {
50
- const constructedErrorMessage = (0, import_chunk_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
50
+ const constructedErrorMessage = (0, import_chunk_YNDZCLVL.M)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
51
51
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
52
52
  return `${reason}
53
53
  ${errorCodeMessage}
@@ -59,12 +59,12 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_3RMP5ALU.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_MLTMKT3L.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
66
66
  function mergeSchemas(options) {
67
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "mergeSchemasWasm");
67
+ const debugErrorType = (0, import_chunk_6Z766KGR.createDebugErrorType)(debug, "mergeSchemasWasm");
68
68
  debug(`Using mergeSchemas Wasm`);
69
69
  const mergeSchemasEither = (0, import_function.pipe)(
70
70
  (0, import_chunk_5DBOS77Y.tryCatch)(
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_AEI5DILY.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_JLFNVBTN.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -84,7 +84,7 @@ function mergeSchemas(options) {
84
84
  if ((0, import_chunk_5DBOS77Y.isRight)(mergeSchemasEither)) {
85
85
  return mergeSchemasEither.right;
86
86
  }
87
- const error = (0, import_chunk_XKZ6CBLA.z)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
87
+ const error = (0, import_chunk_YNDZCLVL.M)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
88
88
  debugErrorType(e);
89
89
  console.error("");
90
90
  if ((0, import_chunk_LMVSIVKQ.isWasmPanic)(e.error)) {
@@ -104,7 +104,7 @@ function mergeSchemas(options) {
104
104
  return panic;
105
105
  }
106
106
  const errorOutput = e.error.message;
107
- return new MergeSchemasError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
107
+ return new MergeSchemasError((0, import_chunk_6Z766KGR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
108
108
  }).exhaustive();
109
109
  throw error;
110
110
  }
@@ -16,15 +16,15 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_3RMP5ALU_exports = {};
20
- __export(chunk_3RMP5ALU_exports, {
19
+ var chunk_MLTMKT3L_exports = {};
20
+ __export(chunk_MLTMKT3L_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_3RMP5ALU_exports);
23
+ module.exports = __toCommonJS(chunk_MLTMKT3L_exports);
24
24
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
25
- var import_chunk_HCOBBU2Q = require("./chunk-HCOBBU2Q.js");
25
+ var import_chunk_IPVRPART = require("./chunk-IPVRPART.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_HCOBBU2Q.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_IPVRPART.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -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_3GIVRMID_exports = {};
20
- __export(chunk_3GIVRMID_exports, {
19
+ var chunk_PKF53VLJ_exports = {};
20
+ __export(chunk_PKF53VLJ_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_3GIVRMID_exports);
24
- var import_chunk_LZ2DP3UC = require("./chunk-LZ2DP3UC.js");
25
- var packageJson = (0, import_chunk_LZ2DP3UC.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;
@@ -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_MAUT575G_exports = {};
30
- __export(chunk_MAUT575G_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_MAUT575G_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_3RMP5ALU = require("./chunk-3RMP5ALU.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_3RMP5ALU.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
  }
@@ -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_R4FWYJP7_exports = {};
30
+ __export(chunk_R4FWYJP7_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_R4FWYJP7_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_MLTMKT3L = require("./chunk-MLTMKT3L.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_MLTMKT3L.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
  }
@@ -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_2BXDHSSY_exports = {};
30
- __export(chunk_2BXDHSSY_exports, {
29
+ var chunk_TPCPXGC5_exports = {};
30
+ __export(chunk_TPCPXGC5_exports, {
31
31
  createSchemaPathInput: () => createSchemaPathInput,
32
32
  getCliProvidedSchemaFile: () => getCliProvidedSchemaFile,
33
33
  getConfigProvidedSchemaFile: () => getConfigProvidedSchemaFile,
@@ -35,7 +35,7 @@ __export(chunk_2BXDHSSY_exports, {
35
35
  getSchemaWithPathOptional: () => getSchemaWithPathOptional,
36
36
  printSchemaLoadedMessage: () => printSchemaLoadedMessage
37
37
  });
38
- module.exports = __toCommonJS(chunk_2BXDHSSY_exports);
38
+ module.exports = __toCommonJS(chunk_TPCPXGC5_exports);
39
39
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
40
40
  var import_debug = require("@prisma/debug");
41
41
  var import_schema_files_loader = require("@prisma/schema-files-loader");
@@ -157,7 +157,7 @@ function renderDefaultLookupError(error, cwd) {
157
157
  const parts = [
158
158
  `Could not find Prisma Schema that is required for this command.`,
159
159
  `You can either provide it with ${(0, import_chunk_PG5FDKSF.green)("`--schema`")} argument,`,
160
- `set it in your Prisma Config file (e.g., ${(0, import_chunk_PG5FDKSF.green)("`prisma.config.ts`")}),`,
160
+ `set it in your Prisma Config file (e.g., ${(0, import_chunk_PG5FDKSF.green)("`prisma7.config.ts`")}),`,
161
161
  `set it as ${(0, import_chunk_PG5FDKSF.green)("`prisma.schema`")} in your ${(0, import_chunk_PG5FDKSF.green)("package.json")},`,
162
162
  `or put it into the default location (${(0, import_chunk_PG5FDKSF.green)("`./prisma/schema.prisma`")}, or ${(0, import_chunk_PG5FDKSF.green)("`./schema.prisma`")}.`,
163
163
  "Checked following paths:\n"
@@ -190,7 +190,7 @@ async function getConfigProvidedSchemaFile(schemaPathFromConfig) {
190
190
  const schemaResult = await readSchemaFromFileOrDirectory(schemaPathFromConfig);
191
191
  if (!schemaResult.ok) {
192
192
  throw new Error(
193
- `Could not load schema from \`${schemaPathFromConfig}\` provided by "prisma.config.ts"\`: ${renderLookupError(
193
+ `Could not load schema from \`${schemaPathFromConfig}\` provided by the Prisma config file: ${renderLookupError(
194
194
  schemaResult.error
195
195
  )}`
196
196
  );