@prisma/internals 6.3.0-integration-studio-ux-refinements.2 → 6.3.0-integration-engines-6-3-0-18-integration-fix-aws-cli-version-18e9d973d7789a29d6b3c801dc30cb76c45ee0e0.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 (91) hide show
  1. package/dist/{chunk-KKMREGHN.js → chunk-53LS3WUO.js} +143 -94
  2. package/dist/{chunk-S3323RUL.js → chunk-5RV3EMX6.js} +9 -9
  3. package/dist/{chunk-2IPIBP5P.js → chunk-6MSXEABD.js} +16 -8
  4. package/dist/{chunk-CXEMRKV4.js → chunk-6TXVGFQA.js} +6 -6
  5. package/dist/{chunk-33LHUSHN.js → chunk-6XND2ZQY.js} +5 -5
  6. package/dist/{chunk-QTXYAZFX.js → chunk-AC6EAR56.js} +5 -5
  7. package/dist/{chunk-W2OR5YUF.js → chunk-ARRVEXOA.js} +13 -13
  8. package/dist/{chunk-CZDIXJEO.js → chunk-B2T5HDW7.js} +257 -11
  9. package/dist/{chunk-RDX5FNEL.js → chunk-CDW4XDBW.js} +14 -14
  10. package/dist/{chunk-ABEQ2U6R.js → chunk-CLXZMHHE.js} +5 -5
  11. package/dist/{chunk-N6K7M2HZ.js → chunk-DZYINYAA.js} +5 -5
  12. package/dist/{chunk-5BYCRWVW.js → chunk-E5AXFEFV.js} +14 -14
  13. package/dist/{chunk-JAVGNR6X.js → chunk-FBFA2BX5.js} +5 -5
  14. package/dist/{chunk-TFSZCVKC.js → chunk-G4BGJ6IP.js} +5 -5
  15. package/dist/{chunk-2DSKCK2V.js → chunk-GEMQC6O2.js} +14 -14
  16. package/dist/{chunk-WLFXTRN5.js → chunk-H7P6PFX4.js} +5 -5
  17. package/dist/chunk-HB2Q7X5H.js +30 -0
  18. package/dist/{chunk-2XRDQCIA.js → chunk-I7IEEULS.js} +5 -5
  19. package/dist/{chunk-EKBX4J6O.js → chunk-IWJ2BUYF.js} +7 -7
  20. package/dist/{chunk-BONFK27U.js → chunk-J7ZPY2XA.js} +4 -4
  21. package/dist/{chunk-GH5ML3FF.js → chunk-K7RKBI4P.js} +15 -7
  22. package/dist/{chunk-X4U4GLWH.js → chunk-KRWS7JB4.js} +5 -4
  23. package/dist/{chunk-YU7EBOUS.js → chunk-L7IGBD7G.js} +5 -5
  24. package/dist/{chunk-QJZIYUVB.js → chunk-NXIWDQBF.js} +4 -4
  25. package/dist/{chunk-EMTIYECY.js → chunk-O5KI7246.js} +14 -14
  26. package/dist/{chunk-3DMEILBC.js → chunk-OYLZC5OV.js} +13 -13
  27. package/dist/{chunk-KEBDP2C3.js → chunk-PIPE5DSU.js} +6 -6
  28. package/dist/{chunk-CKNTB45N.js → chunk-QSAE23KV.js} +8 -3
  29. package/dist/{chunk-P6VBFLWR.js → chunk-QVVSDACW.js} +5 -5
  30. package/dist/{chunk-CHFPACOJ.js → chunk-RR2ONZZ7.js} +15 -15
  31. package/dist/{chunk-UPIULDLZ.js → chunk-SHJNE6T7.js} +8 -8
  32. package/dist/{chunk-H32RDGWV.js → chunk-TTNZ3VMV.js} +58 -58
  33. package/dist/{chunk-KIX3MA7U.js → chunk-UMSGEFQD.js} +5 -5
  34. package/dist/{chunk-4XVEETXR.js → chunk-VCIX2IXO.js} +5 -5
  35. package/dist/{chunk-MH22WJ5K.js → chunk-W7LO2ZV3.js} +13 -13
  36. package/dist/{chunk-XPHFVLP7.js → chunk-WMJQ27BP.js} +5 -5
  37. package/dist/{chunk-25RJ7YTB.js → chunk-XKZ6CBLA.js} +3 -3
  38. package/dist/{chunk-E3APO3ZG.js → chunk-Y3OWT3K2.js} +5 -5
  39. package/dist/{chunk-WHAYLZYB.js → chunk-YPGH7DN3.js} +58 -58
  40. package/dist/{chunk-FUUQ6FJ4.js → chunk-YXD4CJDK.js} +25 -17
  41. package/dist/{chunk-DNQ6ZL6Z.js → chunk-Z7NR37SC.js} +15 -15
  42. package/dist/cli/checkUnsupportedDataProxy.js +41 -40
  43. package/dist/cli/getGeneratorSuccessMessage.js +3 -3
  44. package/dist/cli/getSchema.js +46 -45
  45. package/dist/cli/getTypescriptVersion.js +2 -2
  46. package/dist/cli/hashes.js +41 -40
  47. package/dist/client/getClientEngineType.d.ts +2 -1
  48. package/dist/client/getClientEngineType.js +4 -4
  49. package/dist/convertCredentials.js +5 -4
  50. package/dist/engine-commands/errorHelpers.js +4 -4
  51. package/dist/engine-commands/formatSchema.js +40 -39
  52. package/dist/engine-commands/getConfig.js +12 -12
  53. package/dist/engine-commands/getDmmf.js +9 -9
  54. package/dist/engine-commands/getEngineVersion.js +8 -8
  55. package/dist/engine-commands/getEnginesMetaInfo.js +10 -10
  56. package/dist/engine-commands/index.js +51 -50
  57. package/dist/engine-commands/lintSchema.js +8 -8
  58. package/dist/engine-commands/mergeSchemas.js +9 -9
  59. package/dist/engine-commands/queryEngineCommons.js +6 -6
  60. package/dist/engine-commands/validate.js +9 -9
  61. package/dist/get-generators/generatorResolvers/generatorResolvers.js +40 -39
  62. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +3 -3
  63. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +40 -39
  64. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +3 -3
  65. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +41 -40
  66. package/dist/get-generators/getGenerators.js +43 -42
  67. package/dist/getPackedPackage.js +4 -4
  68. package/dist/index.d.ts +1 -0
  69. package/dist/index.js +94 -90
  70. package/dist/resolveBinary.js +7 -7
  71. package/dist/schemaEngineCommands.js +8 -8
  72. package/dist/sendPanic.js +40 -39
  73. package/dist/utils/cloudflareD1.js +4 -4
  74. package/dist/utils/fs-functional.js +10 -10
  75. package/dist/utils/fs-utils.js +8 -8
  76. package/dist/utils/getEnvPaths.js +40 -39
  77. package/dist/utils/getGitHubIssueUrl.js +4 -4
  78. package/dist/utils/getVersionFromPackageJson.js +3 -3
  79. package/dist/utils/handleEngineLoadingErrors.js +3 -3
  80. package/dist/utils/handlePanic.js +40 -39
  81. package/dist/utils/load.js +4 -4
  82. package/dist/utils/loadEnvFile.js +40 -39
  83. package/dist/utils/prismaPostgres.d.ts +3 -0
  84. package/dist/utils/prismaPostgres.js +27 -0
  85. package/dist/utils/prismaPostgres.test.d.ts +1 -0
  86. package/dist/utils/prismaPostgres.test.js +15 -0
  87. package/dist/wasm.js +4 -4
  88. package/package.json +19 -11
  89. package/dist/chunk-PPCNLYSB.js +0 -47
  90. package/dist/typescript-AILDXN3I.js +0 -205230
  91. package/dist/typescript-WN4QH2CP.js +0 -205192
@@ -26,18 +26,18 @@ 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_2DSKCK2V_exports = {};
30
- __export(chunk_2DSKCK2V_exports, {
29
+ var chunk_GEMQC6O2_exports = {};
30
+ __export(chunk_GEMQC6O2_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_2DSKCK2V_exports);
34
+ module.exports = __toCommonJS(chunk_GEMQC6O2_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_CXEMRKV4 = require("./chunk-CXEMRKV4.js");
37
- var import_chunk_KIX3MA7U = require("./chunk-KIX3MA7U.js");
36
+ var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
37
+ var import_chunk_UMSGEFQD = require("./chunk-UMSGEFQD.js");
38
38
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
39
- var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
40
- var import_chunk_4XVEETXR = require("./chunk-4XVEETXR.js");
39
+ var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
+ var import_chunk_VCIX2IXO = require("./chunk-VCIX2IXO.js");
41
41
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
42
42
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -48,7 +48,7 @@ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVW
48
48
  var debug = (0, import_debug.default)("prisma:getDMMF");
49
49
  var GetDmmfError = class extends Error {
50
50
  constructor(params) {
51
- const constructedErrorMessage = (0, import_chunk_25RJ7YTB.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
51
+ const constructedErrorMessage = (0, import_chunk_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
52
52
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
53
53
  return `${reason}
54
54
  ${errorCodeMessage}
@@ -60,12 +60,12 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: getDmmf]`;
63
- super((0, import_chunk_KIX3MA7U.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_UMSGEFQD.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "GetDmmfError";
65
65
  }
66
66
  };
67
67
  async function getDMMF(options) {
68
- const debugErrorType = (0, import_chunk_CXEMRKV4.createDebugErrorType)(debug, "getDmmfWasm");
68
+ const debugErrorType = (0, import_chunk_6TXVGFQA.createDebugErrorType)(debug, "getDmmfWasm");
69
69
  debug(`Using getDmmf Wasm`);
70
70
  const dmmfPipeline = (0, import_function.pipe)(
71
71
  (0, import_chunk_7MD6344A.tryCatch2)(
@@ -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_4XVEETXR.prismaSchemaWasm.debug_panic();
93
+ import_chunk_VCIX2IXO.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_4XVEETXR.prismaSchemaWasm.get_dmmf(params);
99
+ const data = import_chunk_VCIX2IXO.prismaSchemaWasm.get_dmmf(params);
100
100
  return data;
101
101
  },
102
102
  (e) => ({
@@ -129,7 +129,7 @@ async function getDMMF(options) {
129
129
  const { right: data } = dmmfEither;
130
130
  return Promise.resolve(data);
131
131
  }
132
- const error = (0, import_chunk_25RJ7YTB.z)(dmmfEither.left).with({ type: "read-datamodel-path" }, (e) => {
132
+ const error = (0, import_chunk_XKZ6CBLA.z)(dmmfEither.left).with({ type: "read-datamodel-path" }, (e) => {
133
133
  debugErrorType(e);
134
134
  return new GetDmmfError({
135
135
  _tag: "unparsed",
@@ -157,7 +157,7 @@ Datamodel path: "${e.datamodelPath}"`,
157
157
  return panic;
158
158
  }
159
159
  const errorOutput = e.error.message;
160
- return new GetDmmfError((0, import_chunk_CXEMRKV4.parseQueryEngineError)({ errorOutput, reason: e.reason }));
160
+ return new GetDmmfError((0, import_chunk_6TXVGFQA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
161
161
  }).with({ type: "parse-json" }, (e) => {
162
162
  debugErrorType(e);
163
163
  return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
@@ -16,21 +16,21 @@ 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_WLFXTRN5_exports = {};
20
- __export(chunk_WLFXTRN5_exports, {
19
+ var chunk_H7P6PFX4_exports = {};
20
+ __export(chunk_H7P6PFX4_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_WLFXTRN5_exports);
27
+ module.exports = __toCommonJS(chunk_H7P6PFX4_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_4XVEETXR = require("./chunk-4XVEETXR.js");
29
+ var import_chunk_VCIX2IXO = require("./chunk-VCIX2IXO.js");
30
30
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
31
31
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
32
32
  function lintSchema({ schemas }) {
33
- const lintResult = import_chunk_4XVEETXR.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_VCIX2IXO.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_HB2Q7X5H_exports = {};
20
+ __export(chunk_HB2Q7X5H_exports, {
21
+ PRISMA_POSTGRES_PROTOCOL: () => PRISMA_POSTGRES_PROTOCOL,
22
+ PRISMA_POSTGRES_PROVIDER: () => PRISMA_POSTGRES_PROVIDER,
23
+ isPrismaPostgres: () => isPrismaPostgres
24
+ });
25
+ module.exports = __toCommonJS(chunk_HB2Q7X5H_exports);
26
+ var PRISMA_POSTGRES_PROVIDER = "prisma+postgres";
27
+ var PRISMA_POSTGRES_PROTOCOL = `${PRISMA_POSTGRES_PROVIDER}:`;
28
+ function isPrismaPostgres(connectionString) {
29
+ return connectionString?.startsWith(`${PRISMA_POSTGRES_PROTOCOL}//`) ?? false;
30
+ }
@@ -16,18 +16,18 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_2XRDQCIA_exports = {};
20
- __export(chunk_2XRDQCIA_exports, {
19
+ var chunk_I7IEEULS_exports = {};
20
+ __export(chunk_I7IEEULS_exports, {
21
21
  loadLibrary: () => loadLibrary
22
22
  });
23
- module.exports = __toCommonJS(chunk_2XRDQCIA_exports);
24
- var import_chunk_N6K7M2HZ = require("./chunk-N6K7M2HZ.js");
23
+ module.exports = __toCommonJS(chunk_I7IEEULS_exports);
24
+ var import_chunk_DZYINYAA = require("./chunk-DZYINYAA.js");
25
25
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
26
26
  function loadLibrary(id, platformInfo) {
27
27
  try {
28
28
  return (0, import_chunk_WWAWV7DQ.__require)(id);
29
29
  } catch (e) {
30
- const errorMessage = (0, import_chunk_N6K7M2HZ.handleLibraryLoadingErrors)({
30
+ const errorMessage = (0, import_chunk_DZYINYAA.handleLibraryLoadingErrors)({
31
31
  e,
32
32
  platformInfo,
33
33
  id
@@ -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_EKBX4J6O_exports = {};
20
- __export(chunk_EKBX4J6O_exports, {
19
+ var chunk_IWJ2BUYF_exports = {};
20
+ __export(chunk_IWJ2BUYF_exports, {
21
21
  getEngineVersion: () => getEngineVersion,
22
22
  safeGetEngineVersion: () => safeGetEngineVersion
23
23
  });
24
- module.exports = __toCommonJS(chunk_EKBX4J6O_exports);
25
- var import_chunk_2XRDQCIA = require("./chunk-2XRDQCIA.js");
24
+ module.exports = __toCommonJS(chunk_IWJ2BUYF_exports);
25
+ var import_chunk_I7IEEULS = require("./chunk-I7IEEULS.js");
26
26
  var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
27
- var import_chunk_QJZIYUVB = require("./chunk-QJZIYUVB.js");
27
+ var import_chunk_NXIWDQBF = require("./chunk-NXIWDQBF.js");
28
28
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
29
29
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
30
30
  var import_engines = require("@prisma/engines");
@@ -35,11 +35,11 @@ async function getEngineVersion(enginePath, binaryName) {
35
35
  if (!binaryName) {
36
36
  binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
37
37
  }
38
- enginePath = await (0, import_chunk_QJZIYUVB.resolveBinary)(binaryName, enginePath);
38
+ enginePath = await (0, import_chunk_NXIWDQBF.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)();
42
- const QE = (0, import_chunk_2XRDQCIA.loadLibrary)(enginePath, platformInfo);
42
+ const QE = (0, import_chunk_I7IEEULS.loadLibrary)(enginePath, platformInfo);
43
43
  return `${import_fetch_engine.BinaryType.QueryEngineLibrary} ${QE.version().commit}`;
44
44
  } else {
45
45
  const { stdout } = await (0, import_execa.default)(enginePath, ["--version"]);
@@ -26,11 +26,11 @@ 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_BONFK27U_exports = {};
30
- __export(chunk_BONFK27U_exports, {
29
+ var chunk_J7ZPY2XA_exports = {};
30
+ __export(chunk_J7ZPY2XA_exports, {
31
31
  getTypescriptVersion: () => getTypescriptVersion
32
32
  });
33
- module.exports = __toCommonJS(chunk_BONFK27U_exports);
33
+ module.exports = __toCommonJS(chunk_J7ZPY2XA_exports);
34
34
  async function getProcessObject() {
35
35
  try {
36
36
  return await import("node:process");
@@ -40,7 +40,7 @@ async function getProcessObject() {
40
40
  }
41
41
  async function getTypescriptVersion() {
42
42
  try {
43
- return (await import("./typescript-WN4QH2CP.js")).default.version;
43
+ return (await import("typescript")).default.version;
44
44
  } catch (_) {
45
45
  return (await getProcessObject())?.versions.typescript || "unknown";
46
46
  }
@@ -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_GH5ML3FF_exports = {};
20
- __export(chunk_GH5ML3FF_exports, {
19
+ var chunk_K7RKBI4P_exports = {};
20
+ __export(chunk_K7RKBI4P_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_GH5ML3FF_exports);
23
+ module.exports = __toCommonJS(chunk_K7RKBI4P_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
  esbuild: "0.24.2",
70
70
  "escape-string-regexp": "4.0.0",
71
71
  execa: "5.1.1",
72
- "fast-glob": "3.3.2",
72
+ "fast-glob": "3.3.3",
73
73
  "find-up": "5.0.0",
74
74
  "fp-ts": "2.16.9",
75
75
  "fs-extra": "11.1.1",
@@ -91,7 +91,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
91
91
  "p-map": "4.0.0",
92
92
  "read-package-up": "11.0.0",
93
93
  "replace-string": "3.1.0",
94
- resolve: "1.22.8",
94
+ resolve: "1.22.10",
95
95
  "string-width": "4.2.3",
96
96
  "strip-ansi": "6.0.1",
97
97
  "strip-indent": "3.0.0",
@@ -100,7 +100,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
100
100
  "terminal-link": "2.1.1",
101
101
  tmp: "0.2.3",
102
102
  "ts-node": "10.9.2",
103
- "ts-pattern": "5.6.0",
103
+ "ts-pattern": "5.6.2",
104
104
  "ts-toolbelt": "9.6.0",
105
105
  typescript: "5.4.5",
106
106
  yarn: "1.22.22"
@@ -111,11 +111,19 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
111
111
  "@prisma/fetch-engine": "workspace:*",
112
112
  "@prisma/generator-helper": "workspace:*",
113
113
  "@prisma/get-platform": "workspace:*",
114
- "@prisma/prisma-schema-wasm": "6.3.0-13.1635fdddbcd54b9f4b16ffcd9eb726b58d5408da",
114
+ "@prisma/prisma-schema-wasm": "6.3.0-18.integration-fix-aws-cli-version-18e9d973d7789a29d6b3c801dc30cb76c45ee0e0",
115
115
  "@prisma/schema-files-loader": "workspace:*",
116
116
  arg: "5.0.2",
117
117
  prompts: "2.4.2"
118
118
  },
119
+ peerDependencies: {
120
+ typescript: ">=5.1.0"
121
+ },
122
+ peerDependenciesMeta: {
123
+ typescript: {
124
+ optional: true
125
+ }
126
+ },
119
127
  sideEffects: false
120
128
  };
121
129
  }
@@ -26,13 +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_X4U4GLWH_exports = {};
30
- __export(chunk_X4U4GLWH_exports, {
29
+ var chunk_KRWS7JB4_exports = {};
30
+ __export(chunk_KRWS7JB4_exports, {
31
31
  credentialsToUri: () => credentialsToUri,
32
32
  protocolToConnectorType: () => protocolToConnectorType,
33
33
  uriToCredentials: () => uriToCredentials
34
34
  });
35
- module.exports = __toCommonJS(chunk_X4U4GLWH_exports);
35
+ module.exports = __toCommonJS(chunk_KRWS7JB4_exports);
36
+ var import_chunk_HB2Q7X5H = require("./chunk-HB2Q7X5H.js");
36
37
  var import_path = __toESM(require("path"));
37
38
  var NodeURL = __toESM(require("url"));
38
39
  function credentialsToUri(credentials) {
@@ -151,7 +152,7 @@ function protocolToConnectorType(protocol) {
151
152
  switch (protocol) {
152
153
  case "postgresql:":
153
154
  case "postgres:":
154
- case "prisma+postgres:":
155
+ case import_chunk_HB2Q7X5H.PRISMA_POSTGRES_PROTOCOL:
155
156
  return "postgresql";
156
157
  case "mongodb+srv:":
157
158
  case "mongodb:":
@@ -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_YU7EBOUS_exports = {};
30
- __export(chunk_YU7EBOUS_exports, {
29
+ var chunk_L7IGBD7G_exports = {};
30
+ __export(chunk_L7IGBD7G_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_YU7EBOUS_exports);
36
- var import_chunk_GH5ML3FF = require("./chunk-GH5ML3FF.js");
35
+ module.exports = __toCommonJS(chunk_L7IGBD7G_exports);
36
+ var import_chunk_K7RKBI4P = require("./chunk-K7RKBI4P.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_GH5ML3FF.require_package)();
45
+ var { dependencies } = (0, import_chunk_K7RKBI4P.require_package)();
46
46
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
@@ -26,17 +26,17 @@ 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_QJZIYUVB_exports = {};
30
- __export(chunk_QJZIYUVB_exports, {
29
+ var chunk_NXIWDQBF_exports = {};
30
+ __export(chunk_NXIWDQBF_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_QJZIYUVB_exports);
38
- var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
37
+ module.exports = __toCommonJS(chunk_NXIWDQBF_exports);
39
38
  var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
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");
42
42
  var import_chunk_TZCE3PWZ = require("./chunk-TZCE3PWZ.js");
@@ -26,18 +26,18 @@ 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_EMTIYECY_exports = {};
30
- __export(chunk_EMTIYECY_exports, {
29
+ var chunk_O5KI7246_exports = {};
30
+ __export(chunk_O5KI7246_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_EMTIYECY_exports);
34
+ module.exports = __toCommonJS(chunk_O5KI7246_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_CXEMRKV4 = require("./chunk-CXEMRKV4.js");
37
- var import_chunk_33LHUSHN = require("./chunk-33LHUSHN.js");
36
+ var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
37
+ var import_chunk_6XND2ZQY = require("./chunk-6XND2ZQY.js");
38
38
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
39
- var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
40
- var import_chunk_YU7EBOUS = require("./chunk-YU7EBOUS.js");
39
+ var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
+ var import_chunk_L7IGBD7G = require("./chunk-L7IGBD7G.js");
41
41
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
42
42
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -48,7 +48,7 @@ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVW
48
48
  var debug = (0, import_debug.default)("prisma:getDMMF");
49
49
  var GetDmmfError = class extends Error {
50
50
  constructor(params) {
51
- const constructedErrorMessage = (0, import_chunk_25RJ7YTB.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
51
+ const constructedErrorMessage = (0, import_chunk_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
52
52
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
53
53
  return `${reason}
54
54
  ${errorCodeMessage}
@@ -60,12 +60,12 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: getDmmf]`;
63
- super((0, import_chunk_33LHUSHN.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_6XND2ZQY.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "GetDmmfError";
65
65
  }
66
66
  };
67
67
  async function getDMMF(options) {
68
- const debugErrorType = (0, import_chunk_CXEMRKV4.createDebugErrorType)(debug, "getDmmfWasm");
68
+ const debugErrorType = (0, import_chunk_6TXVGFQA.createDebugErrorType)(debug, "getDmmfWasm");
69
69
  debug(`Using getDmmf Wasm`);
70
70
  const dmmfPipeline = (0, import_function.pipe)(
71
71
  (0, import_chunk_7MD6344A.tryCatch2)(
@@ -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_YU7EBOUS.prismaSchemaWasm.debug_panic();
93
+ import_chunk_L7IGBD7G.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_YU7EBOUS.prismaSchemaWasm.get_dmmf(params);
99
+ const data = import_chunk_L7IGBD7G.prismaSchemaWasm.get_dmmf(params);
100
100
  return data;
101
101
  },
102
102
  (e) => ({
@@ -129,7 +129,7 @@ async function getDMMF(options) {
129
129
  const { right: data } = dmmfEither;
130
130
  return Promise.resolve(data);
131
131
  }
132
- const error = (0, import_chunk_25RJ7YTB.z)(dmmfEither.left).with({ type: "read-datamodel-path" }, (e) => {
132
+ const error = (0, import_chunk_XKZ6CBLA.z)(dmmfEither.left).with({ type: "read-datamodel-path" }, (e) => {
133
133
  debugErrorType(e);
134
134
  return new GetDmmfError({
135
135
  _tag: "unparsed",
@@ -157,7 +157,7 @@ Datamodel path: "${e.datamodelPath}"`,
157
157
  return panic;
158
158
  }
159
159
  const errorOutput = e.error.message;
160
- return new GetDmmfError((0, import_chunk_CXEMRKV4.parseQueryEngineError)({ errorOutput, reason: e.reason }));
160
+ return new GetDmmfError((0, import_chunk_6TXVGFQA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
161
161
  }).with({ type: "parse-json" }, (e) => {
162
162
  debugErrorType(e);
163
163
  return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
@@ -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_3DMEILBC_exports = {};
30
- __export(chunk_3DMEILBC_exports, {
29
+ var chunk_OYLZC5OV_exports = {};
30
+ __export(chunk_OYLZC5OV_exports, {
31
31
  getEnginesInfo: () => getEnginesInfo,
32
32
  getEnginesMetaInfo: () => getEnginesMetaInfo,
33
33
  resolveEngine: () => resolveEngine
34
34
  });
35
- module.exports = __toCommonJS(chunk_3DMEILBC_exports);
35
+ module.exports = __toCommonJS(chunk_OYLZC5OV_exports);
36
36
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
37
- var import_chunk_EKBX4J6O = require("./chunk-EKBX4J6O.js");
38
- var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
39
- var import_chunk_QJZIYUVB = require("./chunk-QJZIYUVB.js");
37
+ var import_chunk_IWJ2BUYF = require("./chunk-IWJ2BUYF.js");
38
+ var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
39
+ var import_chunk_NXIWDQBF = require("./chunk-NXIWDQBF.js");
40
40
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
41
41
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
42
42
  var import_engines = require("@prisma/engines");
@@ -130,18 +130,18 @@ async function getEnginesMetaInfo() {
130
130
  }
131
131
  function getEnginesInfo(enginesInfo) {
132
132
  const errors = [];
133
- const resolved = (0, import_chunk_25RJ7YTB.z)(enginesInfo).with({ fromEnvVar: import_chunk_25RJ7YTB.N.when(isSome2) }, (_engineInfo) => {
133
+ const resolved = (0, import_chunk_XKZ6CBLA.z)(enginesInfo).with({ fromEnvVar: import_chunk_XKZ6CBLA.N.when(isSome2) }, (_engineInfo) => {
134
134
  return `, resolved by ${_engineInfo.fromEnvVar.value}`;
135
135
  }).otherwise(() => "");
136
- const absolutePath = (0, import_chunk_25RJ7YTB.z)(enginesInfo).with({ path: import_chunk_25RJ7YTB.N.when(import_chunk_7MD6344A.isRight) }, (_engineInfo) => {
136
+ const absolutePath = (0, import_chunk_XKZ6CBLA.z)(enginesInfo).with({ path: import_chunk_XKZ6CBLA.N.when(import_chunk_7MD6344A.isRight) }, (_engineInfo) => {
137
137
  return _engineInfo.path.right;
138
- }).with({ path: import_chunk_25RJ7YTB.N.when(import_chunk_7MD6344A.isLeft) }, (_engineInfo) => {
138
+ }).with({ path: import_chunk_XKZ6CBLA.N.when(import_chunk_7MD6344A.isLeft) }, (_engineInfo) => {
139
139
  errors.push(_engineInfo.path.left);
140
140
  return "E_CANNOT_RESOLVE_PATH";
141
141
  }).exhaustive();
142
- const version = (0, import_chunk_25RJ7YTB.z)(enginesInfo).with({ version: import_chunk_25RJ7YTB.N.when(import_chunk_7MD6344A.isRight) }, (_engineInfo) => {
142
+ const version = (0, import_chunk_XKZ6CBLA.z)(enginesInfo).with({ version: import_chunk_XKZ6CBLA.N.when(import_chunk_7MD6344A.isRight) }, (_engineInfo) => {
143
143
  return _engineInfo.version.right;
144
- }).with({ version: import_chunk_25RJ7YTB.N.when(import_chunk_7MD6344A.isLeft) }, (_engineInfo) => {
144
+ }).with({ version: import_chunk_XKZ6CBLA.N.when(import_chunk_7MD6344A.isLeft) }, (_engineInfo) => {
145
145
  errors.push(_engineInfo.version.left);
146
146
  return "E_CANNOT_RESOLVE_VERSION";
147
147
  }).exhaustive();
@@ -157,7 +157,7 @@ async function resolveEngine(binaryName) {
157
157
  const enginePathEither = await (0, import_function2.pipe)(
158
158
  pathFromEnvOption,
159
159
  fold(
160
- () => (0, import_chunk_QJZIYUVB.safeResolveBinary)(binaryName),
160
+ () => (0, import_chunk_NXIWDQBF.safeResolveBinary)(binaryName),
161
161
  (pathFromEnv) => (0, import_chunk_7MD6344A.right2)(pathFromEnv.path)
162
162
  )
163
163
  )();
@@ -165,7 +165,7 @@ async function resolveEngine(binaryName) {
165
165
  enginePathEither,
166
166
  import_chunk_7MD6344A.fromEither,
167
167
  (0, import_chunk_7MD6344A.chain)((enginePath) => {
168
- return (0, import_chunk_EKBX4J6O.safeGetEngineVersion)(enginePath, binaryName);
168
+ return (0, import_chunk_IWJ2BUYF.safeGetEngineVersion)(enginePath, binaryName);
169
169
  })
170
170
  )();
171
171
  const engineInfo = {
@@ -26,12 +26,12 @@ 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_KEBDP2C3_exports = {};
30
- __export(chunk_KEBDP2C3_exports, {
29
+ var chunk_PIPE5DSU_exports = {};
30
+ __export(chunk_PIPE5DSU_exports, {
31
31
  findPrismaClientDir: () => findPrismaClientDir
32
32
  });
33
- module.exports = __toCommonJS(chunk_KEBDP2C3_exports);
34
- var import_chunk_FUUQ6FJ4 = require("./chunk-FUUQ6FJ4.js");
33
+ module.exports = __toCommonJS(chunk_PIPE5DSU_exports);
34
+ var import_chunk_YXD4CJDK = require("./chunk-YXD4CJDK.js");
35
35
  var import_debug = __toESM(require("@prisma/debug"));
36
36
  var import_fs = __toESM(require("fs"));
37
37
  var import_path = __toESM(require("path"));
@@ -39,8 +39,8 @@ var debug = (0, import_debug.default)("prisma:generator");
39
39
  var realPath = import_fs.default.promises.realpath;
40
40
  async function findPrismaClientDir(baseDir) {
41
41
  const resolveOpts = { basedir: baseDir, preserveSymlinks: true };
42
- const CLIDir = await (0, import_chunk_FUUQ6FJ4.resolvePkg)("prisma", resolveOpts);
43
- const clientDir = await (0, import_chunk_FUUQ6FJ4.resolvePkg)("@prisma/client", resolveOpts);
42
+ const CLIDir = await (0, import_chunk_YXD4CJDK.resolvePkg)("prisma", resolveOpts);
43
+ const clientDir = await (0, import_chunk_YXD4CJDK.resolvePkg)("@prisma/client", resolveOpts);
44
44
  const resolvedClientDir = clientDir && await realPath(clientDir);
45
45
  debug("prismaCLIDir", CLIDir);
46
46
  debug("prismaClientDir", clientDir);
@@ -16,16 +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_CKNTB45N_exports = {};
20
- __export(chunk_CKNTB45N_exports, {
19
+ var chunk_QSAE23KV_exports = {};
20
+ __export(chunk_QSAE23KV_exports, {
21
21
  ClientEngineType: () => ClientEngineType,
22
22
  DEFAULT_CLIENT_ENGINE_TYPE: () => DEFAULT_CLIENT_ENGINE_TYPE,
23
23
  getClientEngineType: () => getClientEngineType
24
24
  });
25
- module.exports = __toCommonJS(chunk_CKNTB45N_exports);
25
+ module.exports = __toCommonJS(chunk_QSAE23KV_exports);
26
26
  var ClientEngineType = /* @__PURE__ */ ((ClientEngineType2) => {
27
27
  ClientEngineType2["Library"] = "library";
28
28
  ClientEngineType2["Binary"] = "binary";
29
+ ClientEngineType2["Client"] = "client";
29
30
  return ClientEngineType2;
30
31
  })(ClientEngineType || {});
31
32
  var DEFAULT_CLIENT_ENGINE_TYPE = "library";
@@ -36,6 +37,8 @@ function getClientEngineType(generatorConfig) {
36
37
  return "library";
37
38
  } else if (generatorConfig?.config.engineType === "binary") {
38
39
  return "binary";
40
+ } else if (generatorConfig?.config.engineType === "client") {
41
+ return "client";
39
42
  } else {
40
43
  return DEFAULT_CLIENT_ENGINE_TYPE;
41
44
  }
@@ -46,6 +49,8 @@ function getEngineTypeFromEnvVar() {
46
49
  return "library";
47
50
  } else if (engineType === "binary") {
48
51
  return "binary";
52
+ } else if (engineType === "client") {
53
+ return "client";
49
54
  } else {
50
55
  return void 0;
51
56
  }
@@ -26,13 +26,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_P6VBFLWR_exports = {};
30
- __export(chunk_P6VBFLWR_exports, {
29
+ var chunk_QVVSDACW_exports = {};
30
+ __export(chunk_QVVSDACW_exports, {
31
31
  getGeneratorSuccessMessage: () => getGeneratorSuccessMessage
32
32
  });
33
- module.exports = __toCommonJS(chunk_P6VBFLWR_exports);
33
+ module.exports = __toCommonJS(chunk_QVVSDACW_exports);
34
34
  var import_chunk_XYCIH36R = require("./chunk-XYCIH36R.js");
35
- var import_chunk_CKNTB45N = require("./chunk-CKNTB45N.js");
35
+ var import_chunk_QSAE23KV = require("./chunk-QSAE23KV.js");
36
36
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
37
37
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
38
38
  var import_path = __toESM(require("path"));
@@ -45,7 +45,7 @@ function getGeneratorSuccessMessage(generator, time) {
45
45
  function formatVersion(generator) {
46
46
  const version = generator.manifest?.version;
47
47
  if (generator.getProvider() === "prisma-client-js") {
48
- const engineType = (0, import_chunk_CKNTB45N.getClientEngineType)(generator.config);
48
+ const engineType = (0, import_chunk_QSAE23KV.getClientEngineType)(generator.config);
49
49
  let engineHint = "";
50
50
  if (generator.options?.noEngine) {
51
51
  engineHint = ", engine=none";