@prisma/internals 5.19.0-dev.11 → 5.19.0-dev.13
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-QL3K6JIN.js → chunk-244YD7SK.js} +7 -7
- package/dist/{chunk-HAHFI7GL.js → chunk-34FTC6KK.js} +5 -5
- package/dist/{chunk-4M3AHCOO.js → chunk-42K3GPYJ.js} +5 -5
- package/dist/chunk-5XRQ7ONW.js +122 -0
- package/dist/{chunk-EMAUBLJD.js → chunk-6GTQHWWT.js} +6 -6
- package/dist/{chunk-CCD5D2JW.js → chunk-7KXMQZFT.js} +5 -5
- package/dist/{chunk-4A5ZK522.js → chunk-7MD6344A.js} +3 -3
- package/dist/{chunk-GHYJGM56.js → chunk-7SPHTPDV.js} +5 -5
- package/dist/{chunk-LUUFBSA2.js → chunk-CNKDIKWK.js} +16 -16
- package/dist/{chunk-KCFSBF52.js → chunk-CYKOCRN3.js} +15 -15
- package/dist/{chunk-JCTCVFAA.js → chunk-D3G3WRZU.js} +5 -5
- package/dist/{chunk-DFSKQSBC.js → chunk-DQMYNBP3.js} +5 -5
- package/dist/{chunk-SLGMG65I.js → chunk-EBLDSWRI.js} +20 -14
- package/dist/{chunk-PN2OFBAO.js → chunk-G4BGJ6IP.js} +5 -5
- package/dist/{chunk-EYOPVHNV.js → chunk-HD4N22SB.js} +28 -28
- package/dist/{chunk-E6FM43YJ.js → chunk-I3YDYYM2.js} +15 -15
- package/dist/{chunk-KUMD5MBR.js → chunk-IAEMHQAC.js} +10 -10
- package/dist/{chunk-TSFUK6LA.js → chunk-IB5PDCFO.js} +5 -5
- package/dist/{chunk-UDMTZDUY.js → chunk-IJUVQMZY.js} +5 -5
- package/dist/{chunk-4SQQL7FD.js → chunk-IY43XBPH.js} +16 -16
- package/dist/{chunk-5A455CWA.js → chunk-JPEBIQUM.js} +40 -811
- package/dist/{chunk-FDUCE6NS.js → chunk-KBVBWTBF.js} +23 -23
- package/dist/{chunk-YBKMK4T5.js → chunk-KK64NLNR.js} +5 -5
- package/dist/chunk-NDEGWMVS.js +177 -0
- package/dist/{chunk-JJGVUZW5.js → chunk-NK2ML3NJ.js} +5 -5
- package/dist/chunk-NXIWDQBF.js +110 -0
- package/dist/{chunk-QOTVZEEZ.js → chunk-PFLLVWZX.js} +4 -4
- package/dist/chunk-QIVUAERL.js +2202 -0
- package/dist/{chunk-6P6S7JQT.js → chunk-QQJZI2CR.js} +22 -22
- package/dist/{chunk-YM3CE76B.js → chunk-S3323RUL.js} +48 -48
- package/dist/{chunk-JY7LTP35.js → chunk-TZ2WAB57.js} +23 -23
- package/dist/chunk-X4GRUQLB.js +166 -0
- package/dist/chunk-X6M256IK.js +54 -0
- package/dist/{chunk-LPRHB4FZ.js → chunk-XKRUNUS5.js} +22 -22
- package/dist/{chunk-233LCB7N.js → chunk-YIJ776AZ.js} +35 -35
- package/dist/cli/checkUnsupportedDataProxy.js +21 -21
- package/dist/cli/getSchema.js +26 -26
- package/dist/cli/hashes.js +21 -21
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +20 -20
- package/dist/engine-commands/getConfig.js +13 -13
- package/dist/engine-commands/getDmmf.js +10 -10
- package/dist/engine-commands/getEngineVersion.js +5 -5
- package/dist/engine-commands/getEnginesMetaInfo.js +8 -8
- package/dist/engine-commands/index.js +31 -31
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +10 -10
- package/dist/engine-commands/queryEngineCommons.js +7 -7
- package/dist/engine-commands/validate.js +10 -10
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +20 -20
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +20 -20
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +20 -20
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +21 -21
- package/dist/get-generators/getGenerators.js +23 -23
- package/dist/getPackedPackage.js +2 -2
- package/dist/index.js +59 -59
- package/dist/resolveBinary.js +7 -7
- package/dist/schemaEngineCommands.js +8 -8
- package/dist/sendPanic.js +20 -20
- package/dist/utils/fs-functional.js +9 -9
- package/dist/utils/getEnvPaths.js +20 -20
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +20 -20
- package/dist/utils/loadEnvFile.js +20 -20
- package/dist/wasm.js +4 -4
- package/package.json +9 -9
|
@@ -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_EBLDSWRI_exports = {};
|
|
30
|
+
__export(chunk_EBLDSWRI_exports, {
|
|
31
31
|
getPackedPackage: () => getPackedPackage,
|
|
32
32
|
readPackageUp: () => readPackageUp,
|
|
33
33
|
require_glob: () => require_glob,
|
|
@@ -35,7 +35,7 @@ __export(chunk_SLGMG65I_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_EBLDSWRI_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_KKMREGHN = require("./chunk-KKMREGHN.js");
|
|
@@ -5169,7 +5169,7 @@ ${frame}`;
|
|
|
5169
5169
|
}
|
|
5170
5170
|
});
|
|
5171
5171
|
var require_debug = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5172
|
-
"../../node_modules/.pnpm/semver@7.6.
|
|
5172
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js"(exports, module2) {
|
|
5173
5173
|
"use strict";
|
|
5174
5174
|
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
5175
5175
|
};
|
|
@@ -5177,7 +5177,7 @@ var require_debug = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5177
5177
|
}
|
|
5178
5178
|
});
|
|
5179
5179
|
var require_constants = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5180
|
-
"../../node_modules/.pnpm/semver@7.6.
|
|
5180
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js"(exports, module2) {
|
|
5181
5181
|
"use strict";
|
|
5182
5182
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
5183
5183
|
var MAX_LENGTH = 256;
|
|
@@ -5207,7 +5207,7 @@ var require_constants = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5207
5207
|
}
|
|
5208
5208
|
});
|
|
5209
5209
|
var require_re = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5210
|
-
"../../node_modules/.pnpm/semver@7.6.
|
|
5210
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js"(exports, module2) {
|
|
5211
5211
|
"use strict";
|
|
5212
5212
|
var {
|
|
5213
5213
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
@@ -5291,7 +5291,7 @@ var require_re = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5291
5291
|
}
|
|
5292
5292
|
});
|
|
5293
5293
|
var require_parse_options = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5294
|
-
"../../node_modules/.pnpm/semver@7.6.
|
|
5294
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js"(exports, module2) {
|
|
5295
5295
|
"use strict";
|
|
5296
5296
|
var looseOption = Object.freeze({ loose: true });
|
|
5297
5297
|
var emptyOpts = Object.freeze({});
|
|
@@ -5308,7 +5308,7 @@ var require_parse_options = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5308
5308
|
}
|
|
5309
5309
|
});
|
|
5310
5310
|
var require_identifiers = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5311
|
-
"../../node_modules/.pnpm/semver@7.6.
|
|
5311
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js"(exports, module2) {
|
|
5312
5312
|
"use strict";
|
|
5313
5313
|
var numeric = /^[0-9]+$/;
|
|
5314
5314
|
var compareIdentifiers = (a, b) => {
|
|
@@ -5328,7 +5328,7 @@ var require_identifiers = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5328
5328
|
}
|
|
5329
5329
|
});
|
|
5330
5330
|
var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5331
|
-
"../../node_modules/.pnpm/semver@7.6.
|
|
5331
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js"(exports, module2) {
|
|
5332
5332
|
"use strict";
|
|
5333
5333
|
var debug = require_debug();
|
|
5334
5334
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
@@ -5569,7 +5569,7 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5569
5569
|
}
|
|
5570
5570
|
});
|
|
5571
5571
|
var require_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5572
|
-
"../../node_modules/.pnpm/semver@7.6.
|
|
5572
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js"(exports, module2) {
|
|
5573
5573
|
"use strict";
|
|
5574
5574
|
var SemVer = require_semver();
|
|
5575
5575
|
var parse = (version, options, throwErrors = false) => {
|
|
@@ -5589,7 +5589,7 @@ var require_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5589
5589
|
}
|
|
5590
5590
|
});
|
|
5591
5591
|
var require_valid = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5592
|
-
"../../node_modules/.pnpm/semver@7.6.
|
|
5592
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js"(exports, module2) {
|
|
5593
5593
|
"use strict";
|
|
5594
5594
|
var parse = require_parse();
|
|
5595
5595
|
var valid = (version, options) => {
|
|
@@ -5600,7 +5600,7 @@ var require_valid = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5600
5600
|
}
|
|
5601
5601
|
});
|
|
5602
5602
|
var require_clean = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5603
|
-
"../../node_modules/.pnpm/semver@7.6.
|
|
5603
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js"(exports, module2) {
|
|
5604
5604
|
"use strict";
|
|
5605
5605
|
var parse = require_parse();
|
|
5606
5606
|
var clean = (version, options) => {
|
|
@@ -5611,7 +5611,7 @@ var require_clean = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5611
5611
|
}
|
|
5612
5612
|
});
|
|
5613
5613
|
var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5614
|
-
"../../node_modules/.pnpm/spdx-license-ids@3.0.
|
|
5614
|
+
"../../node_modules/.pnpm/spdx-license-ids@3.0.20/node_modules/spdx-license-ids/index.json"(exports, module2) {
|
|
5615
5615
|
module2.exports = [
|
|
5616
5616
|
"0BSD",
|
|
5617
5617
|
"3D-Slicer-1.0",
|
|
@@ -5811,6 +5811,8 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5811
5811
|
"DRL-1.0",
|
|
5812
5812
|
"DRL-1.1",
|
|
5813
5813
|
"DSDP",
|
|
5814
|
+
"DocBook-Schema",
|
|
5815
|
+
"DocBook-XML",
|
|
5814
5816
|
"Dotseqn",
|
|
5815
5817
|
"ECL-1.0",
|
|
5816
5818
|
"ECL-2.0",
|
|
@@ -5874,6 +5876,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5874
5876
|
"Glulxe",
|
|
5875
5877
|
"Graphics-Gems",
|
|
5876
5878
|
"Gutmann",
|
|
5879
|
+
"HIDAPI",
|
|
5877
5880
|
"HP-1986",
|
|
5878
5881
|
"HP-1989",
|
|
5879
5882
|
"HPND",
|
|
@@ -5884,6 +5887,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5884
5887
|
"HPND-Kevlin-Henney",
|
|
5885
5888
|
"HPND-MIT-disclaimer",
|
|
5886
5889
|
"HPND-Markus-Kuhn",
|
|
5890
|
+
"HPND-Netrek",
|
|
5887
5891
|
"HPND-Pbmplus",
|
|
5888
5892
|
"HPND-UC",
|
|
5889
5893
|
"HPND-UC-export-US",
|
|
@@ -6017,7 +6021,6 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6017
6021
|
"NTP",
|
|
6018
6022
|
"NTP-0",
|
|
6019
6023
|
"Naumen",
|
|
6020
|
-
"Net-SNMP",
|
|
6021
6024
|
"NetCDF",
|
|
6022
6025
|
"Newsletr",
|
|
6023
6026
|
"Nokia",
|
|
@@ -6099,6 +6102,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6099
6102
|
"RSCPL",
|
|
6100
6103
|
"Rdisc",
|
|
6101
6104
|
"Ruby",
|
|
6105
|
+
"Ruby-pty",
|
|
6102
6106
|
"SAX-PD",
|
|
6103
6107
|
"SAX-PD-2.0",
|
|
6104
6108
|
"SCEA",
|
|
@@ -6155,6 +6159,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6155
6159
|
"UMich-Merit",
|
|
6156
6160
|
"UPL-1.0",
|
|
6157
6161
|
"URT-RLE",
|
|
6162
|
+
"Ubuntu-font-1.0",
|
|
6158
6163
|
"Unicode-3.0",
|
|
6159
6164
|
"Unicode-DFS-2015",
|
|
6160
6165
|
"Unicode-DFS-2016",
|
|
@@ -6173,6 +6178,7 @@ var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6173
6178
|
"Wsuipa",
|
|
6174
6179
|
"X11",
|
|
6175
6180
|
"X11-distribute-modifications-variant",
|
|
6181
|
+
"X11-swapped",
|
|
6176
6182
|
"XFree86-1.1",
|
|
6177
6183
|
"XSkat",
|
|
6178
6184
|
"Xdebug-1.03",
|
|
@@ -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_G4BGJ6IP_exports = {};
|
|
20
|
+
__export(chunk_G4BGJ6IP_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_G4BGJ6IP_exports);
|
|
28
28
|
var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
|
|
29
|
-
var
|
|
29
|
+
var import_chunk_NXIWDQBF = require("./chunk-NXIWDQBF.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_NXIWDQBF.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,
|
|
@@ -26,33 +26,33 @@ 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_HD4N22SB_exports = {};
|
|
30
|
+
__export(chunk_HD4N22SB_exports, {
|
|
31
31
|
getEnginesInfo: () => getEnginesInfo,
|
|
32
32
|
getEnginesMetaInfo: () => getEnginesMetaInfo,
|
|
33
33
|
resolveEngine: () => resolveEngine
|
|
34
34
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
36
|
-
var
|
|
37
|
-
var
|
|
35
|
+
module.exports = __toCommonJS(chunk_HD4N22SB_exports);
|
|
36
|
+
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
37
|
+
var import_chunk_X6M256IK = require("./chunk-X6M256IK.js");
|
|
38
38
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
39
|
-
var
|
|
40
|
-
var
|
|
39
|
+
var import_chunk_NXIWDQBF = require("./chunk-NXIWDQBF.js");
|
|
40
|
+
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
|
41
41
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
42
42
|
var import_engines = require("@prisma/engines");
|
|
43
43
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
|
44
44
|
var import_path = __toESM(require("path"));
|
|
45
|
-
var import_function2 = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
|
46
|
-
var none2 =
|
|
47
|
-
var some2 =
|
|
45
|
+
var import_function2 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
|
|
46
|
+
var none2 = import_chunk_7MD6344A.none;
|
|
47
|
+
var some2 = import_chunk_7MD6344A.some;
|
|
48
48
|
var getRight = function(ma) {
|
|
49
49
|
return ma._tag === "Left" ? none2 : some2(ma.right);
|
|
50
50
|
};
|
|
51
51
|
var _map = function(fa, f) {
|
|
52
|
-
return (0,
|
|
52
|
+
return (0, import_chunk_7MD6344A.pipe)(fa, map(f));
|
|
53
53
|
};
|
|
54
54
|
var _ap = function(fab, fa) {
|
|
55
|
-
return (0,
|
|
55
|
+
return (0, import_chunk_7MD6344A.pipe)(fab, ap(fa));
|
|
56
56
|
};
|
|
57
57
|
var URI = "Option";
|
|
58
58
|
var map = function(f) {
|
|
@@ -64,14 +64,14 @@ var Functor = {
|
|
|
64
64
|
URI,
|
|
65
65
|
map: _map
|
|
66
66
|
};
|
|
67
|
-
var as2 = (0,
|
|
68
|
-
var asUnit2 = (0,
|
|
67
|
+
var as2 = (0, import_chunk_7MD6344A.dual)(2, (0, import_chunk_7MD6344A.as)(Functor));
|
|
68
|
+
var asUnit2 = (0, import_chunk_7MD6344A.asUnit)(Functor);
|
|
69
69
|
var ap = function(fa) {
|
|
70
70
|
return function(fab) {
|
|
71
71
|
return isNone(fab) ? none2 : isNone(fa) ? none2 : some2(fab.value(fa.value));
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
|
-
var flatMap = /* @__PURE__ */ (0,
|
|
74
|
+
var flatMap = /* @__PURE__ */ (0, import_chunk_7MD6344A.dual)(2, function(ma, f) {
|
|
75
75
|
return isNone(ma) ? none2 : f(ma.value);
|
|
76
76
|
});
|
|
77
77
|
var Chain = {
|
|
@@ -80,7 +80,7 @@ var Chain = {
|
|
|
80
80
|
ap: _ap,
|
|
81
81
|
chain: flatMap
|
|
82
82
|
};
|
|
83
|
-
var orElse = (0,
|
|
83
|
+
var orElse = (0, import_chunk_7MD6344A.dual)(2, function(self, that) {
|
|
84
84
|
return isNone(self) ? that() : self;
|
|
85
85
|
});
|
|
86
86
|
var fromEither2 = getRight;
|
|
@@ -88,7 +88,7 @@ var FromEither = {
|
|
|
88
88
|
URI,
|
|
89
89
|
fromEither: fromEither2
|
|
90
90
|
};
|
|
91
|
-
var isSome2 =
|
|
91
|
+
var isSome2 = import_chunk_7MD6344A.isSome;
|
|
92
92
|
var isNone = function(fa) {
|
|
93
93
|
return fa._tag === "None";
|
|
94
94
|
};
|
|
@@ -99,8 +99,8 @@ var matchW = function(onNone, onSome) {
|
|
|
99
99
|
};
|
|
100
100
|
var match = matchW;
|
|
101
101
|
var fold = match;
|
|
102
|
-
var tap2 = /* @__PURE__ */ (0,
|
|
103
|
-
var tapEither2 = /* @__PURE__ */ (0,
|
|
102
|
+
var tap2 = /* @__PURE__ */ (0, import_chunk_7MD6344A.dual)(2, (0, import_chunk_7MD6344A.tap)(Chain));
|
|
103
|
+
var tapEither2 = /* @__PURE__ */ (0, import_chunk_7MD6344A.dual)(2, (0, import_chunk_7MD6344A.tapEither)(FromEither, Chain));
|
|
104
104
|
var fromNullable = function(a) {
|
|
105
105
|
return a == null ? none2 : some2(a);
|
|
106
106
|
};
|
|
@@ -133,15 +133,15 @@ function getEnginesInfo(enginesInfo) {
|
|
|
133
133
|
const resolved = (0, import_chunk_H3T4L34H.$)(enginesInfo).with({ fromEnvVar: import_chunk_H3T4L34H.N.when(isSome2) }, (_engineInfo) => {
|
|
134
134
|
return `, resolved by ${_engineInfo.fromEnvVar.value}`;
|
|
135
135
|
}).otherwise(() => "");
|
|
136
|
-
const absolutePath = (0, import_chunk_H3T4L34H.$)(enginesInfo).with({ path: import_chunk_H3T4L34H.N.when(
|
|
136
|
+
const absolutePath = (0, import_chunk_H3T4L34H.$)(enginesInfo).with({ path: import_chunk_H3T4L34H.N.when(import_chunk_7MD6344A.isRight) }, (_engineInfo) => {
|
|
137
137
|
return _engineInfo.path.right;
|
|
138
|
-
}).with({ path: import_chunk_H3T4L34H.N.when(
|
|
138
|
+
}).with({ path: import_chunk_H3T4L34H.N.when(import_chunk_7MD6344A.isLeft) }, (_engineInfo) => {
|
|
139
139
|
errors.push(_engineInfo.path.left);
|
|
140
140
|
return "E_CANNOT_RESOLVE_PATH";
|
|
141
141
|
}).exhaustive();
|
|
142
|
-
const version = (0, import_chunk_H3T4L34H.$)(enginesInfo).with({ version: import_chunk_H3T4L34H.N.when(
|
|
142
|
+
const version = (0, import_chunk_H3T4L34H.$)(enginesInfo).with({ version: import_chunk_H3T4L34H.N.when(import_chunk_7MD6344A.isRight) }, (_engineInfo) => {
|
|
143
143
|
return _engineInfo.version.right;
|
|
144
|
-
}).with({ version: import_chunk_H3T4L34H.N.when(
|
|
144
|
+
}).with({ version: import_chunk_H3T4L34H.N.when(import_chunk_7MD6344A.isLeft) }, (_engineInfo) => {
|
|
145
145
|
errors.push(_engineInfo.version.left);
|
|
146
146
|
return "E_CANNOT_RESOLVE_VERSION";
|
|
147
147
|
}).exhaustive();
|
|
@@ -157,15 +157,15 @@ async function resolveEngine(binaryName) {
|
|
|
157
157
|
const enginePathEither = await (0, import_function2.pipe)(
|
|
158
158
|
pathFromEnvOption,
|
|
159
159
|
fold(
|
|
160
|
-
() => (0,
|
|
161
|
-
(pathFromEnv) => (0,
|
|
160
|
+
() => (0, import_chunk_NXIWDQBF.safeResolveBinary)(binaryName),
|
|
161
|
+
(pathFromEnv) => (0, import_chunk_7MD6344A.right2)(pathFromEnv.path)
|
|
162
162
|
)
|
|
163
163
|
)();
|
|
164
164
|
const versionEither = await (0, import_function2.pipe)(
|
|
165
165
|
enginePathEither,
|
|
166
|
-
|
|
167
|
-
(0,
|
|
168
|
-
return (0,
|
|
166
|
+
import_chunk_7MD6344A.fromEither,
|
|
167
|
+
(0, import_chunk_7MD6344A.chain)((enginePath) => {
|
|
168
|
+
return (0, import_chunk_X6M256IK.safeGetEngineVersion)(enginePath, binaryName);
|
|
169
169
|
})
|
|
170
170
|
)();
|
|
171
171
|
const engineInfo = {
|
|
@@ -26,25 +26,25 @@ 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_I3YDYYM2_exports = {};
|
|
30
|
+
__export(chunk_I3YDYYM2_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_I3YDYYM2_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
|
|
37
37
|
var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var import_chunk_DQMYNBP3 = require("./chunk-DQMYNBP3.js");
|
|
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_KK64NLNR = require("./chunk-KK64NLNR.js");
|
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
43
|
-
var
|
|
43
|
+
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
45
45
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
46
46
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
47
|
-
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
|
47
|
+
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
|
|
48
48
|
var debug = (0, import_debug.default)("prisma:mergeSchemas");
|
|
49
49
|
var MergeSchemasError = class extends Error {
|
|
50
50
|
constructor(params) {
|
|
@@ -60,20 +60,20 @@ ${detailsHeader} ${message}`;
|
|
|
60
60
|
}).exhaustive();
|
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
62
62
|
[Context: mergeSchemas]`;
|
|
63
|
-
super((0,
|
|
63
|
+
super((0, import_chunk_DQMYNBP3.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_IAEMHQAC.createDebugErrorType)(debug, "mergeSchemasWasm");
|
|
69
69
|
debug(`Using mergeSchemas Wasm`);
|
|
70
70
|
const mergeSchemasEither = (0, import_function.pipe)(
|
|
71
|
-
(0,
|
|
71
|
+
(0, import_chunk_7MD6344A.tryCatch)(
|
|
72
72
|
() => {
|
|
73
73
|
const params = JSON.stringify({
|
|
74
74
|
schema: options.schemas
|
|
75
75
|
});
|
|
76
|
-
return
|
|
76
|
+
return import_chunk_KK64NLNR.prismaSchemaWasm.merge_schemas(params);
|
|
77
77
|
},
|
|
78
78
|
(e) => ({
|
|
79
79
|
type: "wasm-error",
|
|
@@ -82,7 +82,7 @@ function mergeSchemas(options) {
|
|
|
82
82
|
})
|
|
83
83
|
)
|
|
84
84
|
);
|
|
85
|
-
if ((0,
|
|
85
|
+
if ((0, import_chunk_7MD6344A.isRight)(mergeSchemasEither)) {
|
|
86
86
|
return mergeSchemasEither.right;
|
|
87
87
|
}
|
|
88
88
|
const error = (0, import_chunk_H3T4L34H.$)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
|
|
@@ -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_IAEMHQAC.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
112
112
|
}).exhaustive();
|
|
113
113
|
throw error;
|
|
114
114
|
}
|
|
@@ -26,24 +26,24 @@ 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_IAEMHQAC_exports = {};
|
|
30
|
+
__export(chunk_IAEMHQAC_exports, {
|
|
31
31
|
createDebugErrorType: () => createDebugErrorType,
|
|
32
32
|
createSchemaValidationError: () => createSchemaValidationError,
|
|
33
33
|
parseQueryEngineError: () => parseQueryEngineError,
|
|
34
34
|
unlinkTempDatamodelPath: () => unlinkTempDatamodelPath
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
36
|
+
module.exports = __toCommonJS(chunk_IAEMHQAC_exports);
|
|
37
37
|
var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
|
|
38
|
-
var
|
|
38
|
+
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
39
39
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
40
|
-
var
|
|
40
|
+
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
|
41
41
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
42
42
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
43
43
|
var import_fs = __toESM(require("fs"));
|
|
44
|
-
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
|
44
|
+
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
|
|
45
45
|
function unlinkTempDatamodelPath(options, tempDatamodelPath) {
|
|
46
|
-
return (0,
|
|
46
|
+
return (0, import_chunk_7MD6344A.tryCatch2)(
|
|
47
47
|
() => {
|
|
48
48
|
if (!options.datamodelPath && tempDatamodelPath) {
|
|
49
49
|
return import_fs.default.promises.unlink(tempDatamodelPath);
|
|
@@ -66,11 +66,11 @@ function createSchemaValidationError(reason) {
|
|
|
66
66
|
}
|
|
67
67
|
function parseQueryEngineError({ errorOutput, reason }) {
|
|
68
68
|
const actualError = (0, import_function.pipe)(
|
|
69
|
-
(0,
|
|
69
|
+
(0, import_chunk_7MD6344A.tryCatch)(
|
|
70
70
|
() => JSON.parse(errorOutput),
|
|
71
71
|
() => ({ _tag: "unparsed", message: errorOutput, reason })
|
|
72
72
|
),
|
|
73
|
-
(0,
|
|
73
|
+
(0, import_chunk_7MD6344A.map)((errorOutputAsJSON) => {
|
|
74
74
|
const defaultMessage = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)((0, import_chunk_WMIBAVWZ.relativizePathInPSLError)(errorOutputAsJSON.message)));
|
|
75
75
|
const getConfigErrorInit = (0, import_chunk_H3T4L34H.$)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
|
|
76
76
|
return {
|
|
@@ -89,7 +89,7 @@ function parseQueryEngineError({ errorOutput, reason }) {
|
|
|
89
89
|
});
|
|
90
90
|
return { _tag: "parsed", message: defaultMessage, ...getConfigErrorInit };
|
|
91
91
|
}),
|
|
92
|
-
(0,
|
|
92
|
+
(0, import_chunk_7MD6344A.getOrElseW)(import_function.identity)
|
|
93
93
|
);
|
|
94
94
|
return actualError;
|
|
95
95
|
}
|
|
@@ -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_IB5PDCFO_exports = {};
|
|
20
|
+
__export(chunk_IB5PDCFO_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_IB5PDCFO_exports);
|
|
28
28
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
29
|
-
var
|
|
29
|
+
var import_chunk_KK64NLNR = require("./chunk-KK64NLNR.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_KK64NLNR.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
|
34
34
|
const lintDiagnostics = JSON.parse(lintResult);
|
|
35
35
|
return lintDiagnostics;
|
|
36
36
|
}
|
|
@@ -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_IJUVQMZY_exports = {};
|
|
30
|
+
__export(chunk_IJUVQMZY_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_IJUVQMZY_exports);
|
|
36
|
+
var import_chunk_6GTQHWWT = require("./chunk-6GTQHWWT.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_6GTQHWWT.require_package)();
|
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
|
|
@@ -26,25 +26,25 @@ 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_IY43XBPH_exports = {};
|
|
30
|
+
__export(chunk_IY43XBPH_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_IY43XBPH_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
|
|
37
37
|
var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var import_chunk_NK2ML3NJ = require("./chunk-NK2ML3NJ.js");
|
|
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_IJUVQMZY = require("./chunk-IJUVQMZY.js");
|
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
43
|
-
var
|
|
43
|
+
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
45
45
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
46
46
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
47
|
-
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
|
47
|
+
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
|
|
48
48
|
var debug = (0, import_debug.default)("prisma:validate");
|
|
49
49
|
var ValidateError = class extends Error {
|
|
50
50
|
constructor(params) {
|
|
@@ -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_NK2ML3NJ.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_IAEMHQAC.createDebugErrorType)(debug, "validateWasm");
|
|
69
69
|
debug(`Using validate Wasm`);
|
|
70
70
|
const validateEither = (0, import_function.pipe)(
|
|
71
|
-
(0,
|
|
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_IJUVQMZY.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_IJUVQMZY.prismaSchemaWasm.validate(params);
|
|
82
82
|
},
|
|
83
83
|
(e) => ({
|
|
84
84
|
type: "wasm-error",
|
|
@@ -87,7 +87,7 @@ function validate(options) {
|
|
|
87
87
|
})
|
|
88
88
|
)
|
|
89
89
|
);
|
|
90
|
-
if ((0,
|
|
90
|
+
if ((0, import_chunk_7MD6344A.isRight)(validateEither)) {
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
const error = (0, import_chunk_H3T4L34H.$)(validateEither.left).with({ type: "wasm-error" }, (e) => {
|
|
@@ -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_IAEMHQAC.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
117
117
|
}).exhaustive();
|
|
118
118
|
throw error;
|
|
119
119
|
}
|