@prisma/internals 6.6.0-integration-push-xmzqvqxpztks.11 → 6.6.0-integration-mcp.2
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/Generator.d.ts +5 -23
- package/dist/Generator.js +2 -4
- package/dist/{chunk-EPXBOIA5.js → chunk-2I3VYCA7.js} +5 -5
- package/dist/{chunk-2QTAK7KO.js → chunk-2LDG4PID.js} +5 -5
- package/dist/{chunk-JOIIWB3U.js → chunk-2LOGW45F.js} +68 -33
- package/dist/{chunk-KB5DKCI4.js → chunk-3GYXMWBM.js} +7 -7
- package/dist/{chunk-C36XBSRA.js → chunk-4KCLNFE4.js} +5 -5
- package/dist/{chunk-Y4ZCEXKJ.js → chunk-5CBAXTAF.js} +5 -5
- package/dist/chunk-72UZXEBG.js +28 -0
- package/dist/{chunk-2HN7FYKA.js → chunk-AP52B62F.js} +5 -5
- package/dist/{chunk-HG3YOAAE.js → chunk-AXD7KB4D.js} +5 -5
- package/dist/chunk-BWGDP6B5.js +4948 -0
- package/dist/chunk-DYV47NUW.js +796 -0
- package/dist/{chunk-BPDMLM32.js → chunk-DYVL6P7F.js} +13 -46
- package/dist/{chunk-DKSUHQGA.js → chunk-EKESIUIK.js} +7 -7
- package/dist/chunk-EUTJYQDW.js +46 -0
- package/dist/{chunk-3EGV6JCZ.js → chunk-FAPPXX7W.js} +8 -8
- package/dist/chunk-GHHABGYW.js +28 -0
- package/dist/{chunk-FJR5JRC2.js → chunk-GV244NDE.js} +7 -7
- package/dist/{chunk-D4VDA2TZ.js → chunk-IRWX4FCC.js} +6 -6
- package/dist/{chunk-IDINCQMN.js → chunk-IWTEX7EE.js} +9 -780
- package/dist/{chunk-NVNI2SRU.js → chunk-KNNTV7IN.js} +687 -213
- package/dist/{chunk-AO5ASZAS.js → chunk-LWBLVV7Y.js} +8 -8
- package/dist/{chunk-5AI4FIZ3.js → chunk-MEOOYUIZ.js} +10 -10
- package/dist/{chunk-TQFONRJP.js → chunk-MXAUURHG.js} +5 -5
- package/dist/chunk-OQ2NRV2Y.js +35 -0
- package/dist/{chunk-YNDF56XR.js → chunk-ORPBIAE5.js} +8 -8
- package/dist/{chunk-SHHALVIQ.js → chunk-OUQPIJFQ.js} +5 -5
- package/dist/chunk-PE6DXWOX.js +52 -0
- package/dist/{chunk-3BVB3DTJ.js → chunk-PING5S2U.js} +8 -8
- package/dist/{chunk-2R7JBGUP.js → chunk-PWGQKUJW.js} +200 -85
- package/dist/{chunk-CTAL72US.js → chunk-Q2IBLC6D.js} +5 -5
- package/dist/{chunk-XG33Y5QX.js → chunk-R45GQNKO.js} +200 -85
- package/dist/{chunk-MJIP3FY5.js → chunk-R4ZFFYJA.js} +238 -2502
- package/dist/{chunk-7UNYBZSU.js → chunk-RABVZXRU.js} +7 -7
- package/dist/{chunk-3DQANJMY.js → chunk-SAAMENIS.js} +7 -7
- package/dist/{chunk-57VS7LXW.js → chunk-SNSJWJTA.js} +5 -5
- package/dist/{chunk-YR5KNFKN.js → chunk-SUOMIRLO.js} +6 -6
- package/dist/{chunk-75BIJ5PX.js → chunk-UB2X7DGZ.js} +9 -9
- package/dist/{chunk-BWYO73FG.js → chunk-UFYFNNCN.js} +8 -8
- package/dist/{chunk-67I7CEQJ.js → chunk-URRVX2VQ.js} +6 -6
- package/dist/{chunk-FUC2LI24.js → chunk-VTJOX6HO.js} +5 -5
- package/dist/{chunk-EFNTOXMV.js → chunk-VYJSNZF3.js} +4 -3
- package/dist/{chunk-ETYWYJBX.js → chunk-WF5LZFJS.js} +12 -12
- package/dist/{chunk-7U7QD73Y.js → chunk-WOIJKMTZ.js} +8 -8
- package/dist/{chunk-D6EDE5WT.js → chunk-XMVJRTN5.js} +5 -5
- package/dist/{chunk-RSLFYIHN.js → chunk-XRBOJLES.js} +5 -4
- package/dist/cli/checkUnsupportedDataProxy.js +44 -37
- package/dist/cli/getSchema.js +47 -40
- package/dist/cli/hashes.js +44 -37
- package/dist/cli/schemaContext.js +44 -37
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +43 -36
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/getEngineVersion.js +7 -6
- package/dist/engine-commands/getEnginesMetaInfo.js +9 -8
- package/dist/engine-commands/index.js +54 -47
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +7 -7
- package/dist/engine-commands/validate.js +7 -7
- package/dist/errorReporting.js +6 -6
- package/dist/get-generators/generatorResolvers/generatorResolvers.d.ts +15 -0
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +139 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.d.ts +6 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +26 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.d.ts +9 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +26 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.d.ts +8 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +29 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.d.ts +6 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +139 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.d.ts +1 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +26 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.d.ts +20 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +26 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.d.ts +7 -0
- package/dist/{resolvePkg.js → get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.js} +6 -6
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.d.ts +1 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.js +17 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.d.ts +20 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +140 -0
- package/dist/get-generators/getGenerators.d.ts +9 -18
- package/dist/get-generators/getGenerators.js +46 -39
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -3
- package/dist/getPackedPackage.js +5 -4
- package/dist/index.d.ts +4 -2
- package/dist/index.js +87 -80
- package/dist/{multipart-parser-3AFJFP6K.js → multipart-parser-UV3WZSWW.js} +6 -6
- package/dist/resolveBinary.js +8 -7
- package/dist/schemaEngineCommands.js +10 -9
- package/dist/sendPanic.js +4 -4
- package/dist/utils/cloudflareD1.js +3 -3
- package/dist/utils/fs-functional.js +10 -10
- package/dist/utils/fs-utils.js +8 -8
- package/dist/utils/getEnvPaths.js +43 -36
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +5 -5
- package/dist/utils/loadEnvFile.js +43 -36
- package/dist/wasm.js +4 -4
- package/package.json +11 -10
- package/dist/resolvePkg.d.ts +0 -7
@@ -16,31 +16,34 @@ 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(
|
21
|
-
Generator: () => Generator
|
22
|
-
InProcessGenerator: () => InProcessGenerator,
|
23
|
-
JsonRpcGenerator: () => JsonRpcGenerator
|
19
|
+
var chunk_DYVL6P7F_exports = {};
|
20
|
+
__export(chunk_DYVL6P7F_exports, {
|
21
|
+
Generator: () => Generator
|
24
22
|
});
|
25
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_DYVL6P7F_exports);
|
26
24
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
27
25
|
var import_generator_helper = require("@prisma/generator-helper");
|
28
26
|
var Generator = class {
|
27
|
+
generatorProcess;
|
29
28
|
manifest = null;
|
30
29
|
config;
|
31
30
|
options;
|
32
|
-
constructor(config) {
|
31
|
+
constructor(executablePath, config, isNode) {
|
33
32
|
this.config = config;
|
33
|
+
this.generatorProcess = new import_generator_helper.GeneratorProcess(executablePath, { isNode });
|
34
34
|
}
|
35
35
|
async init() {
|
36
|
-
await this.
|
37
|
-
this.manifest = await this.getManifest();
|
36
|
+
await this.generatorProcess.init();
|
37
|
+
this.manifest = await this.generatorProcess.getManifest(this.config);
|
38
|
+
}
|
39
|
+
stop() {
|
40
|
+
this.generatorProcess.stop();
|
38
41
|
}
|
39
42
|
generate() {
|
40
43
|
if (!this.options) {
|
41
44
|
throw new Error(`Please first run .setOptions() on the Generator to initialize the options`);
|
42
45
|
}
|
43
|
-
return this.
|
46
|
+
return this.generatorProcess.generate(this.options);
|
44
47
|
}
|
45
48
|
setOptions(options) {
|
46
49
|
this.options = options;
|
@@ -67,39 +70,3 @@ var Generator = class {
|
|
67
70
|
return (0, import_chunk_IOIAK7V7.parseEnvValue)(this.config.provider);
|
68
71
|
}
|
69
72
|
};
|
70
|
-
var JsonRpcGenerator = class extends Generator {
|
71
|
-
#generatorProcess;
|
72
|
-
constructor(executablePath, config, isNode) {
|
73
|
-
super(config);
|
74
|
-
this.#generatorProcess = new import_generator_helper.GeneratorProcess(executablePath, { isNode });
|
75
|
-
}
|
76
|
-
async initImpl() {
|
77
|
-
await this.#generatorProcess.init();
|
78
|
-
}
|
79
|
-
async getManifest() {
|
80
|
-
return await this.#generatorProcess.getManifest(this.config);
|
81
|
-
}
|
82
|
-
async generateImpl(options) {
|
83
|
-
await this.#generatorProcess.generate(options);
|
84
|
-
}
|
85
|
-
stop() {
|
86
|
-
this.#generatorProcess.stop();
|
87
|
-
}
|
88
|
-
};
|
89
|
-
var InProcessGenerator = class extends Generator {
|
90
|
-
#generator;
|
91
|
-
constructor(config, generator) {
|
92
|
-
super(config);
|
93
|
-
this.#generator = generator;
|
94
|
-
}
|
95
|
-
async initImpl() {
|
96
|
-
}
|
97
|
-
async getManifest() {
|
98
|
-
return await this.#generator.getManifest(this.config);
|
99
|
-
}
|
100
|
-
async generateImpl(options) {
|
101
|
-
await this.#generator.generate(options);
|
102
|
-
}
|
103
|
-
stop() {
|
104
|
-
}
|
105
|
-
};
|
@@ -16,20 +16,20 @@ 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_EKESIUIK_exports = {};
|
20
|
+
__export(chunk_EKESIUIK_exports, {
|
21
21
|
SchemaEngineExitCode: () => SchemaEngineExitCode,
|
22
22
|
canConnectToDatabase: () => canConnectToDatabase,
|
23
23
|
createDatabase: () => createDatabase,
|
24
24
|
dropDatabase: () => dropDatabase,
|
25
25
|
execaCommand: () => execaCommand
|
26
26
|
});
|
27
|
-
module.exports = __toCommonJS(
|
28
|
-
var
|
29
|
-
var
|
27
|
+
module.exports = __toCommonJS(chunk_EKESIUIK_exports);
|
28
|
+
var import_chunk_WF5LZFJS = require("./chunk-WF5LZFJS.js");
|
29
|
+
var import_chunk_AXD7KB4D = require("./chunk-AXD7KB4D.js");
|
30
30
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
31
31
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
32
|
-
var import_execa = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
32
|
+
var import_execa = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_WF5LZFJS.require_execa)());
|
33
33
|
var SchemaEngineExitCode = /* @__PURE__ */ ((SchemaEngineExitCode2) => {
|
34
34
|
SchemaEngineExitCode2[SchemaEngineExitCode2["Success"] = 0] = "Success";
|
35
35
|
SchemaEngineExitCode2[SchemaEngineExitCode2["Error"] = 1] = "Error";
|
@@ -141,7 +141,7 @@ async function execaCommand({
|
|
141
141
|
schemaEnginePath,
|
142
142
|
engineCommandName
|
143
143
|
}) {
|
144
|
-
schemaEnginePath = schemaEnginePath || await (0,
|
144
|
+
schemaEnginePath = schemaEnginePath || await (0, import_chunk_AXD7KB4D.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
|
145
145
|
try {
|
146
146
|
return await (0, import_execa.default)(schemaEnginePath, ["cli", "--datasource", connectionString, engineCommandName], {
|
147
147
|
cwd,
|
@@ -0,0 +1,46 @@
|
|
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_EUTJYQDW_exports = {};
|
20
|
+
__export(chunk_EUTJYQDW_exports, {
|
21
|
+
semverLt: () => semverLt
|
22
|
+
});
|
23
|
+
module.exports = __toCommonJS(chunk_EUTJYQDW_exports);
|
24
|
+
function semverLt(a, b) {
|
25
|
+
const [major1, minor1, patch1] = a.split(".").map(Number);
|
26
|
+
const [major2, minor2, patch2] = b.split(".").map(Number);
|
27
|
+
if (major1 < major2) {
|
28
|
+
return true;
|
29
|
+
}
|
30
|
+
if (major1 > major2) {
|
31
|
+
return false;
|
32
|
+
}
|
33
|
+
if (minor1 < minor2) {
|
34
|
+
return true;
|
35
|
+
}
|
36
|
+
if (minor1 > minor2) {
|
37
|
+
return false;
|
38
|
+
}
|
39
|
+
if (patch1 < patch2) {
|
40
|
+
return true;
|
41
|
+
}
|
42
|
+
if (patch1 > patch2) {
|
43
|
+
return false;
|
44
|
+
}
|
45
|
+
return false;
|
46
|
+
}
|
@@ -26,20 +26,20 @@ 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_FAPPXX7W_exports = {};
|
30
|
+
__export(chunk_FAPPXX7W_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_FAPPXX7W_exports);
|
38
38
|
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
39
39
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
40
40
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
41
|
-
var
|
42
|
-
var
|
41
|
+
var import_chunk_AP52B62F = require("./chunk-AP52B62F.js");
|
42
|
+
var import_chunk_SNSJWJTA = require("./chunk-SNSJWJTA.js");
|
43
43
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
44
44
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
45
45
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
@@ -64,7 +64,7 @@ ${detailsHeader} ${message}`;
|
|
64
64
|
}).exhaustive();
|
65
65
|
const errorMessageWithContext = `${constructedErrorMessage}
|
66
66
|
[Context: getConfig]`;
|
67
|
-
super((0,
|
67
|
+
super((0, import_chunk_AP52B62F.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
68
68
|
this.name = "GetConfigError";
|
69
69
|
}
|
70
70
|
};
|
@@ -89,7 +89,7 @@ async function getConfig(options) {
|
|
89
89
|
() => {
|
90
90
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
91
91
|
debug("Triggering a Rust panic...");
|
92
|
-
|
92
|
+
import_chunk_SNSJWJTA.prismaSchemaWasm.debug_panic();
|
93
93
|
}
|
94
94
|
const params = JSON.stringify({
|
95
95
|
prismaSchema: options.datamodel,
|
@@ -97,7 +97,7 @@ async function getConfig(options) {
|
|
97
97
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
98
98
|
env: process.env
|
99
99
|
});
|
100
|
-
const data =
|
100
|
+
const data = import_chunk_SNSJWJTA.prismaSchemaWasm.get_config(params);
|
101
101
|
return data;
|
102
102
|
},
|
103
103
|
(e) => ({
|
@@ -0,0 +1,28 @@
|
|
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_GHHABGYW_exports = {};
|
20
|
+
__export(chunk_GHHABGYW_exports, {
|
21
|
+
isYarnUsed: () => isYarnUsed
|
22
|
+
});
|
23
|
+
module.exports = __toCommonJS(chunk_GHHABGYW_exports);
|
24
|
+
var import_chunk_BWGDP6B5 = require("./chunk-BWGDP6B5.js");
|
25
|
+
async function isYarnUsed(baseDir) {
|
26
|
+
const packageManager = await (0, import_chunk_BWGDP6B5.detect)({ cwd: baseDir, autoInstall: false, programmatic: true });
|
27
|
+
return packageManager === "yarn" || packageManager === "yarn@berry";
|
28
|
+
}
|
@@ -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_GV244NDE_exports = {};
|
30
|
+
__export(chunk_GV244NDE_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_GV244NDE_exports);
|
35
35
|
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
36
36
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
38
|
-
var
|
39
|
-
var
|
38
|
+
var import_chunk_AP52B62F = require("./chunk-AP52B62F.js");
|
39
|
+
var import_chunk_SNSJWJTA = require("./chunk-SNSJWJTA.js");
|
40
40
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
41
41
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
42
42
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
|
|
59
59
|
}).exhaustive();
|
60
60
|
const errorMessageWithContext = `${constructedErrorMessage}
|
61
61
|
[Context: mergeSchemas]`;
|
62
|
-
super((0,
|
62
|
+
super((0, import_chunk_AP52B62F.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
63
63
|
this.name = "MergeSchemasError";
|
64
64
|
}
|
65
65
|
};
|
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
|
|
72
72
|
const params = JSON.stringify({
|
73
73
|
schema: options.schemas
|
74
74
|
});
|
75
|
-
return
|
75
|
+
return import_chunk_SNSJWJTA.prismaSchemaWasm.merge_schemas(params);
|
76
76
|
},
|
77
77
|
(e) => ({
|
78
78
|
type: "wasm-error",
|
@@ -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
|
30
|
-
__export(
|
29
|
+
var chunk_IRWX4FCC_exports = {};
|
30
|
+
__export(chunk_IRWX4FCC_exports, {
|
31
31
|
locateLocalCloudflareD1: () => locateLocalCloudflareD1
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
33
|
+
module.exports = __toCommonJS(chunk_IRWX4FCC_exports);
|
34
34
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
35
|
-
var
|
35
|
+
var import_chunk_2LOGW45F = require("./chunk-2LOGW45F.js");
|
36
36
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
37
37
|
var import_node_path = __toESM(require("node:path"));
|
38
38
|
var import_node_process = __toESM(require("node:process"));
|
39
|
-
var import_fast_glob = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
40
|
-
var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
39
|
+
var import_fast_glob = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_2LOGW45F.require_out)());
|
40
|
+
var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_2LOGW45F.require_globby)());
|
41
41
|
var defaultD1DirPath = import_node_path.default.join(".wrangler", "state", "v3", "d1", "miniflare-D1DatabaseObject");
|
42
42
|
async function locateLocalCloudflareD1({ arg }) {
|
43
43
|
const cwd = import_node_process.default.cwd();
|