@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,8 +26,8 @@ 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_S3323RUL_exports = {};
30
- __export(chunk_S3323RUL_exports, {
29
+ var chunk_5RV3EMX6_exports = {};
30
+ __export(chunk_5RV3EMX6_exports, {
31
31
  createDirIfNotExists: () => createDirIfNotExists2,
32
32
  fs_functional_exports: () => fs_functional_exports,
33
33
  getFilesInDir: () => getFilesInDir2,
@@ -37,8 +37,8 @@ __export(chunk_S3323RUL_exports, {
37
37
  removeFile: () => removeFile,
38
38
  writeFile: () => writeFile2
39
39
  });
40
- module.exports = __toCommonJS(chunk_S3323RUL_exports);
41
- var import_chunk_E3APO3ZG = require("./chunk-E3APO3ZG.js");
40
+ module.exports = __toCommonJS(chunk_5RV3EMX6_exports);
41
+ var import_chunk_Y3OWT3K2 = require("./chunk-Y3OWT3K2.js");
42
42
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
43
43
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
44
44
  var import_promises = __toESM(require("fs/promises"));
@@ -3981,13 +3981,13 @@ var fs_functional_exports = {};
3981
3981
  });
3982
3982
  var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
3983
3983
  var TE = (0, import_chunk_WWAWV7DQ.__toESM)(require_TaskEither());
3984
- var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_E3APO3ZG.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
3985
- var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_E3APO3ZG.writeFile)(params), createTaggedSystemError("fs-write-file", params));
3986
- var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_E3APO3ZG.removeEmptyDirs)(dir), createTaggedSystemError("fs-remove-empty-dirs", { dir }));
3984
+ var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_Y3OWT3K2.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
3985
+ var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_Y3OWT3K2.writeFile)(params), createTaggedSystemError("fs-write-file", params));
3986
+ var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_Y3OWT3K2.removeEmptyDirs)(dir), createTaggedSystemError("fs-remove-empty-dirs", { dir }));
3987
3987
  var removeDir = (dir) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.rm(dir, { recursive: true }), createTaggedSystemError("fs-remove-dir", { dir })));
3988
3988
  var removeFile = (filePath) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.unlink(filePath), createTaggedSystemError("fs-remove-file", { filePath })));
3989
- var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_E3APO3ZG.getNestedFoldersInDir)(dir);
3990
- var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_E3APO3ZG.getFilesInDir)(dir, pattern);
3989
+ var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_Y3OWT3K2.getNestedFoldersInDir)(dir);
3990
+ var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_Y3OWT3K2.getFilesInDir)(dir, pattern);
3991
3991
  function createTaggedSystemError(type, meta) {
3992
3992
  return (e) => ({
3993
3993
  type,
@@ -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_2IPIBP5P_exports = {};
20
- __export(chunk_2IPIBP5P_exports, {
19
+ var chunk_6MSXEABD_exports = {};
20
+ __export(chunk_6MSXEABD_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_2IPIBP5P_exports);
23
+ module.exports = __toCommonJS(chunk_6MSXEABD_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) {
27
27
  module2.exports = {
28
28
  name: "@prisma/internals",
29
- version: "6.3.0-integration-studio-ux-refinements.2",
29
+ version: "6.3.0-integration-engines-6-3-0-18-integration-fix-aws-cli-version-18e9d973d7789a29d6b3c801dc30cb76c45ee0e0.1",
30
30
  description: "This package is intended for Prisma's internal use",
31
31
  main: "dist/index.js",
32
32
  types: "dist/index.d.ts",
@@ -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,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_CXEMRKV4_exports = {};
30
- __export(chunk_CXEMRKV4_exports, {
29
+ var chunk_6TXVGFQA_exports = {};
30
+ __export(chunk_6TXVGFQA_exports, {
31
31
  createDebugErrorType: () => createDebugErrorType,
32
32
  createSchemaValidationError: () => createSchemaValidationError,
33
33
  parseQueryEngineError: () => parseQueryEngineError,
34
34
  unlinkTempDatamodelPath: () => unlinkTempDatamodelPath
35
35
  });
36
- module.exports = __toCommonJS(chunk_CXEMRKV4_exports);
36
+ module.exports = __toCommonJS(chunk_6TXVGFQA_exports);
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
38
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
39
- var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
39
+ var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
40
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
41
41
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
42
42
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
@@ -72,12 +72,12 @@ function parseQueryEngineError({ errorOutput, reason }) {
72
72
  ),
73
73
  (0, import_chunk_7MD6344A.map)((errorOutputAsJSON) => {
74
74
  const defaultMessage = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)((0, import_chunk_C47SCASR.relativizePathInPSLError)(errorOutputAsJSON.message)));
75
- const getConfigErrorInit = (0, import_chunk_25RJ7YTB.z)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
75
+ const getConfigErrorInit = (0, import_chunk_XKZ6CBLA.z)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
76
76
  return {
77
77
  reason: createSchemaValidationError(reason),
78
78
  errorCode: eJSON.error_code
79
79
  };
80
- }).with({ error_code: import_chunk_25RJ7YTB.N.string }, (eJSON) => {
80
+ }).with({ error_code: import_chunk_XKZ6CBLA.N.string }, (eJSON) => {
81
81
  return {
82
82
  reason,
83
83
  errorCode: eJSON.error_code
@@ -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_33LHUSHN_exports = {};
20
- __export(chunk_33LHUSHN_exports, {
19
+ var chunk_6XND2ZQY_exports = {};
20
+ __export(chunk_6XND2ZQY_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_33LHUSHN_exports);
24
- var import_chunk_JAVGNR6X = require("./chunk-JAVGNR6X.js");
23
+ module.exports = __toCommonJS(chunk_6XND2ZQY_exports);
24
+ var import_chunk_FBFA2BX5 = require("./chunk-FBFA2BX5.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_JAVGNR6X.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_FBFA2BX5.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -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_QTXYAZFX_exports = {};
30
- __export(chunk_QTXYAZFX_exports, {
29
+ var chunk_AC6EAR56_exports = {};
30
+ __export(chunk_AC6EAR56_exports, {
31
31
  getGitHubIssueUrl: () => getGitHubIssueUrl,
32
32
  wouldYouLikeToCreateANewIssue: () => wouldYouLikeToCreateANewIssue
33
33
  });
34
- module.exports = __toCommonJS(chunk_QTXYAZFX_exports);
34
+ module.exports = __toCommonJS(chunk_AC6EAR56_exports);
35
35
  var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
36
- var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
36
+ var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
37
37
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
38
38
  var import_get_platform = require("@prisma/get-platform");
39
39
  var import_node_process = __toESM(require("node:process"));
@@ -379,7 +379,7 @@ function getGitHubIssueUrl({
379
379
  });
380
380
  }
381
381
  async function wouldYouLikeToCreateANewIssue(options) {
382
- const shouldCreateNewIssue = await (0, import_chunk_25RJ7YTB.z)(options.prompt).with(true, async () => {
382
+ const shouldCreateNewIssue = await (0, import_chunk_XKZ6CBLA.z)(options.prompt).with(true, async () => {
383
383
  const createNewIssueResponse = await (0, import_prompts.default)({
384
384
  type: "select",
385
385
  name: "value",
@@ -26,19 +26,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_W2OR5YUF_exports = {};
30
- __export(chunk_W2OR5YUF_exports, {
29
+ var chunk_ARRVEXOA_exports = {};
30
+ __export(chunk_ARRVEXOA_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_W2OR5YUF_exports);
34
+ module.exports = __toCommonJS(chunk_ARRVEXOA_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_CXEMRKV4 = require("./chunk-CXEMRKV4.js");
36
+ var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_KIX3MA7U = require("./chunk-KIX3MA7U.js");
38
+ var import_chunk_UMSGEFQD = require("./chunk-UMSGEFQD.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
- var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
41
- var import_chunk_4XVEETXR = require("./chunk-4XVEETXR.js");
40
+ var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
+ var import_chunk_VCIX2IXO = require("./chunk-VCIX2IXO.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  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:mergeSchemas");
49
49
  var MergeSchemasError = 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: mergeSchemas]`;
63
- super((0, import_chunk_KIX3MA7U.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_UMSGEFQD.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "MergeSchemasError";
65
65
  }
66
66
  };
67
67
  function mergeSchemas(options) {
68
- const debugErrorType = (0, import_chunk_CXEMRKV4.createDebugErrorType)(debug, "mergeSchemasWasm");
68
+ const debugErrorType = (0, import_chunk_6TXVGFQA.createDebugErrorType)(debug, "mergeSchemasWasm");
69
69
  debug(`Using mergeSchemas Wasm`);
70
70
  const mergeSchemasEither = (0, import_function.pipe)(
71
71
  (0, import_chunk_7MD6344A.tryCatch)(
@@ -73,7 +73,7 @@ function mergeSchemas(options) {
73
73
  const params = JSON.stringify({
74
74
  schema: options.schemas
75
75
  });
76
- return import_chunk_4XVEETXR.prismaSchemaWasm.merge_schemas(params);
76
+ return import_chunk_VCIX2IXO.prismaSchemaWasm.merge_schemas(params);
77
77
  },
78
78
  (e) => ({
79
79
  type: "wasm-error",
@@ -85,7 +85,7 @@ function mergeSchemas(options) {
85
85
  if ((0, import_chunk_7MD6344A.isRight)(mergeSchemasEither)) {
86
86
  return mergeSchemasEither.right;
87
87
  }
88
- const error = (0, import_chunk_25RJ7YTB.z)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
88
+ const error = (0, import_chunk_XKZ6CBLA.z)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
89
89
  debugErrorType(e);
90
90
  console.error("");
91
91
  if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
@@ -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_CXEMRKV4.parseQueryEngineError)({ errorOutput, reason: e.reason }));
111
+ return new MergeSchemasError((0, import_chunk_6TXVGFQA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
112
112
  }).exhaustive();
113
113
  throw error;
114
114
  }