@prisma/internals 6.5.0-dev.7 → 6.5.0-dev.70

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/Generator.js +2 -2
  2. package/dist/WasmPanicRegistry.js +2 -2
  3. package/dist/{chunk-NXIWDQBF.js → chunk-3ERIN7PH.js} +5 -5
  4. package/dist/{chunk-UUQ4S65T.js → chunk-75LBF5AG.js} +10 -11
  5. package/dist/{chunk-3KN5GX54.js → chunk-7LVYSXT4.js} +5 -5
  6. package/dist/{chunk-JXBI6A46.js → chunk-7T6NKG6N.js} +12 -12
  7. package/dist/{chunk-CCLACYA6.js → chunk-A2COERCL.js} +11 -11
  8. package/dist/{chunk-A4QWQE3W.js → chunk-ATFQZVBS.js} +11 -4
  9. package/dist/{chunk-IYPAQDUL.js → chunk-AYUFQNGN.js} +5 -5
  10. package/dist/{chunk-KDVLOLAU.js → chunk-B7OKGKKQ.js} +12 -12
  11. package/dist/{chunk-HOZFIXMD.js → chunk-BPZFDGKN.js} +5 -4
  12. package/dist/{chunk-RL3K4V2J.js → chunk-C2WD2XUT.js} +980 -113
  13. package/dist/{chunk-T5RACBRF.js → chunk-CHMJ5V7I.js} +10 -10
  14. package/dist/{chunk-VXSQZXSR.js → chunk-CLUVGOSI.js} +5 -5
  15. package/dist/{chunk-2TTXPJG7.js → chunk-CU2ODCAQ.js} +309 -529
  16. package/dist/{chunk-FHXAG4A2.js → chunk-CZL7DCL2.js} +5 -5
  17. package/dist/{chunk-XOWBYDC2.js → chunk-EG72I2W7.js} +12 -12
  18. package/dist/{chunk-VQX3AXS3.js → chunk-EXTO3H5T.js} +12 -12
  19. package/dist/{chunk-CWDHXSCQ.js → chunk-FQIU4CFG.js} +8 -8
  20. package/dist/{chunk-QIVUAERL.js → chunk-GXDYIY4M.js} +1653 -1762
  21. package/dist/{chunk-H4PMOCGZ.js → chunk-HGSGLO5H.js} +11 -12
  22. package/dist/{chunk-IFSZX2CY.js → chunk-IRFMGT4V.js} +5 -5
  23. package/dist/chunk-KKGIKPIK.js +573 -0
  24. package/dist/{chunk-G4BGJ6IP.js → chunk-KTBNIQ7N.js} +5 -5
  25. package/dist/{chunk-Z3HEQNNY.js → chunk-NEGZLROA.js} +12 -12
  26. package/dist/{chunk-5XRQ7ONW.js → chunk-NJQWZ447.js} +5 -5
  27. package/dist/{chunk-JT7WQGMF.js → chunk-OGOKZHNF.js} +11 -11
  28. package/dist/{chunk-2SWS7ZGF.js → chunk-Q75542AL.js} +7 -7
  29. package/dist/{chunk-DFY3JTSO.js → chunk-SCK2VUS5.js} +12 -12
  30. package/dist/{chunk-6HAMFH75.js → chunk-T3OFGWTO.js} +8 -8
  31. package/dist/{chunk-OYLZC5OV.js → chunk-TATYN3T2.js} +7 -7
  32. package/dist/{chunk-54KM4LPR.js → chunk-UMVTRZEN.js} +309 -529
  33. package/dist/{chunk-ZV5D6QAF.js → chunk-XFOOPQ7K.js} +7 -7
  34. package/dist/{chunk-IWJ2BUYF.js → chunk-XLGODPZH.js} +5 -5
  35. package/dist/{chunk-635TMBAP.js → chunk-ZYW3HGSH.js} +8 -4
  36. package/dist/cli/checkUnsupportedDataProxy.js +25 -26
  37. package/dist/cli/getSchema.js +29 -30
  38. package/dist/cli/hashes.js +25 -26
  39. package/dist/engine-commands/errorHelpers.js +4 -4
  40. package/dist/engine-commands/formatSchema.js +24 -25
  41. package/dist/engine-commands/getConfig.js +12 -12
  42. package/dist/engine-commands/getDmmf.js +9 -9
  43. package/dist/engine-commands/getEngineVersion.js +5 -6
  44. package/dist/engine-commands/getEnginesMetaInfo.js +7 -8
  45. package/dist/engine-commands/index.js +35 -36
  46. package/dist/engine-commands/lintSchema.js +10 -10
  47. package/dist/engine-commands/mergeSchemas.js +9 -9
  48. package/dist/engine-commands/validate.js +9 -9
  49. package/dist/errorReporting.d.ts +1 -0
  50. package/dist/get-generators/generatorResolvers/generatorResolvers.js +24 -25
  51. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +24 -25
  52. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +25 -26
  53. package/dist/get-generators/getGenerators.js +27 -28
  54. package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -4
  55. package/dist/getPackedPackage.js +3 -4
  56. package/dist/index.js +68 -69
  57. package/dist/panic.js +6 -6
  58. package/dist/resolveBinary.js +7 -8
  59. package/dist/schemaEngineCommands.js +8 -9
  60. package/dist/sendPanic.js +24 -25
  61. package/dist/utils/drawBox.js +2 -2
  62. package/dist/utils/getEnvPaths.js +24 -25
  63. package/dist/utils/getVersionFromPackageJson.js +3 -3
  64. package/dist/utils/handlePanic.js +24 -25
  65. package/dist/utils/isValidJsIdentifier.js +3 -3
  66. package/dist/utils/loadEnvFile.js +24 -25
  67. package/dist/wasm.js +5 -5
  68. package/package.json +15 -16
  69. package/dist/chunk-F3SIWK3J.js +0 -1404
  70. package/dist/chunk-H4J2FN2W.js +0 -796
package/dist/Generator.js CHANGED
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var Generator_exports = {};
20
20
  __export(Generator_exports, {
21
- Generator: () => import_chunk_635TMBAP.Generator
21
+ Generator: () => import_chunk_ZYW3HGSH.Generator
22
22
  });
23
23
  module.exports = __toCommonJS(Generator_exports);
24
- var import_chunk_635TMBAP = require("./chunk-635TMBAP.js");
24
+ var import_chunk_ZYW3HGSH = require("./chunk-ZYW3HGSH.js");
25
25
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
26
26
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
27
27
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var WasmPanicRegistry_exports = {};
20
20
  __export(WasmPanicRegistry_exports, {
21
- WasmPanicRegistry: () => import_chunk_HOZFIXMD.WasmPanicRegistry
21
+ WasmPanicRegistry: () => import_chunk_BPZFDGKN.WasmPanicRegistry
22
22
  });
23
23
  module.exports = __toCommonJS(WasmPanicRegistry_exports);
24
- var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
24
+ var import_chunk_BPZFDGKN = require("./chunk-BPZFDGKN.js");
25
25
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
@@ -26,16 +26,16 @@ 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_NXIWDQBF_exports = {};
30
- __export(chunk_NXIWDQBF_exports, {
29
+ var chunk_3ERIN7PH_exports = {};
30
+ __export(chunk_3ERIN7PH_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_NXIWDQBF_exports);
38
- var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
37
+ module.exports = __toCommonJS(chunk_3ERIN7PH_exports);
38
+ var import_chunk_GXDYIY4M = require("./chunk-GXDYIY4M.js");
39
39
  var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
40
40
  var import_chunk_TWSLDIFL = require("./chunk-TWSLDIFL.js");
41
41
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
@@ -46,7 +46,7 @@ var import_fetch_engine = require("@prisma/fetch-engine");
46
46
  var import_get_platform = require("@prisma/get-platform");
47
47
  var import_fs = __toESM2(require("fs"));
48
48
  var import_path = __toESM2(require("path"));
49
- var import_fs_extra = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_QIVUAERL.require_lib)());
49
+ var import_fs_extra = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_GXDYIY4M.require_lib)());
50
50
  var import_temp_dir = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_TZCE3PWZ.require_temp_dir)());
51
51
  async function getBinaryName(name) {
52
52
  const binaryTarget = await (0, import_get_platform.getBinaryTargetForCurrentPlatform)();
@@ -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_UUQ4S65T_exports = {};
20
- __export(chunk_UUQ4S65T_exports, {
19
+ var chunk_75LBF5AG_exports = {};
20
+ __export(chunk_75LBF5AG_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_UUQ4S65T_exports);
23
+ module.exports = __toCommonJS(chunk_75LBF5AG_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) {
@@ -54,25 +54,25 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
54
54
  ],
55
55
  devDependencies: {
56
56
  "@antfu/ni": "0.21.12",
57
- "@babel/helper-validator-identifier": "7.24.7",
57
+ "@babel/helper-validator-identifier": "7.25.9",
58
58
  "@opentelemetry/api": "1.9.0",
59
- "@swc/core": "1.2.204",
59
+ "@swc/core": "1.11.5",
60
60
  "@swc/jest": "0.2.37",
61
61
  "@types/babel__helper-validator-identifier": "7.15.2",
62
62
  "@types/jest": "29.5.14",
63
- "@types/node": "18.19.31",
63
+ "@types/node": "18.19.76",
64
64
  "@types/resolve": "1.20.6",
65
65
  archiver: "6.0.2",
66
66
  "checkpoint-client": "1.1.33",
67
- "cli-truncate": "2.1.0",
67
+ "cli-truncate": "4.0.0",
68
68
  dotenv: "16.4.7",
69
69
  esbuild: "0.24.2",
70
70
  "escape-string-regexp": "4.0.0",
71
71
  execa: "5.1.1",
72
72
  "fast-glob": "3.3.3",
73
- "find-up": "5.0.0",
73
+ "find-up": "7.0.0",
74
74
  "fp-ts": "2.16.9",
75
- "fs-extra": "11.1.1",
75
+ "fs-extra": "11.3.0",
76
76
  "fs-jetpack": "5.1.0",
77
77
  "global-dirs": "4.0.0",
78
78
  globby: "11.1.0",
@@ -90,7 +90,6 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
90
90
  open: "7.4.2",
91
91
  "p-map": "4.0.0",
92
92
  "read-package-up": "11.0.0",
93
- "replace-string": "3.1.0",
94
93
  resolve: "1.22.10",
95
94
  "string-width": "4.2.3",
96
95
  "strip-ansi": "6.0.1",
@@ -112,7 +111,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
112
111
  "@prisma/fetch-engine": "workspace:*",
113
112
  "@prisma/generator-helper": "workspace:*",
114
113
  "@prisma/get-platform": "workspace:*",
115
- "@prisma/prisma-schema-wasm": "6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d",
114
+ "@prisma/prisma-schema-wasm": "6.5.0-53.ab62ab1946150d2a4a2ffd7500eff6dccb476e29",
116
115
  "@prisma/schema-files-loader": "workspace:*",
117
116
  arg: "5.0.2",
118
117
  prompts: "2.4.2"
@@ -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_3KN5GX54_exports = {};
20
- __export(chunk_3KN5GX54_exports, {
19
+ var chunk_7LVYSXT4_exports = {};
20
+ __export(chunk_7LVYSXT4_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_3KN5GX54_exports);
24
- var import_chunk_IYPAQDUL = require("./chunk-IYPAQDUL.js");
23
+ module.exports = __toCommonJS(chunk_7LVYSXT4_exports);
24
+ var import_chunk_AYUFQNGN = require("./chunk-AYUFQNGN.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_IYPAQDUL.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_AYUFQNGN.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -26,23 +26,23 @@ 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_JXBI6A46_exports = {};
30
- __export(chunk_JXBI6A46_exports, {
29
+ var chunk_7T6NKG6N_exports = {};
30
+ __export(chunk_7T6NKG6N_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_JXBI6A46_exports);
37
+ module.exports = __toCommonJS(chunk_7T6NKG6N_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_3KN5GX54 = require("./chunk-3KN5GX54.js");
41
+ var import_chunk_7LVYSXT4 = require("./chunk-7LVYSXT4.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_ZV5D6QAF = require("./chunk-ZV5D6QAF.js");
45
- var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
44
+ var import_chunk_Q75542AL = require("./chunk-Q75542AL.js");
45
+ var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
46
46
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
47
47
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
48
48
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
65
65
  }).exhaustive();
66
66
  const errorMessageWithContext = `${constructedErrorMessage}
67
67
  [Context: getConfig]`;
68
- super((0, import_chunk_3KN5GX54.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
+ super((0, import_chunk_7LVYSXT4.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_ZV5D6QAF.prismaSchemaWasm.debug_panic();
93
+ import_chunk_Q75542AL.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_ZV5D6QAF.prismaSchemaWasm.get_config(params);
101
+ const data = import_chunk_Q75542AL.prismaSchemaWasm.get_config(params);
102
102
  return data;
103
103
  },
104
104
  (e) => ({
@@ -142,9 +142,9 @@ async function getConfig(options) {
142
142
  }
143
143
  const error = (0, import_chunk_XKZ6CBLA.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
144
144
  debugErrorType(e);
145
- if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
146
- const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e.error);
147
- const panic = new import_chunk_A4QWQE3W.RustPanic(
145
+ if ((0, import_chunk_ATFQZVBS.isWasmPanic)(e.error)) {
146
+ const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e.error);
147
+ const panic = new import_chunk_ATFQZVBS.RustPanic(
148
148
  /* message */
149
149
  message,
150
150
  /* rustStack */
@@ -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_CCLACYA6_exports = {};
30
- __export(chunk_CCLACYA6_exports, {
29
+ var chunk_A2COERCL_exports = {};
30
+ __export(chunk_A2COERCL_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_CCLACYA6_exports);
34
+ module.exports = __toCommonJS(chunk_A2COERCL_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_IFSZX2CY = require("./chunk-IFSZX2CY.js");
38
+ var import_chunk_7LVYSXT4 = require("./chunk-7LVYSXT4.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_2SWS7ZGF = require("./chunk-2SWS7ZGF.js");
42
- var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
41
+ var import_chunk_Q75542AL = require("./chunk-Q75542AL.js");
42
+ var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
45
45
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: mergeSchemas]`;
63
- super((0, import_chunk_IFSZX2CY.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_7LVYSXT4.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_2SWS7ZGF.prismaSchemaWasm.merge_schemas(params);
76
+ return import_chunk_Q75542AL.prismaSchemaWasm.merge_schemas(params);
77
77
  },
78
78
  (e) => ({
79
79
  type: "wasm-error",
@@ -88,11 +88,11 @@ function mergeSchemas(options) {
88
88
  const error = (0, import_chunk_XKZ6CBLA.z)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
89
89
  debugErrorType(e);
90
90
  console.error("");
91
- if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
92
- const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e.error);
91
+ if ((0, import_chunk_ATFQZVBS.isWasmPanic)(e.error)) {
92
+ const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e.error);
93
93
  debug(`Error merging schemas: ${message}`);
94
94
  debug(stack);
95
- const panic = new import_chunk_A4QWQE3W.RustPanic(
95
+ const panic = new import_chunk_ATFQZVBS.RustPanic(
96
96
  /* message */
97
97
  message,
98
98
  /* rustStack */
@@ -16,19 +16,26 @@ 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_A4QWQE3W_exports = {};
20
- __export(chunk_A4QWQE3W_exports, {
19
+ var chunk_ATFQZVBS_exports = {};
20
+ __export(chunk_ATFQZVBS_exports, {
21
21
  ErrorArea: () => ErrorArea,
22
22
  RustPanic: () => RustPanic,
23
23
  getWasmError: () => getWasmError,
24
24
  isRustPanic: () => isRustPanic,
25
25
  isWasmPanic: () => isWasmPanic
26
26
  });
27
- module.exports = __toCommonJS(chunk_A4QWQE3W_exports);
27
+ module.exports = __toCommonJS(chunk_ATFQZVBS_exports);
28
+ var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
28
29
  var RustPanic = class extends Error {
29
30
  constructor(message, rustStack, request, area, schemaPath, schema, introspectionUrl) {
30
31
  super(message);
31
- this.__typename = "RustPanic";
32
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "__typename", "RustPanic");
33
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "request");
34
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "rustStack");
35
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "area");
36
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "schemaPath");
37
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "schema");
38
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "introspectionUrl");
32
39
  this.name = "RustPanic";
33
40
  this.rustStack = rustStack;
34
41
  this.request = request;
@@ -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_IYPAQDUL_exports = {};
20
- __export(chunk_IYPAQDUL_exports, {
19
+ var chunk_AYUFQNGN_exports = {};
20
+ __export(chunk_AYUFQNGN_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_IYPAQDUL_exports);
24
- var import_chunk_H4PMOCGZ = require("./chunk-H4PMOCGZ.js");
25
- var packageJson = (0, import_chunk_H4PMOCGZ.require_package)();
23
+ module.exports = __toCommonJS(chunk_AYUFQNGN_exports);
24
+ var import_chunk_HGSGLO5H = require("./chunk-HGSGLO5H.js");
25
+ var packageJson = (0, import_chunk_HGSGLO5H.require_package)();
26
26
  var version = packageJson.version;
@@ -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_KDVLOLAU_exports = {};
30
- __export(chunk_KDVLOLAU_exports, {
29
+ var chunk_B7OKGKKQ_exports = {};
30
+ __export(chunk_B7OKGKKQ_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_KDVLOLAU_exports);
34
+ module.exports = __toCommonJS(chunk_B7OKGKKQ_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_3KN5GX54 = require("./chunk-3KN5GX54.js");
37
+ var import_chunk_7LVYSXT4 = require("./chunk-7LVYSXT4.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_ZV5D6QAF = require("./chunk-ZV5D6QAF.js");
41
- var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
40
+ var import_chunk_Q75542AL = require("./chunk-Q75542AL.js");
41
+ var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
42
42
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
44
44
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: getDmmf]`;
63
- super((0, import_chunk_3KN5GX54.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_7LVYSXT4.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_ZV5D6QAF.prismaSchemaWasm.debug_panic();
93
+ import_chunk_Q75542AL.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_ZV5D6QAF.prismaSchemaWasm.get_dmmf(params);
99
+ const data = import_chunk_Q75542AL.prismaSchemaWasm.get_dmmf(params);
100
100
  return data;
101
101
  },
102
102
  (e) => ({
@@ -139,9 +139,9 @@ Datamodel path: "${e.datamodelPath}"`,
139
139
  });
140
140
  }).with({ type: "wasm-error" }, (e) => {
141
141
  debugErrorType(e);
142
- if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
143
- const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e.error);
144
- const panic = new import_chunk_A4QWQE3W.RustPanic(
142
+ if ((0, import_chunk_ATFQZVBS.isWasmPanic)(e.error)) {
143
+ const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e.error);
144
+ const panic = new import_chunk_ATFQZVBS.RustPanic(
145
145
  /* message */
146
146
  message,
147
147
  /* rustStack */
@@ -16,14 +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_HOZFIXMD_exports = {};
20
- __export(chunk_HOZFIXMD_exports, {
19
+ var chunk_BPZFDGKN_exports = {};
20
+ __export(chunk_BPZFDGKN_exports, {
21
21
  WasmPanicRegistry: () => WasmPanicRegistry
22
22
  });
23
- module.exports = __toCommonJS(chunk_HOZFIXMD_exports);
23
+ module.exports = __toCommonJS(chunk_BPZFDGKN_exports);
24
+ var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
24
25
  var WasmPanicRegistry = class {
25
26
  constructor() {
26
- this.message = "";
27
+ (0, import_chunk_WWAWV7DQ.__publicField)(this, "message", "");
27
28
  }
28
29
  get() {
29
30
  return `${this.message}`;