@prisma/internals 6.19.0-integration-engines-6-19-0-28-next-8f44482e378cd05ba43deae3c6b1d441b5248e08.1 → 6.19.0-integration-next.12

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 (70) hide show
  1. package/dist/{chunk-QFL3CZQX.js → chunk-34LJMILK.js} +5 -5
  2. package/dist/{chunk-DE5G5HUE.js → chunk-3AVLRMFL.js} +8 -8
  3. package/dist/{chunk-76OLTURZ.js → chunk-5ITVWGE7.js} +5 -5
  4. package/dist/{chunk-HO5HRHFZ.js → chunk-5W3BSMTH.js} +3 -6
  5. package/dist/{chunk-F2OZV76L.js → chunk-5XFNC2RY.js} +7 -7
  6. package/dist/{chunk-46ABODUM.js → chunk-6QTN4DDB.js} +6 -21
  7. package/dist/{chunk-WFNB7VRA.js → chunk-ARC7TW3L.js} +4 -14
  8. package/dist/{chunk-RS2R7COT.js → chunk-B22EOFPW.js} +3 -6
  9. package/dist/{chunk-6KLIEC55.js → chunk-BJUIZZOW.js} +28 -41
  10. package/dist/{chunk-TIXJU3BS.js → chunk-CAYOFOK7.js} +8 -8
  11. package/dist/{chunk-5GEULB6A.js → chunk-EGJS32NP.js} +8 -8
  12. package/dist/{chunk-GMW36QQF.js → chunk-FC6CQUSK.js} +5 -5
  13. package/dist/{chunk-PZMRR772.js → chunk-FURGECAD.js} +6 -6
  14. package/dist/{chunk-ERSH2BQA.js → chunk-FUYRCYVL.js} +3 -8
  15. package/dist/{chunk-6NNYHRH5.js → chunk-GHW2QHSJ.js} +7 -7
  16. package/dist/{chunk-4JCVHBYR.js → chunk-GL7OANR6.js} +5 -5
  17. package/dist/{chunk-HFFWZTVM.js → chunk-GSH4BXBI.js} +4 -6
  18. package/dist/{chunk-V7Z52Q7F.js → chunk-HD2CUQO5.js} +7 -7
  19. package/dist/{chunk-GNUU4JVZ.js → chunk-HQAD5FY2.js} +5 -5
  20. package/dist/{chunk-LB7LLVBO.js → chunk-HZ6U2UGL.js} +8 -8
  21. package/dist/{chunk-UQUWZJVN.js → chunk-KIFFN3IT.js} +5 -5
  22. package/dist/{chunk-KFVYTLXO.js → chunk-M3OJAEWR.js} +8 -8
  23. package/dist/{chunk-ORXQN5LN.js → chunk-MPUM63MN.js} +5 -5
  24. package/dist/{chunk-3H7CUSTZ.js → chunk-MURRA56K.js} +5 -5
  25. package/dist/{chunk-EYVG6XQS.js → chunk-OKVM3CW4.js} +3 -39
  26. package/dist/{chunk-ABPE5LSS.js → chunk-OUIUEMSH.js} +8 -8
  27. package/dist/{chunk-W7IWIV7N.js → chunk-RO4FBYFK.js} +8 -8
  28. package/dist/{chunk-VWJOHYMA.js → chunk-S553BGWR.js} +7 -7
  29. package/dist/{chunk-OAT7ZJED.js → chunk-SRZLJFU4.js} +4 -8
  30. package/dist/{chunk-3WZD7VQV.js → chunk-VAHOQVFX.js} +5 -5
  31. package/dist/{chunk-QT65XC7I.js → chunk-VIEJEAGW.js} +5 -5
  32. package/dist/{chunk-4CGPN5SR.js → chunk-VRGMXDRD.js} +3 -6
  33. package/dist/{chunk-KBNJH2JG.js → chunk-XTWFEQXH.js} +5 -5
  34. package/dist/{chunk-TXOU5F5M.js → chunk-YOPDGHU7.js} +28 -41
  35. package/dist/cli/checkUnsupportedDataProxy.js +26 -26
  36. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +26 -26
  37. package/dist/cli/getGeneratorSuccessMessage.js +2 -3
  38. package/dist/cli/getSchema.d.ts +1 -15
  39. package/dist/cli/getSchema.js +4 -5
  40. package/dist/cli/hashes.js +4 -4
  41. package/dist/cli/schemaContext.js +26 -26
  42. package/dist/client/getClientEngineType.d.ts +0 -1
  43. package/dist/client/getClientEngineType.js +3 -3
  44. package/dist/engine-commands/errorHelpers.js +4 -4
  45. package/dist/engine-commands/formatSchema.js +25 -25
  46. package/dist/engine-commands/getConfig.js +10 -10
  47. package/dist/engine-commands/getDmmf.js +7 -7
  48. package/dist/engine-commands/getEngineVersion.js +3 -3
  49. package/dist/engine-commands/getEnginesInfo.d.ts +0 -1
  50. package/dist/engine-commands/getEnginesInfo.js +4 -4
  51. package/dist/engine-commands/index.js +37 -37
  52. package/dist/engine-commands/lintSchema.js +8 -8
  53. package/dist/engine-commands/mergeSchemas.js +7 -7
  54. package/dist/engine-commands/validate.js +7 -7
  55. package/dist/get-generators/getGenerators.d.ts +0 -1
  56. package/dist/get-generators/getGenerators.js +28 -28
  57. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  58. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  59. package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
  60. package/dist/index.js +61 -61
  61. package/dist/sendPanic.js +2 -2
  62. package/dist/utils/getEnvPaths.d.ts +1 -1
  63. package/dist/utils/getEnvPaths.js +2 -3
  64. package/dist/utils/getVersionFromPackageJson.js +3 -3
  65. package/dist/utils/handlePanic.js +3 -3
  66. package/dist/utils/loadEnvFile.d.ts +1 -1
  67. package/dist/utils/loadEnvFile.js +3 -4
  68. package/dist/utils/serializeQueryEngineName.js +2 -2
  69. package/dist/wasm.js +5 -5
  70. package/package.json +15 -15
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_6NNYHRH5_exports = {};
30
- __export(chunk_6NNYHRH5_exports, {
29
+ var chunk_GHW2QHSJ_exports = {};
30
+ __export(chunk_GHW2QHSJ_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_6NNYHRH5_exports);
34
+ module.exports = __toCommonJS(chunk_GHW2QHSJ_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.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_3H7CUSTZ = require("./chunk-3H7CUSTZ.js");
39
- var import_chunk_ORXQN5LN = require("./chunk-ORXQN5LN.js");
38
+ var import_chunk_VAHOQVFX = require("./chunk-VAHOQVFX.js");
39
+ var import_chunk_MPUM63MN = require("./chunk-MPUM63MN.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_3H7CUSTZ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_VAHOQVFX.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_ORXQN5LN.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_MPUM63MN.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -26,16 +26,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_4JCVHBYR_exports = {};
30
- __export(chunk_4JCVHBYR_exports, {
29
+ var chunk_GL7OANR6_exports = {};
30
+ __export(chunk_GL7OANR6_exports, {
31
31
  getCLIPathHash: () => getCLIPathHash,
32
32
  getProjectHash: () => getProjectHash
33
33
  });
34
- module.exports = __toCommonJS(chunk_4JCVHBYR_exports);
35
- var import_chunk_EYVG6XQS = require("./chunk-EYVG6XQS.js");
34
+ module.exports = __toCommonJS(chunk_GL7OANR6_exports);
35
+ var import_chunk_OKVM3CW4 = require("./chunk-OKVM3CW4.js");
36
36
  var import_crypto = __toESM(require("crypto"));
37
37
  async function getProjectHash(schemaPathFromArgs, schemaPathFromConfig) {
38
- const projectPath = (await (0, import_chunk_EYVG6XQS.getSchemaWithPath)(schemaPathFromArgs, schemaPathFromConfig))?.schemaPath ?? process.cwd();
38
+ const projectPath = (await (0, import_chunk_OKVM3CW4.getSchemaWithPath)(schemaPathFromArgs, schemaPathFromConfig))?.schemaPath ?? process.cwd();
39
39
  return import_crypto.default.createHash("sha256").update(projectPath).digest("hex").substring(0, 8);
40
40
  }
41
41
  function getCLIPathHash() {
@@ -26,11 +26,11 @@ 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_HFFWZTVM_exports = {};
30
- __export(chunk_HFFWZTVM_exports, {
29
+ var chunk_GSH4BXBI_exports = {};
30
+ __export(chunk_GSH4BXBI_exports, {
31
31
  sendPanic: () => sendPanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_HFFWZTVM_exports);
33
+ module.exports = __toCommonJS(chunk_GSH4BXBI_exports);
34
34
  var import_chunk_KDHESRKE = require("./chunk-KDHESRKE.js");
35
35
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
36
36
  var import_chunk_5AI4FIZ3 = require("./chunk-5AI4FIZ3.js");
@@ -1813,9 +1813,7 @@ async function sendPanic({
1813
1813
  return id;
1814
1814
  }
1815
1815
  function getCommand() {
1816
- if (process.argv[2] === "introspect") {
1817
- return "introspect";
1818
- } else if (process.argv[2] === "db" && process.argv[3] === "pull") {
1816
+ if (process.argv[2] === "db" && process.argv[3] === "pull") {
1819
1817
  return "db pull";
1820
1818
  }
1821
1819
  return process.argv.slice(2).join(" ");
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_V7Z52Q7F_exports = {};
30
- __export(chunk_V7Z52Q7F_exports, {
29
+ var chunk_HD2CUQO5_exports = {};
30
+ __export(chunk_HD2CUQO5_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_V7Z52Q7F_exports);
34
+ module.exports = __toCommonJS(chunk_HD2CUQO5_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.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_3WZD7VQV = require("./chunk-3WZD7VQV.js");
39
- var import_chunk_GNUU4JVZ = require("./chunk-GNUU4JVZ.js");
38
+ var import_chunk_MURRA56K = require("./chunk-MURRA56K.js");
39
+ var import_chunk_HQAD5FY2 = require("./chunk-HQAD5FY2.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_3WZD7VQV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_MURRA56K.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_GNUU4JVZ.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_HQAD5FY2.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -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_GNUU4JVZ_exports = {};
30
- __export(chunk_GNUU4JVZ_exports, {
29
+ var chunk_HQAD5FY2_exports = {};
30
+ __export(chunk_HQAD5FY2_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_GNUU4JVZ_exports);
37
- var import_chunk_VWJOHYMA = require("./chunk-VWJOHYMA.js");
36
+ module.exports = __toCommonJS(chunk_HQAD5FY2_exports);
37
+ var import_chunk_S553BGWR = require("./chunk-S553BGWR.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_VWJOHYMA.require_package)();
49
+ var { dependencies } = (0, import_chunk_S553BGWR.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -26,20 +26,20 @@ 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_LB7LLVBO_exports = {};
30
- __export(chunk_LB7LLVBO_exports, {
29
+ var chunk_HZ6U2UGL_exports = {};
30
+ __export(chunk_HZ6U2UGL_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_LB7LLVBO_exports);
37
+ module.exports = __toCommonJS(chunk_HZ6U2UGL_exports);
38
38
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
39
39
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
40
40
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
- var import_chunk_3WZD7VQV = require("./chunk-3WZD7VQV.js");
42
- var import_chunk_GNUU4JVZ = require("./chunk-GNUU4JVZ.js");
41
+ var import_chunk_MURRA56K = require("./chunk-MURRA56K.js");
42
+ var import_chunk_HQAD5FY2 = require("./chunk-HQAD5FY2.js");
43
43
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
44
44
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
45
45
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -64,7 +64,7 @@ ${detailsHeader} ${message}`;
64
64
  }).exhaustive();
65
65
  const errorMessageWithContext = `${constructedErrorMessage}
66
66
  [Context: getConfig]`;
67
- super((0, import_chunk_3WZD7VQV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_MURRA56K.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -89,7 +89,7 @@ async function getConfig(options) {
89
89
  () => {
90
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
91
91
  debug("Triggering a Rust panic...");
92
- import_chunk_GNUU4JVZ.prismaSchemaWasm.debug_panic();
92
+ import_chunk_HQAD5FY2.prismaSchemaWasm.debug_panic();
93
93
  }
94
94
  const params = JSON.stringify({
95
95
  prismaSchema: options.datamodel,
@@ -97,7 +97,7 @@ async function getConfig(options) {
97
97
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
98
98
  env: process.env
99
99
  });
100
- const data = import_chunk_GNUU4JVZ.prismaSchemaWasm.get_config(params);
100
+ const data = import_chunk_HQAD5FY2.prismaSchemaWasm.get_config(params);
101
101
  return data;
102
102
  },
103
103
  (e) => ({
@@ -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_UQUWZJVN_exports = {};
30
- __export(chunk_UQUWZJVN_exports, {
29
+ var chunk_KIFFN3IT_exports = {};
30
+ __export(chunk_KIFFN3IT_exports, {
31
31
  handlePanic: () => handlePanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_UQUWZJVN_exports);
33
+ module.exports = __toCommonJS(chunk_KIFFN3IT_exports);
34
34
  var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
35
35
  var import_chunk_7IKUTPWQ = require("./chunk-7IKUTPWQ.js");
36
36
  var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
37
- var import_chunk_HFFWZTVM = require("./chunk-HFFWZTVM.js");
37
+ var import_chunk_GSH4BXBI = require("./chunk-GSH4BXBI.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_HFFWZTVM.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
82
+ const reportId = await (0, import_chunk_GSH4BXBI.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(`
@@ -26,16 +26,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_KFVYTLXO_exports = {};
30
- __export(chunk_KFVYTLXO_exports, {
29
+ var chunk_M3OJAEWR_exports = {};
30
+ __export(chunk_M3OJAEWR_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_KFVYTLXO_exports);
34
+ module.exports = __toCommonJS(chunk_M3OJAEWR_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_3H7CUSTZ = require("./chunk-3H7CUSTZ.js");
38
- var import_chunk_ORXQN5LN = require("./chunk-ORXQN5LN.js");
37
+ var import_chunk_VAHOQVFX = require("./chunk-VAHOQVFX.js");
38
+ var import_chunk_MPUM63MN = require("./chunk-MPUM63MN.js");
39
39
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
41
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -58,7 +58,7 @@ ${detailsHeader} ${message}`;
58
58
  }).exhaustive();
59
59
  const errorMessageWithContext = `${constructedErrorMessage}
60
60
  [Context: getDmmf]`;
61
- super((0, import_chunk_3H7CUSTZ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_VAHOQVFX.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
62
  this.name = "GetDmmfError";
63
63
  }
64
64
  };
@@ -70,13 +70,13 @@ async function getDMMF(options) {
70
70
  () => {
71
71
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_ORXQN5LN.prismaSchemaWasm.debug_panic();
73
+ import_chunk_MPUM63MN.prismaSchemaWasm.debug_panic();
74
74
  }
75
75
  const params = JSON.stringify({
76
76
  prismaSchema: options.datamodel,
77
77
  noColor: Boolean(process.env.NO_COLOR)
78
78
  });
79
- const data = import_chunk_ORXQN5LN.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_MPUM63MN.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -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_ORXQN5LN_exports = {};
30
- __export(chunk_ORXQN5LN_exports, {
29
+ var chunk_MPUM63MN_exports = {};
30
+ __export(chunk_MPUM63MN_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_ORXQN5LN_exports);
37
- var import_chunk_DE5G5HUE = require("./chunk-DE5G5HUE.js");
36
+ module.exports = __toCommonJS(chunk_MPUM63MN_exports);
37
+ var import_chunk_3AVLRMFL = require("./chunk-3AVLRMFL.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_DE5G5HUE.require_package)();
49
+ var { dependencies } = (0, import_chunk_3AVLRMFL.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -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_3H7CUSTZ_exports = {};
20
- __export(chunk_3H7CUSTZ_exports, {
19
+ var chunk_MURRA56K_exports = {};
20
+ __export(chunk_MURRA56K_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_3H7CUSTZ_exports);
24
- var import_chunk_KBNJH2JG = require("./chunk-KBNJH2JG.js");
23
+ module.exports = __toCommonJS(chunk_MURRA56K_exports);
24
+ var import_chunk_XTWFEQXH = require("./chunk-XTWFEQXH.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_KBNJH2JG.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_XTWFEQXH.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -26,16 +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_EYVG6XQS_exports = {};
30
- __export(chunk_EYVG6XQS_exports, {
31
- getSchemaFromPackageJson: () => getSchemaFromPackageJson,
29
+ var chunk_OKVM3CW4_exports = {};
30
+ __export(chunk_OKVM3CW4_exports, {
32
31
  getSchemaWithPath: () => getSchemaWithPath,
33
32
  getSchemaWithPathOptional: () => getSchemaWithPathOptional,
34
33
  printSchemaLoadedMessage: () => printSchemaLoadedMessage
35
34
  });
36
- module.exports = __toCommonJS(chunk_EYVG6XQS_exports);
35
+ module.exports = __toCommonJS(chunk_OKVM3CW4_exports);
37
36
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
38
- var import_config = require("@prisma/config");
39
37
  var import_debug = require("@prisma/debug");
40
38
  var import_schema_files_loader = require("@prisma/schema-files-loader");
41
39
  var import_fs = __toESM(require("fs"));
@@ -119,10 +117,6 @@ async function getSchemaWithPathInternal(schemaPathFromArgs, schemaPathFromConfi
119
117
  if (prismaConfigResult.ok) {
120
118
  return prismaConfigResult;
121
119
  }
122
- const pkgJsonResult = await getSchemaFromPackageJson(cwd);
123
- if (pkgJsonResult.ok) {
124
- return pkgJsonResult;
125
- }
126
120
  const defaultResult = await getDefaultSchema(cwd);
127
121
  if (defaultResult.ok) {
128
122
  return defaultResult;
@@ -179,36 +173,6 @@ async function readSchemaFromPrismaConfigBasedLocation(schemaPathFromConfig) {
179
173
  }
180
174
  return schemaResult;
181
175
  }
182
- async function getSchemaFromPackageJson(cwd) {
183
- const prismaConfig = await (0, import_config.loadConfigFromPackageJson)(cwd);
184
- debug("prismaConfig", prismaConfig);
185
- if (!prismaConfig || !prismaConfig.config?.schema) {
186
- return { ok: false, error: { kind: "PackageJsonNotConfigured" } };
187
- }
188
- const schemaPathFromPkgJson = prismaConfig.config.schema;
189
- if (typeof schemaPathFromPkgJson !== "string") {
190
- throw new Error(
191
- `Provided schema path \`${schemaPathFromPkgJson}\` from \`${import_path.default.relative(
192
- cwd,
193
- prismaConfig.loadedFromFile
194
- )}\` must be of type string`
195
- );
196
- }
197
- const absoluteSchemaPath = import_path.default.isAbsolute(schemaPathFromPkgJson) ? schemaPathFromPkgJson : import_path.default.resolve(import_path.default.dirname(prismaConfig.loadedFromFile), schemaPathFromPkgJson);
198
- const lookupResult = await readSchemaFromFileOrDirectory(absoluteSchemaPath);
199
- if (!lookupResult.ok) {
200
- throw new Error(
201
- `Could not load schema from \`${import_path.default.relative(
202
- cwd,
203
- absoluteSchemaPath
204
- )}\` provided by "prisma.schema" config of \`${import_path.default.relative(
205
- cwd,
206
- prismaConfig.loadedFromFile
207
- )}\`: ${renderLookupError(lookupResult.error)}`
208
- );
209
- }
210
- return lookupResult;
211
- }
212
176
  async function getDefaultSchema(cwd, failures = []) {
213
177
  const lookupPaths = [import_path.default.join(cwd, "schema.prisma"), import_path.default.join(cwd, "prisma", "schema.prisma")];
214
178
  for (const path2 of lookupPaths) {
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_ABPE5LSS_exports = {};
30
- __export(chunk_ABPE5LSS_exports, {
29
+ var chunk_OUIUEMSH_exports = {};
30
+ __export(chunk_OUIUEMSH_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_ABPE5LSS_exports);
34
+ module.exports = __toCommonJS(chunk_OUIUEMSH_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.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_3WZD7VQV = require("./chunk-3WZD7VQV.js");
39
- var import_chunk_GNUU4JVZ = require("./chunk-GNUU4JVZ.js");
38
+ var import_chunk_VAHOQVFX = require("./chunk-VAHOQVFX.js");
39
+ var import_chunk_MPUM63MN = require("./chunk-MPUM63MN.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: validate]`;
62
- super((0, import_chunk_3WZD7VQV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_VAHOQVFX.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
@@ -71,13 +71,13 @@ function validate(options) {
71
71
  () => {
72
72
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_GNUU4JVZ.prismaSchemaWasm.debug_panic();
74
+ import_chunk_MPUM63MN.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_GNUU4JVZ.prismaSchemaWasm.validate(params);
80
+ import_chunk_MPUM63MN.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -26,20 +26,20 @@ 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_W7IWIV7N_exports = {};
30
- __export(chunk_W7IWIV7N_exports, {
29
+ var chunk_RO4FBYFK_exports = {};
30
+ __export(chunk_RO4FBYFK_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_W7IWIV7N_exports);
37
+ module.exports = __toCommonJS(chunk_RO4FBYFK_exports);
38
38
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
39
39
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
40
40
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
- var import_chunk_3H7CUSTZ = require("./chunk-3H7CUSTZ.js");
42
- var import_chunk_ORXQN5LN = require("./chunk-ORXQN5LN.js");
41
+ var import_chunk_VAHOQVFX = require("./chunk-VAHOQVFX.js");
42
+ var import_chunk_MPUM63MN = require("./chunk-MPUM63MN.js");
43
43
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
44
44
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
45
45
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -64,7 +64,7 @@ ${detailsHeader} ${message}`;
64
64
  }).exhaustive();
65
65
  const errorMessageWithContext = `${constructedErrorMessage}
66
66
  [Context: getConfig]`;
67
- super((0, import_chunk_3H7CUSTZ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_VAHOQVFX.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -89,7 +89,7 @@ async function getConfig(options) {
89
89
  () => {
90
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
91
91
  debug("Triggering a Rust panic...");
92
- import_chunk_ORXQN5LN.prismaSchemaWasm.debug_panic();
92
+ import_chunk_MPUM63MN.prismaSchemaWasm.debug_panic();
93
93
  }
94
94
  const params = JSON.stringify({
95
95
  prismaSchema: options.datamodel,
@@ -97,7 +97,7 @@ async function getConfig(options) {
97
97
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
98
98
  env: process.env
99
99
  });
100
- const data = import_chunk_ORXQN5LN.prismaSchemaWasm.get_config(params);
100
+ const data = import_chunk_MPUM63MN.prismaSchemaWasm.get_config(params);
101
101
  return data;
102
102
  },
103
103
  (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_VWJOHYMA_exports = {};
20
- __export(chunk_VWJOHYMA_exports, {
19
+ var chunk_S553BGWR_exports = {};
20
+ __export(chunk_S553BGWR_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_VWJOHYMA_exports);
23
+ module.exports = __toCommonJS(chunk_S553BGWR_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) {
@@ -59,7 +59,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
59
59
  "@swc/jest": "0.2.37",
60
60
  "@types/babel__helper-validator-identifier": "7.15.2",
61
61
  "@types/jest": "29.5.14",
62
- "@types/node": "18.19.76",
62
+ "@types/node": "~20.19.0",
63
63
  "@types/resolve": "1.20.6",
64
64
  archiver: "6.0.2",
65
65
  "checkpoint-client": "1.1.33",
@@ -109,14 +109,14 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
109
109
  "@prisma/generator": "workspace:*",
110
110
  "@prisma/generator-helper": "workspace:*",
111
111
  "@prisma/get-platform": "workspace:*",
112
- "@prisma/prisma-schema-wasm": "6.19.0-28.next-8f44482e378cd05ba43deae3c6b1d441b5248e08",
113
- "@prisma/schema-engine-wasm": "6.19.0-28.next-8f44482e378cd05ba43deae3c6b1d441b5248e08",
112
+ "@prisma/prisma-schema-wasm": "6.19.0-29.next-ac95b5893b3c05bf39a2431fc1a748dd46152ab4",
113
+ "@prisma/schema-engine-wasm": "6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732",
114
114
  "@prisma/schema-files-loader": "workspace:*",
115
115
  arg: "5.0.2",
116
116
  prompts: "2.4.2"
117
117
  },
118
118
  peerDependencies: {
119
- typescript: ">=5.1.0"
119
+ typescript: ">=5.4.0"
120
120
  },
121
121
  peerDependenciesMeta: {
122
122
  typescript: {
@@ -16,24 +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_OAT7ZJED_exports = {};
20
- __export(chunk_OAT7ZJED_exports, {
19
+ var chunk_SRZLJFU4_exports = {};
20
+ __export(chunk_SRZLJFU4_exports, {
21
21
  getEngineVersion: () => getEngineVersion,
22
22
  safeGetEngineVersion: () => safeGetEngineVersion
23
23
  });
24
- module.exports = __toCommonJS(chunk_OAT7ZJED_exports);
24
+ module.exports = __toCommonJS(chunk_SRZLJFU4_exports);
25
25
  var import_chunk_6TTRTZXU = require("./chunk-6TTRTZXU.js");
26
26
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
27
27
  var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
28
28
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
29
- var import_engines = require("@prisma/engines");
30
29
  var import_fetch_engine = require("@prisma/fetch-engine");
31
30
  var import_get_platform = require("@prisma/get-platform");
32
31
  async function getEngineVersion(enginePath, binaryName) {
33
- if (!binaryName) {
34
- binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
35
- }
36
- enginePath = await (0, import_chunk_FYZCPL2Z.resolveBinary)(binaryName, enginePath);
32
+ enginePath = await (0, import_chunk_FYZCPL2Z.resolveBinary)(binaryName ?? import_fetch_engine.BinaryType.QueryEngineLibrary, enginePath);
37
33
  const platformInfo = await (0, import_get_platform.getPlatformInfo)();
38
34
  if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
39
35
  (0, import_get_platform.assertNodeAPISupported)();
@@ -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_3WZD7VQV_exports = {};
20
- __export(chunk_3WZD7VQV_exports, {
19
+ var chunk_VAHOQVFX_exports = {};
20
+ __export(chunk_VAHOQVFX_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_3WZD7VQV_exports);
24
- var import_chunk_QFL3CZQX = require("./chunk-QFL3CZQX.js");
23
+ module.exports = __toCommonJS(chunk_VAHOQVFX_exports);
24
+ var import_chunk_34LJMILK = require("./chunk-34LJMILK.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_QFL3CZQX.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_34LJMILK.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,20 +16,20 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_QT65XC7I_exports = {};
20
- __export(chunk_QT65XC7I_exports, {
19
+ var chunk_VIEJEAGW_exports = {};
20
+ __export(chunk_VIEJEAGW_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_QT65XC7I_exports);
28
- var import_chunk_ORXQN5LN = require("./chunk-ORXQN5LN.js");
27
+ module.exports = __toCommonJS(chunk_VIEJEAGW_exports);
28
+ var import_chunk_HQAD5FY2 = require("./chunk-HQAD5FY2.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_ORXQN5LN.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_HQAD5FY2.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }