@prisma/internals 6.3.0-integration-engines-6-3-0-6-integration-5-22-0-with-simplified-typeinfo-c7d99d9db5129d8b35986b8518c7f10bc8580e03.2 → 6.3.0-integration-simpler-typeinfo-query.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-3DMEILBC.js → chunk-2DXAGCPS.js} +11 -11
- package/dist/{chunk-4B7QW7H5.js → chunk-2WJPHJ2I.js} +5 -5
- package/dist/{chunk-MGZOEY6N.js → chunk-3U2ANLD3.js} +6 -6
- package/dist/{chunk-4O27JVUK.js → chunk-44JHENE6.js} +41 -14
- package/dist/{chunk-KQOJB3ZW.js → chunk-4NFLAUKD.js} +70 -70
- package/dist/chunk-4RWCRJYD.js +166 -0
- package/dist/{chunk-5MCWLJSR.js → chunk-5I4BOTBV.js} +9 -3
- package/dist/{chunk-ZZLZJFQD.js → chunk-5R7AZFMV.js} +5 -5
- package/dist/{chunk-6QXYYIUQ.js → chunk-5UJZARUY.js} +17 -17
- package/dist/{chunk-D6NVMO5B.js → chunk-67KWF6KB.js} +5 -5
- package/dist/{chunk-OA3Y3SYB.js → chunk-B44XJG7K.js} +5 -5
- package/dist/{chunk-6HMDWGVB.js → chunk-CKVVVLEH.js} +8 -8
- package/dist/{chunk-MPJLR4LI.js → chunk-COFXY6NH.js} +41 -14
- package/dist/chunk-D4MCOTL5.js +122 -0
- package/dist/{chunk-AXVFAZVY.js → chunk-DFG3425X.js} +16 -16
- package/dist/chunk-FPHZVRV4.js +110 -0
- package/dist/{chunk-S57RMXZW.js → chunk-FTS2IEWX.js} +5 -5
- package/dist/chunk-G7LL2H2O.js +54 -0
- package/dist/{chunk-25RJ7YTB.js → chunk-H3T4L34H.js} +83 -88
- package/dist/{chunk-3BND5XB4.js → chunk-HMGEWJDY.js} +47 -232
- package/dist/{chunk-77IC3DNO.js → chunk-IABMG3F4.js} +5 -5
- package/dist/{chunk-CXEMRKV4.js → chunk-IAEMHQAC.js} +8 -8
- package/dist/{chunk-CZDIXJEO.js → chunk-J3JE5NVO.js} +32 -56
- package/dist/{chunk-N6K7M2HZ.js → chunk-J4MA2JIK.js} +5 -5
- package/dist/{chunk-IHZ2I7E5.js → chunk-JBUUTZQL.js} +15 -15
- package/dist/chunk-JMZHUHCC.js +177 -0
- package/dist/{chunk-T6NCATRB.js → chunk-KNNIRRTO.js} +5 -5
- package/dist/{chunk-6R6PZCVQ.js → chunk-KPVPQQGU.js} +5 -5
- package/dist/{chunk-BNAT44VK.js → chunk-KROMVQBD.js} +9 -9
- package/dist/{chunk-TR2BJI77.js → chunk-LXIE6UJ2.js} +961 -79
- package/dist/{chunk-EAUIEZK2.js → chunk-MUJIYA44.js} +5 -5
- package/dist/{chunk-CGFXOUVQ.js → chunk-OHBFHT5Q.js} +15 -15
- package/dist/{chunk-UPIULDLZ.js → chunk-OSOXVAZB.js} +11 -11
- package/dist/chunk-RQPDQSHK.js +1429 -0
- package/dist/{chunk-2XRDQCIA.js → chunk-S4LINK5Y.js} +5 -5
- package/dist/{chunk-D3VAE4HY.js → chunk-UR3LUZY3.js} +17 -17
- package/dist/{chunk-EKBX4J6O.js → chunk-V2VWODV3.js} +5 -5
- package/dist/{chunk-FT32HRUC.js → chunk-VFU3I6P6.js} +16 -16
- package/dist/{chunk-JU7L7EBJ.js → chunk-VJQK3LHU.js} +185 -74
- package/dist/{chunk-V2ZF7ETH.js → chunk-WCRKL55L.js} +7 -7
- package/dist/{chunk-C47SCASR.js → chunk-WMIBAVWZ.js} +5 -5
- package/dist/{chunk-PC7HPZQJ.js → chunk-WYTN2XGW.js} +5 -5
- package/dist/{chunk-QTXYAZFX.js → chunk-XLYQ6PQW.js} +17 -17
- package/dist/{chunk-VRT7T6MF.js → chunk-YDZVEVUG.js} +73 -73
- package/dist/{chunk-ZKAW5JSN.js → chunk-ZA3RMW2P.js} +8 -5
- package/dist/cli/checkUnsupportedDataProxy.js +40 -41
- package/dist/cli/getSchema.js +45 -46
- package/dist/cli/hashes.js +40 -41
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +39 -40
- package/dist/engine-commands/getConfig.js +13 -13
- package/dist/engine-commands/getDmmf.js +10 -10
- package/dist/engine-commands/getEngineVersion.js +8 -8
- package/dist/engine-commands/getEnginesMetaInfo.js +10 -10
- package/dist/engine-commands/index.js +50 -51
- 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/relativizePathInPSLError.js +2 -2
- package/dist/engine-commands/validate.js +10 -10
- package/dist/errorReporting.js +6 -6
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +39 -40
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +39 -40
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.d.ts +9 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +132 -0
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +40 -41
- package/dist/get-generators/getGenerators.js +42 -43
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -3
- package/dist/getPackedPackage.js +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +85 -87
- package/dist/{multipart-parser-32AROPTR.js → multipart-parser-LCETWFPE.js} +6 -9
- package/dist/resolveBinary.js +7 -7
- package/dist/schemaEngineCommands.js +8 -8
- package/dist/sendPanic.js +39 -40
- package/dist/tracing/types.d.ts +16 -26
- package/dist/utils/cloudflareD1.js +3 -3
- package/dist/utils/getCommandWithExecutor.js +3 -3
- package/dist/utils/getEnvPaths.js +39 -40
- package/dist/utils/getGitHubIssueUrl.js +4 -4
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handleEngineLoadingErrors.js +3 -3
- package/dist/utils/handlePanic.js +39 -40
- package/dist/utils/isCurrentBinInstalledGlobally.d.ts +1 -1
- package/dist/utils/isCurrentBinInstalledGlobally.js +2 -2
- package/dist/utils/load.js +4 -4
- package/dist/utils/loadEnvFile.js +39 -40
- package/dist/utils/tryLoadEnvs.js +5 -5
- package/dist/wasm.js +4 -4
- package/package.json +12 -12
- package/dist/chunk-BONFK27U.js +0 -47
- package/dist/chunk-PPCNLYSB.js +0 -47
- package/dist/cli/getTypescriptVersion.d.ts +0 -1
- package/dist/cli/getTypescriptVersion.js +0 -25
- package/dist/typescript-AILDXN3I.js +0 -205230
- package/dist/typescript-WN4QH2CP.js +0 -205192
@@ -26,10 +26,11 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export2(
|
29
|
+
var chunk_VJQK3LHU_exports = {};
|
30
|
+
__export2(chunk_VJQK3LHU_exports, {
|
31
31
|
checkTypeScriptVersion: () => checkTypeScriptVersion,
|
32
32
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
33
|
+
checkYarnVersion: () => checkYarnVersion,
|
33
34
|
debug: () => debug5,
|
34
35
|
forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
|
35
36
|
formatSchema: () => formatSchema,
|
@@ -55,47 +56,48 @@ __export2(chunk_JU7L7EBJ_exports, {
|
|
55
56
|
sendPanic: () => sendPanic,
|
56
57
|
skipIndex: () => skipIndex
|
57
58
|
});
|
58
|
-
module.exports = __toCommonJS2(
|
59
|
-
var
|
60
|
-
var
|
61
|
-
var
|
62
|
-
var import_chunk_S57RMXZW = require("./chunk-S57RMXZW.js");
|
59
|
+
module.exports = __toCommonJS2(chunk_VJQK3LHU_exports);
|
60
|
+
var import_chunk_IABMG3F4 = require("./chunk-IABMG3F4.js");
|
61
|
+
var import_chunk_3U2ANLD3 = require("./chunk-3U2ANLD3.js");
|
62
|
+
var import_chunk_FTS2IEWX = require("./chunk-FTS2IEWX.js");
|
63
63
|
var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
|
64
|
-
var import_chunk_ONHKZPSV = require("./chunk-ONHKZPSV.js");
|
65
64
|
var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
|
65
|
+
var import_chunk_KEBDP2C3 = require("./chunk-KEBDP2C3.js");
|
66
66
|
var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
|
67
67
|
var import_chunk_5XRQ7ONW = require("./chunk-5XRQ7ONW.js");
|
68
68
|
var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
|
69
69
|
var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
|
70
|
+
var import_chunk_ONHKZPSV = require("./chunk-ONHKZPSV.js");
|
70
71
|
var import_chunk_5V36RLCO = require("./chunk-5V36RLCO.js");
|
71
72
|
var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
|
72
73
|
var import_chunk_JHQHVXIR = require("./chunk-JHQHVXIR.js");
|
73
|
-
var
|
74
|
+
var import_chunk_HMGEWJDY = require("./chunk-HMGEWJDY.js");
|
74
75
|
var import_chunk_BGFWFIPR = require("./chunk-BGFWFIPR.js");
|
75
76
|
var import_chunk_2MWIMEFK = require("./chunk-2MWIMEFK.js");
|
76
77
|
var import_chunk_L6GBFCXG = require("./chunk-L6GBFCXG.js");
|
77
78
|
var import_chunk_KDHESRKE = require("./chunk-KDHESRKE.js");
|
78
79
|
var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
|
79
|
-
var
|
80
|
+
var import_chunk_XLYQ6PQW = require("./chunk-XLYQ6PQW.js");
|
80
81
|
var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
|
81
82
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
82
83
|
var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
|
83
|
-
var
|
84
|
-
var
|
85
|
-
var
|
86
|
-
var
|
87
|
-
var import_chunk_4O27JVUK = require("./chunk-4O27JVUK.js");
|
84
|
+
var import_chunk_5R7AZFMV = require("./chunk-5R7AZFMV.js");
|
85
|
+
var import_chunk_OHBFHT5Q = require("./chunk-OHBFHT5Q.js");
|
86
|
+
var import_chunk_5UJZARUY = require("./chunk-5UJZARUY.js");
|
87
|
+
var import_chunk_COFXY6NH = require("./chunk-COFXY6NH.js");
|
88
88
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
89
|
-
var
|
90
|
-
var
|
89
|
+
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
90
|
+
var import_chunk_2WJPHJ2I = require("./chunk-2WJPHJ2I.js");
|
91
|
+
var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
|
91
92
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
92
93
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
94
|
+
var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
|
93
95
|
var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
|
94
96
|
var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
|
95
97
|
var import_chunk_635TMBAP = require("./chunk-635TMBAP.js");
|
96
98
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
97
|
-
var
|
98
|
-
var
|
99
|
+
var import_chunk_4NFLAUKD = require("./chunk-4NFLAUKD.js");
|
100
|
+
var import_chunk_J3JE5NVO = require("./chunk-J3JE5NVO.js");
|
99
101
|
var import_chunk_FUUQ6FJ4 = require("./chunk-FUUQ6FJ4.js");
|
100
102
|
var import_chunk_KKMREGHN = require("./chunk-KKMREGHN.js");
|
101
103
|
var import_chunk_AZNLB67U = require("./chunk-AZNLB67U.js");
|
@@ -439,7 +441,7 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
439
441
|
module2.exports = readdirGlob;
|
440
442
|
var fs8 = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
441
443
|
var { EventEmitter } = (0, import_chunk_WWAWV7DQ.__require)("events");
|
442
|
-
var { Minimatch } = (0,
|
444
|
+
var { Minimatch } = (0, import_chunk_J3JE5NVO.require_minimatch)();
|
443
445
|
var { resolve } = (0, import_chunk_WWAWV7DQ.__require)("path");
|
444
446
|
function readdir(dir2, strict) {
|
445
447
|
return new Promise((resolve2, reject2) => {
|
@@ -454,16 +456,12 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
454
456
|
}
|
455
457
|
break;
|
456
458
|
case "ENOTSUP":
|
457
|
-
// Operation not supported
|
458
459
|
case "ENOENT":
|
459
|
-
// No such file or directory
|
460
460
|
case "ENAMETOOLONG":
|
461
|
-
// Filename too long
|
462
461
|
case "UNKNOWN":
|
463
462
|
resolve2([]);
|
464
463
|
break;
|
465
464
|
case "ELOOP":
|
466
|
-
// Too many levels of symbolic links
|
467
465
|
default:
|
468
466
|
reject2(err);
|
469
467
|
break;
|
@@ -2850,7 +2848,7 @@ var require_stream_writable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2850
2848
|
var Duplex;
|
2851
2849
|
Writable.WritableState = WritableState;
|
2852
2850
|
var util = Object.create(require_util());
|
2853
|
-
util.inherits = (0,
|
2851
|
+
util.inherits = (0, import_chunk_J3JE5NVO.require_inherits)();
|
2854
2852
|
var internalUtil = {
|
2855
2853
|
deprecate: require_node()
|
2856
2854
|
};
|
@@ -3288,7 +3286,7 @@ var require_stream_duplex = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3288
3286
|
};
|
3289
3287
|
module2.exports = Duplex;
|
3290
3288
|
var util = Object.create(require_util());
|
3291
|
-
util.inherits = (0,
|
3289
|
+
util.inherits = (0, import_chunk_J3JE5NVO.require_inherits)();
|
3292
3290
|
var Readable = require_stream_readable();
|
3293
3291
|
var Writable = require_stream_writable();
|
3294
3292
|
util.inherits(Duplex, Readable);
|
@@ -3609,7 +3607,7 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3609
3607
|
return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
|
3610
3608
|
}
|
3611
3609
|
var util = Object.create(require_util());
|
3612
|
-
util.inherits = (0,
|
3610
|
+
util.inherits = (0, import_chunk_J3JE5NVO.require_inherits)();
|
3613
3611
|
var debugUtil = (0, import_chunk_WWAWV7DQ.__require)("util");
|
3614
3612
|
var debug8 = void 0;
|
3615
3613
|
if (debugUtil && debugUtil.debuglog) {
|
@@ -4276,7 +4274,7 @@ var require_stream_transform = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4276
4274
|
module2.exports = Transform;
|
4277
4275
|
var Duplex = require_stream_duplex();
|
4278
4276
|
var util = Object.create(require_util());
|
4279
|
-
util.inherits = (0,
|
4277
|
+
util.inherits = (0, import_chunk_J3JE5NVO.require_inherits)();
|
4280
4278
|
util.inherits(Transform, Duplex);
|
4281
4279
|
function afterTransform(er, data) {
|
4282
4280
|
var ts = this._transformState;
|
@@ -4374,7 +4372,7 @@ var require_stream_passthrough = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
4374
4372
|
module2.exports = PassThrough;
|
4375
4373
|
var Transform = require_stream_transform();
|
4376
4374
|
var util = Object.create(require_util());
|
4377
|
-
util.inherits = (0,
|
4375
|
+
util.inherits = (0, import_chunk_J3JE5NVO.require_inherits)();
|
4378
4376
|
util.inherits(PassThrough, Transform);
|
4379
4377
|
function PassThrough(options2) {
|
4380
4378
|
if (!(this instanceof PassThrough)) return new PassThrough(options2);
|
@@ -5660,7 +5658,7 @@ var require_stream_writable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5660
5658
|
var ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END;
|
5661
5659
|
var ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
|
5662
5660
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
5663
|
-
(0,
|
5661
|
+
(0, import_chunk_J3JE5NVO.require_inherits)()(Writable, Stream);
|
5664
5662
|
function nop() {
|
5665
5663
|
}
|
5666
5664
|
function WritableState(options2, stream, isDuplex) {
|
@@ -6102,7 +6100,7 @@ var require_stream_duplex2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6102
6100
|
module2.exports = Duplex;
|
6103
6101
|
var Readable = require_stream_readable2();
|
6104
6102
|
var Writable = require_stream_writable2();
|
6105
|
-
(0,
|
6103
|
+
(0, import_chunk_J3JE5NVO.require_inherits)()(Duplex, Readable);
|
6106
6104
|
{
|
6107
6105
|
keys = objectKeys(Writable.prototype);
|
6108
6106
|
for (v = 0; v < keys.length; v++) {
|
@@ -6879,7 +6877,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
6879
6877
|
var StringDecoder;
|
6880
6878
|
var createReadableStreamAsyncIterator;
|
6881
6879
|
var from;
|
6882
|
-
(0,
|
6880
|
+
(0, import_chunk_J3JE5NVO.require_inherits)()(Readable, Stream);
|
6883
6881
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
6884
6882
|
var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
|
6885
6883
|
function prependListener(emitter, event, fn) {
|
@@ -7584,7 +7582,7 @@ var require_stream_transform2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7584
7582
|
var ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING;
|
7585
7583
|
var ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
|
7586
7584
|
var Duplex = require_stream_duplex2();
|
7587
|
-
(0,
|
7585
|
+
(0, import_chunk_J3JE5NVO.require_inherits)()(Transform, Duplex);
|
7588
7586
|
function afterTransform(er, data) {
|
7589
7587
|
var ts = this._transformState;
|
7590
7588
|
ts.transforming = false;
|
@@ -7678,7 +7676,7 @@ var require_stream_passthrough2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
7678
7676
|
"use strict";
|
7679
7677
|
module2.exports = PassThrough;
|
7680
7678
|
var Transform = require_stream_transform2();
|
7681
|
-
(0,
|
7679
|
+
(0, import_chunk_J3JE5NVO.require_inherits)()(PassThrough, Transform);
|
7682
7680
|
function PassThrough(options2) {
|
7683
7681
|
if (!(this instanceof PassThrough)) return new PassThrough(options2);
|
7684
7682
|
Transform.call(this, options2);
|
@@ -8552,7 +8550,7 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
8552
8550
|
var difference = require_difference();
|
8553
8551
|
var union = require_union();
|
8554
8552
|
var isPlainObject = require_isPlainObject();
|
8555
|
-
var glob = (0,
|
8553
|
+
var glob = (0, import_chunk_J3JE5NVO.require_glob)();
|
8556
8554
|
var file = module2.exports = {};
|
8557
8555
|
var pathSeparatorRe = /[\/\\]/g;
|
8558
8556
|
var processPatterns = function(patterns, fn) {
|
@@ -13397,7 +13395,7 @@ var require_ci_info = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
13397
13395
|
}
|
13398
13396
|
});
|
13399
13397
|
var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
13400
|
-
"../../node_modules/.pnpm/checkpoint-client@1.1.
|
13398
|
+
"../../node_modules/.pnpm/checkpoint-client@1.1.33/node_modules/checkpoint-client/dist/index.js"(exports, module) {
|
13401
13399
|
"use strict";
|
13402
13400
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13403
13401
|
var path$2 = (0, import_chunk_WWAWV7DQ.__require)("path");
|
@@ -13802,8 +13800,6 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
13802
13800
|
this.inc("patch", identifier, identifierBase);
|
13803
13801
|
this.inc("pre", identifier, identifierBase);
|
13804
13802
|
break;
|
13805
|
-
// If the input is a non-prerelease version, this acts the same as
|
13806
|
-
// prepatch.
|
13807
13803
|
case "prerelease":
|
13808
13804
|
if (this.prerelease.length === 0) {
|
13809
13805
|
this.inc("patch", identifier, identifierBase);
|
@@ -13831,8 +13827,6 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
13831
13827
|
}
|
13832
13828
|
this.prerelease = [];
|
13833
13829
|
break;
|
13834
|
-
// This probably shouldn't be used publicly.
|
13835
|
-
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
13836
13830
|
case "pre": {
|
13837
13831
|
const base = Number(identifierBase) ? 1 : 0;
|
13838
13832
|
if (!identifier && identifierBase === false) {
|
@@ -14713,6 +14707,7 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
14713
14707
|
}
|
14714
14708
|
});
|
14715
14709
|
var import_find_up = (0, import_chunk_WWAWV7DQ.__toESM)(require_find_up());
|
14710
|
+
var import_execa = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_7XNZDY2V.require_execa)());
|
14716
14711
|
var readFile = (0, import_util.promisify)(import_fs3.default.readFile);
|
14717
14712
|
var stat = (0, import_util.promisify)(import_fs3.default.stat);
|
14718
14713
|
var debug2 = (0, import_debug3.Debug)("prisma:getSchema");
|
@@ -14751,7 +14746,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
14751
14746
|
}
|
14752
14747
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
14753
14748
|
debug2("Loading config");
|
14754
|
-
const config2 = await (0,
|
14749
|
+
const config2 = await (0, import_chunk_5UJZARUY.getConfig)({
|
14755
14750
|
datamodel: files,
|
14756
14751
|
ignoreEnvVarErrors: true
|
14757
14752
|
});
|
@@ -14818,9 +14813,14 @@ async function getSchemaWithPathInternal(schemaPathFromArgs, { cwd, argumentName
|
|
14818
14813
|
if (defaultResult.ok) {
|
14819
14814
|
return defaultResult;
|
14820
14815
|
}
|
14816
|
+
const yarnResult = await getSchemaFromYarn1Workspace(cwd, defaultResult.error.failures);
|
14817
|
+
if (yarnResult.ok) {
|
14818
|
+
return yarnResult;
|
14819
|
+
}
|
14820
|
+
const finalError = yarnResult.error.kind === "Yarn1WorkspaceSchemaNotFound" ? defaultResult.error : yarnResult.error;
|
14821
14821
|
return {
|
14822
14822
|
ok: false,
|
14823
|
-
error:
|
14823
|
+
error: finalError
|
14824
14824
|
};
|
14825
14825
|
}
|
14826
14826
|
function renderLookupError(error) {
|
@@ -14855,7 +14855,7 @@ function renderDefaultLookupError(error, cwd) {
|
|
14855
14855
|
return parts.join("\n");
|
14856
14856
|
}
|
14857
14857
|
async function getPrismaConfigFromPackageJson(cwd) {
|
14858
|
-
const pkgJson = await (0,
|
14858
|
+
const pkgJson = await (0, import_chunk_J3JE5NVO.readPackageUp)({ cwd, normalize: false });
|
14859
14859
|
const prismaPropertyFromPkgJson = pkgJson?.packageJson?.prisma;
|
14860
14860
|
if (!pkgJson) {
|
14861
14861
|
return null;
|
@@ -14895,6 +14895,47 @@ async function getSchemaFromPackageJson(cwd) {
|
|
14895
14895
|
}
|
14896
14896
|
return lookupResult;
|
14897
14897
|
}
|
14898
|
+
async function getSchemaFromYarn1Workspace(cwd, pastFailures) {
|
14899
|
+
if (!process.env.npm_config_user_agent?.includes("yarn")) {
|
14900
|
+
return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
|
14901
|
+
}
|
14902
|
+
let workspaces;
|
14903
|
+
try {
|
14904
|
+
const { stdout: version3 } = await import_execa.default.command("yarn --version", {
|
14905
|
+
cwd
|
14906
|
+
});
|
14907
|
+
if (version3.startsWith("2")) {
|
14908
|
+
return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
|
14909
|
+
}
|
14910
|
+
const { stdout } = await import_execa.default.command("yarn workspaces info --json", {
|
14911
|
+
cwd
|
14912
|
+
});
|
14913
|
+
const json = getJson(stdout);
|
14914
|
+
workspaces = Object.values(json);
|
14915
|
+
} catch {
|
14916
|
+
return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
|
14917
|
+
}
|
14918
|
+
const workspaceRootDir = await findWorkspaceRoot(cwd);
|
14919
|
+
if (!workspaceRootDir) {
|
14920
|
+
return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
|
14921
|
+
}
|
14922
|
+
for (const workspace of workspaces) {
|
14923
|
+
const workspacePath = import_path2.default.join(workspaceRootDir, workspace.location);
|
14924
|
+
const workspaceSchema = await tryWorkspacePath(workspacePath, pastFailures);
|
14925
|
+
if (workspaceSchema.ok) {
|
14926
|
+
return workspaceSchema;
|
14927
|
+
}
|
14928
|
+
}
|
14929
|
+
const rootPathSchema = await tryWorkspacePath(workspaceRootDir, pastFailures);
|
14930
|
+
return rootPathSchema;
|
14931
|
+
}
|
14932
|
+
async function tryWorkspacePath(cwd, pastFailures) {
|
14933
|
+
const pkgJson = await getSchemaFromPackageJson(cwd);
|
14934
|
+
if (pkgJson.ok) {
|
14935
|
+
return pkgJson;
|
14936
|
+
}
|
14937
|
+
return getDefaultSchema(cwd, pastFailures);
|
14938
|
+
}
|
14898
14939
|
async function getDefaultSchema(cwd, failures = []) {
|
14899
14940
|
const schemaPrisma = {
|
14900
14941
|
schemaPath: {
|
@@ -14973,6 +15014,44 @@ async function getSchema(schemaPathFromArgs) {
|
|
14973
15014
|
const schemaPathResult = await getSchemaWithPath(schemaPathFromArgs);
|
14974
15015
|
return schemaPathResult.schemas;
|
14975
15016
|
}
|
15017
|
+
function getJson(stdout) {
|
15018
|
+
const firstCurly = stdout.indexOf("{");
|
15019
|
+
const lastCurly = stdout.lastIndexOf("}");
|
15020
|
+
const sliced = stdout.slice(firstCurly, lastCurly + 1);
|
15021
|
+
return JSON.parse(sliced);
|
15022
|
+
}
|
15023
|
+
function isPkgJsonWorkspaceRoot(pkgJson) {
|
15024
|
+
const workspaces = pkgJson.workspaces;
|
15025
|
+
if (!workspaces) {
|
15026
|
+
return false;
|
15027
|
+
}
|
15028
|
+
return Array.isArray(workspaces) || workspaces.packages !== void 0;
|
15029
|
+
}
|
15030
|
+
async function isNearestPkgJsonWorkspaceRoot(cwd) {
|
15031
|
+
const pkgJson = await (0, import_chunk_J3JE5NVO.readPackageUp)({ cwd, normalize: false });
|
15032
|
+
if (!pkgJson) {
|
15033
|
+
return null;
|
15034
|
+
}
|
15035
|
+
return {
|
15036
|
+
isRoot: isPkgJsonWorkspaceRoot(pkgJson.packageJson),
|
15037
|
+
path: pkgJson.path
|
15038
|
+
};
|
15039
|
+
}
|
15040
|
+
async function findWorkspaceRoot(cwd) {
|
15041
|
+
let pkgJson = await isNearestPkgJsonWorkspaceRoot(cwd);
|
15042
|
+
if (!pkgJson) {
|
15043
|
+
return null;
|
15044
|
+
}
|
15045
|
+
if (pkgJson.isRoot === true) {
|
15046
|
+
return import_path2.default.dirname(pkgJson.path);
|
15047
|
+
}
|
15048
|
+
const pkgJsonParentDir = import_path2.default.dirname(import_path2.default.dirname(pkgJson.path));
|
15049
|
+
pkgJson = await isNearestPkgJsonWorkspaceRoot(pkgJsonParentDir);
|
15050
|
+
if (!pkgJson || pkgJson.isRoot === false) {
|
15051
|
+
return null;
|
15052
|
+
}
|
15053
|
+
return import_path2.default.dirname(pkgJson.path);
|
15054
|
+
}
|
14976
15055
|
var debug3 = (0, import_debug2.default)("prisma:loadEnv");
|
14977
15056
|
async function getEnvPaths(schemaPath2, opts = { cwd: process.cwd() }) {
|
14978
15057
|
const rootEnvPath = getProjectRootEnvPath({ cwd: opts.cwd }) ?? null;
|
@@ -14988,7 +15067,7 @@ async function getEnvPaths(schemaPath2, opts = { cwd: process.cwd() }) {
|
|
14988
15067
|
"./.env"
|
14989
15068
|
// 4 - Check cwd for .env
|
14990
15069
|
];
|
14991
|
-
const schemaEnvPath = schemaEnvPaths.find(
|
15070
|
+
const schemaEnvPath = schemaEnvPaths.find(import_chunk_HMGEWJDY.exists);
|
14992
15071
|
return { rootEnvPath, schemaEnvPath };
|
14993
15072
|
}
|
14994
15073
|
async function readSchemaPathFromPkgJson() {
|
@@ -15036,7 +15115,7 @@ async function loadEnvFile({
|
|
15036
15115
|
printMessage = false
|
15037
15116
|
} = {}) {
|
15038
15117
|
const envPaths2 = await getEnvPaths(schemaPath2);
|
15039
|
-
const envData = (0,
|
15118
|
+
const envData = (0, import_chunk_HMGEWJDY.tryLoadEnvs)(envPaths2, { conflictCheck: "error" });
|
15040
15119
|
if (printMessage && envData && envData.message) {
|
15041
15120
|
process.stdout.write(envData.message + "\n");
|
15042
15121
|
}
|
@@ -15059,8 +15138,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
|
|
15059
15138
|
if (argName.includes("schema")) {
|
15060
15139
|
await loadEnvFile({ schemaPath: argValue, printMessage: false });
|
15061
15140
|
const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
|
15062
|
-
const config2 = await (0,
|
15063
|
-
const url = (0,
|
15141
|
+
const config2 = await (0, import_chunk_5UJZARUY.getConfig)({ datamodel, ignoreEnvVarErrors: true });
|
15142
|
+
const url = (0, import_chunk_5UJZARUY.resolveUrl)((0, import_chunk_5UJZARUY.getEffectiveUrl)(config2.datasources[0]));
|
15064
15143
|
if (url?.startsWith("prisma://")) {
|
15065
15144
|
return forbiddenCmdWithDataProxyFlagMessage(command);
|
15066
15145
|
}
|
@@ -15081,7 +15160,7 @@ function getCLIPathHash() {
|
|
15081
15160
|
const cliPath = process.argv[1];
|
15082
15161
|
return import_crypto.default.createHash("sha256").update(cliPath).digest("hex").substring(0, 8);
|
15083
15162
|
}
|
15084
|
-
var import_p_map = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
15163
|
+
var import_p_map = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_J3JE5NVO.require_p_map)());
|
15085
15164
|
var debug4 = (0, import_debug6.default)("prisma:generator");
|
15086
15165
|
async function checkTypeScriptVersion() {
|
15087
15166
|
const minVersion = "4.1.0";
|
@@ -15107,10 +15186,42 @@ async function checkTypeScriptVersion() {
|
|
15107
15186
|
} catch (e) {
|
15108
15187
|
}
|
15109
15188
|
}
|
15189
|
+
function checkYarnVersion() {
|
15190
|
+
if (process.env.npm_config_user_agent) {
|
15191
|
+
const match = parseUserAgentString(process.env.npm_config_user_agent);
|
15192
|
+
if (match) {
|
15193
|
+
const { agent, major, minor, patch } = match;
|
15194
|
+
if (agent === "yarn" && major === 1) {
|
15195
|
+
const currentYarnVersion = `${major}.${minor}.${patch}`;
|
15196
|
+
const minYarnVersion = "1.19.2";
|
15197
|
+
if ((0, import_chunk_EUTJYQDW.semverLt)(currentYarnVersion, minYarnVersion)) {
|
15198
|
+
import_chunk_AZNLB67U.logger_exports.warn(
|
15199
|
+
`Your ${(0, import_chunk_PG5FDKSF.bold)("yarn")} has version ${currentYarnVersion}, which is outdated. Please update it to ${(0, import_chunk_PG5FDKSF.bold)(
|
15200
|
+
minYarnVersion
|
15201
|
+
)} or ${(0, import_chunk_PG5FDKSF.bold)("newer")} in order to use Prisma.`
|
15202
|
+
);
|
15203
|
+
}
|
15204
|
+
}
|
15205
|
+
}
|
15206
|
+
}
|
15207
|
+
}
|
15208
|
+
function parseUserAgentString(str) {
|
15209
|
+
const userAgentRegex = /(\w+)\/(\d+)\.(\d+)\.(\d+)/;
|
15210
|
+
const match = userAgentRegex.exec(str);
|
15211
|
+
if (match) {
|
15212
|
+
const agent = match[1];
|
15213
|
+
const major = parseInt(match[2]);
|
15214
|
+
const minor = parseInt(match[3]);
|
15215
|
+
const patch = parseInt(match[4]);
|
15216
|
+
return { agent, major, minor, patch };
|
15217
|
+
}
|
15218
|
+
return null;
|
15219
|
+
}
|
15110
15220
|
var debug5 = (0, import_debug5.default)("prisma:generator");
|
15111
15221
|
async function prismaClientResolver(baseDir, version3) {
|
15112
15222
|
let prismaClientDir = await (0, import_chunk_KEBDP2C3.findPrismaClientDir)(baseDir);
|
15113
15223
|
debug5("baseDir", baseDir);
|
15224
|
+
checkYarnVersion();
|
15114
15225
|
await checkTypeScriptVersion();
|
15115
15226
|
if (!prismaClientDir && !process.env.PRISMA_GENERATE_SKIP_AUTOINSTALL) {
|
15116
15227
|
let projectRoot = (0, import_chunk_J77ZIDXB.longestCommonPathPrefix)(baseDir, process.cwd());
|
@@ -15136,30 +15247,30 @@ async function prismaClientResolver(baseDir, version3) {
|
|
15136
15247
|
);
|
15137
15248
|
}
|
15138
15249
|
const prismaCliDir = await (0, import_chunk_FUUQ6FJ4.resolvePkg)("prisma", { basedir: baseDir });
|
15139
|
-
if (process.platform === "win32" && await (0,
|
15250
|
+
if (process.platform === "win32" && await (0, import_chunk_FTS2IEWX.isYarnUsed)(baseDir)) {
|
15140
15251
|
const hasCli = (s2) => prismaCliDir !== void 0 ? s2 : "";
|
15141
15252
|
const missingCli = (s2) => prismaCliDir === void 0 ? s2 : "";
|
15142
15253
|
throw new Error(
|
15143
15254
|
`Could not resolve ${missingCli(`${(0, import_chunk_PG5FDKSF.bold)("prisma")} and `)}${(0, import_chunk_PG5FDKSF.bold)(
|
15144
15255
|
"@prisma/client"
|
15145
15256
|
)} in the current project. Please install ${hasCli("it")}${missingCli("them")} with ${missingCli(
|
15146
|
-
`${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0,
|
15147
|
-
)}${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0,
|
15148
|
-
await (0,
|
15257
|
+
`${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "add", "prisma", "-D")}`))} and `
|
15258
|
+
)}${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "add", "@prisma/client")}`))}, and rerun ${(0, import_chunk_PG5FDKSF.bold)(
|
15259
|
+
await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "execute", "prisma generate")
|
15149
15260
|
)} \u{1F64F}.`
|
15150
15261
|
);
|
15151
15262
|
}
|
15152
15263
|
if (!prismaCliDir) {
|
15153
|
-
await (0,
|
15264
|
+
await (0, import_chunk_IABMG3F4.runPackageCmd)(projectRoot, "add", `prisma@${version3 ?? "latest"}`, "-D", "--silent");
|
15154
15265
|
}
|
15155
|
-
await (0,
|
15266
|
+
await (0, import_chunk_IABMG3F4.runPackageCmd)(projectRoot, "add", `@prisma/client@${version3 ?? "latest"}`, "--silent");
|
15156
15267
|
prismaClientDir = await (0, import_chunk_KEBDP2C3.findPrismaClientDir)(import_path4.default.join(".", baseDir));
|
15157
15268
|
if (!prismaClientDir) {
|
15158
15269
|
throw new Error(
|
15159
15270
|
`Could not resolve @prisma/client despite the installation that we just tried.
|
15160
15271
|
Please try to install it by hand with ${(0, import_chunk_PG5FDKSF.bold)(
|
15161
|
-
(0, import_chunk_PG5FDKSF.green)(`${await (0,
|
15162
|
-
)} and rerun ${(0, import_chunk_PG5FDKSF.bold)(await (0,
|
15272
|
+
(0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "add", "@prisma/client")}`)
|
15273
|
+
)} and rerun ${(0, import_chunk_PG5FDKSF.bold)(await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "execute", "prisma generate"))} \u{1F64F}.`
|
15163
15274
|
);
|
15164
15275
|
}
|
15165
15276
|
console.info(
|
@@ -15171,7 +15282,7 @@ Please try to install it by hand with ${(0, import_chunk_PG5FDKSF.bold)(
|
|
15171
15282
|
throw new Error(
|
15172
15283
|
`Could not resolve @prisma/client.
|
15173
15284
|
Please try to install it with ${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)("npm install @prisma/client"))} and rerun ${(0, import_chunk_PG5FDKSF.bold)(
|
15174
|
-
await (0,
|
15285
|
+
await (0, import_chunk_3U2ANLD3.getPackageCmd)(baseDir, "execute", "prisma generate")
|
15175
15286
|
)} \u{1F64F}.`
|
15176
15287
|
);
|
15177
15288
|
}
|
@@ -15232,7 +15343,7 @@ async function getGenerators(options) {
|
|
15232
15343
|
prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
|
15233
15344
|
}
|
15234
15345
|
}
|
15235
|
-
const config = await (0,
|
15346
|
+
const config = await (0, import_chunk_5UJZARUY.getConfig)({
|
15236
15347
|
datamodel: schemas,
|
15237
15348
|
datamodelPath: schemaPath,
|
15238
15349
|
prismaPath,
|
@@ -15243,7 +15354,7 @@ async function getGenerators(options) {
|
|
15243
15354
|
}
|
15244
15355
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
|
15245
15356
|
const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
|
15246
|
-
const dmmf = await (0,
|
15357
|
+
const dmmf = await (0, import_chunk_COFXY6NH.getDMMF)({
|
15247
15358
|
datamodel: schemas,
|
15248
15359
|
datamodelPath: schemaPath,
|
15249
15360
|
prismaPath,
|
@@ -15304,7 +15415,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
|
|
15304
15415
|
fromEnvVar: "null"
|
15305
15416
|
};
|
15306
15417
|
}
|
15307
|
-
const datamodel = (0,
|
15418
|
+
const datamodel = (0, import_chunk_OHBFHT5Q.mergeSchemas)({ schemas });
|
15308
15419
|
const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
|
15309
15420
|
const options2 = {
|
15310
15421
|
datamodel,
|
@@ -15387,7 +15498,7 @@ generator gen {
|
|
15387
15498
|
debug6({ generatorBinaryPaths });
|
15388
15499
|
generator.setBinaryPaths(generatorBinaryPaths);
|
15389
15500
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
15390
|
-
const customDmmf = await (0,
|
15501
|
+
const customDmmf = await (0, import_chunk_COFXY6NH.getDMMF)({
|
15391
15502
|
datamodel: schemas,
|
15392
15503
|
datamodelPath: schemaPath,
|
15393
15504
|
prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
|
@@ -15505,23 +15616,23 @@ async function sendPanic({
|
|
15505
15616
|
enginesVersion: enginesVersion2,
|
15506
15617
|
getDatabaseVersionSafe
|
15507
15618
|
}) {
|
15508
|
-
const schema = await (0,
|
15619
|
+
const schema = await (0, import_chunk_H3T4L34H.$)(error).with({ schemaPath: import_chunk_H3T4L34H.N.not(import_chunk_H3T4L34H.N.nullish) }, (err) => {
|
15509
15620
|
return getSchema(err.schemaPath);
|
15510
|
-
}).with({ schema:
|
15621
|
+
}).with({ schema: import_chunk_H3T4L34H.N.not(import_chunk_H3T4L34H.N.nullish) }, (err) => Promise.resolve(err.schema)).otherwise(() => void 0);
|
15511
15622
|
const maskedSchema = schema ? (0, import_chunk_KDHESRKE.maskSchemas)(schema) : void 0;
|
15512
15623
|
let dbVersion;
|
15513
15624
|
if (error.area === "LIFT_CLI") {
|
15514
|
-
const getDatabaseVersionParams = (0,
|
15625
|
+
const getDatabaseVersionParams = (0, import_chunk_H3T4L34H.$)({
|
15515
15626
|
schema,
|
15516
15627
|
introspectionUrl: error.introspectionUrl
|
15517
|
-
}).with({ schema:
|
15628
|
+
}).with({ schema: import_chunk_H3T4L34H.N.not(void 0) }, ({ schema: schema2 }) => {
|
15518
15629
|
return {
|
15519
15630
|
datasource: {
|
15520
15631
|
tag: "Schema",
|
15521
15632
|
...(0, import_chunk_JHQHVXIR.toSchemasContainer)(schema2)
|
15522
15633
|
}
|
15523
15634
|
};
|
15524
|
-
}).with({ introspectionUrl:
|
15635
|
+
}).with({ introspectionUrl: import_chunk_H3T4L34H.N.not(void 0) }, ({ introspectionUrl }) => {
|
15525
15636
|
return {
|
15526
15637
|
datasource: {
|
15527
15638
|
tag: "ConnectionString",
|
@@ -15555,16 +15666,16 @@ async function sendPanic({
|
|
15555
15666
|
sqlDump: void 0,
|
15556
15667
|
dbVersion
|
15557
15668
|
};
|
15558
|
-
const signedUrl = await (0,
|
15669
|
+
const signedUrl = await (0, import_chunk_4NFLAUKD.createErrorReport)(params);
|
15559
15670
|
try {
|
15560
15671
|
if (error.schemaPath) {
|
15561
15672
|
const zip = await makeErrorZip(error);
|
15562
|
-
await (0,
|
15673
|
+
await (0, import_chunk_4NFLAUKD.uploadZip)(zip, signedUrl);
|
15563
15674
|
}
|
15564
15675
|
} catch (zipUploadError) {
|
15565
15676
|
console.error(`Error uploading zip file: ${zipUploadError.message}`);
|
15566
15677
|
}
|
15567
|
-
const id = await (0,
|
15678
|
+
const id = await (0, import_chunk_4NFLAUKD.makeErrorReportCompleted)(signedUrl);
|
15568
15679
|
return id;
|
15569
15680
|
}
|
15570
15681
|
function concatSchemaForReport(schemaFiles) {
|
@@ -15671,7 +15782,7 @@ ${(0, import_chunk_PG5FDKSF.bold)("Thanks a lot for your help! \u{1F64F}")}`);
|
|
15671
15782
|
console.error(`${(0, import_chunk_PG5FDKSF.gray)("Error report submission failed due to: ")}`, error2);
|
15672
15783
|
}
|
15673
15784
|
}
|
15674
|
-
await (0,
|
15785
|
+
await (0, import_chunk_XLYQ6PQW.wouldYouLikeToCreateANewIssue)({
|
15675
15786
|
prompt: !shouldSubmitReport,
|
15676
15787
|
error,
|
15677
15788
|
cliVersion: cliVersion2,
|
@@ -15685,7 +15796,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15685
15796
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
15686
15797
|
handleFormatPanic(
|
15687
15798
|
() => {
|
15688
|
-
|
15799
|
+
import_chunk_2WJPHJ2I.prismaSchemaWasm.debug_panic();
|
15689
15800
|
},
|
15690
15801
|
{ schemas: schemas2 }
|
15691
15802
|
);
|
@@ -15705,12 +15816,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
15705
15816
|
() => {
|
15706
15817
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
|
15707
15818
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
15708
|
-
const lintDiagnostics2 = (0,
|
15819
|
+
const lintDiagnostics2 = (0, import_chunk_5R7AZFMV.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
15709
15820
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
15710
15821
|
},
|
15711
15822
|
{ schemas: schemas2 }
|
15712
15823
|
);
|
15713
|
-
const lintWarnings = (0,
|
15824
|
+
const lintWarnings = (0, import_chunk_5R7AZFMV.getLintWarningsAsText)(lintDiagnostics);
|
15714
15825
|
if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
|
15715
15826
|
console.warn(lintWarnings);
|
15716
15827
|
}
|
@@ -15740,7 +15851,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
|
|
15740
15851
|
}
|
15741
15852
|
}
|
15742
15853
|
function formatWasm(schema, documentFormattingParams) {
|
15743
|
-
const formattedSchema =
|
15854
|
+
const formattedSchema = import_chunk_2WJPHJ2I.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
15744
15855
|
return formattedSchema;
|
15745
15856
|
}
|
15746
15857
|
/*! Bundled license information:
|
@@ -16,16 +16,16 @@ 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_WCRKL55L_exports = {};
|
20
|
+
__export(chunk_WCRKL55L_exports, {
|
21
21
|
FormData: () => FormData,
|
22
22
|
fetch_blob_default: () => fetch_blob_default,
|
23
23
|
file_default: () => file_default,
|
24
24
|
formDataToBlob: () => formDataToBlob
|
25
25
|
});
|
26
|
-
module.exports = __toCommonJS(
|
26
|
+
module.exports = __toCommonJS(chunk_WCRKL55L_exports);
|
27
27
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
28
|
-
var
|
28
|
+
var import_fs = require("fs");
|
29
29
|
var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
30
30
|
"../../node_modules/.pnpm/web-streams-polyfill@3.2.1/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js"(exports, module2) {
|
31
31
|
"use strict";
|
@@ -3841,12 +3841,12 @@ var require_streams = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3841
3841
|
var POOL_SIZE2 = 65536;
|
3842
3842
|
if (!globalThis.ReadableStream) {
|
3843
3843
|
try {
|
3844
|
-
const process = (0, import_chunk_WWAWV7DQ.__require)("
|
3844
|
+
const process = (0, import_chunk_WWAWV7DQ.__require)("process");
|
3845
3845
|
const { emitWarning } = process;
|
3846
3846
|
try {
|
3847
3847
|
process.emitWarning = () => {
|
3848
3848
|
};
|
3849
|
-
Object.assign(globalThis, (0, import_chunk_WWAWV7DQ.__require)("
|
3849
|
+
Object.assign(globalThis, (0, import_chunk_WWAWV7DQ.__require)("stream/web"));
|
3850
3850
|
process.emitWarning = emitWarning;
|
3851
3851
|
} catch (error) {
|
3852
3852
|
process.emitWarning = emitWarning;
|
@@ -4218,7 +4218,7 @@ Content-Type: ${v.type || "application/octet-stream"}\r
|
|
4218
4218
|
return new B(c, { type: "multipart/form-data; boundary=" + b });
|
4219
4219
|
}
|
4220
4220
|
var import_node_domexception = (0, import_chunk_WWAWV7DQ.__toESM)(require_node_domexception(), 1);
|
4221
|
-
var { stat } =
|
4221
|
+
var { stat } = import_fs.promises;
|
4222
4222
|
/*! Bundled license information:
|
4223
4223
|
|
4224
4224
|
node-domexception/index.js:
|