@prisma/internals 5.17.0-integration-show-platform-auth-token.3 → 5.17.0-integration-show-platform-auth-token.4

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 (64) hide show
  1. package/dist/{chunk-EOTOEWEG.js → chunk-2QFQJTM3.js} +16 -16
  2. package/dist/{chunk-JM6ICT4D.js → chunk-4A5ZK522.js} +3 -3
  3. package/dist/{chunk-22WWDCBL.js → chunk-5R627ZMI.js} +7 -7
  4. package/dist/chunk-5XRQ7ONW.js +122 -0
  5. package/dist/{chunk-7QFKPVEI.js → chunk-63WDBN55.js} +5 -5
  6. package/dist/{chunk-KRU3ZK3W.js → chunk-6GOPQDH2.js} +19 -19
  7. package/dist/{chunk-3CRBDWPU.js → chunk-6QMBX5PW.js} +5 -5
  8. package/dist/{chunk-HNFCHBPX.js → chunk-6WETF56C.js} +5 -5
  9. package/dist/{chunk-V3GTH2TA.js → chunk-7GBD3GZZ.js} +5 -5
  10. package/dist/{chunk-IEOLMIMU.js → chunk-ALIEF3BE.js} +15 -15
  11. package/dist/{chunk-OI5GDSG6.js → chunk-EDDYQ5ZF.js} +5 -5
  12. package/dist/{chunk-6HXOL3QF.js → chunk-EYOPVHNV.js} +28 -28
  13. package/dist/{chunk-Z2NHAREC.js → chunk-GHYJGM56.js} +5 -5
  14. package/dist/{chunk-BDXNOGJ3.js → chunk-GJMGCWTR.js} +5 -5
  15. package/dist/chunk-JTMEVPXK.js +177 -0
  16. package/dist/chunk-JUIG32DW.js +110 -0
  17. package/dist/{chunk-EKSAMZHR.js → chunk-KUMD5MBR.js} +10 -10
  18. package/dist/{chunk-IJK3NGWG.js → chunk-NCYBGN3M.js} +5 -5
  19. package/dist/chunk-PN2OFBAO.js +166 -0
  20. package/dist/{chunk-5TGIEWON.js → chunk-QCERIVWN.js} +22 -22
  21. package/dist/chunk-QIVUAERL.js +2202 -0
  22. package/dist/chunk-QL3K6JIN.js +54 -0
  23. package/dist/{chunk-SMHAELKS.js → chunk-QOTVZEEZ.js} +17 -17
  24. package/dist/{chunk-LQD72ZI2.js → chunk-QTT3VIQ3.js} +15 -15
  25. package/dist/{chunk-WPDXG7BG.js → chunk-QVK4UV4F.js} +5 -5
  26. package/dist/{chunk-4SKD6RMZ.js → chunk-TEGKDZJW.js} +6 -6
  27. package/dist/{chunk-HHHZRX5T.js → chunk-TWCV53Y5.js} +16 -16
  28. package/dist/{chunk-ZMLBYV2S.js → chunk-U3FOR7Z4.js} +24 -795
  29. package/dist/{chunk-FTFPVECN.js → chunk-UGBKVZL5.js} +5 -5
  30. package/dist/{chunk-P6T3CL5R.js → chunk-W4W3SS5M.js} +5 -5
  31. package/dist/{chunk-5SEXCYQP.js → chunk-WZYDGIB3.js} +23 -23
  32. package/dist/{chunk-BQ3ZVZLP.js → chunk-XY27KEAX.js} +22 -22
  33. package/dist/{chunk-QEMHOJR6.js → chunk-YM3CE76B.js} +147 -160
  34. package/dist/{chunk-2HYB2BOP.js → chunk-ZH2S54SA.js} +23 -23
  35. package/dist/cli/checkUnsupportedDataProxy.js +20 -20
  36. package/dist/cli/getSchema.js +25 -25
  37. package/dist/cli/hashes.js +20 -20
  38. package/dist/engine-commands/errorHelpers.js +4 -4
  39. package/dist/engine-commands/formatSchema.js +19 -19
  40. package/dist/engine-commands/getConfig.js +13 -13
  41. package/dist/engine-commands/getDmmf.js +10 -10
  42. package/dist/engine-commands/getEngineVersion.js +5 -5
  43. package/dist/engine-commands/getEnginesMetaInfo.js +8 -8
  44. package/dist/engine-commands/index.js +30 -30
  45. package/dist/engine-commands/lintSchema.js +8 -8
  46. package/dist/engine-commands/mergeSchemas.js +10 -10
  47. package/dist/engine-commands/queryEngineCommons.js +7 -7
  48. package/dist/engine-commands/validate.js +10 -10
  49. package/dist/get-generators/generatorResolvers/generatorResolvers.js +19 -19
  50. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +19 -19
  51. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +19 -19
  52. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +20 -20
  53. package/dist/get-generators/getGenerators.js +22 -22
  54. package/dist/index.js +57 -57
  55. package/dist/resolveBinary.js +7 -7
  56. package/dist/schemaEngineCommands.js +8 -8
  57. package/dist/sendPanic.js +19 -19
  58. package/dist/utils/fs-functional.js +9 -9
  59. package/dist/utils/getEnvPaths.js +19 -19
  60. package/dist/utils/getVersionFromPackageJson.js +3 -3
  61. package/dist/utils/handlePanic.js +19 -19
  62. package/dist/utils/loadEnvFile.js +19 -19
  63. package/dist/wasm.js +4 -4
  64. package/package.json +9 -9
@@ -26,25 +26,25 @@ 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_EOTOEWEG_exports = {};
30
- __export(chunk_EOTOEWEG_exports, {
29
+ var chunk_2QFQJTM3_exports = {};
30
+ __export(chunk_2QFQJTM3_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_EOTOEWEG_exports);
34
+ module.exports = __toCommonJS(chunk_2QFQJTM3_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_EKSAMZHR = require("./chunk-EKSAMZHR.js");
36
+ var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
37
37
  var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
38
- var import_chunk_7QFKPVEI = require("./chunk-7QFKPVEI.js");
39
- var import_chunk_SMHAELKS = require("./chunk-SMHAELKS.js");
38
+ var import_chunk_UGBKVZL5 = require("./chunk-UGBKVZL5.js");
39
+ var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
40
40
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
41
- var import_chunk_HNFCHBPX = require("./chunk-HNFCHBPX.js");
41
+ var import_chunk_6WETF56C = require("./chunk-6WETF56C.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
- var import_chunk_JM6ICT4D = require("./chunk-JM6ICT4D.js");
43
+ var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
45
45
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
46
46
  var import_debug = __toESM(require("@prisma/debug"));
47
- var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_SMHAELKS.require_function)());
47
+ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_QOTVZEEZ.require_function)());
48
48
  var debug = (0, import_debug.default)("prisma:validate");
49
49
  var ValidateError = class extends Error {
50
50
  constructor(params) {
@@ -60,25 +60,25 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: validate]`;
63
- super((0, import_chunk_7QFKPVEI.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_UGBKVZL5.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "ValidateError";
65
65
  }
66
66
  };
67
67
  function validate(options) {
68
- const debugErrorType = (0, import_chunk_EKSAMZHR.createDebugErrorType)(debug, "validateWasm");
68
+ const debugErrorType = (0, import_chunk_KUMD5MBR.createDebugErrorType)(debug, "validateWasm");
69
69
  debug(`Using validate Wasm`);
70
70
  const validateEither = (0, import_function.pipe)(
71
- (0, import_chunk_JM6ICT4D.tryCatch)(
71
+ (0, import_chunk_4A5ZK522.tryCatch)(
72
72
  () => {
73
73
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
74
74
  debug("Triggering a Rust panic...");
75
- import_chunk_HNFCHBPX.prismaSchemaWasm.debug_panic();
75
+ import_chunk_6WETF56C.prismaSchemaWasm.debug_panic();
76
76
  }
77
77
  const params = JSON.stringify({
78
78
  prismaSchema: options.schemas,
79
79
  noColor: Boolean(process.env.NO_COLOR)
80
80
  });
81
- import_chunk_HNFCHBPX.prismaSchemaWasm.validate(params);
81
+ import_chunk_6WETF56C.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  type: "wasm-error",
@@ -87,7 +87,7 @@ function validate(options) {
87
87
  })
88
88
  )
89
89
  );
90
- if ((0, import_chunk_JM6ICT4D.isRight)(validateEither)) {
90
+ if ((0, import_chunk_4A5ZK522.isRight)(validateEither)) {
91
91
  return;
92
92
  }
93
93
  const error = (0, import_chunk_H3T4L34H.$)(validateEither.left).with({ type: "wasm-error" }, (e) => {
@@ -113,7 +113,7 @@ function validate(options) {
113
113
  return panic;
114
114
  }
115
115
  const errorOutput = e.error.message;
116
- return new ValidateError((0, import_chunk_EKSAMZHR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
116
+ return new ValidateError((0, import_chunk_KUMD5MBR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
117
117
  }).exhaustive();
118
118
  throw error;
119
119
  }
@@ -16,8 +16,8 @@ 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_JM6ICT4D_exports = {};
20
- __export(chunk_JM6ICT4D_exports, {
19
+ var chunk_4A5ZK522_exports = {};
20
+ __export(chunk_4A5ZK522_exports, {
21
21
  as: () => as,
22
22
  asUnit: () => asUnit,
23
23
  chain: () => chain,
@@ -41,7 +41,7 @@ __export(chunk_JM6ICT4D_exports, {
41
41
  tryCatch: () => tryCatch,
42
42
  tryCatch2: () => tryCatch2
43
43
  });
44
- module.exports = __toCommonJS(chunk_JM6ICT4D_exports);
44
+ module.exports = __toCommonJS(chunk_4A5ZK522_exports);
45
45
  var __spreadArray = function(to, from, pack) {
46
46
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
47
47
  if (ar || !(i in from)) {
@@ -16,16 +16,16 @@ 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_22WWDCBL_exports = {};
20
- __export(chunk_22WWDCBL_exports, {
19
+ var chunk_5R627ZMI_exports = {};
20
+ __export(chunk_5R627ZMI_exports, {
21
21
  getEngineVersion: () => getEngineVersion,
22
22
  safeGetEngineVersion: () => safeGetEngineVersion
23
23
  });
24
- module.exports = __toCommonJS(chunk_22WWDCBL_exports);
24
+ module.exports = __toCommonJS(chunk_5R627ZMI_exports);
25
25
  var import_chunk_S4LINK5Y = require("./chunk-S4LINK5Y.js");
26
26
  var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
27
- var import_chunk_Z2NHAREC = require("./chunk-Z2NHAREC.js");
28
- var import_chunk_JM6ICT4D = require("./chunk-JM6ICT4D.js");
27
+ var import_chunk_JUIG32DW = require("./chunk-JUIG32DW.js");
28
+ var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
29
29
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
30
30
  var import_engines = require("@prisma/engines");
31
31
  var import_fetch_engine = require("@prisma/fetch-engine");
@@ -35,7 +35,7 @@ async function getEngineVersion(enginePath, binaryName) {
35
35
  if (!binaryName) {
36
36
  binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
37
37
  }
38
- enginePath = await (0, import_chunk_Z2NHAREC.resolveBinary)(binaryName, enginePath);
38
+ enginePath = await (0, import_chunk_JUIG32DW.resolveBinary)(binaryName, enginePath);
39
39
  const platformInfo = await (0, import_get_platform.getPlatformInfo)();
40
40
  if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
41
41
  (0, import_get_platform.assertNodeAPISupported)();
@@ -47,7 +47,7 @@ async function getEngineVersion(enginePath, binaryName) {
47
47
  }
48
48
  }
49
49
  function safeGetEngineVersion(enginePath, binaryName) {
50
- return (0, import_chunk_JM6ICT4D.tryCatch2)(
50
+ return (0, import_chunk_4A5ZK522.tryCatch2)(
51
51
  () => getEngineVersion(enginePath, binaryName),
52
52
  (error) => error
53
53
  );
@@ -0,0 +1,122 @@
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 __toESM2 = (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_5XRQ7ONW_exports = {};
30
+ __export(chunk_5XRQ7ONW_exports, {
31
+ getBinaryPathsByVersion: () => getBinaryPathsByVersion
32
+ });
33
+ module.exports = __toCommonJS(chunk_5XRQ7ONW_exports);
34
+ var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
35
+ var import_chunk_4CGPN5SR = require("./chunk-4CGPN5SR.js");
36
+ var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
37
+ var import_chunk_7B5PXS6N = require("./chunk-7B5PXS6N.js");
38
+ var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
39
+ var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
40
+ var import_engines = require("@prisma/engines");
41
+ var import_fetch_engine = require("@prisma/fetch-engine");
42
+ var import_path = __toESM2(require("path"));
43
+ var import_fs_extra = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_QIVUAERL.require_lib)());
44
+ async function getBinaryPathsByVersion({
45
+ neededVersions,
46
+ binaryTarget,
47
+ version,
48
+ printDownloadProgress,
49
+ skipDownload,
50
+ binaryPathsOverride
51
+ }) {
52
+ const binaryPathsByVersion = /* @__PURE__ */ Object.create(null);
53
+ for (const currentVersion in neededVersions) {
54
+ binaryPathsByVersion[currentVersion] = {};
55
+ const neededVersion = neededVersions[currentVersion];
56
+ if (neededVersion.binaryTargets.length === 0) {
57
+ neededVersion.binaryTargets = [{ fromEnvVar: null, value: binaryTarget }];
58
+ }
59
+ if (process.env.NETLIFY) {
60
+ const isNodeMajor20OrUp = parseInt(process.versions.node.split(".")[0]) >= 20;
61
+ const awsRuntimeVersion = (0, import_chunk_2SDPW6AX.parseAWSNodejsRuntimeEnvVarVersion)();
62
+ const isRuntimeEnvVar20OrUp = awsRuntimeVersion && awsRuntimeVersion >= 20;
63
+ const isRuntimeEnvVar18OrDown = awsRuntimeVersion && awsRuntimeVersion <= 18;
64
+ const isRhelBinaryTarget1xInNeededVersions = neededVersion.binaryTargets.find(
65
+ (object) => object.value === "rhel-openssl-1.0.x"
66
+ );
67
+ const isRhelBinaryTarget3xInNeededVersions = neededVersion.binaryTargets.find(
68
+ (object) => object.value === "rhel-openssl-3.0.x"
69
+ );
70
+ if (!isRhelBinaryTarget3xInNeededVersions && (isNodeMajor20OrUp || isRuntimeEnvVar20OrUp) && !isRuntimeEnvVar18OrDown) {
71
+ neededVersion.binaryTargets.push({
72
+ fromEnvVar: null,
73
+ value: "rhel-openssl-3.0.x"
74
+ });
75
+ } else if (!isRhelBinaryTarget1xInNeededVersions) {
76
+ neededVersion.binaryTargets.push({
77
+ fromEnvVar: null,
78
+ value: "rhel-openssl-1.0.x"
79
+ });
80
+ }
81
+ }
82
+ let binaryTargetBaseDir = eval(`require('path').join(__dirname, '..')`);
83
+ if (version !== currentVersion) {
84
+ binaryTargetBaseDir = import_path.default.join(binaryTargetBaseDir, `./engines/${currentVersion}/`);
85
+ await (0, import_fs_extra.ensureDir)(binaryTargetBaseDir).catch((e) => console.error(e));
86
+ }
87
+ const binariesConfig = neededVersion.engines.reduce((acc, curr) => {
88
+ if (!binaryPathsOverride?.[curr]) {
89
+ acc[(0, import_chunk_4CGPN5SR.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
90
+ }
91
+ return acc;
92
+ }, /* @__PURE__ */ Object.create(null));
93
+ if (Object.values(binariesConfig).length > 0) {
94
+ const binaryTargets = neededVersion.binaryTargets.map(
95
+ (binaryTarget2) => binaryTarget2.value
96
+ );
97
+ const downloadParams = {
98
+ binaries: binariesConfig,
99
+ binaryTargets,
100
+ showProgress: typeof printDownloadProgress === "boolean" ? printDownloadProgress : true,
101
+ version: currentVersion && currentVersion !== "latest" ? currentVersion : import_engines.enginesVersion,
102
+ skipDownload
103
+ };
104
+ const binaryPathsWithEngineType = await (0, import_fetch_engine.download)(downloadParams);
105
+ const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_RS2R7COT.binaryTypeToEngineType);
106
+ binaryPathsByVersion[currentVersion] = binaryPaths;
107
+ }
108
+ if (binaryPathsOverride) {
109
+ const overrideEngines = Object.keys(binaryPathsOverride);
110
+ const enginesCoveredByOverride = neededVersion.engines.filter((engine) => overrideEngines.includes(engine));
111
+ if (enginesCoveredByOverride.length > 0) {
112
+ for (const engine of enginesCoveredByOverride) {
113
+ const enginePath = binaryPathsOverride[engine];
114
+ binaryPathsByVersion[currentVersion][engine] = {
115
+ [binaryTarget]: enginePath
116
+ };
117
+ }
118
+ }
119
+ }
120
+ }
121
+ return binaryPathsByVersion;
122
+ }
@@ -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_7QFKPVEI_exports = {};
20
- __export(chunk_7QFKPVEI_exports, {
19
+ var chunk_63WDBN55_exports = {};
20
+ __export(chunk_63WDBN55_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_7QFKPVEI_exports);
24
- var import_chunk_IJK3NGWG = require("./chunk-IJK3NGWG.js");
23
+ module.exports = __toCommonJS(chunk_63WDBN55_exports);
24
+ var import_chunk_NCYBGN3M = require("./chunk-NCYBGN3M.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_IJK3NGWG.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_NCYBGN3M.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_KRU3ZK3W_exports = {};
30
- __export2(chunk_KRU3ZK3W_exports, {
29
+ var chunk_6GOPQDH2_exports = {};
30
+ __export2(chunk_6GOPQDH2_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
33
  checkYarnVersion: () => checkYarnVersion,
@@ -56,7 +56,7 @@ __export2(chunk_KRU3ZK3W_exports, {
56
56
  sendPanic: () => sendPanic,
57
57
  skipIndex: () => skipIndex
58
58
  });
59
- module.exports = __toCommonJS2(chunk_KRU3ZK3W_exports);
59
+ module.exports = __toCommonJS2(chunk_6GOPQDH2_exports);
60
60
  var import_chunk_IABMG3F4 = require("./chunk-IABMG3F4.js");
61
61
  var import_chunk_FTS2IEWX = require("./chunk-FTS2IEWX.js");
62
62
  var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
@@ -81,13 +81,13 @@ var import_chunk_XLYQ6PQW = require("./chunk-XLYQ6PQW.js");
81
81
  var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
82
82
  var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
83
83
  var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
84
- var import_chunk_BDXNOGJ3 = require("./chunk-BDXNOGJ3.js");
85
- var import_chunk_LQD72ZI2 = require("./chunk-LQD72ZI2.js");
86
- var import_chunk_2HYB2BOP = require("./chunk-2HYB2BOP.js");
87
- var import_chunk_5TGIEWON = require("./chunk-5TGIEWON.js");
84
+ var import_chunk_GJMGCWTR = require("./chunk-GJMGCWTR.js");
85
+ var import_chunk_ALIEF3BE = require("./chunk-ALIEF3BE.js");
86
+ var import_chunk_ZH2S54SA = require("./chunk-ZH2S54SA.js");
87
+ var import_chunk_QCERIVWN = require("./chunk-QCERIVWN.js");
88
88
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
89
89
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
90
- var import_chunk_HNFCHBPX = require("./chunk-HNFCHBPX.js");
90
+ var import_chunk_6WETF56C = require("./chunk-6WETF56C.js");
91
91
  var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
92
92
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
93
93
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
@@ -15517,7 +15517,7 @@ async function readSchemaFromDirectory(schemaPath2) {
15517
15517
  }
15518
15518
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
15519
15519
  debug2("Loading config");
15520
- const config2 = await (0, import_chunk_2HYB2BOP.getConfig)({
15520
+ const config2 = await (0, import_chunk_ZH2S54SA.getConfig)({
15521
15521
  datamodel: files,
15522
15522
  ignoreEnvVarErrors: true
15523
15523
  });
@@ -15909,8 +15909,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
15909
15909
  if (argName.includes("schema")) {
15910
15910
  await loadEnvFile({ schemaPath: argValue, printMessage: false });
15911
15911
  const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
15912
- const config2 = await (0, import_chunk_2HYB2BOP.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15913
- const url = (0, import_chunk_2HYB2BOP.resolveUrl)((0, import_chunk_2HYB2BOP.getEffectiveUrl)(config2.datasources[0]));
15912
+ const config2 = await (0, import_chunk_ZH2S54SA.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15913
+ const url = (0, import_chunk_ZH2S54SA.resolveUrl)((0, import_chunk_ZH2S54SA.getEffectiveUrl)(config2.datasources[0]));
15914
15914
  if (url?.startsWith("prisma://")) {
15915
15915
  return forbiddenCmdWithDataProxyFlagMessage(command);
15916
15916
  }
@@ -16113,7 +16113,7 @@ async function getGenerators(options) {
16113
16113
  prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
16114
16114
  }
16115
16115
  }
16116
- const config = await (0, import_chunk_2HYB2BOP.getConfig)({
16116
+ const config = await (0, import_chunk_ZH2S54SA.getConfig)({
16117
16117
  datamodel: schemas,
16118
16118
  datamodelPath: schemaPath,
16119
16119
  prismaPath,
@@ -16124,7 +16124,7 @@ async function getGenerators(options) {
16124
16124
  }
16125
16125
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
16126
16126
  const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
16127
- const dmmf = await (0, import_chunk_5TGIEWON.getDMMF)({
16127
+ const dmmf = await (0, import_chunk_QCERIVWN.getDMMF)({
16128
16128
  datamodel: schemas,
16129
16129
  datamodelPath: schemaPath,
16130
16130
  prismaPath,
@@ -16185,7 +16185,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
16185
16185
  fromEnvVar: "null"
16186
16186
  };
16187
16187
  }
16188
- const datamodel = (0, import_chunk_LQD72ZI2.mergeSchemas)({ schemas });
16188
+ const datamodel = (0, import_chunk_ALIEF3BE.mergeSchemas)({ schemas });
16189
16189
  const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
16190
16190
  const options2 = {
16191
16191
  datamodel,
@@ -16267,7 +16267,7 @@ generator gen {
16267
16267
  debug6({ generatorBinaryPaths });
16268
16268
  generator.setBinaryPaths(generatorBinaryPaths);
16269
16269
  if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
16270
- const customDmmf = await (0, import_chunk_5TGIEWON.getDMMF)({
16270
+ const customDmmf = await (0, import_chunk_QCERIVWN.getDMMF)({
16271
16271
  datamodel: schemas,
16272
16272
  datamodelPath: schemaPath,
16273
16273
  prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
@@ -16565,7 +16565,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
16565
16565
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
16566
16566
  handleFormatPanic(
16567
16567
  () => {
16568
- import_chunk_HNFCHBPX.prismaSchemaWasm.debug_panic();
16568
+ import_chunk_6WETF56C.prismaSchemaWasm.debug_panic();
16569
16569
  },
16570
16570
  { schemas: schemas2 }
16571
16571
  );
@@ -16585,12 +16585,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
16585
16585
  () => {
16586
16586
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
16587
16587
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
16588
- const lintDiagnostics2 = (0, import_chunk_BDXNOGJ3.lintSchema)({ schemas: formattedMultipleSchemas2 });
16588
+ const lintDiagnostics2 = (0, import_chunk_GJMGCWTR.lintSchema)({ schemas: formattedMultipleSchemas2 });
16589
16589
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
16590
16590
  },
16591
16591
  { schemas: schemas2 }
16592
16592
  );
16593
- const lintWarnings = (0, import_chunk_BDXNOGJ3.getLintWarningsAsText)(lintDiagnostics);
16593
+ const lintWarnings = (0, import_chunk_GJMGCWTR.getLintWarningsAsText)(lintDiagnostics);
16594
16594
  if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
16595
16595
  console.warn(lintWarnings);
16596
16596
  }
@@ -16620,7 +16620,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
16620
16620
  }
16621
16621
  }
16622
16622
  function formatWasm(schema, documentFormattingParams) {
16623
- const formattedSchema = import_chunk_HNFCHBPX.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
16623
+ const formattedSchema = import_chunk_6WETF56C.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
16624
16624
  return formattedSchema;
16625
16625
  }
16626
16626
  /*! Bundled license information:
@@ -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_3CRBDWPU_exports = {};
20
- __export(chunk_3CRBDWPU_exports, {
19
+ var chunk_6QMBX5PW_exports = {};
20
+ __export(chunk_6QMBX5PW_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_3CRBDWPU_exports);
23
+ module.exports = __toCommonJS(chunk_6QMBX5PW_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) {
@@ -69,7 +69,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
69
69
  execa: "5.1.1",
70
70
  "fast-glob": "3.3.2",
71
71
  "find-up": "5.0.0",
72
- "fp-ts": "2.16.6",
72
+ "fp-ts": "2.16.8",
73
73
  "fs-extra": "11.1.1",
74
74
  "fs-jetpack": "5.1.0",
75
75
  "global-dirs": "4.0.0",
@@ -107,7 +107,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
107
107
  "@prisma/fetch-engine": "workspace:*",
108
108
  "@prisma/generator-helper": "workspace:*",
109
109
  "@prisma/get-platform": "workspace:*",
110
- "@prisma/prisma-schema-wasm": "5.17.0-2.9b8d05f58b90e474495c811c76f88979000107a9",
110
+ "@prisma/prisma-schema-wasm": "5.17.0-5.c41dd5bcfeef5b6c035aaa4c241397cb6f009168",
111
111
  "@prisma/schema-files-loader": "workspace:*",
112
112
  arg: "5.0.2",
113
113
  prompts: "2.4.2"
@@ -26,14 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_HNFCHBPX_exports = {};
30
- __export(chunk_HNFCHBPX_exports, {
29
+ var chunk_6WETF56C_exports = {};
30
+ __export(chunk_6WETF56C_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  wasm_exports: () => wasm_exports
34
34
  });
35
- module.exports = __toCommonJS(chunk_HNFCHBPX_exports);
36
- var import_chunk_3CRBDWPU = require("./chunk-3CRBDWPU.js");
35
+ module.exports = __toCommonJS(chunk_6WETF56C_exports);
36
+ var import_chunk_TEGKDZJW = require("./chunk-TEGKDZJW.js");
37
37
  var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
38
38
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
39
39
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -42,6 +42,6 @@ var wasm_exports = {};
42
42
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
43
43
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
44
44
  });
45
- var { dependencies } = (0, import_chunk_3CRBDWPU.require_package)();
45
+ var { dependencies } = (0, import_chunk_TEGKDZJW.require_package)();
46
46
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
@@ -26,14 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_V3GTH2TA_exports = {};
30
- __export(chunk_V3GTH2TA_exports, {
29
+ var chunk_7GBD3GZZ_exports = {};
30
+ __export(chunk_7GBD3GZZ_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  wasm_exports: () => wasm_exports
34
34
  });
35
- module.exports = __toCommonJS(chunk_V3GTH2TA_exports);
36
- var import_chunk_4SKD6RMZ = require("./chunk-4SKD6RMZ.js");
35
+ module.exports = __toCommonJS(chunk_7GBD3GZZ_exports);
36
+ var import_chunk_6QMBX5PW = require("./chunk-6QMBX5PW.js");
37
37
  var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
38
38
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
39
39
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -42,6 +42,6 @@ var wasm_exports = {};
42
42
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
43
43
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
44
44
  });
45
- var { dependencies } = (0, import_chunk_4SKD6RMZ.require_package)();
45
+ var { dependencies } = (0, import_chunk_6QMBX5PW.require_package)();
46
46
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
@@ -26,25 +26,25 @@ 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_IEOLMIMU_exports = {};
30
- __export(chunk_IEOLMIMU_exports, {
29
+ var chunk_ALIEF3BE_exports = {};
30
+ __export(chunk_ALIEF3BE_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_IEOLMIMU_exports);
34
+ module.exports = __toCommonJS(chunk_ALIEF3BE_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_EKSAMZHR = require("./chunk-EKSAMZHR.js");
36
+ var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
37
37
  var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
38
- var import_chunk_FTFPVECN = require("./chunk-FTFPVECN.js");
39
- var import_chunk_SMHAELKS = require("./chunk-SMHAELKS.js");
38
+ var import_chunk_UGBKVZL5 = require("./chunk-UGBKVZL5.js");
39
+ var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
40
40
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
41
- var import_chunk_V3GTH2TA = require("./chunk-V3GTH2TA.js");
41
+ var import_chunk_6WETF56C = require("./chunk-6WETF56C.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
- var import_chunk_JM6ICT4D = require("./chunk-JM6ICT4D.js");
43
+ var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
45
45
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
46
46
  var import_debug = __toESM(require("@prisma/debug"));
47
- var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_SMHAELKS.require_function)());
47
+ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_QOTVZEEZ.require_function)());
48
48
  var debug = (0, import_debug.default)("prisma:mergeSchemas");
49
49
  var MergeSchemasError = class extends Error {
50
50
  constructor(params) {
@@ -60,20 +60,20 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: mergeSchemas]`;
63
- super((0, import_chunk_FTFPVECN.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_UGBKVZL5.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "MergeSchemasError";
65
65
  }
66
66
  };
67
67
  function mergeSchemas(options) {
68
- const debugErrorType = (0, import_chunk_EKSAMZHR.createDebugErrorType)(debug, "mergeSchemasWasm");
68
+ const debugErrorType = (0, import_chunk_KUMD5MBR.createDebugErrorType)(debug, "mergeSchemasWasm");
69
69
  debug(`Using mergeSchemas Wasm`);
70
70
  const mergeSchemasEither = (0, import_function.pipe)(
71
- (0, import_chunk_JM6ICT4D.tryCatch)(
71
+ (0, import_chunk_4A5ZK522.tryCatch)(
72
72
  () => {
73
73
  const params = JSON.stringify({
74
74
  schema: options.schemas
75
75
  });
76
- return import_chunk_V3GTH2TA.prismaSchemaWasm.merge_schemas(params);
76
+ return import_chunk_6WETF56C.prismaSchemaWasm.merge_schemas(params);
77
77
  },
78
78
  (e) => ({
79
79
  type: "wasm-error",
@@ -82,7 +82,7 @@ function mergeSchemas(options) {
82
82
  })
83
83
  )
84
84
  );
85
- if ((0, import_chunk_JM6ICT4D.isRight)(mergeSchemasEither)) {
85
+ if ((0, import_chunk_4A5ZK522.isRight)(mergeSchemasEither)) {
86
86
  return mergeSchemasEither.right;
87
87
  }
88
88
  const error = (0, import_chunk_H3T4L34H.$)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
@@ -108,7 +108,7 @@ function mergeSchemas(options) {
108
108
  return panic;
109
109
  }
110
110
  const errorOutput = e.error.message;
111
- return new MergeSchemasError((0, import_chunk_EKSAMZHR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
111
+ return new MergeSchemasError((0, import_chunk_KUMD5MBR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
112
112
  }).exhaustive();
113
113
  throw error;
114
114
  }
@@ -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_OI5GDSG6_exports = {};
20
- __export(chunk_OI5GDSG6_exports, {
19
+ var chunk_EDDYQ5ZF_exports = {};
20
+ __export(chunk_EDDYQ5ZF_exports, {
21
21
  SchemaEngineExitCode: () => SchemaEngineExitCode,
22
22
  canConnectToDatabase: () => canConnectToDatabase,
23
23
  createDatabase: () => createDatabase,
24
24
  dropDatabase: () => dropDatabase,
25
25
  execaCommand: () => execaCommand
26
26
  });
27
- module.exports = __toCommonJS(chunk_OI5GDSG6_exports);
27
+ module.exports = __toCommonJS(chunk_EDDYQ5ZF_exports);
28
28
  var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
29
- var import_chunk_Z2NHAREC = require("./chunk-Z2NHAREC.js");
29
+ var import_chunk_JUIG32DW = require("./chunk-JUIG32DW.js");
30
30
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
31
31
  var import_fetch_engine = require("@prisma/fetch-engine");
32
32
  var import_execa = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_7XNZDY2V.require_execa)());
@@ -141,7 +141,7 @@ async function execaCommand({
141
141
  schemaEnginePath,
142
142
  engineCommandName
143
143
  }) {
144
- schemaEnginePath = schemaEnginePath || await (0, import_chunk_Z2NHAREC.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
144
+ schemaEnginePath = schemaEnginePath || await (0, import_chunk_JUIG32DW.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
145
145
  try {
146
146
  return await (0, import_execa.default)(schemaEnginePath, ["cli", "--datasource", connectionString, engineCommandName], {
147
147
  cwd,