@prisma/internals 6.20.0-integration-feat-prisma-7-config.3 → 6.20.0-integration-oidc-truster-publishers.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-VFZCLI5X.js → chunk-26ZV6OR7.js} +5 -5
- package/dist/{chunk-5FTKVAG5.js → chunk-2GUGGLPK.js} +97 -40
- package/dist/chunk-3FP46GUV.js +471 -0
- package/dist/chunk-46ABODUM.js +186 -0
- package/dist/{chunk-GJSFP4V4.js → chunk-4CGPN5SR.js} +9 -3
- package/dist/{chunk-GL7OANR6.js → chunk-4JCVHBYR.js} +5 -5
- package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
- package/dist/{chunk-LS2GZ6B3.js → chunk-5VHPFZRR.js} +11 -11
- package/dist/{chunk-73HXEN2A.js → chunk-6LDZU7KZ.js} +5 -5
- package/dist/{chunk-VHE2A7YV.js → chunk-6MO7MVPQ.js} +11 -11
- package/dist/chunk-6TTRTZXU.js +37 -0
- package/dist/{chunk-SMJRM3EM.js → chunk-75BIJ5PX.js} +9 -9
- package/dist/{chunk-MYLPCGTT.js → chunk-7QC5VORA.js} +5 -5
- package/dist/{chunk-TGA7DC5A.js → chunk-AX5N26KG.js} +9 -14
- package/dist/{chunk-QSVWJ2S2.js → chunk-BVJP43JS.js} +784 -13
- package/dist/{chunk-B2BNIZB2.js → chunk-CCLAMTCA.js} +8 -7
- package/dist/{chunk-3ZWEK4N6.js → chunk-CPCSIALL.js} +5 -5
- package/dist/chunk-D4VDA2TZ.js +66 -0
- package/dist/chunk-DZYINYAA.js +68 -0
- package/dist/{chunk-E355HAZP.js → chunk-E4H6V3Z4.js} +11 -11
- package/dist/chunk-ERSH2BQA.js +58 -0
- package/dist/{chunk-OKVM3CW4.js → chunk-EYVG6XQS.js} +39 -3
- package/dist/{chunk-5MHUYAV3.js → chunk-F2OZV76L.js} +9 -9
- package/dist/{chunk-O4JHL7XP.js → chunk-FHZ5QJLR.js} +5 -5
- package/dist/{chunk-HNRMSI3R.js → chunk-FYZCPL2Z.js} +8 -5
- package/dist/{chunk-22HIO2UL.js → chunk-GMW36QQF.js} +7 -7
- package/dist/{chunk-LD5PU7J5.js → chunk-GVZIPRAQ.js} +97 -40
- package/dist/{chunk-BUQN4WLU.js → chunk-HFFWZTVM.js} +9 -7
- package/dist/{chunk-CGLLQXZE.js → chunk-HHG4DGHC.js} +12 -11
- package/dist/{chunk-5W3BSMTH.js → chunk-HO5HRHFZ.js} +6 -3
- package/dist/{chunk-SDDES4ZN.js → chunk-HTUTYKBP.js} +12 -12
- package/dist/{chunk-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
- package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
- package/dist/{chunk-LA5QBRTU.js → chunk-IUXRC7ZP.js} +20 -14
- package/dist/{chunk-QOZ7USPD.js → chunk-JOIIWB3U.js} +159 -193
- package/dist/{chunk-UGVSG4YK.js → chunk-JTS4UPHJ.js} +5 -5
- package/dist/{chunk-24ZPBDBI.js → chunk-LV27YCGC.js} +11 -11
- package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
- package/dist/{chunk-H5STSTVK.js → chunk-OAT7ZJED.js} +20 -7
- package/dist/chunk-PZMRR772.js +41 -0
- package/dist/{chunk-SLV6CI6L.js → chunk-QJ3QPUM5.js} +5 -5
- package/dist/{chunk-5I4ERIIY.js → chunk-RS2R7COT.js} +9 -3
- package/dist/{chunk-Z2RQHZ3W.js → chunk-SOKSKSEX.js} +20 -14
- package/dist/chunk-T2PM5TKT.js +55 -0
- package/dist/{chunk-GVDRC4TL.js → chunk-TBR6SNKL.js} +5 -5
- package/dist/{chunk-FNXXQZUZ.js → chunk-TEOXRLQU.js} +9 -8
- package/dist/{chunk-MLFKBBDL.js → chunk-TQFONRJP.js} +5 -5
- package/dist/{chunk-WSZXPLJQ.js → chunk-TZJROXB3.js} +4 -4
- package/dist/{chunk-WJKBKH3Y.js → chunk-UHI6VYFX.js} +5 -5
- package/dist/{chunk-BM3JIFQT.js → chunk-UQUWZJVN.js} +7 -7
- package/dist/{chunk-2Q43C56O.js → chunk-WEU72JRD.js} +5 -5
- package/dist/{chunk-ARC7TW3L.js → chunk-WFNB7VRA.js} +14 -4
- package/dist/{chunk-C5YUUOQW.js → chunk-WYQJ4JWO.js} +12 -12
- package/dist/cli/checkUnsupportedDataProxy.js +60 -53
- package/dist/cli/checkUnsupportedSchemaEngineWasm.d.ts +22 -0
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +135 -0
- package/dist/cli/getGeneratorSuccessMessage.js +3 -2
- package/dist/cli/getSchema.d.ts +15 -1
- package/dist/cli/getSchema.js +5 -4
- package/dist/cli/hashes.js +4 -4
- package/dist/cli/schemaContext.d.ts +11 -2
- package/dist/cli/schemaContext.js +60 -53
- package/dist/client/getClientEngineType.d.ts +7 -0
- package/dist/client/getClientEngineType.js +26 -0
- package/dist/dotenvExpand.d.ts +35 -0
- package/dist/dotenvExpand.js +25 -0
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +59 -52
- package/dist/engine-commands/getConfig.d.ts +1 -0
- package/dist/engine-commands/getConfig.js +13 -13
- package/dist/engine-commands/getDmmf.js +10 -10
- package/dist/engine-commands/getEngineVersion.js +9 -6
- package/dist/engine-commands/getEnginesInfo.d.ts +1 -0
- package/dist/engine-commands/getEnginesInfo.js +9 -7
- package/dist/engine-commands/index.js +71 -64
- package/dist/engine-commands/lintSchema.js +9 -9
- package/dist/engine-commands/mergeSchemas.js +10 -10
- package/dist/engine-commands/queryEngineCommons.js +6 -6
- package/dist/engine-commands/validate.js +10 -10
- package/dist/errorReporting.js +6 -6
- package/dist/get-generators/getGenerators.d.ts +1 -0
- package/dist/get-generators/getGenerators.js +62 -55
- package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
- package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +5 -6
- package/dist/getPackedPackage.js +3 -4
- package/dist/index.d.ts +10 -1
- package/dist/index.js +112 -95
- package/dist/{multipart-parser-UV3WZSWW.js → multipart-parser-3AFJFP6K.js} +6 -6
- package/dist/resolveBinary.js +7 -8
- package/dist/schemaEngineCommands.js +8 -9
- package/dist/sendPanic.js +4 -4
- package/dist/utils/cloudflareD1.d.ts +5 -0
- package/dist/utils/cloudflareD1.js +27 -0
- package/dist/utils/drawBox.js +2 -2
- package/dist/utils/fs-functional.js +10 -10
- package/dist/utils/fs-utils.js +8 -8
- package/dist/utils/getEnvPaths.d.ts +14 -0
- package/dist/utils/getEnvPaths.js +29 -0
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handleEngineLoadingErrors.d.ts +8 -0
- package/dist/utils/handleEngineLoadingErrors.js +27 -0
- package/dist/utils/handlePanic.js +6 -6
- package/dist/utils/link.js +2 -2
- package/dist/utils/load.d.ts +6 -0
- package/dist/utils/load.js +28 -0
- package/dist/utils/loadEnvFile.d.ts +10 -0
- package/dist/utils/loadEnvFile.js +30 -0
- package/dist/utils/missingDatasource.js +3 -3
- package/dist/utils/missingGeneratorMessage.js +5 -5
- package/dist/utils/serializeQueryEngineName.js +2 -2
- package/dist/utils/tryLoadEnvs.d.ts +25 -0
- package/dist/utils/tryLoadEnvs.js +30 -0
- package/dist/wasm.js +5 -5
- package/package.json +16 -15
- package/dist/chunk-DYV47NUW.js +0 -796
|
@@ -26,16 +26,16 @@ 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_4JCVHBYR_exports = {};
|
|
30
|
+
__export(chunk_4JCVHBYR_exports, {
|
|
31
31
|
getCLIPathHash: () => getCLIPathHash,
|
|
32
32
|
getProjectHash: () => getProjectHash
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_4JCVHBYR_exports);
|
|
35
|
+
var import_chunk_EYVG6XQS = require("./chunk-EYVG6XQS.js");
|
|
36
36
|
var import_crypto = __toESM(require("crypto"));
|
|
37
37
|
async function getProjectHash(schemaPathFromArgs, schemaPathFromConfig) {
|
|
38
|
-
const projectPath = (await (0,
|
|
38
|
+
const projectPath = (await (0, import_chunk_EYVG6XQS.getSchemaWithPath)(schemaPathFromArgs, schemaPathFromConfig))?.schemaPath ?? process.cwd();
|
|
39
39
|
return import_crypto.default.createHash("sha256").update(projectPath).digest("hex").substring(0, 8);
|
|
40
40
|
}
|
|
41
41
|
function getCLIPathHash() {
|
|
@@ -26,15 +26,15 @@ 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_5AI4FIZ3_exports = {};
|
|
30
|
+
__export(chunk_5AI4FIZ3_exports, {
|
|
31
31
|
ErrorKind: () => ErrorKind,
|
|
32
32
|
createErrorReport: () => createErrorReport,
|
|
33
33
|
makeErrorReportCompleted: () => makeErrorReportCompleted,
|
|
34
34
|
uploadZip: () => uploadZip
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
37
|
-
var
|
|
36
|
+
module.exports = __toCommonJS(chunk_5AI4FIZ3_exports);
|
|
37
|
+
var import_chunk_NVNI2SRU = require("./chunk-NVNI2SRU.js");
|
|
38
38
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
|
39
39
|
var import_node_http = __toESM(require("node:http"));
|
|
40
40
|
var import_node_https = __toESM(require("node:https"));
|
|
@@ -151,8 +151,8 @@ var Body = class {
|
|
|
151
151
|
} else if (ArrayBuffer.isView(body)) {
|
|
152
152
|
body = import_node_buffer2.Buffer.from(body.buffer, body.byteOffset, body.byteLength);
|
|
153
153
|
} else if (body instanceof import_node_stream2.default) {
|
|
154
|
-
} else if (body instanceof
|
|
155
|
-
body = (0,
|
|
154
|
+
} else if (body instanceof import_chunk_NVNI2SRU.FormData) {
|
|
155
|
+
body = (0, import_chunk_NVNI2SRU.formDataToBlob)(body);
|
|
156
156
|
boundary = body.type.split("=")[1];
|
|
157
157
|
} else {
|
|
158
158
|
body = import_node_buffer2.Buffer.from(String(body));
|
|
@@ -196,14 +196,14 @@ var Body = class {
|
|
|
196
196
|
async formData() {
|
|
197
197
|
const ct = this.headers.get("content-type");
|
|
198
198
|
if (ct.startsWith("application/x-www-form-urlencoded")) {
|
|
199
|
-
const formData = new
|
|
199
|
+
const formData = new import_chunk_NVNI2SRU.FormData();
|
|
200
200
|
const parameters = new URLSearchParams(await this.text());
|
|
201
201
|
for (const [name, value] of parameters) {
|
|
202
202
|
formData.append(name, value);
|
|
203
203
|
}
|
|
204
204
|
return formData;
|
|
205
205
|
}
|
|
206
|
-
const { toFormData } = await import("./multipart-parser-
|
|
206
|
+
const { toFormData } = await import("./multipart-parser-3AFJFP6K.js");
|
|
207
207
|
return toFormData(this.body, ct);
|
|
208
208
|
}
|
|
209
209
|
/**
|
|
@@ -214,7 +214,7 @@ var Body = class {
|
|
|
214
214
|
async blob() {
|
|
215
215
|
const ct = this.headers && this.headers.get("content-type") || this[INTERNALS].body && this[INTERNALS].body.type || "";
|
|
216
216
|
const buf = await this.arrayBuffer();
|
|
217
|
-
return new
|
|
217
|
+
return new import_chunk_NVNI2SRU.fetch_blob_default([buf], {
|
|
218
218
|
type: ct
|
|
219
219
|
});
|
|
220
220
|
}
|
|
@@ -342,7 +342,7 @@ var extractContentType = (body, request2) => {
|
|
|
342
342
|
if (import_node_buffer2.Buffer.isBuffer(body) || import_node_util.types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
|
|
343
343
|
return null;
|
|
344
344
|
}
|
|
345
|
-
if (body instanceof
|
|
345
|
+
if (body instanceof import_chunk_NVNI2SRU.FormData) {
|
|
346
346
|
return `multipart/form-data; boundary=${request2[INTERNALS].boundary}`;
|
|
347
347
|
}
|
|
348
348
|
if (body && typeof body.getBoundary === "function") {
|
|
@@ -26,16 +26,16 @@ 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_5VHPFZRR_exports = {};
|
|
30
|
+
__export(chunk_5VHPFZRR_exports, {
|
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
|
32
32
|
getDMMF: () => getDMMF
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_5VHPFZRR_exports);
|
|
35
|
+
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
36
36
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
37
|
-
var
|
|
38
|
-
var
|
|
37
|
+
var import_chunk_WEU72JRD = require("./chunk-WEU72JRD.js");
|
|
38
|
+
var import_chunk_CPCSIALL = require("./chunk-CPCSIALL.js");
|
|
39
39
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
41
41
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
@@ -58,25 +58,25 @@ ${detailsHeader} ${message}`;
|
|
|
58
58
|
}).exhaustive();
|
|
59
59
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
60
60
|
[Context: getDmmf]`;
|
|
61
|
-
super((0,
|
|
61
|
+
super((0, import_chunk_WEU72JRD.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
62
62
|
this.name = "GetDmmfError";
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
async function getDMMF(options) {
|
|
66
|
-
const debugErrorType = (0,
|
|
66
|
+
const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getDmmfWasm");
|
|
67
67
|
debug(`Using getDmmf Wasm`);
|
|
68
68
|
const dmmfPipeline = (0, import_function.pipe)(
|
|
69
69
|
(0, import_chunk_5DBOS77Y.tryCatch)(
|
|
70
70
|
() => {
|
|
71
71
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
72
72
|
debug("Triggering a Rust panic...");
|
|
73
|
-
|
|
73
|
+
import_chunk_CPCSIALL.prismaSchemaWasm.debug_panic();
|
|
74
74
|
}
|
|
75
75
|
const params = JSON.stringify({
|
|
76
76
|
prismaSchema: options.datamodel,
|
|
77
77
|
noColor: Boolean(process.env.NO_COLOR)
|
|
78
78
|
});
|
|
79
|
-
const data =
|
|
79
|
+
const data = import_chunk_CPCSIALL.prismaSchemaWasm.get_dmmf(params);
|
|
80
80
|
return data;
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|
|
@@ -124,7 +124,7 @@ async function getDMMF(options) {
|
|
|
124
124
|
return panic;
|
|
125
125
|
}
|
|
126
126
|
const errorOutput = e.error.message;
|
|
127
|
-
return new GetDmmfError((0,
|
|
127
|
+
return new GetDmmfError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
128
128
|
}).with({ type: "parse-json" }, (e) => {
|
|
129
129
|
debugErrorType(e);
|
|
130
130
|
return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
|
|
@@ -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_6LDZU7KZ_exports = {};
|
|
20
|
+
__export(chunk_6LDZU7KZ_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(
|
|
28
|
-
var
|
|
27
|
+
module.exports = __toCommonJS(chunk_6LDZU7KZ_exports);
|
|
28
|
+
var import_chunk_CPCSIALL = require("./chunk-CPCSIALL.js");
|
|
29
29
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
30
30
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
31
31
|
function lintSchema({ schemas }) {
|
|
32
|
-
const lintResult =
|
|
32
|
+
const lintResult = import_chunk_CPCSIALL.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
|
33
33
|
const lintDiagnostics = JSON.parse(lintResult);
|
|
34
34
|
return lintDiagnostics;
|
|
35
35
|
}
|
|
@@ -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_6MO7MVPQ_exports = {};
|
|
30
|
+
__export(chunk_6MO7MVPQ_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
36
|
-
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
34
|
+
module.exports = __toCommonJS(chunk_6MO7MVPQ_exports);
|
|
35
|
+
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
37
36
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
37
|
+
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
38
|
+
var import_chunk_WEU72JRD = require("./chunk-WEU72JRD.js");
|
|
39
|
+
var import_chunk_CPCSIALL = require("./chunk-CPCSIALL.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,12 +59,12 @@ ${detailsHeader} ${message}`;
|
|
|
59
59
|
}).exhaustive();
|
|
60
60
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
61
61
|
[Context: mergeSchemas]`;
|
|
62
|
-
super((0,
|
|
62
|
+
super((0, import_chunk_WEU72JRD.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
63
63
|
this.name = "MergeSchemasError";
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
function mergeSchemas(options) {
|
|
67
|
-
const debugErrorType = (0,
|
|
67
|
+
const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "mergeSchemasWasm");
|
|
68
68
|
debug(`Using mergeSchemas Wasm`);
|
|
69
69
|
const mergeSchemasEither = (0, import_function.pipe)(
|
|
70
70
|
(0, import_chunk_5DBOS77Y.tryCatch)(
|
|
@@ -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_CPCSIALL.prismaSchemaWasm.merge_schemas(params);
|
|
76
76
|
},
|
|
77
77
|
(e) => ({
|
|
78
78
|
type: "wasm-error",
|
|
@@ -104,7 +104,7 @@ function mergeSchemas(options) {
|
|
|
104
104
|
return panic;
|
|
105
105
|
}
|
|
106
106
|
const errorOutput = e.error.message;
|
|
107
|
-
return new MergeSchemasError((0,
|
|
107
|
+
return new MergeSchemasError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
108
108
|
}).exhaustive();
|
|
109
109
|
throw error;
|
|
110
110
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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_6TTRTZXU_exports = {};
|
|
20
|
+
__export(chunk_6TTRTZXU_exports, {
|
|
21
|
+
loadLibrary: () => loadLibrary
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(chunk_6TTRTZXU_exports);
|
|
24
|
+
var import_chunk_DZYINYAA = require("./chunk-DZYINYAA.js");
|
|
25
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
26
|
+
function loadLibrary(id, platformInfo) {
|
|
27
|
+
try {
|
|
28
|
+
return (0, import_chunk_4VNS5WPM.__require)(id);
|
|
29
|
+
} catch (e) {
|
|
30
|
+
const errorMessage = (0, import_chunk_DZYINYAA.handleLibraryLoadingErrors)({
|
|
31
|
+
e,
|
|
32
|
+
platformInfo,
|
|
33
|
+
id
|
|
34
|
+
});
|
|
35
|
+
throw new Error(errorMessage);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -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_75BIJ5PX_exports = {};
|
|
30
|
+
__export(chunk_75BIJ5PX_exports, {
|
|
31
31
|
createDirIfNotExists: () => createDirIfNotExists2,
|
|
32
32
|
fs_functional_exports: () => fs_functional_exports,
|
|
33
33
|
getFilesInDir: () => getFilesInDir2,
|
|
@@ -37,8 +37,8 @@ __export(chunk_SMJRM3EM_exports, {
|
|
|
37
37
|
removeFile: () => removeFile,
|
|
38
38
|
writeFile: () => writeFile2
|
|
39
39
|
});
|
|
40
|
-
module.exports = __toCommonJS(
|
|
41
|
-
var
|
|
40
|
+
module.exports = __toCommonJS(chunk_75BIJ5PX_exports);
|
|
41
|
+
var import_chunk_TQFONRJP = require("./chunk-TQFONRJP.js");
|
|
42
42
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
43
43
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
44
44
|
var import_promises = __toESM(require("fs/promises"));
|
|
@@ -3981,13 +3981,13 @@ var fs_functional_exports = {};
|
|
|
3981
3981
|
});
|
|
3982
3982
|
var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57HZ.require_function)());
|
|
3983
3983
|
var TE = (0, import_chunk_4VNS5WPM.__toESM)(require_TaskEither());
|
|
3984
|
-
var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0,
|
|
3985
|
-
var writeFile2 = (params) => TE.tryCatch(() => (0,
|
|
3986
|
-
var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0,
|
|
3984
|
+
var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_TQFONRJP.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
|
|
3985
|
+
var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_TQFONRJP.writeFile)(params), createTaggedSystemError("fs-write-file", params));
|
|
3986
|
+
var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_TQFONRJP.removeEmptyDirs)(dir), createTaggedSystemError("fs-remove-empty-dirs", { dir }));
|
|
3987
3987
|
var removeDir = (dir) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.rm(dir, { recursive: true }), createTaggedSystemError("fs-remove-dir", { dir })));
|
|
3988
3988
|
var removeFile = (filePath) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.unlink(filePath), createTaggedSystemError("fs-remove-file", { filePath })));
|
|
3989
|
-
var getNestedFoldersInDir2 = (dir) => () => (0,
|
|
3990
|
-
var getFilesInDir2 = (dir, pattern = "**") => () => (0,
|
|
3989
|
+
var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_TQFONRJP.getNestedFoldersInDir)(dir);
|
|
3990
|
+
var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_TQFONRJP.getFilesInDir)(dir, pattern);
|
|
3991
3991
|
function createTaggedSystemError(type, meta) {
|
|
3992
3992
|
return (e) => ({
|
|
3993
3993
|
type,
|
|
@@ -16,12 +16,12 @@ 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_7QC5VORA_exports = {};
|
|
20
|
+
__export(chunk_7QC5VORA_exports, {
|
|
21
21
|
missingDatasource: () => missingDatasource
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_7QC5VORA_exports);
|
|
24
|
+
var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
|
|
25
25
|
var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
|
|
26
26
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
27
27
|
var missingDatasource = `
|
|
@@ -36,5 +36,5 @@ ${(0, import_chunk_PG5FDKSF.bold)(
|
|
|
36
36
|
)}
|
|
37
37
|
|
|
38
38
|
More information in our documentation:
|
|
39
|
-
${(0,
|
|
39
|
+
${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
|
|
40
40
|
`;
|
|
@@ -16,32 +16,27 @@ 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_AX5N26KG_exports = {};
|
|
20
|
+
__export(chunk_AX5N26KG_exports, {
|
|
21
21
|
missingGeneratorMessage: () => missingGeneratorMessage,
|
|
22
22
|
missingModelMessage: () => missingModelMessage,
|
|
23
23
|
missingModelMessageMongoDB: () => missingModelMessageMongoDB
|
|
24
24
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
26
|
-
var
|
|
25
|
+
module.exports = __toCommonJS(chunk_AX5N26KG_exports);
|
|
26
|
+
var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
|
|
27
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)(
|
|
31
31
|
"schema.prisma"
|
|
32
32
|
)}, so nothing will be generated.
|
|
33
|
-
|
|
33
|
+
You can define them like this:
|
|
34
34
|
|
|
35
35
|
${(0, import_chunk_PG5FDKSF.bold)(
|
|
36
36
|
(0, import_chunk_TQCLUNM2.highlightDatamodel)(`generator client {
|
|
37
|
-
provider = "prisma-client"
|
|
38
|
-
output = "../src/generated/prisma"
|
|
37
|
+
provider = "prisma-client-js"
|
|
39
38
|
}`)
|
|
40
|
-
)}
|
|
41
|
-
|
|
42
|
-
More information in our documentation:
|
|
43
|
-
${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
|
|
44
|
-
`;
|
|
39
|
+
)}`;
|
|
45
40
|
var missingModelMessage = `
|
|
46
41
|
You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
|
|
47
42
|
"schema.prisma"
|
|
@@ -57,7 +52,7 @@ ${(0, import_chunk_PG5FDKSF.bold)(
|
|
|
57
52
|
)}
|
|
58
53
|
|
|
59
54
|
More information in our documentation:
|
|
60
|
-
${(0,
|
|
55
|
+
${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
|
|
61
56
|
`;
|
|
62
57
|
var missingModelMessageMongoDB = `
|
|
63
58
|
You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
|
|
@@ -74,5 +69,5 @@ ${(0, import_chunk_PG5FDKSF.bold)(
|
|
|
74
69
|
)}
|
|
75
70
|
|
|
76
71
|
More information in our documentation:
|
|
77
|
-
${(0,
|
|
72
|
+
${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
|
|
78
73
|
`;
|