@prisma/internals 5.23.0-dev.2 → 5.23.0-dev.20
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-5I4BOTBV.js → chunk-5MCWLJSR.js} +3 -9
- package/dist/{chunk-LIB5PV7H.js → chunk-6THUAMGB.js} +5 -5
- package/dist/{chunk-IABMG3F4.js → chunk-77IC3DNO.js} +5 -5
- package/dist/{chunk-5UACJAAB.js → chunk-7PI4C55S.js} +13 -13
- package/dist/{chunk-4M4LPJPC.js → chunk-BDGDNUIL.js} +5 -5
- package/dist/{chunk-WMIBAVWZ.js → chunk-C47SCASR.js} +5 -5
- package/dist/{chunk-INHGTPT5.js → chunk-CQSMDDKM.js} +14 -14
- package/dist/{chunk-J3JE5NVO.js → chunk-CZDIXJEO.js} +56 -32
- package/dist/{chunk-FKO4FDX3.js → chunk-DTEXPX36.js} +12 -12
- package/dist/{chunk-SOG4ASAQ.js → chunk-EBU6N6T4.js} +6 -6
- package/dist/{chunk-PKY5WEUF.js → chunk-G5ET5ITV.js} +13 -13
- package/dist/{chunk-4ILHL6B6.js → chunk-H7DE4ZVH.js} +5 -5
- package/dist/{chunk-7NNOHWLC.js → chunk-HMF3VL6Z.js} +61 -172
- package/dist/{chunk-OSOXVAZB.js → chunk-HPF5G47V.js} +9 -9
- package/dist/{chunk-IAEMHQAC.js → chunk-I4467NNA.js} +5 -5
- package/dist/{chunk-DI7BWNGL.js → chunk-K6DMP57P.js} +5 -5
- package/dist/{chunk-7CTC3RVJ.js → chunk-KKG2ZZJE.js} +5 -5
- package/dist/{chunk-4NFLAUKD.js → chunk-KQOJB3ZW.js} +70 -70
- package/dist/{chunk-QEVSPE5U.js → chunk-LHLIU6FO.js} +5 -5
- package/dist/{chunk-3U2ANLD3.js → chunk-MGZOEY6N.js} +6 -6
- package/dist/{chunk-BQTOCOYU.js → chunk-NBU7LQCG.js} +5 -5
- package/dist/{chunk-SZKPXBSP.js → chunk-OTU7IKOX.js} +12 -12
- package/dist/{chunk-MJPMCOCJ.js → chunk-QADJGXRG.js} +61 -172
- package/dist/{chunk-CSRUIX22.js → chunk-RQ3C6TME.js} +11 -11
- package/dist/{chunk-KH4RKPJH.js → chunk-RUUX4JI7.js} +14 -14
- package/dist/{chunk-IXEZUAGW.js → chunk-S34YTBDJ.js} +5 -5
- package/dist/{chunk-FTS2IEWX.js → chunk-S57RMXZW.js} +5 -5
- package/dist/{chunk-XLYQ6PQW.js → chunk-SLBBRUQS.js} +15 -15
- package/dist/{chunk-WCRKL55L.js → chunk-V2ZF7ETH.js} +7 -7
- package/dist/{chunk-PK7HIANT.js → chunk-VEODS3ZR.js} +5 -5
- package/dist/{chunk-YDZVEVUG.js → chunk-VRT7T6MF.js} +73 -73
- package/dist/{chunk-ISIFDTAX.js → chunk-ZBCEU6ZR.js} +11 -11
- package/dist/{chunk-ZA3RMW2P.js → chunk-ZKAW5JSN.js} +5 -8
- package/dist/cli/checkUnsupportedDataProxy.js +25 -25
- package/dist/cli/getSchema.js +30 -30
- package/dist/cli/hashes.js +25 -25
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +24 -24
- package/dist/engine-commands/getConfig.js +12 -12
- package/dist/engine-commands/getDmmf.js +9 -9
- package/dist/engine-commands/index.js +33 -33
- 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/relativizePathInPSLError.js +2 -2
- package/dist/engine-commands/validate.js +9 -9
- package/dist/errorReporting.js +6 -6
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +24 -24
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +24 -24
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +25 -25
- package/dist/get-generators/getGenerators.js +27 -27
- package/dist/getPackedPackage.js +2 -2
- package/dist/index.js +58 -58
- package/dist/{multipart-parser-LCETWFPE.js → multipart-parser-32AROPTR.js} +9 -6
- package/dist/sendPanic.js +24 -24
- package/dist/utils/cloudflareD1.js +2 -2
- package/dist/utils/getCommandWithExecutor.js +3 -3
- package/dist/utils/getEnvPaths.js +24 -24
- package/dist/utils/getGitHubIssueUrl.js +3 -3
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +24 -24
- package/dist/utils/isCurrentBinInstalledGlobally.d.ts +1 -1
- package/dist/utils/isCurrentBinInstalledGlobally.js +2 -2
- package/dist/utils/loadEnvFile.js +24 -24
- package/dist/wasm.js +4 -4
- package/package.json +9 -9
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.d.ts +0 -9
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +0 -132
|
@@ -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
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_5MCWLJSR_exports = {};
|
|
30
|
+
__export(chunk_5MCWLJSR_exports, {
|
|
31
31
|
isCurrentBinInstalledGlobally: () => isCurrentBinInstalledGlobally
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_5MCWLJSR_exports);
|
|
34
34
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
35
35
|
var import_fs = __toESM(require("fs"));
|
|
36
36
|
var require_ini = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
@@ -286,16 +286,10 @@ var import_global_dirs = (0, import_chunk_WWAWV7DQ.__toESM)(require_global_dirs(
|
|
|
286
286
|
function isCurrentBinInstalledGlobally() {
|
|
287
287
|
try {
|
|
288
288
|
const realPrismaPath = import_fs.default.realpathSync(process.argv[1]);
|
|
289
|
-
const usingGlobalYarn = realPrismaPath.indexOf(import_global_dirs.default.yarn.packages) === 0;
|
|
290
289
|
const usingGlobalNpm = realPrismaPath.indexOf(import_fs.default.realpathSync(import_global_dirs.default.npm.packages)) === 0;
|
|
291
290
|
if (usingGlobalNpm) {
|
|
292
291
|
return "npm";
|
|
293
292
|
}
|
|
294
|
-
if (usingGlobalYarn) {
|
|
295
|
-
return "yarn";
|
|
296
|
-
} else {
|
|
297
|
-
false;
|
|
298
|
-
}
|
|
299
293
|
} catch (e) {
|
|
300
294
|
}
|
|
301
295
|
return false;
|
|
@@ -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_6THUAMGB_exports = {};
|
|
20
|
+
__export(chunk_6THUAMGB_exports, {
|
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_6THUAMGB_exports);
|
|
24
|
+
var import_chunk_H7DE4ZVH = require("./chunk-H7DE4ZVH.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_H7DE4ZVH.version]];
|
|
28
28
|
return `${message}
|
|
29
29
|
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
|
@@ -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_77IC3DNO_exports = {};
|
|
20
|
+
__export(chunk_77IC3DNO_exports, {
|
|
21
21
|
runPackageCmd: () => runPackageCmd
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_77IC3DNO_exports);
|
|
24
|
+
var import_chunk_MGZOEY6N = require("./chunk-MGZOEY6N.js");
|
|
25
25
|
var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
|
|
26
26
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
27
27
|
var import_execa = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_7XNZDY2V.require_execa)());
|
|
28
28
|
async function runPackageCmd(cwd, cmd, ...args) {
|
|
29
|
-
await import_execa.default.command(await (0,
|
|
29
|
+
await import_execa.default.command(await (0, import_chunk_MGZOEY6N.getPackageCmd)(cwd, cmd, ...args), {
|
|
30
30
|
// we skip this because we are already in the generator
|
|
31
31
|
env: { PRISMA_SKIP_POSTINSTALL_GENERATE: "true" },
|
|
32
32
|
stdio: "inherit",
|
|
@@ -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_7PI4C55S_exports = {};
|
|
30
|
+
__export(chunk_7PI4C55S_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_7PI4C55S_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
36
|
+
var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
|
|
37
|
+
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
38
|
+
var import_chunk_6THUAMGB = require("./chunk-6THUAMGB.js");
|
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
40
40
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_LHLIU6FO = require("./chunk-LHLIU6FO.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");
|
|
@@ -52,7 +52,7 @@ var ValidateError = class extends Error {
|
|
|
52
52
|
const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
|
|
53
53
|
return `${reason}
|
|
54
54
|
${errorCodeMessage}
|
|
55
|
-
${(0,
|
|
55
|
+
${(0, import_chunk_C47SCASR.relativizePathInPSLError)(message)}`;
|
|
56
56
|
}).with({ _tag: "unparsed" }, ({ message, reason }) => {
|
|
57
57
|
const detailsHeader = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)("Details:"));
|
|
58
58
|
return `${reason}
|
|
@@ -60,25 +60,25 @@ ${detailsHeader} ${message}`;
|
|
|
60
60
|
}).exhaustive();
|
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
62
62
|
[Context: validate]`;
|
|
63
|
-
super((0,
|
|
63
|
+
super((0, import_chunk_6THUAMGB.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
64
64
|
this.name = "ValidateError";
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
function validate(options) {
|
|
68
|
-
const debugErrorType = (0,
|
|
68
|
+
const debugErrorType = (0, import_chunk_I4467NNA.createDebugErrorType)(debug, "validateWasm");
|
|
69
69
|
debug(`Using validate Wasm`);
|
|
70
70
|
const validateEither = (0, import_function.pipe)(
|
|
71
71
|
(0, import_chunk_7MD6344A.tryCatch)(
|
|
72
72
|
() => {
|
|
73
73
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
74
74
|
debug("Triggering a Rust panic...");
|
|
75
|
-
|
|
75
|
+
import_chunk_LHLIU6FO.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
|
-
|
|
81
|
+
import_chunk_LHLIU6FO.prismaSchemaWasm.validate(params);
|
|
82
82
|
},
|
|
83
83
|
(e) => ({
|
|
84
84
|
type: "wasm-error",
|
|
@@ -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,
|
|
116
|
+
return new ValidateError((0, import_chunk_I4467NNA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
117
117
|
}).exhaustive();
|
|
118
118
|
throw error;
|
|
119
119
|
}
|
|
@@ -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
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_BDGDNUIL_exports = {};
|
|
20
|
+
__export(chunk_BDGDNUIL_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(
|
|
27
|
+
module.exports = __toCommonJS(chunk_BDGDNUIL_exports);
|
|
28
28
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
29
|
-
var
|
|
29
|
+
var import_chunk_LHLIU6FO = require("./chunk-LHLIU6FO.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 =
|
|
33
|
+
const lintResult = import_chunk_LHLIU6FO.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
|
34
34
|
const lintDiagnostics = JSON.parse(lintResult);
|
|
35
35
|
return lintDiagnostics;
|
|
36
36
|
}
|
|
@@ -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
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_C47SCASR_exports = {};
|
|
30
|
+
__export(chunk_C47SCASR_exports, {
|
|
31
31
|
relativizePathInPSLError: () => relativizePathInPSLError
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_C47SCASR_exports);
|
|
34
|
+
var import_node_path = __toESM(require("node:path"));
|
|
35
35
|
function relativizePathInPSLError(error) {
|
|
36
|
-
return error.replaceAll(process.cwd() +
|
|
36
|
+
return error.replaceAll(process.cwd() + import_node_path.default.sep, "");
|
|
37
37
|
}
|
|
@@ -26,22 +26,22 @@ 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_CQSMDDKM_exports = {};
|
|
30
|
+
__export(chunk_CQSMDDKM_exports, {
|
|
31
31
|
GetConfigError: () => GetConfigError,
|
|
32
32
|
getConfig: () => getConfig,
|
|
33
33
|
getDirectUrl: () => getDirectUrl,
|
|
34
34
|
getEffectiveUrl: () => getEffectiveUrl,
|
|
35
35
|
resolveUrl: () => resolveUrl
|
|
36
36
|
});
|
|
37
|
-
module.exports = __toCommonJS(
|
|
37
|
+
module.exports = __toCommonJS(chunk_CQSMDDKM_exports);
|
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
39
|
+
var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
|
|
40
|
+
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
41
|
+
var import_chunk_6THUAMGB = require("./chunk-6THUAMGB.js");
|
|
42
42
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
43
43
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
44
|
-
var
|
|
44
|
+
var import_chunk_LHLIU6FO = require("./chunk-LHLIU6FO.js");
|
|
45
45
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
46
46
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
|
47
47
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
|
|
|
65
65
|
}).exhaustive();
|
|
66
66
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
67
67
|
[Context: getConfig]`;
|
|
68
|
-
super((0,
|
|
68
|
+
super((0, import_chunk_6THUAMGB.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
69
69
|
this.name = "GetConfigError";
|
|
70
70
|
}
|
|
71
71
|
};
|
|
@@ -83,14 +83,14 @@ function resolveUrl(envValue) {
|
|
|
83
83
|
return urlFromValue ?? urlEnvVarValue;
|
|
84
84
|
}
|
|
85
85
|
async function getConfig(options) {
|
|
86
|
-
const debugErrorType = (0,
|
|
86
|
+
const debugErrorType = (0, import_chunk_I4467NNA.createDebugErrorType)(debug, "getConfigWasm");
|
|
87
87
|
debug(`Using getConfig Wasm`);
|
|
88
88
|
const configEither = (0, import_function.pipe)(
|
|
89
89
|
(0, import_chunk_7MD6344A.tryCatch)(
|
|
90
90
|
() => {
|
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
|
92
92
|
debug("Triggering a Rust panic...");
|
|
93
|
-
|
|
93
|
+
import_chunk_LHLIU6FO.prismaSchemaWasm.debug_panic();
|
|
94
94
|
}
|
|
95
95
|
const params = JSON.stringify({
|
|
96
96
|
prismaSchema: options.datamodel,
|
|
@@ -98,7 +98,7 @@ async function getConfig(options) {
|
|
|
98
98
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
|
99
99
|
env: process.env
|
|
100
100
|
});
|
|
101
|
-
const data =
|
|
101
|
+
const data = import_chunk_LHLIU6FO.prismaSchemaWasm.get_config(params);
|
|
102
102
|
return data;
|
|
103
103
|
},
|
|
104
104
|
(e) => ({
|
|
@@ -160,12 +160,12 @@ async function getConfig(options) {
|
|
|
160
160
|
return panic;
|
|
161
161
|
}
|
|
162
162
|
const errorOutput = e.error.message;
|
|
163
|
-
return new GetConfigError((0,
|
|
163
|
+
return new GetConfigError((0, import_chunk_I4467NNA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
164
164
|
}).with({ type: "validation-error" }, (e) => {
|
|
165
165
|
return new GetConfigError({
|
|
166
166
|
_tag: "parsed",
|
|
167
167
|
errorCode: SCHEMA_VALIDATION_ERROR_CODE,
|
|
168
|
-
reason: (0,
|
|
168
|
+
reason: (0, import_chunk_I4467NNA.createSchemaValidationError)(e.reason),
|
|
169
169
|
message: formatErrors(e.error)
|
|
170
170
|
});
|
|
171
171
|
}).otherwise((e) => {
|
|
@@ -195,7 +195,7 @@ async function resolveBinaryTargets(generator) {
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
function formatErrors(errors) {
|
|
198
|
-
const formattedErrors = errors.map((e) => (0,
|
|
198
|
+
const formattedErrors = errors.map((e) => (0, import_chunk_C47SCASR.relativizePathInPSLError)(e.message)).join("\n\n");
|
|
199
199
|
const errorCount = `Validation Error Count: ${errors.length}`;
|
|
200
200
|
return `${formattedErrors}
|
|
201
201
|
${errorCount}`;
|
|
@@ -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_CZDIXJEO_exports = {};
|
|
30
|
+
__export(chunk_CZDIXJEO_exports, {
|
|
31
31
|
getPackedPackage: () => getPackedPackage,
|
|
32
32
|
readPackageUp: () => readPackageUp,
|
|
33
33
|
require_glob: () => require_glob,
|
|
@@ -35,7 +35,7 @@ __export(chunk_J3JE5NVO_exports, {
|
|
|
35
35
|
require_minimatch: () => require_minimatch,
|
|
36
36
|
require_p_map: () => require_p_map
|
|
37
37
|
});
|
|
38
|
-
module.exports = __toCommonJS(
|
|
38
|
+
module.exports = __toCommonJS(chunk_CZDIXJEO_exports);
|
|
39
39
|
var import_chunk_FUUQ6FJ4 = require("./chunk-FUUQ6FJ4.js");
|
|
40
40
|
var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
|
|
41
41
|
var import_chunk_T5RACBRF = require("./chunk-T5RACBRF.js");
|
|
@@ -46,16 +46,16 @@ var import_chunk_H4J2FN2W = require("./chunk-H4J2FN2W.js");
|
|
|
46
46
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
47
47
|
var import_fs = __toESM(require("fs"));
|
|
48
48
|
var import_path = __toESM(require("path"));
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var import_promises = __toESM(require("fs/promises"));
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var import_promises2 = __toESM(require("fs/promises"));
|
|
57
|
-
var
|
|
58
|
-
var
|
|
49
|
+
var import_node_path = __toESM(require("node:path"));
|
|
50
|
+
var import_node_process = __toESM(require("node:process"));
|
|
51
|
+
var import_promises = __toESM(require("node:fs/promises"));
|
|
52
|
+
var import_node_url = require("node:url");
|
|
53
|
+
var import_node_fs = __toESM(require("node:fs"));
|
|
54
|
+
var import_node_path2 = __toESM(require("node:path"));
|
|
55
|
+
var import_node_fs2 = __toESM(require("node:fs"));
|
|
56
|
+
var import_promises2 = __toESM(require("node:fs/promises"));
|
|
57
|
+
var import_node_path3 = __toESM(require("node:path"));
|
|
58
|
+
var import_node_url2 = require("node:url");
|
|
59
59
|
var require_lib2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
60
60
|
"../../node_modules/.pnpm/npm-normalize-package-bin@2.0.0/node_modules/npm-normalize-package-bin/lib/index.js"(exports, module2) {
|
|
61
61
|
"use strict";
|
|
@@ -804,6 +804,7 @@ var require_minimatch = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
804
804
|
continue;
|
|
805
805
|
}
|
|
806
806
|
switch (c) {
|
|
807
|
+
/* istanbul ignore next */
|
|
807
808
|
case "/": {
|
|
808
809
|
return false;
|
|
809
810
|
}
|
|
@@ -815,6 +816,8 @@ var require_minimatch = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
815
816
|
clearStateChar();
|
|
816
817
|
escaping = true;
|
|
817
818
|
continue;
|
|
819
|
+
// the various stateChar values
|
|
820
|
+
// for the "extglob" stuff.
|
|
818
821
|
case "?":
|
|
819
822
|
case "*":
|
|
820
823
|
case "+":
|
|
@@ -889,6 +892,7 @@ var require_minimatch = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
889
892
|
}
|
|
890
893
|
continue;
|
|
891
894
|
}
|
|
895
|
+
// these are mostly the same in regexp and glob
|
|
892
896
|
case "[":
|
|
893
897
|
clearStateChar();
|
|
894
898
|
if (inClass) {
|
|
@@ -1869,6 +1873,7 @@ var require_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1869
1873
|
}
|
|
1870
1874
|
var prefix;
|
|
1871
1875
|
switch (n) {
|
|
1876
|
+
// if not, then this is rather simple
|
|
1872
1877
|
case pattern.length:
|
|
1873
1878
|
this._processSimple(pattern.join("/"), index);
|
|
1874
1879
|
return;
|
|
@@ -2030,6 +2035,7 @@ var require_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2030
2035
|
GlobSync.prototype._readdirError = function(f, er) {
|
|
2031
2036
|
switch (er.code) {
|
|
2032
2037
|
case "ENOTSUP":
|
|
2038
|
+
// https://github.com/isaacs/node-glob/issues/205
|
|
2033
2039
|
case "ENOTDIR":
|
|
2034
2040
|
var abs = this._makeAbs(f);
|
|
2035
2041
|
this.cache[abs] = "FILE";
|
|
@@ -2041,6 +2047,7 @@ var require_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2041
2047
|
}
|
|
2042
2048
|
break;
|
|
2043
2049
|
case "ENOENT":
|
|
2050
|
+
// not terribly unusual
|
|
2044
2051
|
case "ELOOP":
|
|
2045
2052
|
case "ENAMETOOLONG":
|
|
2046
2053
|
case "UNKNOWN":
|
|
@@ -2484,6 +2491,7 @@ var require_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2484
2491
|
}
|
|
2485
2492
|
var prefix;
|
|
2486
2493
|
switch (n) {
|
|
2494
|
+
// if not, then this is rather simple
|
|
2487
2495
|
case pattern.length:
|
|
2488
2496
|
this._processSimple(pattern.join("/"), index, cb);
|
|
2489
2497
|
return;
|
|
@@ -2673,6 +2681,7 @@ var require_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2673
2681
|
return;
|
|
2674
2682
|
switch (er.code) {
|
|
2675
2683
|
case "ENOTSUP":
|
|
2684
|
+
// https://github.com/isaacs/node-glob/issues/205
|
|
2676
2685
|
case "ENOTDIR":
|
|
2677
2686
|
var abs = this._makeAbs(f);
|
|
2678
2687
|
this.cache[abs] = "FILE";
|
|
@@ -2685,6 +2694,7 @@ var require_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2685
2694
|
}
|
|
2686
2695
|
break;
|
|
2687
2696
|
case "ENOENT":
|
|
2697
|
+
// not terribly unusual
|
|
2688
2698
|
case "ELOOP":
|
|
2689
2699
|
case "ENAMETOOLONG":
|
|
2690
2700
|
case "UNKNOWN":
|
|
@@ -5327,6 +5337,8 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5327
5337
|
this.inc("patch", identifier, identifierBase);
|
|
5328
5338
|
this.inc("pre", identifier, identifierBase);
|
|
5329
5339
|
break;
|
|
5340
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
5341
|
+
// prepatch.
|
|
5330
5342
|
case "prerelease":
|
|
5331
5343
|
if (this.prerelease.length === 0) {
|
|
5332
5344
|
this.inc("patch", identifier, identifierBase);
|
|
@@ -5354,6 +5366,8 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5354
5366
|
}
|
|
5355
5367
|
this.prerelease = [];
|
|
5356
5368
|
break;
|
|
5369
|
+
// This probably shouldn't be used publicly.
|
|
5370
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
5357
5371
|
case "pre": {
|
|
5358
5372
|
const base = Number(identifierBase) ? 1 : 0;
|
|
5359
5373
|
if (!identifier && identifierBase === false) {
|
|
@@ -9560,6 +9574,7 @@ var require_minimatch2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9560
9574
|
continue;
|
|
9561
9575
|
}
|
|
9562
9576
|
switch (c) {
|
|
9577
|
+
/* istanbul ignore next */
|
|
9563
9578
|
case "/": {
|
|
9564
9579
|
return false;
|
|
9565
9580
|
}
|
|
@@ -9567,6 +9582,8 @@ var require_minimatch2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9567
9582
|
clearStateChar();
|
|
9568
9583
|
escaping = true;
|
|
9569
9584
|
continue;
|
|
9585
|
+
// the various stateChar values
|
|
9586
|
+
// for the "extglob" stuff.
|
|
9570
9587
|
case "?":
|
|
9571
9588
|
case "*":
|
|
9572
9589
|
case "+":
|
|
@@ -9627,6 +9644,7 @@ var require_minimatch2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9627
9644
|
clearStateChar();
|
|
9628
9645
|
re += "|";
|
|
9629
9646
|
continue;
|
|
9647
|
+
// these are mostly the same in regexp and glob
|
|
9630
9648
|
case "[":
|
|
9631
9649
|
clearStateChar();
|
|
9632
9650
|
if (inClass) {
|
|
@@ -10168,6 +10186,7 @@ var require_sync2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10168
10186
|
}
|
|
10169
10187
|
var prefix;
|
|
10170
10188
|
switch (n) {
|
|
10189
|
+
// if not, then this is rather simple
|
|
10171
10190
|
case pattern.length:
|
|
10172
10191
|
this._processSimple(pattern.join("/"), index);
|
|
10173
10192
|
return;
|
|
@@ -10329,6 +10348,7 @@ var require_sync2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10329
10348
|
GlobSync.prototype._readdirError = function(f, er) {
|
|
10330
10349
|
switch (er.code) {
|
|
10331
10350
|
case "ENOTSUP":
|
|
10351
|
+
// https://github.com/isaacs/node-glob/issues/205
|
|
10332
10352
|
case "ENOTDIR":
|
|
10333
10353
|
var abs = this._makeAbs(f);
|
|
10334
10354
|
this.cache[abs] = "FILE";
|
|
@@ -10340,6 +10360,7 @@ var require_sync2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10340
10360
|
}
|
|
10341
10361
|
break;
|
|
10342
10362
|
case "ENOENT":
|
|
10363
|
+
// not terribly unusual
|
|
10343
10364
|
case "ELOOP":
|
|
10344
10365
|
case "ENAMETOOLONG":
|
|
10345
10366
|
case "UNKNOWN":
|
|
@@ -10666,6 +10687,7 @@ var require_glob2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10666
10687
|
}
|
|
10667
10688
|
var prefix;
|
|
10668
10689
|
switch (n) {
|
|
10690
|
+
// if not, then this is rather simple
|
|
10669
10691
|
case pattern.length:
|
|
10670
10692
|
this._processSimple(pattern.join("/"), index, cb);
|
|
10671
10693
|
return;
|
|
@@ -10855,6 +10877,7 @@ var require_glob2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10855
10877
|
return;
|
|
10856
10878
|
switch (er.code) {
|
|
10857
10879
|
case "ENOTSUP":
|
|
10880
|
+
// https://github.com/isaacs/node-glob/issues/205
|
|
10858
10881
|
case "ENOTDIR":
|
|
10859
10882
|
var abs = this._makeAbs(f);
|
|
10860
10883
|
this.cache[abs] = "FILE";
|
|
@@ -10867,6 +10890,7 @@ var require_glob2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
10867
10890
|
}
|
|
10868
10891
|
break;
|
|
10869
10892
|
case "ENOENT":
|
|
10893
|
+
// not terribly unusual
|
|
10870
10894
|
case "ELOOP":
|
|
10871
10895
|
case "ENAMETOOLONG":
|
|
10872
10896
|
case "UNKNOWN":
|
|
@@ -11588,17 +11612,17 @@ var require_tempy = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
11588
11612
|
}
|
|
11589
11613
|
});
|
|
11590
11614
|
var import_npm_packlist = (0, import_chunk_WWAWV7DQ.__toESM)(require_lib5());
|
|
11591
|
-
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0,
|
|
11615
|
+
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
11592
11616
|
async function findUp(name, {
|
|
11593
|
-
cwd =
|
|
11617
|
+
cwd = import_node_process.default.cwd(),
|
|
11594
11618
|
type = "file",
|
|
11595
11619
|
stopAt
|
|
11596
11620
|
} = {}) {
|
|
11597
|
-
let directory =
|
|
11598
|
-
const { root } =
|
|
11599
|
-
stopAt =
|
|
11621
|
+
let directory = import_node_path2.default.resolve(toPath(cwd) ?? "");
|
|
11622
|
+
const { root } = import_node_path2.default.parse(directory);
|
|
11623
|
+
stopAt = import_node_path2.default.resolve(directory, toPath(stopAt ?? root));
|
|
11600
11624
|
while (directory && directory !== stopAt && directory !== root) {
|
|
11601
|
-
const filePath =
|
|
11625
|
+
const filePath = import_node_path2.default.isAbsolute(name) ? name : import_node_path2.default.join(directory, name);
|
|
11602
11626
|
try {
|
|
11603
11627
|
const stats = await import_promises.default.stat(filePath);
|
|
11604
11628
|
if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) {
|
|
@@ -11606,27 +11630,27 @@ async function findUp(name, {
|
|
|
11606
11630
|
}
|
|
11607
11631
|
} catch {
|
|
11608
11632
|
}
|
|
11609
|
-
directory =
|
|
11633
|
+
directory = import_node_path2.default.dirname(directory);
|
|
11610
11634
|
}
|
|
11611
11635
|
}
|
|
11612
11636
|
function findUpSync(name, {
|
|
11613
|
-
cwd =
|
|
11637
|
+
cwd = import_node_process.default.cwd(),
|
|
11614
11638
|
type = "file",
|
|
11615
11639
|
stopAt
|
|
11616
11640
|
} = {}) {
|
|
11617
|
-
let directory =
|
|
11618
|
-
const { root } =
|
|
11619
|
-
stopAt =
|
|
11641
|
+
let directory = import_node_path2.default.resolve(toPath(cwd) ?? "");
|
|
11642
|
+
const { root } = import_node_path2.default.parse(directory);
|
|
11643
|
+
stopAt = import_node_path2.default.resolve(directory, toPath(stopAt) ?? root);
|
|
11620
11644
|
while (directory && directory !== stopAt && directory !== root) {
|
|
11621
|
-
const filePath =
|
|
11645
|
+
const filePath = import_node_path2.default.isAbsolute(name) ? name : import_node_path2.default.join(directory, name);
|
|
11622
11646
|
try {
|
|
11623
|
-
const stats =
|
|
11647
|
+
const stats = import_node_fs.default.statSync(filePath, { throwIfNoEntry: false });
|
|
11624
11648
|
if (type === "file" && stats?.isFile() || type === "directory" && stats?.isDirectory()) {
|
|
11625
11649
|
return filePath;
|
|
11626
11650
|
}
|
|
11627
11651
|
} catch {
|
|
11628
11652
|
}
|
|
11629
|
-
directory =
|
|
11653
|
+
directory = import_node_path2.default.dirname(directory);
|
|
11630
11654
|
}
|
|
11631
11655
|
}
|
|
11632
11656
|
var import_code_frame = (0, import_chunk_WWAWV7DQ.__toESM)(require_lib7(), 1);
|
|
@@ -11728,9 +11752,9 @@ function parseJson(string, reviver, fileName) {
|
|
|
11728
11752
|
}
|
|
11729
11753
|
var import_normalize_package_data = (0, import_chunk_WWAWV7DQ.__toESM)(require_normalize(), 1);
|
|
11730
11754
|
function toPath2(urlOrPath) {
|
|
11731
|
-
return urlOrPath instanceof URL ? (0,
|
|
11755
|
+
return urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
11732
11756
|
}
|
|
11733
|
-
var getPackagePath = (cwd) =>
|
|
11757
|
+
var getPackagePath = (cwd) => import_node_path3.default.resolve(toPath2(cwd) ?? ".", "package.json");
|
|
11734
11758
|
var _readPackage = (file, normalize) => {
|
|
11735
11759
|
const json = typeof file === "string" ? parseJson(file) : file;
|
|
11736
11760
|
if (normalize) {
|
|
@@ -11743,7 +11767,7 @@ async function readPackage({ cwd, normalize = true } = {}) {
|
|
|
11743
11767
|
return _readPackage(packageFile, normalize);
|
|
11744
11768
|
}
|
|
11745
11769
|
function readPackageSync({ cwd, normalize = true } = {}) {
|
|
11746
|
-
const packageFile =
|
|
11770
|
+
const packageFile = import_node_fs2.default.readFileSync(getPackagePath(cwd), "utf8");
|
|
11747
11771
|
return _readPackage(packageFile, normalize);
|
|
11748
11772
|
}
|
|
11749
11773
|
async function readPackageUp(options) {
|
|
@@ -11752,7 +11776,7 @@ async function readPackageUp(options) {
|
|
|
11752
11776
|
return;
|
|
11753
11777
|
}
|
|
11754
11778
|
return {
|
|
11755
|
-
packageJson: await readPackage({ ...options, cwd:
|
|
11779
|
+
packageJson: await readPackage({ ...options, cwd: import_node_path.default.dirname(filePath) }),
|
|
11756
11780
|
path: filePath
|
|
11757
11781
|
};
|
|
11758
11782
|
}
|
|
@@ -11762,7 +11786,7 @@ function readPackageUpSync(options) {
|
|
|
11762
11786
|
return;
|
|
11763
11787
|
}
|
|
11764
11788
|
return {
|
|
11765
|
-
packageJson: readPackageSync({ ...options, cwd:
|
|
11789
|
+
packageJson: readPackageSync({ ...options, cwd: import_node_path.default.dirname(filePath) }),
|
|
11766
11790
|
path: filePath
|
|
11767
11791
|
};
|
|
11768
11792
|
}
|
|
@@ -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_DTEXPX36_exports = {};
|
|
30
|
+
__export(chunk_DTEXPX36_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_DTEXPX36_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
36
|
+
var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
|
|
37
|
+
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
38
|
+
var import_chunk_K6DMP57P = require("./chunk-K6DMP57P.js");
|
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
40
40
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_KKG2ZZJE = require("./chunk-KKG2ZZJE.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");
|
|
@@ -52,7 +52,7 @@ var MergeSchemasError = class extends Error {
|
|
|
52
52
|
const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
|
|
53
53
|
return `${reason}
|
|
54
54
|
${errorCodeMessage}
|
|
55
|
-
${(0,
|
|
55
|
+
${(0, import_chunk_C47SCASR.relativizePathInPSLError)(message)}`;
|
|
56
56
|
}).with({ _tag: "unparsed" }, ({ message, reason }) => {
|
|
57
57
|
const detailsHeader = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)("Details:"));
|
|
58
58
|
return `${reason}
|
|
@@ -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_K6DMP57P.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_I4467NNA.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_KKG2ZZJE.prismaSchemaWasm.merge_schemas(params);
|
|
77
77
|
},
|
|
78
78
|
(e) => ({
|
|
79
79
|
type: "wasm-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_I4467NNA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
112
112
|
}).exhaustive();
|
|
113
113
|
throw error;
|
|
114
114
|
}
|