@prisma/internals 6.7.0-dev.3 → 6.7.0-dev.30

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-P5IIK3JL.js → chunk-3MUQ4TU7.js} +8 -8
  2. package/dist/{chunk-RWBXVC3Q.js → chunk-4FEYTM57.js} +5 -5
  3. package/dist/{chunk-4RTSZRIG.js → chunk-562XUUBU.js} +38 -432
  4. package/dist/{chunk-RT6YCZRY.js → chunk-BADMBP3H.js} +8 -8
  5. package/dist/chunk-CHOXBASF.js +44 -0
  6. package/dist/{chunk-E3YJAHLF.js → chunk-D5PGODU4.js} +7 -7
  7. package/dist/{chunk-LWRNGWQ7.js → chunk-ELIZMSQG.js} +5 -5
  8. package/dist/{chunk-GZMSK32W.js → chunk-G3EZ4Q2B.js} +38 -432
  9. package/dist/{chunk-UBN7Q7OJ.js → chunk-HU6XYFIM.js} +5 -5
  10. package/dist/{chunk-GVE5J7GK.js → chunk-IWYXVEO6.js} +5 -5
  11. package/dist/{chunk-WFM4E4NF.js → chunk-JJY42LRT.js} +5 -5
  12. package/dist/{chunk-WKDVLS4Z.js → chunk-KQF3V3NE.js} +8 -8
  13. package/dist/{chunk-VSXZQN6F.js → chunk-MFTVER3B.js} +8 -8
  14. package/dist/{chunk-67I7CEQJ.js → chunk-MY5KA4VU.js} +12 -329
  15. package/dist/{chunk-W5YSIYIS.js → chunk-NF37RBJN.js} +6 -6
  16. package/dist/chunk-PSFQKG2Q.js +6291 -0
  17. package/dist/chunk-Q6ZVYPDB.js +41 -0
  18. package/dist/chunk-QS3WUGE3.js +341 -0
  19. package/dist/{chunk-JGJGCIF6.js → chunk-ST2CLX2T.js} +5 -5
  20. package/dist/{chunk-ONR3MUF7.js → chunk-TJK3RXQ5.js} +5 -5
  21. package/dist/{chunk-HSCJEEWW.js → chunk-UG7PCGK3.js} +5 -5
  22. package/dist/{chunk-7VLCG6RO.js → chunk-VA3AAH22.js} +8 -8
  23. package/dist/{chunk-DVK2KU3X.js → chunk-VOERA7GD.js} +7 -7
  24. package/dist/{chunk-UUMPQSS5.js → chunk-WCGWIMZB.js} +5 -5
  25. package/dist/chunk-WCPUXXL2.js +183 -0
  26. package/dist/{chunk-ZQB3OZHH.js → chunk-YFDZ5K7Y.js} +8 -8
  27. package/dist/chunk-ZCBEMBHR.js +242 -0
  28. package/dist/chunk-ZIFBTC6Y.js +6440 -0
  29. package/dist/cli/checkUnsupportedDataProxy.js +22 -16
  30. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +22 -16
  31. package/dist/cli/getSchema.js +8 -112
  32. package/dist/cli/hashes.js +6 -109
  33. package/dist/cli/schemaContext.js +22 -16
  34. package/dist/engine-commands/errorHelpers.js +4 -4
  35. package/dist/engine-commands/formatSchema.js +21 -15
  36. package/dist/engine-commands/getConfig.js +10 -10
  37. package/dist/engine-commands/getDmmf.js +7 -7
  38. package/dist/engine-commands/index.js +30 -24
  39. package/dist/engine-commands/lintSchema.js +8 -8
  40. package/dist/engine-commands/mergeSchemas.js +7 -7
  41. package/dist/engine-commands/validate.js +7 -7
  42. package/dist/get-generators/getGenerators.js +24 -18
  43. package/dist/getPackedPackage.js +6 -4
  44. package/dist/index.js +51 -45
  45. package/dist/resolvePkg.js +3 -2
  46. package/dist/utils/getEnvPaths.js +5 -106
  47. package/dist/utils/getVersionFromPackageJson.js +3 -3
  48. package/dist/utils/loadEnvFile.js +6 -106
  49. package/dist/wasm.js +5 -5
  50. package/package.json +13 -13
  51. package/dist/chunk-MJIP3FY5.js +0 -12695
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var chunk_CHOXBASF_exports = {};
30
+ __export(chunk_CHOXBASF_exports, {
31
+ getCLIPathHash: () => getCLIPathHash,
32
+ getProjectHash: () => getProjectHash
33
+ });
34
+ module.exports = __toCommonJS(chunk_CHOXBASF_exports);
35
+ var import_chunk_ZCBEMBHR = require("./chunk-ZCBEMBHR.js");
36
+ var import_crypto = __toESM(require("crypto"));
37
+ async function getProjectHash(schemaPathFromArgs, schemaPathFromConfig) {
38
+ const projectPath = (await (0, import_chunk_ZCBEMBHR.getSchemaWithPath)(schemaPathFromArgs, schemaPathFromConfig))?.schemaPath ?? process.cwd();
39
+ return import_crypto.default.createHash("sha256").update(projectPath).digest("hex").substring(0, 8);
40
+ }
41
+ function getCLIPathHash() {
42
+ const cliPath = process.argv[1];
43
+ return import_crypto.default.createHash("sha256").update(cliPath).digest("hex").substring(0, 8);
44
+ }
@@ -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_E3YJAHLF_exports = {};
30
- __export(chunk_E3YJAHLF_exports, {
29
+ var chunk_D5PGODU4_exports = {};
30
+ __export(chunk_D5PGODU4_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_E3YJAHLF_exports);
34
+ module.exports = __toCommonJS(chunk_D5PGODU4_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_ONR3MUF7 = require("./chunk-ONR3MUF7.js");
39
- var import_chunk_GVE5J7GK = require("./chunk-GVE5J7GK.js");
38
+ var import_chunk_TJK3RXQ5 = require("./chunk-TJK3RXQ5.js");
39
+ var import_chunk_IWYXVEO6 = require("./chunk-IWYXVEO6.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_ONR3MUF7.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_TJK3RXQ5.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_GVE5J7GK.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_IWYXVEO6.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -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_LWRNGWQ7_exports = {};
20
- __export(chunk_LWRNGWQ7_exports, {
19
+ var chunk_ELIZMSQG_exports = {};
20
+ __export(chunk_ELIZMSQG_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_LWRNGWQ7_exports);
24
- var import_chunk_UUMPQSS5 = require("./chunk-UUMPQSS5.js");
23
+ module.exports = __toCommonJS(chunk_ELIZMSQG_exports);
24
+ var import_chunk_WCGWIMZB = require("./chunk-WCGWIMZB.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_UUMPQSS5.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_WCGWIMZB.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;