@prisma/internals 5.19.0-integration-feat-typed-sql.1 → 5.19.0-integration-feat-typed-sql.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/{chunk-TXN4P2UY.js → chunk-2MV6JFB4.js} +7 -7
- package/dist/{chunk-WO5ENZU5.js → chunk-2MWIMEFK.js} +7 -7
- package/dist/{chunk-EYOPVHNV.js → chunk-3L4K6SFM.js} +7 -7
- package/dist/{chunk-QL3K6JIN.js → chunk-3VLJQQOA.js} +5 -5
- package/dist/{chunk-7OGLT63S.js → chunk-4SZRVZQO.js} +5 -5
- package/dist/chunk-5XRQ7ONW.js +122 -0
- package/dist/{chunk-PN2OFBAO.js → chunk-AYHYONDC.js} +5 -5
- package/dist/{chunk-OEXSUUW2.js → chunk-BGFWFIPR.js} +5 -5
- package/dist/{chunk-2HHWV7NR.js → chunk-CQHQ4JUN.js} +8 -8
- package/dist/chunk-CSV3AVJ4.js +177 -0
- package/dist/{chunk-5ACIJBB4.js → chunk-GRUJOQGE.js} +8 -8
- package/dist/{chunk-YFTWQDWC.js → chunk-ICI3HEHW.js} +5 -5
- package/dist/{chunk-INKUPLJ6.js → chunk-IEVQOUVE.js} +8 -8
- package/dist/{chunk-U5T2ALDL.js → chunk-IINMWKBZ.js} +8 -8
- package/dist/chunk-JD6UDOYA.js +54 -0
- package/dist/{chunk-PAX5TFEC.js → chunk-JSFAZ43I.js} +8 -8
- package/dist/chunk-JXQEYT4S.js +110 -0
- package/dist/{chunk-EV4E5GN6.js → chunk-LNF7AUE3.js} +27 -27
- package/dist/chunk-LZIL2VER.js +166 -0
- package/dist/{chunk-LVR5RA7C.js → chunk-NJB3A2FL.js} +5 -4
- package/dist/{chunk-ULQYCMW4.js → chunk-NM7ATUD2.js} +32 -803
- package/dist/chunk-NRYEKFWP.js +96 -0
- package/dist/chunk-QIVUAERL.js +2202 -0
- package/dist/{chunk-5S6LK7V2.js → chunk-RFDXHMHL.js} +7 -7
- package/dist/{chunk-SQX67EBR.js → chunk-RH2QBFDQ.js} +5 -5
- package/dist/{chunk-3LVVD3OG.js → chunk-SD47M7EE.js} +5 -5
- package/dist/{chunk-EIEZZJYX.js → chunk-SMYEIQP2.js} +5 -5
- package/dist/{chunk-D7HXSF3S.js → chunk-SQ2IEXGU.js} +5 -5
- package/dist/{chunk-VNIE2AZB.js → chunk-TQCLUNM2.js} +4 -4
- package/dist/{chunk-HDWBT4CR.js → chunk-UFDOSVWQ.js} +4 -3
- package/dist/{chunk-NEEB3TIJ.js → chunk-WZYYLYEI.js} +5 -5
- package/dist/{chunk-VCLUGB7N.js → chunk-XIWZFSTR.js} +5 -5
- package/dist/{chunk-GHYJGM56.js → chunk-YHTJPMCB.js} +4 -4
- package/dist/{chunk-WLCAAW3G.js → chunk-YVSBIU6Z.js} +8 -8
- package/dist/cli/checkUnsupportedDataProxy.js +26 -25
- package/dist/cli/getSchema.js +31 -30
- package/dist/cli/hashes.js +26 -25
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +25 -24
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/getEngineVersion.js +5 -5
- package/dist/engine-commands/getEnginesMetaInfo.js +7 -7
- package/dist/engine-commands/index.js +36 -35
- 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/get-generators/generatorResolvers/generatorResolvers.js +25 -24
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +25 -24
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +25 -24
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +26 -25
- package/dist/get-generators/getGenerators.js +28 -27
- package/dist/highlight/highlight.js +5 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +67 -65
- package/dist/resolveBinary.js +7 -7
- package/dist/schemaEngineCommands.js +8 -8
- package/dist/sendPanic.js +25 -24
- package/dist/utils/getEnvPaths.js +25 -24
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +25 -24
- package/dist/utils/isValidJsIdentifier.d.ts +1 -0
- package/dist/utils/isValidJsIdentifier.js +25 -0
- package/dist/utils/loadEnvFile.js +25 -24
- package/dist/utils/missingDatasource.js +4 -4
- package/dist/utils/missingGeneratorMessage.js +6 -6
- package/dist/wasm.js +4 -4
- package/package.json +8 -7
|
@@ -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_2MV6JFB4_exports = {};
|
|
30
|
+
__export(chunk_2MV6JFB4_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_2MV6JFB4_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
36
|
var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
|
|
37
37
|
var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
|
|
38
|
-
var
|
|
38
|
+
var import_chunk_XIWZFSTR = require("./chunk-XIWZFSTR.js");
|
|
39
39
|
var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
|
|
40
40
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_WZYYLYEI = require("./chunk-WZYYLYEI.js");
|
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
43
43
|
var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
|
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
|
|
|
60
60
|
}).exhaustive();
|
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
62
62
|
[Context: mergeSchemas]`;
|
|
63
|
-
super((0,
|
|
63
|
+
super((0, import_chunk_XIWZFSTR.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
64
64
|
this.name = "MergeSchemasError";
|
|
65
65
|
}
|
|
66
66
|
};
|
|
@@ -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_WZYYLYEI.prismaSchemaWasm.merge_schemas(params);
|
|
77
77
|
},
|
|
78
78
|
(e) => ({
|
|
79
79
|
type: "wasm-error",
|
|
@@ -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_2MWIMEFK_exports = {};
|
|
20
|
+
__export(chunk_2MWIMEFK_exports, {
|
|
21
21
|
missingGeneratorMessage: () => missingGeneratorMessage,
|
|
22
22
|
missingModelMessage: () => missingModelMessage,
|
|
23
23
|
missingModelMessageMongoDB: () => missingModelMessageMongoDB
|
|
24
24
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
25
|
+
module.exports = __toCommonJS(chunk_2MWIMEFK_exports);
|
|
26
26
|
var import_chunk_L6GBFCXG = require("./chunk-L6GBFCXG.js");
|
|
27
|
-
var
|
|
27
|
+
var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
|
|
28
28
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
29
29
|
var missingGeneratorMessage = `
|
|
30
30
|
${(0, import_chunk_PG5FDKSF.blue)("info")} You don't have any generators defined in your ${(0, import_chunk_PG5FDKSF.bold)(
|
|
@@ -33,7 +33,7 @@ ${(0, import_chunk_PG5FDKSF.blue)("info")} You don't have any generators defined
|
|
|
33
33
|
You can define them like this:
|
|
34
34
|
|
|
35
35
|
${(0, import_chunk_PG5FDKSF.bold)(
|
|
36
|
-
(0,
|
|
36
|
+
(0, import_chunk_TQCLUNM2.highlightDatamodel)(`generator client {
|
|
37
37
|
provider = "prisma-client-js"
|
|
38
38
|
}`)
|
|
39
39
|
)}`;
|
|
@@ -44,7 +44,7 @@ You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your
|
|
|
44
44
|
You can define a model like this:
|
|
45
45
|
|
|
46
46
|
${(0, import_chunk_PG5FDKSF.bold)(
|
|
47
|
-
(0,
|
|
47
|
+
(0, import_chunk_TQCLUNM2.highlightDatamodel)(`model User {
|
|
48
48
|
id Int @id @default(autoincrement())
|
|
49
49
|
email String @unique
|
|
50
50
|
name String?
|
|
@@ -61,7 +61,7 @@ You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your
|
|
|
61
61
|
You can define a model like this:
|
|
62
62
|
|
|
63
63
|
${(0, import_chunk_PG5FDKSF.bold)(
|
|
64
|
-
(0,
|
|
64
|
+
(0, import_chunk_TQCLUNM2.highlightDatamodel)(`model User {
|
|
65
65
|
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
66
66
|
email String @unique
|
|
67
67
|
name String?
|
|
@@ -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_3L4K6SFM_exports = {};
|
|
30
|
+
__export(chunk_3L4K6SFM_exports, {
|
|
31
31
|
getEnginesInfo: () => getEnginesInfo,
|
|
32
32
|
getEnginesMetaInfo: () => getEnginesMetaInfo,
|
|
33
33
|
resolveEngine: () => resolveEngine
|
|
34
34
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
35
|
+
module.exports = __toCommonJS(chunk_3L4K6SFM_exports);
|
|
36
36
|
var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
|
|
37
|
-
var
|
|
37
|
+
var import_chunk_3VLJQQOA = require("./chunk-3VLJQQOA.js");
|
|
38
38
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
39
|
-
var
|
|
39
|
+
var import_chunk_JXQEYT4S = require("./chunk-JXQEYT4S.js");
|
|
40
40
|
var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
|
|
41
41
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
42
42
|
var import_engines = require("@prisma/engines");
|
|
@@ -157,7 +157,7 @@ async function resolveEngine(binaryName) {
|
|
|
157
157
|
const enginePathEither = await (0, import_function2.pipe)(
|
|
158
158
|
pathFromEnvOption,
|
|
159
159
|
fold(
|
|
160
|
-
() => (0,
|
|
160
|
+
() => (0, import_chunk_JXQEYT4S.safeResolveBinary)(binaryName),
|
|
161
161
|
(pathFromEnv) => (0, import_chunk_4A5ZK522.right2)(pathFromEnv.path)
|
|
162
162
|
)
|
|
163
163
|
)();
|
|
@@ -165,7 +165,7 @@ async function resolveEngine(binaryName) {
|
|
|
165
165
|
enginePathEither,
|
|
166
166
|
import_chunk_4A5ZK522.fromEither,
|
|
167
167
|
(0, import_chunk_4A5ZK522.chain)((enginePath) => {
|
|
168
|
-
return (0,
|
|
168
|
+
return (0, import_chunk_3VLJQQOA.safeGetEngineVersion)(enginePath, binaryName);
|
|
169
169
|
})
|
|
170
170
|
)();
|
|
171
171
|
const engineInfo = {
|
|
@@ -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_3VLJQQOA_exports = {};
|
|
20
|
+
__export(chunk_3VLJQQOA_exports, {
|
|
21
21
|
getEngineVersion: () => getEngineVersion,
|
|
22
22
|
safeGetEngineVersion: () => safeGetEngineVersion
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
24
|
+
module.exports = __toCommonJS(chunk_3VLJQQOA_exports);
|
|
25
25
|
var import_chunk_S4LINK5Y = require("./chunk-S4LINK5Y.js");
|
|
26
26
|
var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
|
|
27
|
-
var
|
|
27
|
+
var import_chunk_JXQEYT4S = require("./chunk-JXQEYT4S.js");
|
|
28
28
|
var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
|
|
29
29
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
30
30
|
var import_engines = require("@prisma/engines");
|
|
@@ -35,7 +35,7 @@ async function getEngineVersion(enginePath, binaryName) {
|
|
|
35
35
|
if (!binaryName) {
|
|
36
36
|
binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
|
|
37
37
|
}
|
|
38
|
-
enginePath = await (0,
|
|
38
|
+
enginePath = await (0, import_chunk_JXQEYT4S.resolveBinary)(binaryName, enginePath);
|
|
39
39
|
const platformInfo = await (0, import_get_platform.getPlatformInfo)();
|
|
40
40
|
if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
|
|
41
41
|
(0, import_get_platform.assertNodeAPISupported)();
|
|
@@ -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_4SZRVZQO_exports = {};
|
|
30
|
+
__export(chunk_4SZRVZQO_exports, {
|
|
31
31
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
|
32
32
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
|
|
33
33
|
wasm_exports: () => wasm_exports
|
|
34
34
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
36
|
-
var
|
|
35
|
+
module.exports = __toCommonJS(chunk_4SZRVZQO_exports);
|
|
36
|
+
var import_chunk_NJB3A2FL = require("./chunk-NJB3A2FL.js");
|
|
37
37
|
var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
|
|
38
38
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
39
39
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
|
@@ -42,6 +42,6 @@ var wasm_exports = {};
|
|
|
42
42
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
|
43
43
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
|
|
44
44
|
});
|
|
45
|
-
var { dependencies } = (0,
|
|
45
|
+
var { dependencies } = (0, import_chunk_NJB3A2FL.require_package)();
|
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var chunk_5XRQ7ONW_exports = {};
|
|
30
|
+
__export(chunk_5XRQ7ONW_exports, {
|
|
31
|
+
getBinaryPathsByVersion: () => getBinaryPathsByVersion
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(chunk_5XRQ7ONW_exports);
|
|
34
|
+
var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
|
|
35
|
+
var import_chunk_4CGPN5SR = require("./chunk-4CGPN5SR.js");
|
|
36
|
+
var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
|
|
37
|
+
var import_chunk_7B5PXS6N = require("./chunk-7B5PXS6N.js");
|
|
38
|
+
var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
|
|
39
|
+
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
40
|
+
var import_engines = require("@prisma/engines");
|
|
41
|
+
var import_fetch_engine = require("@prisma/fetch-engine");
|
|
42
|
+
var import_path = __toESM2(require("path"));
|
|
43
|
+
var import_fs_extra = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_QIVUAERL.require_lib)());
|
|
44
|
+
async function getBinaryPathsByVersion({
|
|
45
|
+
neededVersions,
|
|
46
|
+
binaryTarget,
|
|
47
|
+
version,
|
|
48
|
+
printDownloadProgress,
|
|
49
|
+
skipDownload,
|
|
50
|
+
binaryPathsOverride
|
|
51
|
+
}) {
|
|
52
|
+
const binaryPathsByVersion = /* @__PURE__ */ Object.create(null);
|
|
53
|
+
for (const currentVersion in neededVersions) {
|
|
54
|
+
binaryPathsByVersion[currentVersion] = {};
|
|
55
|
+
const neededVersion = neededVersions[currentVersion];
|
|
56
|
+
if (neededVersion.binaryTargets.length === 0) {
|
|
57
|
+
neededVersion.binaryTargets = [{ fromEnvVar: null, value: binaryTarget }];
|
|
58
|
+
}
|
|
59
|
+
if (process.env.NETLIFY) {
|
|
60
|
+
const isNodeMajor20OrUp = parseInt(process.versions.node.split(".")[0]) >= 20;
|
|
61
|
+
const awsRuntimeVersion = (0, import_chunk_2SDPW6AX.parseAWSNodejsRuntimeEnvVarVersion)();
|
|
62
|
+
const isRuntimeEnvVar20OrUp = awsRuntimeVersion && awsRuntimeVersion >= 20;
|
|
63
|
+
const isRuntimeEnvVar18OrDown = awsRuntimeVersion && awsRuntimeVersion <= 18;
|
|
64
|
+
const isRhelBinaryTarget1xInNeededVersions = neededVersion.binaryTargets.find(
|
|
65
|
+
(object) => object.value === "rhel-openssl-1.0.x"
|
|
66
|
+
);
|
|
67
|
+
const isRhelBinaryTarget3xInNeededVersions = neededVersion.binaryTargets.find(
|
|
68
|
+
(object) => object.value === "rhel-openssl-3.0.x"
|
|
69
|
+
);
|
|
70
|
+
if (!isRhelBinaryTarget3xInNeededVersions && (isNodeMajor20OrUp || isRuntimeEnvVar20OrUp) && !isRuntimeEnvVar18OrDown) {
|
|
71
|
+
neededVersion.binaryTargets.push({
|
|
72
|
+
fromEnvVar: null,
|
|
73
|
+
value: "rhel-openssl-3.0.x"
|
|
74
|
+
});
|
|
75
|
+
} else if (!isRhelBinaryTarget1xInNeededVersions) {
|
|
76
|
+
neededVersion.binaryTargets.push({
|
|
77
|
+
fromEnvVar: null,
|
|
78
|
+
value: "rhel-openssl-1.0.x"
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
let binaryTargetBaseDir = eval(`require('path').join(__dirname, '..')`);
|
|
83
|
+
if (version !== currentVersion) {
|
|
84
|
+
binaryTargetBaseDir = import_path.default.join(binaryTargetBaseDir, `./engines/${currentVersion}/`);
|
|
85
|
+
await (0, import_fs_extra.ensureDir)(binaryTargetBaseDir).catch((e) => console.error(e));
|
|
86
|
+
}
|
|
87
|
+
const binariesConfig = neededVersion.engines.reduce((acc, curr) => {
|
|
88
|
+
if (!binaryPathsOverride?.[curr]) {
|
|
89
|
+
acc[(0, import_chunk_4CGPN5SR.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
|
|
90
|
+
}
|
|
91
|
+
return acc;
|
|
92
|
+
}, /* @__PURE__ */ Object.create(null));
|
|
93
|
+
if (Object.values(binariesConfig).length > 0) {
|
|
94
|
+
const binaryTargets = neededVersion.binaryTargets.map(
|
|
95
|
+
(binaryTarget2) => binaryTarget2.value
|
|
96
|
+
);
|
|
97
|
+
const downloadParams = {
|
|
98
|
+
binaries: binariesConfig,
|
|
99
|
+
binaryTargets,
|
|
100
|
+
showProgress: typeof printDownloadProgress === "boolean" ? printDownloadProgress : true,
|
|
101
|
+
version: currentVersion && currentVersion !== "latest" ? currentVersion : import_engines.enginesVersion,
|
|
102
|
+
skipDownload
|
|
103
|
+
};
|
|
104
|
+
const binaryPathsWithEngineType = await (0, import_fetch_engine.download)(downloadParams);
|
|
105
|
+
const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_RS2R7COT.binaryTypeToEngineType);
|
|
106
|
+
binaryPathsByVersion[currentVersion] = binaryPaths;
|
|
107
|
+
}
|
|
108
|
+
if (binaryPathsOverride) {
|
|
109
|
+
const overrideEngines = Object.keys(binaryPathsOverride);
|
|
110
|
+
const enginesCoveredByOverride = neededVersion.engines.filter((engine) => overrideEngines.includes(engine));
|
|
111
|
+
if (enginesCoveredByOverride.length > 0) {
|
|
112
|
+
for (const engine of enginesCoveredByOverride) {
|
|
113
|
+
const enginePath = binaryPathsOverride[engine];
|
|
114
|
+
binaryPathsByVersion[currentVersion][engine] = {
|
|
115
|
+
[binaryTarget]: enginePath
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return binaryPathsByVersion;
|
|
122
|
+
}
|
|
@@ -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_AYHYONDC_exports = {};
|
|
20
|
+
__export(chunk_AYHYONDC_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(
|
|
27
|
+
module.exports = __toCommonJS(chunk_AYHYONDC_exports);
|
|
28
28
|
var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
|
|
29
|
-
var
|
|
29
|
+
var import_chunk_JXQEYT4S = require("./chunk-JXQEYT4S.js");
|
|
30
30
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
31
31
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
|
32
32
|
var import_execa = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_7XNZDY2V.require_execa)());
|
|
@@ -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_JXQEYT4S.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,
|
|
@@ -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_BGFWFIPR_exports = {};
|
|
20
|
+
__export(chunk_BGFWFIPR_exports, {
|
|
21
21
|
missingDatasource: () => missingDatasource
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_BGFWFIPR_exports);
|
|
24
24
|
var import_chunk_L6GBFCXG = require("./chunk-L6GBFCXG.js");
|
|
25
|
-
var
|
|
25
|
+
var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
|
|
26
26
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
27
27
|
var missingDatasource = `
|
|
28
28
|
You don't have any ${(0, import_chunk_PG5FDKSF.bold)("datasource")} defined in your ${(0, import_chunk_PG5FDKSF.bold)("schema.prisma")}.
|
|
29
29
|
You can define a datasource like this:
|
|
30
30
|
|
|
31
31
|
${(0, import_chunk_PG5FDKSF.bold)(
|
|
32
|
-
(0,
|
|
32
|
+
(0, import_chunk_TQCLUNM2.highlightDatamodel)(`datasource db {
|
|
33
33
|
provider = "postgresql"
|
|
34
34
|
url = env("DB_URL")
|
|
35
35
|
}`)
|
|
@@ -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_CQHQ4JUN_exports = {};
|
|
30
|
+
__export(chunk_CQHQ4JUN_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_CQHQ4JUN_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
36
|
var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
|
|
37
37
|
var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
|
|
38
|
-
var
|
|
38
|
+
var import_chunk_XIWZFSTR = require("./chunk-XIWZFSTR.js");
|
|
39
39
|
var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
|
|
40
40
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_WZYYLYEI = require("./chunk-WZYYLYEI.js");
|
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
43
43
|
var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
|
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
|
|
|
60
60
|
}).exhaustive();
|
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
62
62
|
[Context: validate]`;
|
|
63
|
-
super((0,
|
|
63
|
+
super((0, import_chunk_XIWZFSTR.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
64
64
|
this.name = "ValidateError";
|
|
65
65
|
}
|
|
66
66
|
};
|
|
@@ -72,13 +72,13 @@ function validate(options) {
|
|
|
72
72
|
() => {
|
|
73
73
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
74
74
|
debug("Triggering a Rust panic...");
|
|
75
|
-
|
|
75
|
+
import_chunk_WZYYLYEI.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_WZYYLYEI.prismaSchemaWasm.validate(params);
|
|
82
82
|
},
|
|
83
83
|
(e) => ({
|
|
84
84
|
type: "wasm-error",
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var chunk_CSV3AVJ4_exports = {};
|
|
30
|
+
__export(chunk_CSV3AVJ4_exports, {
|
|
31
|
+
getEnginesInfo: () => getEnginesInfo,
|
|
32
|
+
getEnginesMetaInfo: () => getEnginesMetaInfo,
|
|
33
|
+
resolveEngine: () => resolveEngine
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(chunk_CSV3AVJ4_exports);
|
|
36
|
+
var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
|
|
37
|
+
var import_chunk_JD6UDOYA = require("./chunk-JD6UDOYA.js");
|
|
38
|
+
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
39
|
+
var import_chunk_YHTJPMCB = require("./chunk-YHTJPMCB.js");
|
|
40
|
+
var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
|
|
41
|
+
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
42
|
+
var import_engines = require("@prisma/engines");
|
|
43
|
+
var import_fetch_engine = require("@prisma/fetch-engine");
|
|
44
|
+
var import_path = __toESM(require("path"));
|
|
45
|
+
var import_function2 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_QOTVZEEZ.require_function)());
|
|
46
|
+
var none2 = import_chunk_4A5ZK522.none;
|
|
47
|
+
var some2 = import_chunk_4A5ZK522.some;
|
|
48
|
+
var getRight = function(ma) {
|
|
49
|
+
return ma._tag === "Left" ? none2 : some2(ma.right);
|
|
50
|
+
};
|
|
51
|
+
var _map = function(fa, f) {
|
|
52
|
+
return (0, import_chunk_4A5ZK522.pipe)(fa, map(f));
|
|
53
|
+
};
|
|
54
|
+
var _ap = function(fab, fa) {
|
|
55
|
+
return (0, import_chunk_4A5ZK522.pipe)(fab, ap(fa));
|
|
56
|
+
};
|
|
57
|
+
var URI = "Option";
|
|
58
|
+
var map = function(f) {
|
|
59
|
+
return function(fa) {
|
|
60
|
+
return isNone(fa) ? none2 : some2(f(fa.value));
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
var Functor = {
|
|
64
|
+
URI,
|
|
65
|
+
map: _map
|
|
66
|
+
};
|
|
67
|
+
var as2 = (0, import_chunk_4A5ZK522.dual)(2, (0, import_chunk_4A5ZK522.as)(Functor));
|
|
68
|
+
var asUnit2 = (0, import_chunk_4A5ZK522.asUnit)(Functor);
|
|
69
|
+
var ap = function(fa) {
|
|
70
|
+
return function(fab) {
|
|
71
|
+
return isNone(fab) ? none2 : isNone(fa) ? none2 : some2(fab.value(fa.value));
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
var flatMap = /* @__PURE__ */ (0, import_chunk_4A5ZK522.dual)(2, function(ma, f) {
|
|
75
|
+
return isNone(ma) ? none2 : f(ma.value);
|
|
76
|
+
});
|
|
77
|
+
var Chain = {
|
|
78
|
+
URI,
|
|
79
|
+
map: _map,
|
|
80
|
+
ap: _ap,
|
|
81
|
+
chain: flatMap
|
|
82
|
+
};
|
|
83
|
+
var orElse = (0, import_chunk_4A5ZK522.dual)(2, function(self, that) {
|
|
84
|
+
return isNone(self) ? that() : self;
|
|
85
|
+
});
|
|
86
|
+
var fromEither2 = getRight;
|
|
87
|
+
var FromEither = {
|
|
88
|
+
URI,
|
|
89
|
+
fromEither: fromEither2
|
|
90
|
+
};
|
|
91
|
+
var isSome2 = import_chunk_4A5ZK522.isSome;
|
|
92
|
+
var isNone = function(fa) {
|
|
93
|
+
return fa._tag === "None";
|
|
94
|
+
};
|
|
95
|
+
var matchW = function(onNone, onSome) {
|
|
96
|
+
return function(ma) {
|
|
97
|
+
return isNone(ma) ? onNone() : onSome(ma.value);
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
var match = matchW;
|
|
101
|
+
var fold = match;
|
|
102
|
+
var tap2 = /* @__PURE__ */ (0, import_chunk_4A5ZK522.dual)(2, (0, import_chunk_4A5ZK522.tap)(Chain));
|
|
103
|
+
var tapEither2 = /* @__PURE__ */ (0, import_chunk_4A5ZK522.dual)(2, (0, import_chunk_4A5ZK522.tapEither)(FromEither, Chain));
|
|
104
|
+
var fromNullable = function(a) {
|
|
105
|
+
return a == null ? none2 : some2(a);
|
|
106
|
+
};
|
|
107
|
+
async function getEnginesMetaInfo() {
|
|
108
|
+
const cliQueryEngineBinaryType = (0, import_engines.getCliQueryEngineBinaryType)();
|
|
109
|
+
const engines = [
|
|
110
|
+
{
|
|
111
|
+
name: "query-engine",
|
|
112
|
+
type: cliQueryEngineBinaryType
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: "schema-engine",
|
|
116
|
+
type: import_fetch_engine.BinaryType.SchemaEngineBinary
|
|
117
|
+
}
|
|
118
|
+
];
|
|
119
|
+
const enginePromises = engines.map(({ name, type }) => {
|
|
120
|
+
return resolveEngine(type).then((result) => [name, result]);
|
|
121
|
+
});
|
|
122
|
+
const engineMatrix = await Promise.all(enginePromises).then(Object.fromEntries);
|
|
123
|
+
const engineDataAcc = engines.map(({ name }) => {
|
|
124
|
+
const [engineInfo, errors] = getEnginesInfo(engineMatrix[name]);
|
|
125
|
+
return [{ [name]: engineInfo }, errors];
|
|
126
|
+
});
|
|
127
|
+
const engineMetaInfo = engineDataAcc.map((arr) => arr[0]);
|
|
128
|
+
const enginesMetaInfoErrors = engineDataAcc.flatMap((arr) => arr[1]);
|
|
129
|
+
return [engineMetaInfo, enginesMetaInfoErrors];
|
|
130
|
+
}
|
|
131
|
+
function getEnginesInfo(enginesInfo) {
|
|
132
|
+
const errors = [];
|
|
133
|
+
const resolved = (0, import_chunk_H3T4L34H.$)(enginesInfo).with({ fromEnvVar: import_chunk_H3T4L34H.N.when(isSome2) }, (_engineInfo) => {
|
|
134
|
+
return `, resolved by ${_engineInfo.fromEnvVar.value}`;
|
|
135
|
+
}).otherwise(() => "");
|
|
136
|
+
const absolutePath = (0, import_chunk_H3T4L34H.$)(enginesInfo).with({ path: import_chunk_H3T4L34H.N.when(import_chunk_4A5ZK522.isRight) }, (_engineInfo) => {
|
|
137
|
+
return _engineInfo.path.right;
|
|
138
|
+
}).with({ path: import_chunk_H3T4L34H.N.when(import_chunk_4A5ZK522.isLeft) }, (_engineInfo) => {
|
|
139
|
+
errors.push(_engineInfo.path.left);
|
|
140
|
+
return "E_CANNOT_RESOLVE_PATH";
|
|
141
|
+
}).exhaustive();
|
|
142
|
+
const version = (0, import_chunk_H3T4L34H.$)(enginesInfo).with({ version: import_chunk_H3T4L34H.N.when(import_chunk_4A5ZK522.isRight) }, (_engineInfo) => {
|
|
143
|
+
return _engineInfo.version.right;
|
|
144
|
+
}).with({ version: import_chunk_H3T4L34H.N.when(import_chunk_4A5ZK522.isLeft) }, (_engineInfo) => {
|
|
145
|
+
errors.push(_engineInfo.version.left);
|
|
146
|
+
return "E_CANNOT_RESOLVE_VERSION";
|
|
147
|
+
}).exhaustive();
|
|
148
|
+
const versionMessage = `${version} (at ${import_path.default.relative(process.cwd(), absolutePath)}${resolved})`;
|
|
149
|
+
return [versionMessage, errors];
|
|
150
|
+
}
|
|
151
|
+
async function resolveEngine(binaryName) {
|
|
152
|
+
const pathFromEnvOption = fromNullable((0, import_fetch_engine.getBinaryEnvVarPath)(binaryName));
|
|
153
|
+
const fromEnvVarOption = (0, import_function2.pipe)(
|
|
154
|
+
pathFromEnvOption,
|
|
155
|
+
map((p) => p.fromEnvVar)
|
|
156
|
+
);
|
|
157
|
+
const enginePathEither = await (0, import_function2.pipe)(
|
|
158
|
+
pathFromEnvOption,
|
|
159
|
+
fold(
|
|
160
|
+
() => (0, import_chunk_YHTJPMCB.safeResolveBinary)(binaryName),
|
|
161
|
+
(pathFromEnv) => (0, import_chunk_4A5ZK522.right2)(pathFromEnv.path)
|
|
162
|
+
)
|
|
163
|
+
)();
|
|
164
|
+
const versionEither = await (0, import_function2.pipe)(
|
|
165
|
+
enginePathEither,
|
|
166
|
+
import_chunk_4A5ZK522.fromEither,
|
|
167
|
+
(0, import_chunk_4A5ZK522.chain)((enginePath) => {
|
|
168
|
+
return (0, import_chunk_JD6UDOYA.safeGetEngineVersion)(enginePath, binaryName);
|
|
169
|
+
})
|
|
170
|
+
)();
|
|
171
|
+
const engineInfo = {
|
|
172
|
+
path: enginePathEither,
|
|
173
|
+
version: versionEither,
|
|
174
|
+
fromEnvVar: fromEnvVarOption
|
|
175
|
+
};
|
|
176
|
+
return engineInfo;
|
|
177
|
+
}
|
|
@@ -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_GRUJOQGE_exports = {};
|
|
30
|
+
__export(chunk_GRUJOQGE_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_GRUJOQGE_exports);
|
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
39
39
|
var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
|
|
40
40
|
var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_RH2QBFDQ = require("./chunk-RH2QBFDQ.js");
|
|
42
42
|
var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
|
|
43
43
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
44
|
-
var
|
|
44
|
+
var import_chunk_4SZRVZQO = require("./chunk-4SZRVZQO.js");
|
|
45
45
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
46
46
|
var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.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_RH2QBFDQ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
69
69
|
this.name = "GetConfigError";
|
|
70
70
|
}
|
|
71
71
|
};
|
|
@@ -90,7 +90,7 @@ async function getConfig(options) {
|
|
|
90
90
|
() => {
|
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
|
92
92
|
debug("Triggering a Rust panic...");
|
|
93
|
-
|
|
93
|
+
import_chunk_4SZRVZQO.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_4SZRVZQO.prismaSchemaWasm.get_config(params);
|
|
102
102
|
return data;
|
|
103
103
|
},
|
|
104
104
|
(e) => ({
|