@prisma/internals 6.4.0-dev.52 → 6.4.0-dev.54

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 (47) hide show
  1. package/dist/{chunk-PLR4NGTL.js → chunk-2K2XI63H.js} +8 -8
  2. package/dist/{chunk-7IUXNMQN.js → chunk-5GKT3YLL.js} +5 -5
  3. package/dist/{chunk-5G7KCW2W.js → chunk-AI7X7EUG.js} +5 -5
  4. package/dist/{chunk-EHGYTB2W.js → chunk-B7G3GZFM.js} +7 -7
  5. package/dist/{chunk-UUOFJ3L7.js → chunk-CAFE5NHO.js} +7 -7
  6. package/dist/{chunk-XVEEPFYE.js → chunk-FAITWW26.js} +8 -8
  7. package/dist/{chunk-TFP2PT2F.js → chunk-FJCSJKMC.js} +8 -8
  8. package/dist/{chunk-AKACKNBA.js → chunk-GRK3XTH3.js} +8 -8
  9. package/dist/{chunk-I75T3XHR.js → chunk-GWR372US.js} +4 -4
  10. package/dist/{chunk-O5POCMIP.js → chunk-HETQ4SJU.js} +5 -5
  11. package/dist/{chunk-INH5LWZO.js → chunk-L2VWCVXE.js} +63 -35
  12. package/dist/{chunk-Y4LTKPZP.js → chunk-PYKSFBMQ.js} +8 -8
  13. package/dist/{chunk-CCJNOENV.js → chunk-QY472FLY.js} +8 -8
  14. package/dist/{chunk-FQMNIWO4.js → chunk-RCMVHIVH.js} +5 -5
  15. package/dist/{chunk-ZIPZKF5P.js → chunk-RIXONOI6.js} +5 -5
  16. package/dist/{chunk-KND4SOF3.js → chunk-SHFK6RCN.js} +63 -35
  17. package/dist/{chunk-S7K4NVXJ.js → chunk-TKJXNLL5.js} +5 -5
  18. package/dist/{chunk-TVLZHIWW.js → chunk-ULI2QEKS.js} +5 -5
  19. package/dist/{chunk-OHSLHSOR.js → chunk-V6LH7LFD.js} +5 -5
  20. package/dist/{chunk-EWNECZAE.js → chunk-XTQ6EZQW.js} +5 -5
  21. package/dist/cli/checkUnsupportedDataProxy.d.ts +2 -1
  22. package/dist/cli/checkUnsupportedDataProxy.js +12 -12
  23. package/dist/cli/getSchema.d.ts +27 -6
  24. package/dist/cli/getSchema.js +16 -17
  25. package/dist/cli/hashes.d.ts +2 -1
  26. package/dist/cli/hashes.js +12 -12
  27. package/dist/engine-commands/errorHelpers.js +4 -4
  28. package/dist/engine-commands/formatSchema.js +11 -11
  29. package/dist/engine-commands/getConfig.js +10 -10
  30. package/dist/engine-commands/getDmmf.js +7 -7
  31. package/dist/engine-commands/index.js +20 -20
  32. package/dist/engine-commands/lintSchema.js +8 -8
  33. package/dist/engine-commands/mergeSchemas.js +7 -7
  34. package/dist/engine-commands/validate.js +7 -7
  35. package/dist/get-generators/generatorResolvers/generatorResolvers.js +11 -11
  36. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +11 -11
  37. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +12 -12
  38. package/dist/get-generators/getGenerators.js +14 -14
  39. package/dist/index.d.ts +1 -1
  40. package/dist/index.js +39 -39
  41. package/dist/sendPanic.js +11 -11
  42. package/dist/utils/getEnvPaths.js +11 -11
  43. package/dist/utils/getVersionFromPackageJson.js +3 -3
  44. package/dist/utils/handlePanic.js +11 -11
  45. package/dist/utils/loadEnvFile.js +11 -11
  46. package/dist/wasm.js +4 -4
  47. package/package.json +9 -9
@@ -26,22 +26,22 @@ 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_PLR4NGTL_exports = {};
30
- __export(chunk_PLR4NGTL_exports, {
29
+ var chunk_2K2XI63H_exports = {};
30
+ __export(chunk_2K2XI63H_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig,
33
33
  getDirectUrl: () => getDirectUrl,
34
34
  getEffectiveUrl: () => getEffectiveUrl,
35
35
  resolveUrl: () => resolveUrl
36
36
  });
37
- module.exports = __toCommonJS(chunk_PLR4NGTL_exports);
37
+ module.exports = __toCommonJS(chunk_2K2XI63H_exports);
38
38
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
39
39
  var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
40
40
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
- var import_chunk_ZIPZKF5P = require("./chunk-ZIPZKF5P.js");
41
+ var import_chunk_RCMVHIVH = require("./chunk-RCMVHIVH.js");
42
42
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
43
43
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
44
- var import_chunk_OHSLHSOR = require("./chunk-OHSLHSOR.js");
44
+ var import_chunk_AI7X7EUG = require("./chunk-AI7X7EUG.js");
45
45
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
46
46
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
47
47
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
65
65
  }).exhaustive();
66
66
  const errorMessageWithContext = `${constructedErrorMessage}
67
67
  [Context: getConfig]`;
68
- super((0, import_chunk_ZIPZKF5P.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
+ super((0, import_chunk_RCMVHIVH.addVersionDetailsToErrorMessage)(errorMessageWithContext));
69
69
  this.name = "GetConfigError";
70
70
  }
71
71
  };
@@ -90,7 +90,7 @@ async function getConfig(options) {
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_OHSLHSOR.prismaSchemaWasm.debug_panic();
93
+ import_chunk_AI7X7EUG.prismaSchemaWasm.debug_panic();
94
94
  }
95
95
  const params = JSON.stringify({
96
96
  prismaSchema: options.datamodel,
@@ -98,7 +98,7 @@ async function getConfig(options) {
98
98
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
99
99
  env: process.env
100
100
  });
101
- const data = import_chunk_OHSLHSOR.prismaSchemaWasm.get_config(params);
101
+ const data = import_chunk_AI7X7EUG.prismaSchemaWasm.get_config(params);
102
102
  return data;
103
103
  },
104
104
  (e) => ({
@@ -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_7IUXNMQN_exports = {};
20
- __export(chunk_7IUXNMQN_exports, {
19
+ var chunk_5GKT3YLL_exports = {};
20
+ __export(chunk_5GKT3YLL_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_7IUXNMQN_exports);
24
- var import_chunk_I75T3XHR = require("./chunk-I75T3XHR.js");
25
- var packageJson = (0, import_chunk_I75T3XHR.require_package)();
23
+ module.exports = __toCommonJS(chunk_5GKT3YLL_exports);
24
+ var import_chunk_HETQ4SJU = require("./chunk-HETQ4SJU.js");
25
+ var packageJson = (0, import_chunk_HETQ4SJU.require_package)();
26
26
  var version = packageJson.version;
@@ -26,14 +26,14 @@ 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_5G7KCW2W_exports = {};
30
- __export(chunk_5G7KCW2W_exports, {
29
+ var chunk_AI7X7EUG_exports = {};
30
+ __export(chunk_AI7X7EUG_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  wasm_exports: () => wasm_exports
34
34
  });
35
- module.exports = __toCommonJS(chunk_5G7KCW2W_exports);
36
- var import_chunk_I75T3XHR = require("./chunk-I75T3XHR.js");
35
+ module.exports = __toCommonJS(chunk_AI7X7EUG_exports);
36
+ var import_chunk_HETQ4SJU = require("./chunk-HETQ4SJU.js");
37
37
  var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
38
38
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
39
39
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -42,6 +42,6 @@ var wasm_exports = {};
42
42
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
43
43
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
44
44
  });
45
- var { dependencies } = (0, import_chunk_I75T3XHR.require_package)();
45
+ var { dependencies } = (0, import_chunk_HETQ4SJU.require_package)();
46
46
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
@@ -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_EHGYTB2W_exports = {};
30
- __export(chunk_EHGYTB2W_exports, {
29
+ var chunk_B7G3GZFM_exports = {};
30
+ __export(chunk_B7G3GZFM_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_EHGYTB2W_exports);
34
+ module.exports = __toCommonJS(chunk_B7G3GZFM_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_FQMNIWO4 = require("./chunk-FQMNIWO4.js");
38
+ var import_chunk_RIXONOI6 = require("./chunk-RIXONOI6.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
- var import_chunk_5G7KCW2W = require("./chunk-5G7KCW2W.js");
41
+ var import_chunk_V6LH7LFD = require("./chunk-V6LH7LFD.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: mergeSchemas]`;
63
- super((0, import_chunk_FQMNIWO4.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_RIXONOI6.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "MergeSchemasError";
65
65
  }
66
66
  };
@@ -73,7 +73,7 @@ function mergeSchemas(options) {
73
73
  const params = JSON.stringify({
74
74
  schema: options.schemas
75
75
  });
76
- return import_chunk_5G7KCW2W.prismaSchemaWasm.merge_schemas(params);
76
+ return import_chunk_V6LH7LFD.prismaSchemaWasm.merge_schemas(params);
77
77
  },
78
78
  (e) => ({
79
79
  type: "wasm-error",
@@ -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_UUOFJ3L7_exports = {};
30
- __export(chunk_UUOFJ3L7_exports, {
29
+ var chunk_CAFE5NHO_exports = {};
30
+ __export(chunk_CAFE5NHO_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_UUOFJ3L7_exports);
34
+ module.exports = __toCommonJS(chunk_CAFE5NHO_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_ZIPZKF5P = require("./chunk-ZIPZKF5P.js");
38
+ var import_chunk_RCMVHIVH = require("./chunk-RCMVHIVH.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
- var import_chunk_OHSLHSOR = require("./chunk-OHSLHSOR.js");
41
+ var import_chunk_AI7X7EUG = require("./chunk-AI7X7EUG.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: mergeSchemas]`;
63
- super((0, import_chunk_ZIPZKF5P.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_RCMVHIVH.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "MergeSchemasError";
65
65
  }
66
66
  };
@@ -73,7 +73,7 @@ function mergeSchemas(options) {
73
73
  const params = JSON.stringify({
74
74
  schema: options.schemas
75
75
  });
76
- return import_chunk_OHSLHSOR.prismaSchemaWasm.merge_schemas(params);
76
+ return import_chunk_AI7X7EUG.prismaSchemaWasm.merge_schemas(params);
77
77
  },
78
78
  (e) => ({
79
79
  type: "wasm-error",
@@ -26,18 +26,18 @@ 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_XVEEPFYE_exports = {};
30
- __export(chunk_XVEEPFYE_exports, {
29
+ var chunk_FAITWW26_exports = {};
30
+ __export(chunk_FAITWW26_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_XVEEPFYE_exports);
34
+ module.exports = __toCommonJS(chunk_FAITWW26_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
37
- var import_chunk_FQMNIWO4 = require("./chunk-FQMNIWO4.js");
37
+ var import_chunk_RIXONOI6 = require("./chunk-RIXONOI6.js");
38
38
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
39
39
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
- var import_chunk_5G7KCW2W = require("./chunk-5G7KCW2W.js");
40
+ var import_chunk_V6LH7LFD = require("./chunk-V6LH7LFD.js");
41
41
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
42
42
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: getDmmf]`;
63
- super((0, import_chunk_FQMNIWO4.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_RIXONOI6.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "GetDmmfError";
65
65
  }
66
66
  };
@@ -90,13 +90,13 @@ async function getDMMF(options) {
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_5G7KCW2W.prismaSchemaWasm.debug_panic();
93
+ import_chunk_V6LH7LFD.prismaSchemaWasm.debug_panic();
94
94
  }
95
95
  const params = JSON.stringify({
96
96
  prismaSchema: datamodel,
97
97
  noColor: Boolean(process.env.NO_COLOR)
98
98
  });
99
- const data = import_chunk_5G7KCW2W.prismaSchemaWasm.get_dmmf(params);
99
+ const data = import_chunk_V6LH7LFD.prismaSchemaWasm.get_dmmf(params);
100
100
  return data;
101
101
  },
102
102
  (e) => ({
@@ -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_TFP2PT2F_exports = {};
30
- __export(chunk_TFP2PT2F_exports, {
29
+ var chunk_FJCSJKMC_exports = {};
30
+ __export(chunk_FJCSJKMC_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_TFP2PT2F_exports);
34
+ module.exports = __toCommonJS(chunk_FJCSJKMC_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_ZIPZKF5P = require("./chunk-ZIPZKF5P.js");
38
+ var import_chunk_RIXONOI6 = require("./chunk-RIXONOI6.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
- var import_chunk_OHSLHSOR = require("./chunk-OHSLHSOR.js");
41
+ var import_chunk_V6LH7LFD = require("./chunk-V6LH7LFD.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: validate]`;
63
- super((0, import_chunk_ZIPZKF5P.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_RIXONOI6.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "ValidateError";
65
65
  }
66
66
  };
@@ -72,13 +72,13 @@ function validate(options) {
72
72
  () => {
73
73
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
74
74
  debug("Triggering a Rust panic...");
75
- import_chunk_OHSLHSOR.prismaSchemaWasm.debug_panic();
75
+ import_chunk_V6LH7LFD.prismaSchemaWasm.debug_panic();
76
76
  }
77
77
  const params = JSON.stringify({
78
78
  prismaSchema: options.schemas,
79
79
  noColor: Boolean(process.env.NO_COLOR)
80
80
  });
81
- import_chunk_OHSLHSOR.prismaSchemaWasm.validate(params);
81
+ import_chunk_V6LH7LFD.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  type: "wasm-error",
@@ -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_AKACKNBA_exports = {};
30
- __export(chunk_AKACKNBA_exports, {
29
+ var chunk_GRK3XTH3_exports = {};
30
+ __export(chunk_GRK3XTH3_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_AKACKNBA_exports);
34
+ module.exports = __toCommonJS(chunk_GRK3XTH3_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_FQMNIWO4 = require("./chunk-FQMNIWO4.js");
38
+ var import_chunk_RCMVHIVH = require("./chunk-RCMVHIVH.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
- var import_chunk_5G7KCW2W = require("./chunk-5G7KCW2W.js");
41
+ var import_chunk_AI7X7EUG = require("./chunk-AI7X7EUG.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: validate]`;
63
- super((0, import_chunk_FQMNIWO4.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_RCMVHIVH.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "ValidateError";
65
65
  }
66
66
  };
@@ -72,13 +72,13 @@ function validate(options) {
72
72
  () => {
73
73
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
74
74
  debug("Triggering a Rust panic...");
75
- import_chunk_5G7KCW2W.prismaSchemaWasm.debug_panic();
75
+ import_chunk_AI7X7EUG.prismaSchemaWasm.debug_panic();
76
76
  }
77
77
  const params = JSON.stringify({
78
78
  prismaSchema: options.schemas,
79
79
  noColor: Boolean(process.env.NO_COLOR)
80
80
  });
81
- import_chunk_5G7KCW2W.prismaSchemaWasm.validate(params);
81
+ import_chunk_AI7X7EUG.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  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_I75T3XHR_exports = {};
20
- __export(chunk_I75T3XHR_exports, {
19
+ var chunk_GWR372US_exports = {};
20
+ __export(chunk_GWR372US_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_I75T3XHR_exports);
23
+ module.exports = __toCommonJS(chunk_GWR372US_exports);
24
24
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
25
25
  var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
26
26
  "package.json"(exports, module2) {
@@ -112,7 +112,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
112
112
  "@prisma/fetch-engine": "workspace:*",
113
113
  "@prisma/generator-helper": "workspace:*",
114
114
  "@prisma/get-platform": "workspace:*",
115
- "@prisma/prisma-schema-wasm": "6.4.0-24.b06b231b59f731b5063a26ba21c36320ce2feb4b",
115
+ "@prisma/prisma-schema-wasm": "6.4.0-25.613555cc0d9606bc115972eeb42c9127e09d23d3",
116
116
  "@prisma/schema-files-loader": "workspace:*",
117
117
  arg: "5.0.2",
118
118
  prompts: "2.4.2"
@@ -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_O5POCMIP_exports = {};
20
- __export(chunk_O5POCMIP_exports, {
19
+ var chunk_HETQ4SJU_exports = {};
20
+ __export(chunk_HETQ4SJU_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_O5POCMIP_exports);
23
+ module.exports = __toCommonJS(chunk_HETQ4SJU_exports);
24
24
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
25
25
  var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
26
26
  "package.json"(exports, module2) {
27
27
  module2.exports = {
28
28
  name: "@prisma/internals",
29
- version: "6.4.0-dev.52",
29
+ version: "6.4.0-dev.54",
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",
@@ -112,7 +112,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
112
112
  "@prisma/fetch-engine": "workspace:*",
113
113
  "@prisma/generator-helper": "workspace:*",
114
114
  "@prisma/get-platform": "workspace:*",
115
- "@prisma/prisma-schema-wasm": "6.4.0-24.b06b231b59f731b5063a26ba21c36320ce2feb4b",
115
+ "@prisma/prisma-schema-wasm": "6.4.0-25.613555cc0d9606bc115972eeb42c9127e09d23d3",
116
116
  "@prisma/schema-files-loader": "workspace:*",
117
117
  arg: "5.0.2",
118
118
  prompts: "2.4.2"
@@ -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_INH5LWZO_exports = {};
30
- __export2(chunk_INH5LWZO_exports, {
29
+ var chunk_L2VWCVXE_exports = {};
30
+ __export2(chunk_L2VWCVXE_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
33
  debug: () => debug6,
@@ -51,11 +51,10 @@ __export2(chunk_INH5LWZO_exports, {
51
51
  knownBinaryTargets: () => knownBinaryTargets,
52
52
  loadEnvFile: () => loadEnvFile,
53
53
  prismaClientResolver: () => prismaClientResolver,
54
- readSchemaFromSingleFile: () => readSchemaFromSingleFile,
55
54
  sendPanic: () => sendPanic,
56
55
  skipIndex: () => skipIndex
57
56
  });
58
- module.exports = __toCommonJS2(chunk_INH5LWZO_exports);
57
+ module.exports = __toCommonJS2(chunk_L2VWCVXE_exports);
59
58
  var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
60
59
  var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
61
60
  var import_chunk_PIPE5DSU = require("./chunk-PIPE5DSU.js");
@@ -80,14 +79,13 @@ var import_chunk_AC6EAR56 = require("./chunk-AC6EAR56.js");
80
79
  var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
81
80
  var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
82
81
  var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
83
- var import_chunk_EWNECZAE = require("./chunk-EWNECZAE.js");
84
- var import_chunk_EHGYTB2W = require("./chunk-EHGYTB2W.js");
85
- var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
86
- var import_chunk_Y4LTKPZP = require("./chunk-Y4LTKPZP.js");
87
- var import_chunk_XVEEPFYE = require("./chunk-XVEEPFYE.js");
82
+ var import_chunk_XTQ6EZQW = require("./chunk-XTQ6EZQW.js");
83
+ var import_chunk_B7G3GZFM = require("./chunk-B7G3GZFM.js");
84
+ var import_chunk_PYKSFBMQ = require("./chunk-PYKSFBMQ.js");
85
+ var import_chunk_FAITWW26 = require("./chunk-FAITWW26.js");
88
86
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
89
87
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
90
- var import_chunk_5G7KCW2W = require("./chunk-5G7KCW2W.js");
88
+ var import_chunk_V6LH7LFD = require("./chunk-V6LH7LFD.js");
91
89
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
92
90
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
93
91
  var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
@@ -14718,15 +14716,15 @@ var import_find_up = (0, import_chunk_WWAWV7DQ.__toESM)(require_find_up());
14718
14716
  var readFile = (0, import_util.promisify)(import_fs3.default.readFile);
14719
14717
  var stat = (0, import_util.promisify)(import_fs3.default.stat);
14720
14718
  var debug2 = (0, import_debug4.Debug)("prisma:getSchema");
14721
- async function getSchemaWithPath(schemaPathFromArgs, { cwd = process.cwd(), argumentName = "--schema" } = {}) {
14722
- const result = await getSchemaWithPathInternal(schemaPathFromArgs, { cwd, argumentName });
14719
+ async function getSchemaWithPath(schemaPathFromArgs, schemaPathFromConfig, { cwd = process.cwd(), argumentName = "--schema" } = {}) {
14720
+ const result = await getSchemaWithPathInternal(schemaPathFromArgs, schemaPathFromConfig, { cwd, argumentName });
14723
14721
  if (result.ok) {
14724
14722
  return result.schema;
14725
14723
  }
14726
14724
  throw new Error(renderDefaultLookupError(result.error, cwd));
14727
14725
  }
14728
- async function getSchemaWithPathOptional(schemaPathFromArgs, { cwd = process.cwd(), argumentName = "--schema" } = {}) {
14729
- const result = await getSchemaWithPathInternal(schemaPathFromArgs, { cwd, argumentName });
14726
+ async function getSchemaWithPathOptional(schemaPathFromArgs, schemaPathFromConfig, { cwd = process.cwd(), argumentName = "--schema" } = {}) {
14727
+ const result = await getSchemaWithPathInternal(schemaPathFromArgs, schemaPathFromConfig, { cwd, argumentName });
14730
14728
  if (result.ok) {
14731
14729
  return result.schema;
14732
14730
  }
@@ -14753,7 +14751,7 @@ async function readSchemaFromDirectory(schemaPath2) {
14753
14751
  }
14754
14752
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
14755
14753
  debug2("Loading config");
14756
- const config2 = await (0, import_chunk_Y4LTKPZP.getConfig)({
14754
+ const config2 = await (0, import_chunk_PYKSFBMQ.getConfig)({
14757
14755
  datamodel: files,
14758
14756
  ignoreEnvVarErrors: true
14759
14757
  });
@@ -14781,7 +14779,7 @@ async function readSchemaFromFileOrDirectory(schemaPath2) {
14781
14779
  }
14782
14780
  return { ok: false, error: { kind: "WrongType", path: schemaPath2, expectedTypes: ["file", "directory"] } };
14783
14781
  }
14784
- async function getSchemaWithPathInternal(schemaPathFromArgs, { cwd, argumentName }) {
14782
+ async function getSchemaWithPathInternal(schemaPathFromArgs, schemaPathFromConfig, { cwd, argumentName }) {
14785
14783
  if (schemaPathFromArgs) {
14786
14784
  const absPath = import_path2.default.resolve(cwd, schemaPathFromArgs);
14787
14785
  const customSchemaResult = await readSchemaFromFileOrDirectory(absPath);
@@ -14795,6 +14793,10 @@ async function getSchemaWithPathInternal(schemaPathFromArgs, { cwd, argumentName
14795
14793
  }
14796
14794
  return customSchemaResult;
14797
14795
  }
14796
+ const prismaConfigResult = await readSchemaFromPrismaConfigBasedLocation(schemaPathFromConfig);
14797
+ if (prismaConfigResult.ok) {
14798
+ return prismaConfigResult;
14799
+ }
14798
14800
  const pkgJsonResult = await getSchemaFromPackageJson(cwd);
14799
14801
  if (pkgJsonResult.ok) {
14800
14802
  return pkgJsonResult;
@@ -14850,6 +14852,31 @@ async function getPrismaConfigFromPackageJson(cwd) {
14850
14852
  packagePath: pkgJson.path
14851
14853
  };
14852
14854
  }
14855
+ async function readSchemaFromPrismaConfigBasedLocation(schemaPathFromConfig) {
14856
+ if (!schemaPathFromConfig) {
14857
+ return {
14858
+ ok: false,
14859
+ error: { kind: "PrismaConfigNotConfigured" }
14860
+ };
14861
+ }
14862
+ let schemaResult2;
14863
+ if (schemaPathFromConfig.kind === "single") {
14864
+ schemaResult2 = await readSchemaFromSingleFile(schemaPathFromConfig.filenamePath);
14865
+ if (!schemaResult2.ok) {
14866
+ throw new Error(
14867
+ `Could not load schema from file \`${schemaPathFromConfig.filenamePath}\` provided by "prisma.config.ts" config\`: ${renderLookupError(schemaResult2.error)}`
14868
+ );
14869
+ }
14870
+ } else {
14871
+ schemaResult2 = await readSchemaFromDirectory(schemaPathFromConfig.folder);
14872
+ if (!schemaResult2.ok) {
14873
+ throw new Error(
14874
+ `Could not load schema from folder \`${schemaPathFromConfig.folder}\` provided by "prisma.config.ts" config\`: ${renderLookupError(schemaResult2.error)}`
14875
+ );
14876
+ }
14877
+ }
14878
+ return schemaResult2;
14879
+ }
14853
14880
  async function getSchemaFromPackageJson(cwd) {
14854
14881
  const prismaConfig = await getPrismaConfigFromPackageJson(cwd);
14855
14882
  debug2("prismaConfig", prismaConfig);
@@ -14954,8 +14981,8 @@ async function getSchemaDir(schemaPathFromArgs) {
14954
14981
  }
14955
14982
  return import_path2.default.dirname(schemaPathResult.schemaPath);
14956
14983
  }
14957
- async function getSchema(schemaPathFromArgs) {
14958
- const schemaPathResult = await getSchemaWithPath(schemaPathFromArgs);
14984
+ async function getSchema(schemaPathFromArgs, schemaPathFromConfig) {
14985
+ const schemaPathResult = await getSchemaWithPath(schemaPathFromArgs, schemaPathFromConfig);
14959
14986
  return schemaPathResult.schemas;
14960
14987
  }
14961
14988
  var debug3 = (0, import_debug3.default)("prisma:loadEnv");
@@ -15038,9 +15065,9 @@ Please use a direct connection to your database via the datasource \`directUrl\`
15038
15065
 
15039
15066
  More information about this limitation: ${(0, import_chunk_L6GBFCXG.link)("https://pris.ly/d/accelerate-limitations")}
15040
15067
  `;
15041
- async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
15068
+ async function checkUnsupportedDataProxyMessage(command, args, schemaPathFromConfig, implicitSchema) {
15042
15069
  if (implicitSchema === true) {
15043
- args["--schema"] = (await getSchemaWithPath(args["--schema"]))?.schemaPath ?? void 0;
15070
+ args["--schema"] = (await getSchemaWithPath(args["--schema"], schemaPathFromConfig))?.schemaPath ?? void 0;
15044
15071
  }
15045
15072
  const argList = Object.entries(args);
15046
15073
  for (const [argName, argValue] of argList) {
@@ -15050,8 +15077,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
15050
15077
  if (argName.includes("schema")) {
15051
15078
  await loadEnvFile({ schemaPath: argValue, printMessage: false, config: (0, import_config.defaultTestConfig)() });
15052
15079
  const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
15053
- const config2 = await (0, import_chunk_Y4LTKPZP.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15054
- const url = (0, import_chunk_Y4LTKPZP.resolveUrl)((0, import_chunk_Y4LTKPZP.getEffectiveUrl)(config2.datasources[0]));
15080
+ const config2 = await (0, import_chunk_PYKSFBMQ.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15081
+ const url = (0, import_chunk_PYKSFBMQ.resolveUrl)((0, import_chunk_PYKSFBMQ.getEffectiveUrl)(config2.datasources[0]));
15055
15082
  if (url?.startsWith("prisma://")) {
15056
15083
  return forbiddenCmdWithDataProxyFlagMessage(command);
15057
15084
  }
@@ -15059,13 +15086,14 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
15059
15086
  }
15060
15087
  return void 0;
15061
15088
  }
15062
- async function checkUnsupportedDataProxy(command, args, implicitSchema) {
15063
- const message = await checkUnsupportedDataProxyMessage(command, args, implicitSchema).catch(() => void 0);
15089
+ async function checkUnsupportedDataProxy(command, args, schemaPathFromConfig, implicitSchema) {
15090
+ const message = await checkUnsupportedDataProxyMessage(command, args, schemaPathFromConfig, implicitSchema).catch(
15091
+ () => void 0
15092
+ );
15064
15093
  if (message) throw new Error(message);
15065
15094
  }
15066
- async function getProjectHash() {
15067
- const args = (0, import_chunk_MUPZUVSI.arg)(process.argv.slice(3), { "--schema": String });
15068
- const projectPath = (await getSchemaWithPath(args["--schema"]))?.schemaPath ?? process.cwd();
15095
+ async function getProjectHash(schemaPathFromArgs, schemaPathFromConfig) {
15096
+ const projectPath = (await getSchemaWithPath(schemaPathFromArgs, schemaPathFromConfig))?.schemaPath ?? process.cwd();
15069
15097
  return import_crypto.default.createHash("sha256").update(projectPath).digest("hex").substring(0, 8);
15070
15098
  }
15071
15099
  function getCLIPathHash() {
@@ -15223,7 +15251,7 @@ async function getGenerators(options) {
15223
15251
  prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
15224
15252
  }
15225
15253
  }
15226
- const config = await (0, import_chunk_Y4LTKPZP.getConfig)({
15254
+ const config = await (0, import_chunk_PYKSFBMQ.getConfig)({
15227
15255
  datamodel: schemas,
15228
15256
  datamodelPath: schemaPath,
15229
15257
  prismaPath,
@@ -15234,7 +15262,7 @@ async function getGenerators(options) {
15234
15262
  }
15235
15263
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
15236
15264
  const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
15237
- const dmmf = await (0, import_chunk_XVEEPFYE.getDMMF)({
15265
+ const dmmf = await (0, import_chunk_FAITWW26.getDMMF)({
15238
15266
  datamodel: schemas,
15239
15267
  datamodelPath: schemaPath,
15240
15268
  prismaPath,
@@ -15295,7 +15323,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
15295
15323
  fromEnvVar: "null"
15296
15324
  };
15297
15325
  }
15298
- const datamodel = (0, import_chunk_EHGYTB2W.mergeSchemas)({ schemas });
15326
+ const datamodel = (0, import_chunk_B7G3GZFM.mergeSchemas)({ schemas });
15299
15327
  const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
15300
15328
  const options2 = {
15301
15329
  datamodel,
@@ -15378,7 +15406,7 @@ generator gen {
15378
15406
  debug7({ generatorBinaryPaths });
15379
15407
  generator.setBinaryPaths(generatorBinaryPaths);
15380
15408
  if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
15381
- const customDmmf = await (0, import_chunk_XVEEPFYE.getDMMF)({
15409
+ const customDmmf = await (0, import_chunk_FAITWW26.getDMMF)({
15382
15410
  datamodel: schemas,
15383
15411
  datamodelPath: schemaPath,
15384
15412
  prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
@@ -15676,7 +15704,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15676
15704
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
15677
15705
  handleFormatPanic(
15678
15706
  () => {
15679
- import_chunk_5G7KCW2W.prismaSchemaWasm.debug_panic();
15707
+ import_chunk_V6LH7LFD.prismaSchemaWasm.debug_panic();
15680
15708
  },
15681
15709
  { schemas: schemas2 }
15682
15710
  );
@@ -15696,12 +15724,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15696
15724
  () => {
15697
15725
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
15698
15726
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
15699
- const lintDiagnostics2 = (0, import_chunk_EWNECZAE.lintSchema)({ schemas: formattedMultipleSchemas2 });
15727
+ const lintDiagnostics2 = (0, import_chunk_XTQ6EZQW.lintSchema)({ schemas: formattedMultipleSchemas2 });
15700
15728
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
15701
15729
  },
15702
15730
  { schemas: schemas2 }
15703
15731
  );
15704
- const lintWarnings = (0, import_chunk_EWNECZAE.getLintWarningsAsText)(lintDiagnostics);
15732
+ const lintWarnings = (0, import_chunk_XTQ6EZQW.getLintWarningsAsText)(lintDiagnostics);
15705
15733
  if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
15706
15734
  console.warn(lintWarnings);
15707
15735
  }
@@ -15731,7 +15759,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
15731
15759
  }
15732
15760
  }
15733
15761
  function formatWasm(schema, documentFormattingParams) {
15734
- const formattedSchema = import_chunk_5G7KCW2W.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15762
+ const formattedSchema = import_chunk_V6LH7LFD.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15735
15763
  return formattedSchema;
15736
15764
  }
15737
15765
  /*! Bundled license information: