@prisma/internals 6.19.0-integration-next.5 → 6.19.0-integration-engines-6-19-0-2-push-qtpkxwkvolmz-33c9120129ea6df44eaf652b4de9bedd817e3190.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 (51) hide show
  1. package/dist/{chunk-PNLK5PK2.js → chunk-24G32QDD.js} +8 -8
  2. package/dist/{chunk-3GX3XWYB.js → chunk-2QAJ4SXH.js} +7 -7
  3. package/dist/{chunk-6QTN4DDB.js → chunk-46ABODUM.js} +21 -6
  4. package/dist/{chunk-GL7OANR6.js → chunk-4JCVHBYR.js} +5 -5
  5. package/dist/{chunk-HEJWJKAQ.js → chunk-5FJLJE7T.js} +5 -5
  6. package/dist/{chunk-FYFVMEZ2.js → chunk-5KSTTSO3.js} +23 -23
  7. package/dist/{chunk-2AYJLW73.js → chunk-63ZWRY2I.js} +5 -5
  8. package/dist/{chunk-DGWYSK57.js → chunk-74IHXGQD.js} +8 -8
  9. package/dist/{chunk-FYIQ63ZN.js → chunk-BKJ5EGDK.js} +23 -23
  10. package/dist/{chunk-DEF6JMJE.js → chunk-DDOG3MPH.js} +8 -8
  11. package/dist/{chunk-OKVM3CW4.js → chunk-EYVG6XQS.js} +39 -3
  12. package/dist/{chunk-GSH4BXBI.js → chunk-HFFWZTVM.js} +6 -4
  13. package/dist/{chunk-BXLJID4Q.js → chunk-KZGJBS26.js} +7 -7
  14. package/dist/{chunk-ZRIVBYAL.js → chunk-OZIOGQI4.js} +7 -7
  15. package/dist/{chunk-FURGECAD.js → chunk-PZMRR772.js} +6 -6
  16. package/dist/{chunk-D3OLOOMH.js → chunk-QVWYGDIW.js} +8 -8
  17. package/dist/{chunk-7RGOGCSZ.js → chunk-TSJKOXSG.js} +5 -5
  18. package/dist/{chunk-PMQHMVQO.js → chunk-UBJB4J72.js} +5 -5
  19. package/dist/{chunk-DDGW7TEY.js → chunk-UBUFGEKB.js} +8 -8
  20. package/dist/{chunk-LKXEYIHV.js → chunk-UFZJYAQH.js} +5 -5
  21. package/dist/{chunk-KIFFN3IT.js → chunk-UQUWZJVN.js} +5 -5
  22. package/dist/{chunk-IV6ZGJI6.js → chunk-W6QHEQHK.js} +5 -5
  23. package/dist/{chunk-W7JPBW5A.js → chunk-XLM7JU3G.js} +5 -5
  24. package/dist/{chunk-4XXX5FAL.js → chunk-YGANUONS.js} +8 -8
  25. package/dist/{chunk-PELP7NEY.js → chunk-ZCZUWLQA.js} +5 -5
  26. package/dist/{chunk-D5CZDTZM.js → chunk-ZYDPOUNL.js} +8 -8
  27. package/dist/cli/checkUnsupportedDataProxy.js +18 -18
  28. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +18 -18
  29. package/dist/cli/getSchema.d.ts +15 -1
  30. package/dist/cli/getSchema.js +5 -4
  31. package/dist/cli/hashes.js +4 -4
  32. package/dist/cli/schemaContext.js +18 -18
  33. package/dist/engine-commands/errorHelpers.js +4 -4
  34. package/dist/engine-commands/formatSchema.js +17 -17
  35. package/dist/engine-commands/getConfig.js +10 -10
  36. package/dist/engine-commands/getDmmf.js +7 -7
  37. package/dist/engine-commands/index.js +26 -26
  38. package/dist/engine-commands/lintSchema.js +8 -8
  39. package/dist/engine-commands/mergeSchemas.js +7 -7
  40. package/dist/engine-commands/validate.js +7 -7
  41. package/dist/get-generators/getGenerators.js +20 -20
  42. package/dist/index.js +46 -46
  43. package/dist/sendPanic.js +2 -2
  44. package/dist/utils/getEnvPaths.d.ts +1 -1
  45. package/dist/utils/getEnvPaths.js +3 -2
  46. package/dist/utils/getVersionFromPackageJson.js +3 -3
  47. package/dist/utils/handlePanic.js +3 -3
  48. package/dist/utils/loadEnvFile.d.ts +1 -1
  49. package/dist/utils/loadEnvFile.js +4 -3
  50. package/dist/wasm.js +5 -5
  51. package/package.json +15 -15
@@ -26,14 +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_OKVM3CW4_exports = {};
30
- __export(chunk_OKVM3CW4_exports, {
29
+ var chunk_EYVG6XQS_exports = {};
30
+ __export(chunk_EYVG6XQS_exports, {
31
+ getSchemaFromPackageJson: () => getSchemaFromPackageJson,
31
32
  getSchemaWithPath: () => getSchemaWithPath,
32
33
  getSchemaWithPathOptional: () => getSchemaWithPathOptional,
33
34
  printSchemaLoadedMessage: () => printSchemaLoadedMessage
34
35
  });
35
- module.exports = __toCommonJS(chunk_OKVM3CW4_exports);
36
+ module.exports = __toCommonJS(chunk_EYVG6XQS_exports);
36
37
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
38
+ var import_config = require("@prisma/config");
37
39
  var import_debug = require("@prisma/debug");
38
40
  var import_schema_files_loader = require("@prisma/schema-files-loader");
39
41
  var import_fs = __toESM(require("fs"));
@@ -117,6 +119,10 @@ async function getSchemaWithPathInternal(schemaPathFromArgs, schemaPathFromConfi
117
119
  if (prismaConfigResult.ok) {
118
120
  return prismaConfigResult;
119
121
  }
122
+ const pkgJsonResult = await getSchemaFromPackageJson(cwd);
123
+ if (pkgJsonResult.ok) {
124
+ return pkgJsonResult;
125
+ }
120
126
  const defaultResult = await getDefaultSchema(cwd);
121
127
  if (defaultResult.ok) {
122
128
  return defaultResult;
@@ -173,6 +179,36 @@ async function readSchemaFromPrismaConfigBasedLocation(schemaPathFromConfig) {
173
179
  }
174
180
  return schemaResult;
175
181
  }
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
+ }
176
212
  async function getDefaultSchema(cwd, failures = []) {
177
213
  const lookupPaths = [import_path.default.join(cwd, "schema.prisma"), import_path.default.join(cwd, "prisma", "schema.prisma")];
178
214
  for (const path2 of lookupPaths) {
@@ -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_GSH4BXBI_exports = {};
30
- __export(chunk_GSH4BXBI_exports, {
29
+ var chunk_HFFWZTVM_exports = {};
30
+ __export(chunk_HFFWZTVM_exports, {
31
31
  sendPanic: () => sendPanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_GSH4BXBI_exports);
33
+ module.exports = __toCommonJS(chunk_HFFWZTVM_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,7 +1813,9 @@ async function sendPanic({
1813
1813
  return id;
1814
1814
  }
1815
1815
  function getCommand() {
1816
- if (process.argv[2] === "db" && process.argv[3] === "pull") {
1816
+ if (process.argv[2] === "introspect") {
1817
+ return "introspect";
1818
+ } else if (process.argv[2] === "db" && process.argv[3] === "pull") {
1817
1819
  return "db pull";
1818
1820
  }
1819
1821
  return process.argv.slice(2).join(" ");
@@ -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_BXLJID4Q_exports = {};
20
- __export(chunk_BXLJID4Q_exports, {
19
+ var chunk_KZGJBS26_exports = {};
20
+ __export(chunk_KZGJBS26_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_BXLJID4Q_exports);
23
+ module.exports = __toCommonJS(chunk_KZGJBS26_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": "~20.19.0",
62
+ "@types/node": "18.19.76",
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.18.0-8.34b5a692b7bd79939a9a2c3ef97d816e749cda2f",
113
- "@prisma/schema-engine-wasm": "6.18.0-8.34b5a692b7bd79939a9a2c3ef97d816e749cda2f",
112
+ "@prisma/prisma-schema-wasm": "6.19.0-2.push-qtpkxwkvolmz-33c9120129ea6df44eaf652b4de9bedd817e3190",
113
+ "@prisma/schema-engine-wasm": "6.19.0-2.push-qtpkxwkvolmz-33c9120129ea6df44eaf652b4de9bedd817e3190",
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.4.0"
119
+ typescript: ">=5.1.0"
120
120
  },
121
121
  peerDependenciesMeta: {
122
122
  typescript: {
@@ -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_ZRIVBYAL_exports = {};
30
- __export(chunk_ZRIVBYAL_exports, {
29
+ var chunk_OZIOGQI4_exports = {};
30
+ __export(chunk_OZIOGQI4_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_ZRIVBYAL_exports);
34
+ module.exports = __toCommonJS(chunk_OZIOGQI4_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_PMQHMVQO = require("./chunk-PMQHMVQO.js");
39
- var import_chunk_LKXEYIHV = require("./chunk-LKXEYIHV.js");
38
+ var import_chunk_UBJB4J72 = require("./chunk-UBJB4J72.js");
39
+ var import_chunk_5FJLJE7T = require("./chunk-5FJLJE7T.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_PMQHMVQO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_UBJB4J72.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_LKXEYIHV.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_5FJLJE7T.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -16,14 +16,14 @@ 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_FURGECAD_exports = {};
20
- __export(chunk_FURGECAD_exports, {
19
+ var chunk_PZMRR772_exports = {};
20
+ __export(chunk_PZMRR772_exports, {
21
21
  loadEnvFile: () => loadEnvFile
22
22
  });
23
- module.exports = __toCommonJS(chunk_FURGECAD_exports);
24
- var import_chunk_6QTN4DDB = require("./chunk-6QTN4DDB.js");
23
+ module.exports = __toCommonJS(chunk_PZMRR772_exports);
24
+ var import_chunk_46ABODUM = require("./chunk-46ABODUM.js");
25
25
  var import_chunk_3FP46GUV = require("./chunk-3FP46GUV.js");
26
- function loadEnvFile({
26
+ async function loadEnvFile({
27
27
  schemaPath,
28
28
  config,
29
29
  printMessage = false
@@ -33,7 +33,7 @@ function loadEnvFile({
33
33
  `);
34
34
  return;
35
35
  }
36
- const envPaths = (0, import_chunk_6QTN4DDB.getEnvPaths)(schemaPath);
36
+ const envPaths = await (0, import_chunk_46ABODUM.getEnvPaths)(schemaPath);
37
37
  const envData = (0, import_chunk_3FP46GUV.tryLoadEnvs)(envPaths, { conflictCheck: "error" });
38
38
  if (printMessage && envData && envData.message) {
39
39
  process.stderr.write(envData.message + "\n");
@@ -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_D3OLOOMH_exports = {};
30
- __export(chunk_D3OLOOMH_exports, {
29
+ var chunk_QVWYGDIW_exports = {};
30
+ __export(chunk_QVWYGDIW_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_D3OLOOMH_exports);
34
+ module.exports = __toCommonJS(chunk_QVWYGDIW_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_PMQHMVQO = require("./chunk-PMQHMVQO.js");
38
- var import_chunk_LKXEYIHV = require("./chunk-LKXEYIHV.js");
37
+ var import_chunk_UBJB4J72 = require("./chunk-UBJB4J72.js");
38
+ var import_chunk_5FJLJE7T = require("./chunk-5FJLJE7T.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_PMQHMVQO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_UBJB4J72.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_LKXEYIHV.prismaSchemaWasm.debug_panic();
73
+ import_chunk_5FJLJE7T.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_LKXEYIHV.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_5FJLJE7T.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (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_7RGOGCSZ_exports = {};
20
- __export(chunk_7RGOGCSZ_exports, {
19
+ var chunk_TSJKOXSG_exports = {};
20
+ __export(chunk_TSJKOXSG_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_7RGOGCSZ_exports);
24
- var import_chunk_DEF6JMJE = require("./chunk-DEF6JMJE.js");
25
- var packageJson = (0, import_chunk_DEF6JMJE.require_package)();
23
+ module.exports = __toCommonJS(chunk_TSJKOXSG_exports);
24
+ var import_chunk_KZGJBS26 = require("./chunk-KZGJBS26.js");
25
+ var packageJson = (0, import_chunk_KZGJBS26.require_package)();
26
26
  var version = packageJson.version;
@@ -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_PMQHMVQO_exports = {};
20
- __export(chunk_PMQHMVQO_exports, {
19
+ var chunk_UBJB4J72_exports = {};
20
+ __export(chunk_UBJB4J72_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_PMQHMVQO_exports);
24
- var import_chunk_7RGOGCSZ = require("./chunk-7RGOGCSZ.js");
23
+ module.exports = __toCommonJS(chunk_UBJB4J72_exports);
24
+ var import_chunk_63ZWRY2I = require("./chunk-63ZWRY2I.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_7RGOGCSZ.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_63ZWRY2I.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -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_DDGW7TEY_exports = {};
30
- __export(chunk_DDGW7TEY_exports, {
29
+ var chunk_UBUFGEKB_exports = {};
30
+ __export(chunk_UBUFGEKB_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_DDGW7TEY_exports);
34
+ module.exports = __toCommonJS(chunk_UBUFGEKB_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_PMQHMVQO = require("./chunk-PMQHMVQO.js");
39
- var import_chunk_LKXEYIHV = require("./chunk-LKXEYIHV.js");
38
+ var import_chunk_W6QHEQHK = require("./chunk-W6QHEQHK.js");
39
+ var import_chunk_UFZJYAQH = require("./chunk-UFZJYAQH.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_PMQHMVQO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_W6QHEQHK.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_LKXEYIHV.prismaSchemaWasm.debug_panic();
74
+ import_chunk_UFZJYAQH.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_LKXEYIHV.prismaSchemaWasm.validate(params);
80
+ import_chunk_UFZJYAQH.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  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_LKXEYIHV_exports = {};
30
- __export(chunk_LKXEYIHV_exports, {
29
+ var chunk_UFZJYAQH_exports = {};
30
+ __export(chunk_UFZJYAQH_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_LKXEYIHV_exports);
37
- var import_chunk_DEF6JMJE = require("./chunk-DEF6JMJE.js");
36
+ module.exports = __toCommonJS(chunk_UFZJYAQH_exports);
37
+ var import_chunk_KZGJBS26 = require("./chunk-KZGJBS26.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_DEF6JMJE.require_package)();
49
+ var { dependencies } = (0, import_chunk_KZGJBS26.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -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_KIFFN3IT_exports = {};
30
- __export(chunk_KIFFN3IT_exports, {
29
+ var chunk_UQUWZJVN_exports = {};
30
+ __export(chunk_UQUWZJVN_exports, {
31
31
  handlePanic: () => handlePanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_KIFFN3IT_exports);
33
+ module.exports = __toCommonJS(chunk_UQUWZJVN_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_GSH4BXBI = require("./chunk-GSH4BXBI.js");
37
+ var import_chunk_HFFWZTVM = require("./chunk-HFFWZTVM.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_GSH4BXBI.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
82
+ const reportId = await (0, import_chunk_HFFWZTVM.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(`
@@ -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_IV6ZGJI6_exports = {};
20
- __export(chunk_IV6ZGJI6_exports, {
19
+ var chunk_W6QHEQHK_exports = {};
20
+ __export(chunk_W6QHEQHK_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_IV6ZGJI6_exports);
24
- var import_chunk_2AYJLW73 = require("./chunk-2AYJLW73.js");
23
+ module.exports = __toCommonJS(chunk_W6QHEQHK_exports);
24
+ var import_chunk_TSJKOXSG = require("./chunk-TSJKOXSG.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_2AYJLW73.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_TSJKOXSG.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_W7JPBW5A_exports = {};
20
- __export(chunk_W7JPBW5A_exports, {
19
+ var chunk_XLM7JU3G_exports = {};
20
+ __export(chunk_XLM7JU3G_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_W7JPBW5A_exports);
28
- var import_chunk_LKXEYIHV = require("./chunk-LKXEYIHV.js");
27
+ module.exports = __toCommonJS(chunk_XLM7JU3G_exports);
28
+ var import_chunk_UFZJYAQH = require("./chunk-UFZJYAQH.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_LKXEYIHV.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_UFZJYAQH.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -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_4XXX5FAL_exports = {};
30
- __export(chunk_4XXX5FAL_exports, {
29
+ var chunk_YGANUONS_exports = {};
30
+ __export(chunk_YGANUONS_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_4XXX5FAL_exports);
34
+ module.exports = __toCommonJS(chunk_YGANUONS_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_IV6ZGJI6 = require("./chunk-IV6ZGJI6.js");
38
- var import_chunk_HEJWJKAQ = require("./chunk-HEJWJKAQ.js");
37
+ var import_chunk_W6QHEQHK = require("./chunk-W6QHEQHK.js");
38
+ var import_chunk_UFZJYAQH = require("./chunk-UFZJYAQH.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_IV6ZGJI6.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_W6QHEQHK.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_HEJWJKAQ.prismaSchemaWasm.debug_panic();
73
+ import_chunk_UFZJYAQH.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_HEJWJKAQ.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_UFZJYAQH.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -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_PELP7NEY_exports = {};
20
- __export(chunk_PELP7NEY_exports, {
19
+ var chunk_ZCZUWLQA_exports = {};
20
+ __export(chunk_ZCZUWLQA_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_PELP7NEY_exports);
28
- var import_chunk_HEJWJKAQ = require("./chunk-HEJWJKAQ.js");
27
+ module.exports = __toCommonJS(chunk_ZCZUWLQA_exports);
28
+ var import_chunk_5FJLJE7T = require("./chunk-5FJLJE7T.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_HEJWJKAQ.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_5FJLJE7T.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -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_D5CZDTZM_exports = {};
30
- __export(chunk_D5CZDTZM_exports, {
29
+ var chunk_ZYDPOUNL_exports = {};
30
+ __export(chunk_ZYDPOUNL_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_D5CZDTZM_exports);
37
+ module.exports = __toCommonJS(chunk_ZYDPOUNL_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_PMQHMVQO = require("./chunk-PMQHMVQO.js");
42
- var import_chunk_LKXEYIHV = require("./chunk-LKXEYIHV.js");
41
+ var import_chunk_W6QHEQHK = require("./chunk-W6QHEQHK.js");
42
+ var import_chunk_UFZJYAQH = require("./chunk-UFZJYAQH.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_PMQHMVQO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_W6QHEQHK.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_LKXEYIHV.prismaSchemaWasm.debug_panic();
92
+ import_chunk_UFZJYAQH.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_LKXEYIHV.prismaSchemaWasm.get_config(params);
100
+ const data = import_chunk_UFZJYAQH.prismaSchemaWasm.get_config(params);
101
101
  return data;
102
102
  },
103
103
  (e) => ({