@prisma/internals 6.19.0-integration-next.22 → 6.20.0-integration-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/{chunk-DOO45FN6.js → chunk-22HIO2UL.js} +7 -7
  2. package/dist/{chunk-G4R3KIUK.js → chunk-24ZPBDBI.js} +8 -8
  3. package/dist/{chunk-2KREE2OX.js → chunk-2Q43C56O.js} +5 -5
  4. package/dist/{chunk-6FP5PMMX.js → chunk-3L2WF742.js} +5 -5
  5. package/dist/{chunk-MEBZK5AR.js → chunk-3ZWEK4N6.js} +5 -5
  6. package/dist/{chunk-BKHAMV6G.js → chunk-6AA7BHPW.js} +5 -5
  7. package/dist/{chunk-UCO5QBOS.js → chunk-73HXEN2A.js} +5 -5
  8. package/dist/{chunk-HQE53CGA.js → chunk-7FBMZKZS.js} +7 -7
  9. package/dist/{chunk-5B5U2HVK.js → chunk-B2BNIZB2.js} +4 -4
  10. package/dist/{chunk-IU77SCOB.js → chunk-BM3JIFQT.js} +5 -5
  11. package/dist/{chunk-6QTJ35DP.js → chunk-C5YUUOQW.js} +8 -8
  12. package/dist/{chunk-HBU4ZVCA.js → chunk-DQV64JMK.js} +8 -8
  13. package/dist/{chunk-R3J2O23S.js → chunk-FCYHZHVW.js} +4 -4
  14. package/dist/{chunk-SU3YFXA4.js → chunk-GH4UGGRD.js} +5 -5
  15. package/dist/{chunk-4YDN7W7B.js → chunk-H5STSTVK.js} +5 -5
  16. package/dist/{chunk-3CAPLXKF.js → chunk-HNRMSI3R.js} +4 -4
  17. package/dist/{chunk-EK3NXGEC.js → chunk-KGES6NIS.js} +20 -43
  18. package/dist/{chunk-33FYCEWF.js → chunk-LA5QBRTU.js} +8 -8
  19. package/dist/{chunk-STBFWZNS.js → chunk-MGIYZQLY.js} +5 -5
  20. package/dist/{chunk-MXAUURHG.js → chunk-MLFKBBDL.js} +5 -5
  21. package/dist/{chunk-2LOGW45F.js → chunk-QOZ7USPD.js} +128 -129
  22. package/dist/{chunk-32LLAKF4.js → chunk-QSVWJ2S2.js} +7 -7
  23. package/dist/{chunk-25ON3V6C.js → chunk-RHMWJEBL.js} +5 -5
  24. package/dist/{chunk-UB2X7DGZ.js → chunk-SMJRM3EM.js} +9 -9
  25. package/dist/{chunk-A547MKQQ.js → chunk-UR5IPQXA.js} +8 -8
  26. package/dist/{chunk-W6ZWX546.js → chunk-VFU3QB5Z.js} +20 -43
  27. package/dist/{chunk-KZ5SMOBR.js → chunk-VFZCLI5X.js} +5 -5
  28. package/dist/{chunk-AZFHZFLX.js → chunk-VHE2A7YV.js} +7 -7
  29. package/dist/{chunk-IHC4ZVPQ.js → chunk-WJKBKH3Y.js} +5 -5
  30. package/dist/{chunk-TU4SG3WD.js → chunk-ZUKCLMNA.js} +8 -8
  31. package/dist/cli/checkUnsupportedDataProxy.js +36 -37
  32. package/dist/cli/schemaContext.js +36 -37
  33. package/dist/engine-commands/errorHelpers.js +4 -4
  34. package/dist/engine-commands/formatSchema.js +35 -36
  35. package/dist/engine-commands/getConfig.js +10 -10
  36. package/dist/engine-commands/getDmmf.js +7 -7
  37. package/dist/engine-commands/getEngineVersion.js +5 -5
  38. package/dist/engine-commands/getEnginesInfo.js +6 -6
  39. package/dist/engine-commands/index.js +47 -48
  40. package/dist/engine-commands/lintSchema.js +8 -8
  41. package/dist/engine-commands/mergeSchemas.js +7 -7
  42. package/dist/engine-commands/validate.js +7 -7
  43. package/dist/get-generators/getGenerators.js +38 -39
  44. package/dist/getPackedPackage.js +3 -3
  45. package/dist/index.d.ts +0 -2
  46. package/dist/index.js +68 -71
  47. package/dist/resolveBinary.js +7 -7
  48. package/dist/schemaEngineCommands.js +8 -8
  49. package/dist/utils/canPrompt.js +3 -3
  50. package/dist/utils/fs-functional.js +10 -10
  51. package/dist/utils/fs-utils.js +8 -8
  52. package/dist/utils/getVersionFromPackageJson.js +3 -3
  53. package/dist/utils/handlePanic.js +4 -4
  54. package/dist/wasm.js +5 -5
  55. package/package.json +12 -12
  56. package/dist/chunk-IRWX4FCC.js +0 -66
  57. package/dist/cli/checkUnsupportedSchemaEngineWasm.d.ts +0 -22
  58. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +0 -129
  59. package/dist/utils/cloudflareD1.d.ts +0 -5
  60. package/dist/utils/cloudflareD1.js +0 -27
@@ -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_DOO45FN6_exports = {};
30
- __export(chunk_DOO45FN6_exports, {
29
+ var chunk_22HIO2UL_exports = {};
30
+ __export(chunk_22HIO2UL_exports, {
31
31
  getEnginesInfo: () => getEnginesInfo,
32
32
  resolveEngine: () => resolveEngine
33
33
  });
34
- module.exports = __toCommonJS(chunk_DOO45FN6_exports);
35
- var import_chunk_4YDN7W7B = require("./chunk-4YDN7W7B.js");
34
+ module.exports = __toCommonJS(chunk_22HIO2UL_exports);
35
+ var import_chunk_H5STSTVK = require("./chunk-H5STSTVK.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_3CAPLXKF = require("./chunk-3CAPLXKF.js");
37
+ var import_chunk_HNRMSI3R = require("./chunk-HNRMSI3R.js");
38
38
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
39
39
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
40
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -131,7 +131,7 @@ async function resolveEngine(binaryName) {
131
131
  const enginePathEither = await (0, import_function2.pipe)(
132
132
  pathFromEnvOption,
133
133
  fold(
134
- () => (0, import_chunk_3CAPLXKF.safeResolveBinary)(binaryName),
134
+ () => (0, import_chunk_HNRMSI3R.safeResolveBinary)(binaryName),
135
135
  (pathFromEnv) => (0, import_chunk_5DBOS77Y.right2)(pathFromEnv.path)
136
136
  )
137
137
  )();
@@ -139,7 +139,7 @@ async function resolveEngine(binaryName) {
139
139
  enginePathEither,
140
140
  import_chunk_5DBOS77Y.fromEither,
141
141
  (0, import_chunk_5DBOS77Y.chain)((enginePath) => {
142
- return (0, import_chunk_4YDN7W7B.safeGetEngineVersion)(enginePath, binaryName);
142
+ return (0, import_chunk_H5STSTVK.safeGetEngineVersion)(enginePath, binaryName);
143
143
  })
144
144
  )();
145
145
  const engineInfo = {
@@ -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_G4R3KIUK_exports = {};
30
- __export(chunk_G4R3KIUK_exports, {
29
+ var chunk_24ZPBDBI_exports = {};
30
+ __export(chunk_24ZPBDBI_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_G4R3KIUK_exports);
34
+ module.exports = __toCommonJS(chunk_24ZPBDBI_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_SU3YFXA4 = require("./chunk-SU3YFXA4.js");
38
- var import_chunk_STBFWZNS = require("./chunk-STBFWZNS.js");
37
+ var import_chunk_2Q43C56O = require("./chunk-2Q43C56O.js");
38
+ var import_chunk_3ZWEK4N6 = require("./chunk-3ZWEK4N6.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_SU3YFXA4.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_2Q43C56O.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_STBFWZNS.prismaSchemaWasm.debug_panic();
73
+ import_chunk_3ZWEK4N6.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_STBFWZNS.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_3ZWEK4N6.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -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_2KREE2OX_exports = {};
20
- __export(chunk_2KREE2OX_exports, {
19
+ var chunk_2Q43C56O_exports = {};
20
+ __export(chunk_2Q43C56O_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_2KREE2OX_exports);
24
- var import_chunk_KZ5SMOBR = require("./chunk-KZ5SMOBR.js");
23
+ module.exports = __toCommonJS(chunk_2Q43C56O_exports);
25
24
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
25
+ var import_chunk_VFZCLI5X = require("./chunk-VFZCLI5X.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_KZ5SMOBR.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_VFZCLI5X.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_6FP5PMMX_exports = {};
20
- __export(chunk_6FP5PMMX_exports, {
19
+ var chunk_3L2WF742_exports = {};
20
+ __export(chunk_3L2WF742_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_6FP5PMMX_exports);
28
- var import_chunk_MEBZK5AR = require("./chunk-MEBZK5AR.js");
27
+ module.exports = __toCommonJS(chunk_3L2WF742_exports);
28
+ var import_chunk_MGIYZQLY = require("./chunk-MGIYZQLY.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_MEBZK5AR.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_MGIYZQLY.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -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_MEBZK5AR_exports = {};
30
- __export(chunk_MEBZK5AR_exports, {
29
+ var chunk_3ZWEK4N6_exports = {};
30
+ __export(chunk_3ZWEK4N6_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_MEBZK5AR_exports);
37
- var import_chunk_5B5U2HVK = require("./chunk-5B5U2HVK.js");
36
+ module.exports = __toCommonJS(chunk_3ZWEK4N6_exports);
37
+ var import_chunk_B2BNIZB2 = require("./chunk-B2BNIZB2.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_5B5U2HVK.require_package)();
49
+ var { dependencies } = (0, import_chunk_B2BNIZB2.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -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_BKHAMV6G_exports = {};
20
- __export(chunk_BKHAMV6G_exports, {
19
+ var chunk_6AA7BHPW_exports = {};
20
+ __export(chunk_6AA7BHPW_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_BKHAMV6G_exports);
23
+ module.exports = __toCommonJS(chunk_6AA7BHPW_exports);
24
24
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
25
25
  var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
26
26
  "package.json"(exports, module2) {
27
27
  module2.exports = {
28
28
  name: "@prisma/internals",
29
- version: "6.19.0-integration-next.22",
29
+ version: "6.20.0-integration-next.1",
30
30
  description: "This package is intended for Prisma's internal use",
31
31
  main: "dist/index.js",
32
32
  types: "dist/index.d.ts",
@@ -108,7 +108,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
108
108
  "@prisma/generator": "workspace:*",
109
109
  "@prisma/generator-helper": "workspace:*",
110
110
  "@prisma/get-platform": "workspace:*",
111
- "@prisma/prisma-schema-wasm": "6.19.0-31.next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23",
111
+ "@prisma/prisma-schema-wasm": "6.19.0-33.next-fca7ed8aa5fe6347594ad793adb59b37f021379a",
112
112
  "@prisma/schema-engine-wasm": "6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732",
113
113
  "@prisma/schema-files-loader": "workspace:*",
114
114
  arg: "5.0.2",
@@ -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_UCO5QBOS_exports = {};
20
- __export(chunk_UCO5QBOS_exports, {
19
+ var chunk_73HXEN2A_exports = {};
20
+ __export(chunk_73HXEN2A_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_UCO5QBOS_exports);
28
- var import_chunk_STBFWZNS = require("./chunk-STBFWZNS.js");
27
+ module.exports = __toCommonJS(chunk_73HXEN2A_exports);
28
+ var import_chunk_3ZWEK4N6 = require("./chunk-3ZWEK4N6.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_STBFWZNS.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_3ZWEK4N6.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -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_HQE53CGA_exports = {};
30
- __export(chunk_HQE53CGA_exports, {
29
+ var chunk_7FBMZKZS_exports = {};
30
+ __export(chunk_7FBMZKZS_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_HQE53CGA_exports);
34
+ module.exports = __toCommonJS(chunk_7FBMZKZS_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_2KREE2OX = require("./chunk-2KREE2OX.js");
39
- var import_chunk_MEBZK5AR = require("./chunk-MEBZK5AR.js");
38
+ var import_chunk_GH4UGGRD = require("./chunk-GH4UGGRD.js");
39
+ var import_chunk_MGIYZQLY = require("./chunk-MGIYZQLY.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_2KREE2OX.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_GH4UGGRD.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_MEBZK5AR.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_MGIYZQLY.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  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_5B5U2HVK_exports = {};
20
- __export(chunk_5B5U2HVK_exports, {
19
+ var chunk_B2BNIZB2_exports = {};
20
+ __export(chunk_B2BNIZB2_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_5B5U2HVK_exports);
23
+ module.exports = __toCommonJS(chunk_B2BNIZB2_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) {
@@ -108,7 +108,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
108
108
  "@prisma/generator": "workspace:*",
109
109
  "@prisma/generator-helper": "workspace:*",
110
110
  "@prisma/get-platform": "workspace:*",
111
- "@prisma/prisma-schema-wasm": "6.19.0-31.next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23",
111
+ "@prisma/prisma-schema-wasm": "6.19.0-33.next-fca7ed8aa5fe6347594ad793adb59b37f021379a",
112
112
  "@prisma/schema-engine-wasm": "6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732",
113
113
  "@prisma/schema-files-loader": "workspace:*",
114
114
  arg: "5.0.2",
@@ -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_IU77SCOB_exports = {};
30
- __export(chunk_IU77SCOB_exports, {
29
+ var chunk_BM3JIFQT_exports = {};
30
+ __export(chunk_BM3JIFQT_exports, {
31
31
  handlePanic: () => handlePanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_IU77SCOB_exports);
33
+ module.exports = __toCommonJS(chunk_BM3JIFQT_exports);
34
34
  var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
35
35
  var import_chunk_7IKUTPWQ = require("./chunk-7IKUTPWQ.js");
36
- var import_chunk_R3J2O23S = require("./chunk-R3J2O23S.js");
36
+ var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
37
37
  var import_chunk_BUQN4WLU = require("./chunk-BUQN4WLU.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) {
41
- if (!(0, import_chunk_R3J2O23S.canPrompt)()) {
41
+ if (!(0, import_chunk_FCYHZHVW.canPrompt)()) {
42
42
  throw args.error;
43
43
  }
44
44
  await panicDialog(args);
@@ -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_6QTJ35DP_exports = {};
30
- __export(chunk_6QTJ35DP_exports, {
29
+ var chunk_C5YUUOQW_exports = {};
30
+ __export(chunk_C5YUUOQW_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_6QTJ35DP_exports);
34
+ module.exports = __toCommonJS(chunk_C5YUUOQW_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_2KREE2OX = require("./chunk-2KREE2OX.js");
39
- var import_chunk_MEBZK5AR = require("./chunk-MEBZK5AR.js");
38
+ var import_chunk_2Q43C56O = require("./chunk-2Q43C56O.js");
39
+ var import_chunk_3ZWEK4N6 = require("./chunk-3ZWEK4N6.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_2KREE2OX.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_2Q43C56O.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_MEBZK5AR.prismaSchemaWasm.debug_panic();
74
+ import_chunk_3ZWEK4N6.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_MEBZK5AR.prismaSchemaWasm.validate(params);
80
+ import_chunk_3ZWEK4N6.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  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_HBU4ZVCA_exports = {};
30
- __export(chunk_HBU4ZVCA_exports, {
29
+ var chunk_DQV64JMK_exports = {};
30
+ __export(chunk_DQV64JMK_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_HBU4ZVCA_exports);
34
+ module.exports = __toCommonJS(chunk_DQV64JMK_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_2KREE2OX = require("./chunk-2KREE2OX.js");
38
- var import_chunk_MEBZK5AR = require("./chunk-MEBZK5AR.js");
37
+ var import_chunk_GH4UGGRD = require("./chunk-GH4UGGRD.js");
38
+ var import_chunk_MGIYZQLY = require("./chunk-MGIYZQLY.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_2KREE2OX.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_GH4UGGRD.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_MEBZK5AR.prismaSchemaWasm.debug_panic();
73
+ import_chunk_MGIYZQLY.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_MEBZK5AR.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_MGIYZQLY.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -26,13 +26,13 @@ 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_R3J2O23S_exports = {};
30
- __export(chunk_R3J2O23S_exports, {
29
+ var chunk_FCYHZHVW_exports = {};
30
+ __export(chunk_FCYHZHVW_exports, {
31
31
  canPrompt: () => canPrompt
32
32
  });
33
- module.exports = __toCommonJS(chunk_R3J2O23S_exports);
34
- var import_chunk_ICFLO5JW = require("./chunk-ICFLO5JW.js");
33
+ module.exports = __toCommonJS(chunk_FCYHZHVW_exports);
35
34
  var import_chunk_H4NI2RIK = require("./chunk-H4NI2RIK.js");
35
+ var import_chunk_ICFLO5JW = require("./chunk-ICFLO5JW.js");
36
36
  var import_prompts = __toESM(require("prompts"));
37
37
  var canPrompt = () => {
38
38
  const injectedCount = import_prompts.default._injected?.length;
@@ -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_SU3YFXA4_exports = {};
20
- __export(chunk_SU3YFXA4_exports, {
19
+ var chunk_GH4UGGRD_exports = {};
20
+ __export(chunk_GH4UGGRD_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_SU3YFXA4_exports);
24
- var import_chunk_25ON3V6C = require("./chunk-25ON3V6C.js");
23
+ module.exports = __toCommonJS(chunk_GH4UGGRD_exports);
25
24
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
25
+ var import_chunk_RHMWJEBL = require("./chunk-RHMWJEBL.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_25ON3V6C.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_RHMWJEBL.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,18 +16,18 @@ 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_4YDN7W7B_exports = {};
20
- __export(chunk_4YDN7W7B_exports, {
19
+ var chunk_H5STSTVK_exports = {};
20
+ __export(chunk_H5STSTVK_exports, {
21
21
  getEngineVersion: () => getEngineVersion,
22
22
  safeGetEngineVersion: () => safeGetEngineVersion
23
23
  });
24
- module.exports = __toCommonJS(chunk_4YDN7W7B_exports);
24
+ module.exports = __toCommonJS(chunk_H5STSTVK_exports);
25
25
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
26
- var import_chunk_3CAPLXKF = require("./chunk-3CAPLXKF.js");
26
+ var import_chunk_HNRMSI3R = require("./chunk-HNRMSI3R.js");
27
27
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
28
28
  var import_fetch_engine = require("@prisma/fetch-engine");
29
29
  async function getEngineVersion(enginePath, binaryName) {
30
- enginePath = await (0, import_chunk_3CAPLXKF.resolveBinary)(binaryName ?? import_fetch_engine.BinaryType.SchemaEngineBinary, enginePath);
30
+ enginePath = await (0, import_chunk_HNRMSI3R.resolveBinary)(binaryName ?? import_fetch_engine.BinaryType.SchemaEngineBinary, enginePath);
31
31
  const { stdout } = await (0, import_chunk_JOIHHXR6.execa)(enginePath, ["--version"]);
32
32
  return stdout;
33
33
  }
@@ -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_3CAPLXKF_exports = {};
30
- __export(chunk_3CAPLXKF_exports, {
29
+ var chunk_HNRMSI3R_exports = {};
30
+ __export(chunk_HNRMSI3R_exports, {
31
31
  BinaryType: () => import_fetch_engine.BinaryType,
32
32
  engineEnvVarMap: () => import_fetch_engine.engineEnvVarMap,
33
33
  maybeCopyToTmp: () => maybeCopyToTmp,
34
34
  resolveBinary: () => resolveBinary,
35
35
  safeResolveBinary: () => safeResolveBinary
36
36
  });
37
- module.exports = __toCommonJS(chunk_3CAPLXKF_exports);
38
- var import_chunk_FF7OLLBP = require("./chunk-FF7OLLBP.js");
37
+ module.exports = __toCommonJS(chunk_HNRMSI3R_exports);
39
38
  var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
39
+ var import_chunk_FF7OLLBP = require("./chunk-FF7OLLBP.js");
40
40
  var import_chunk_TWSLDIFL = require("./chunk-TWSLDIFL.js");
41
41
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
42
42
  var import_chunk_5VQNKCKW = require("./chunk-5VQNKCKW.js");