@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.
- package/dist/{chunk-KKMREGHN.js → chunk-53LS3WUO.js} +143 -94
- package/dist/{chunk-S3323RUL.js → chunk-5RV3EMX6.js} +9 -9
- package/dist/{chunk-2IPIBP5P.js → chunk-6MSXEABD.js} +16 -8
- package/dist/{chunk-CXEMRKV4.js → chunk-6TXVGFQA.js} +6 -6
- package/dist/{chunk-33LHUSHN.js → chunk-6XND2ZQY.js} +5 -5
- package/dist/{chunk-QTXYAZFX.js → chunk-AC6EAR56.js} +5 -5
- package/dist/{chunk-W2OR5YUF.js → chunk-ARRVEXOA.js} +13 -13
- package/dist/{chunk-CZDIXJEO.js → chunk-B2T5HDW7.js} +257 -11
- package/dist/{chunk-RDX5FNEL.js → chunk-CDW4XDBW.js} +14 -14
- package/dist/{chunk-ABEQ2U6R.js → chunk-CLXZMHHE.js} +5 -5
- package/dist/{chunk-N6K7M2HZ.js → chunk-DZYINYAA.js} +5 -5
- package/dist/{chunk-5BYCRWVW.js → chunk-E5AXFEFV.js} +14 -14
- package/dist/{chunk-JAVGNR6X.js → chunk-FBFA2BX5.js} +5 -5
- package/dist/{chunk-TFSZCVKC.js → chunk-G4BGJ6IP.js} +5 -5
- package/dist/{chunk-2DSKCK2V.js → chunk-GEMQC6O2.js} +14 -14
- package/dist/{chunk-WLFXTRN5.js → chunk-H7P6PFX4.js} +5 -5
- package/dist/chunk-HB2Q7X5H.js +30 -0
- package/dist/{chunk-2XRDQCIA.js → chunk-I7IEEULS.js} +5 -5
- package/dist/{chunk-EKBX4J6O.js → chunk-IWJ2BUYF.js} +7 -7
- package/dist/{chunk-BONFK27U.js → chunk-J7ZPY2XA.js} +4 -4
- package/dist/{chunk-GH5ML3FF.js → chunk-K7RKBI4P.js} +15 -7
- package/dist/{chunk-X4U4GLWH.js → chunk-KRWS7JB4.js} +5 -4
- package/dist/{chunk-YU7EBOUS.js → chunk-L7IGBD7G.js} +5 -5
- package/dist/{chunk-QJZIYUVB.js → chunk-NXIWDQBF.js} +4 -4
- package/dist/{chunk-EMTIYECY.js → chunk-O5KI7246.js} +14 -14
- package/dist/{chunk-3DMEILBC.js → chunk-OYLZC5OV.js} +13 -13
- package/dist/{chunk-KEBDP2C3.js → chunk-PIPE5DSU.js} +6 -6
- package/dist/{chunk-CKNTB45N.js → chunk-QSAE23KV.js} +8 -3
- package/dist/{chunk-P6VBFLWR.js → chunk-QVVSDACW.js} +5 -5
- package/dist/{chunk-CHFPACOJ.js → chunk-RR2ONZZ7.js} +15 -15
- package/dist/{chunk-UPIULDLZ.js → chunk-SHJNE6T7.js} +8 -8
- package/dist/{chunk-H32RDGWV.js → chunk-TTNZ3VMV.js} +58 -58
- package/dist/{chunk-KIX3MA7U.js → chunk-UMSGEFQD.js} +5 -5
- package/dist/{chunk-4XVEETXR.js → chunk-VCIX2IXO.js} +5 -5
- package/dist/{chunk-MH22WJ5K.js → chunk-W7LO2ZV3.js} +13 -13
- package/dist/{chunk-XPHFVLP7.js → chunk-WMJQ27BP.js} +5 -5
- package/dist/{chunk-25RJ7YTB.js → chunk-XKZ6CBLA.js} +3 -3
- package/dist/{chunk-E3APO3ZG.js → chunk-Y3OWT3K2.js} +5 -5
- package/dist/{chunk-WHAYLZYB.js → chunk-YPGH7DN3.js} +58 -58
- package/dist/{chunk-FUUQ6FJ4.js → chunk-YXD4CJDK.js} +25 -17
- package/dist/{chunk-DNQ6ZL6Z.js → chunk-Z7NR37SC.js} +15 -15
- package/dist/cli/checkUnsupportedDataProxy.js +41 -40
- package/dist/cli/getGeneratorSuccessMessage.js +3 -3
- package/dist/cli/getSchema.js +46 -45
- package/dist/cli/getTypescriptVersion.js +2 -2
- package/dist/cli/hashes.js +41 -40
- package/dist/client/getClientEngineType.d.ts +2 -1
- package/dist/client/getClientEngineType.js +4 -4
- package/dist/convertCredentials.js +5 -4
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +40 -39
- package/dist/engine-commands/getConfig.js +12 -12
- package/dist/engine-commands/getDmmf.js +9 -9
- package/dist/engine-commands/getEngineVersion.js +8 -8
- package/dist/engine-commands/getEnginesMetaInfo.js +10 -10
- package/dist/engine-commands/index.js +51 -50
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +9 -9
- package/dist/engine-commands/queryEngineCommons.js +6 -6
- package/dist/engine-commands/validate.js +9 -9
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +40 -39
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +40 -39
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +41 -40
- package/dist/get-generators/getGenerators.js +43 -42
- package/dist/getPackedPackage.js +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +94 -90
- package/dist/resolveBinary.js +7 -7
- package/dist/schemaEngineCommands.js +8 -8
- package/dist/sendPanic.js +40 -39
- package/dist/utils/cloudflareD1.js +4 -4
- package/dist/utils/fs-functional.js +10 -10
- package/dist/utils/fs-utils.js +8 -8
- package/dist/utils/getEnvPaths.js +40 -39
- package/dist/utils/getGitHubIssueUrl.js +4 -4
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handleEngineLoadingErrors.js +3 -3
- package/dist/utils/handlePanic.js +40 -39
- package/dist/utils/load.js +4 -4
- package/dist/utils/loadEnvFile.js +40 -39
- package/dist/utils/prismaPostgres.d.ts +3 -0
- package/dist/utils/prismaPostgres.js +27 -0
- package/dist/utils/prismaPostgres.test.d.ts +1 -0
- package/dist/utils/prismaPostgres.test.js +15 -0
- package/dist/wasm.js +4 -4
- package/package.json +19 -11
- package/dist/chunk-PPCNLYSB.js +0 -47
- package/dist/typescript-AILDXN3I.js +0 -205230
- 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
|
30
|
-
__export(
|
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(
|
41
|
-
var
|
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,
|
3985
|
-
var writeFile2 = (params) => TE.tryCatch(() => (0,
|
3986
|
-
var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0,
|
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,
|
3990
|
-
var getFilesInDir2 = (dir, pattern = "**") => () => (0,
|
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
|
20
|
-
__export(
|
19
|
+
var chunk_6MSXEABD_exports = {};
|
20
|
+
__export(chunk_6MSXEABD_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
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-
|
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.
|
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.
|
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.
|
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-
|
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
|
30
|
-
__export(
|
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(
|
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
|
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,
|
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:
|
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
|
20
|
-
__export(
|
19
|
+
var chunk_6XND2ZQY_exports = {};
|
20
|
+
__export(chunk_6XND2ZQY_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
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",
|
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
|
30
|
-
__export(
|
29
|
+
var chunk_AC6EAR56_exports = {};
|
30
|
+
__export(chunk_AC6EAR56_exports, {
|
31
31
|
getGitHubIssueUrl: () => getGitHubIssueUrl,
|
32
32
|
wouldYouLikeToCreateANewIssue: () => wouldYouLikeToCreateANewIssue
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_AC6EAR56_exports);
|
35
35
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
36
|
-
var
|
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,
|
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
|
30
|
-
__export(
|
29
|
+
var chunk_ARRVEXOA_exports = {};
|
30
|
+
__export(chunk_ARRVEXOA_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_ARRVEXOA_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
|
-
var
|
36
|
+
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
38
|
-
var
|
38
|
+
var import_chunk_UMSGEFQD = require("./chunk-UMSGEFQD.js");
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
40
|
-
var
|
41
|
-
var
|
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,
|
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,
|
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,
|
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
|
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,
|
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,
|
111
|
+
return new MergeSchemasError((0, import_chunk_6TXVGFQA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
112
112
|
}).exhaustive();
|
113
113
|
throw error;
|
114
114
|
}
|