@prisma/internals 6.20.0-integration-feat-prisma-7-config.1 → 6.20.0-integration-merge-release-workflows.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-5ZSVGCMS.js → chunk-2GUGGLPK.js} +96 -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-WITEP52Z.js → chunk-6K6FK4UW.js} +5 -5
- package/dist/chunk-6TTRTZXU.js +37 -0
- package/dist/{chunk-ANOE4NZ5.js → chunk-6ZGNGCXO.js} +9 -8
- 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-C5YUUOQW.js → chunk-BSTUWVHD.js} +12 -12
- package/dist/{chunk-QSVWJ2S2.js → chunk-BVJP43JS.js} +784 -13
- package/dist/{chunk-B2BNIZB2.js → chunk-CCLAMTCA.js} +8 -7
- package/dist/chunk-D4VDA2TZ.js +66 -0
- package/dist/chunk-DZYINYAA.js +68 -0
- package/dist/{chunk-VHE2A7YV.js → chunk-E4H6V3Z4.js} +11 -11
- package/dist/{chunk-WKOGDEF4.js → chunk-E5VGO6SU.js} +11 -11
- package/dist/chunk-ERSH2BQA.js +58 -0
- package/dist/{chunk-3ZWEK4N6.js → chunk-EWDCQQHP.js} +5 -5
- package/dist/{chunk-OKVM3CW4.js → chunk-EYVG6XQS.js} +39 -3
- package/dist/{chunk-5MHUYAV3.js → chunk-F2OZV76L.js} +9 -9
- package/dist/{chunk-VITPVRRI.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-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-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
- package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
- package/dist/{chunk-QOZ7USPD.js → chunk-JOIIWB3U.js} +159 -193
- package/dist/{chunk-QJDVKII7.js → chunk-JTS4UPHJ.js} +5 -5
- package/dist/{chunk-RVTU2FIM.js → chunk-LV27YCGC.js} +11 -11
- package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
- package/dist/{chunk-2Q43C56O.js → chunk-O2AHE2LQ.js} +5 -5
- package/dist/{chunk-H5STSTVK.js → chunk-OAT7ZJED.js} +20 -7
- package/dist/{chunk-DOY5PWV6.js → chunk-PXYIFYEC.js} +96 -40
- package/dist/chunk-PZMRR772.js +41 -0
- package/dist/{chunk-VFZCLI5X.js → chunk-QJ3QPUM5.js} +5 -5
- package/dist/{chunk-5I4ERIIY.js → chunk-RS2R7COT.js} +9 -3
- package/dist/{chunk-24ZPBDBI.js → chunk-S4PA7OZ7.js} +11 -11
- package/dist/{chunk-LA5QBRTU.js → chunk-SOKSKSEX.js} +20 -14
- package/dist/chunk-T2PM5TKT.js +55 -0
- package/dist/{chunk-QGQTFZOZ.js → chunk-T2UCYUSA.js} +20 -14
- package/dist/{chunk-5SJXW6MS.js → chunk-TBR6SNKL.js} +5 -5
- 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-ARC7TW3L.js → chunk-WFNB7VRA.js} +14 -4
- package/dist/{chunk-COA7HD3T.js → chunk-WYQJ4JWO.js} +12 -12
- package/dist/{chunk-73HXEN2A.js → chunk-ZI7MNI3W.js} +5 -5
- 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
|
@@ -16,139 +16,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_JOIIWB3U_exports = {};
|
|
20
|
+
__export(chunk_JOIIWB3U_exports, {
|
|
21
21
|
require_globby: () => require_globby,
|
|
22
22
|
require_is_glob: () => require_is_glob,
|
|
23
|
+
require_out: () => require_out4,
|
|
23
24
|
require_slash: () => require_slash
|
|
24
25
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
26
|
+
module.exports = __toCommonJS(chunk_JOIIWB3U_exports);
|
|
26
27
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
27
|
-
var require_array_union = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
28
|
-
"../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module2) {
|
|
29
|
-
"use strict";
|
|
30
|
-
module2.exports = (...arguments_) => {
|
|
31
|
-
return [...new Set([].concat(...arguments_))];
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
var require_merge2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
36
|
-
"../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js"(exports, module2) {
|
|
37
|
-
"use strict";
|
|
38
|
-
var Stream = (0, import_chunk_4VNS5WPM.__require)("stream");
|
|
39
|
-
var PassThrough = Stream.PassThrough;
|
|
40
|
-
var slice = Array.prototype.slice;
|
|
41
|
-
module2.exports = merge2;
|
|
42
|
-
function merge2() {
|
|
43
|
-
const streamsQueue = [];
|
|
44
|
-
const args = slice.call(arguments);
|
|
45
|
-
let merging = false;
|
|
46
|
-
let options = args[args.length - 1];
|
|
47
|
-
if (options && !Array.isArray(options) && options.pipe == null) {
|
|
48
|
-
args.pop();
|
|
49
|
-
} else {
|
|
50
|
-
options = {};
|
|
51
|
-
}
|
|
52
|
-
const doEnd = options.end !== false;
|
|
53
|
-
const doPipeError = options.pipeError === true;
|
|
54
|
-
if (options.objectMode == null) {
|
|
55
|
-
options.objectMode = true;
|
|
56
|
-
}
|
|
57
|
-
if (options.highWaterMark == null) {
|
|
58
|
-
options.highWaterMark = 64 * 1024;
|
|
59
|
-
}
|
|
60
|
-
const mergedStream = PassThrough(options);
|
|
61
|
-
function addStream() {
|
|
62
|
-
for (let i = 0, len = arguments.length; i < len; i++) {
|
|
63
|
-
streamsQueue.push(pauseStreams(arguments[i], options));
|
|
64
|
-
}
|
|
65
|
-
mergeStream();
|
|
66
|
-
return this;
|
|
67
|
-
}
|
|
68
|
-
function mergeStream() {
|
|
69
|
-
if (merging) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
merging = true;
|
|
73
|
-
let streams = streamsQueue.shift();
|
|
74
|
-
if (!streams) {
|
|
75
|
-
process.nextTick(endStream);
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
if (!Array.isArray(streams)) {
|
|
79
|
-
streams = [streams];
|
|
80
|
-
}
|
|
81
|
-
let pipesCount = streams.length + 1;
|
|
82
|
-
function next() {
|
|
83
|
-
if (--pipesCount > 0) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
merging = false;
|
|
87
|
-
mergeStream();
|
|
88
|
-
}
|
|
89
|
-
function pipe(stream) {
|
|
90
|
-
function onend() {
|
|
91
|
-
stream.removeListener("merge2UnpipeEnd", onend);
|
|
92
|
-
stream.removeListener("end", onend);
|
|
93
|
-
if (doPipeError) {
|
|
94
|
-
stream.removeListener("error", onerror);
|
|
95
|
-
}
|
|
96
|
-
next();
|
|
97
|
-
}
|
|
98
|
-
function onerror(err) {
|
|
99
|
-
mergedStream.emit("error", err);
|
|
100
|
-
}
|
|
101
|
-
if (stream._readableState.endEmitted) {
|
|
102
|
-
return next();
|
|
103
|
-
}
|
|
104
|
-
stream.on("merge2UnpipeEnd", onend);
|
|
105
|
-
stream.on("end", onend);
|
|
106
|
-
if (doPipeError) {
|
|
107
|
-
stream.on("error", onerror);
|
|
108
|
-
}
|
|
109
|
-
stream.pipe(mergedStream, { end: false });
|
|
110
|
-
stream.resume();
|
|
111
|
-
}
|
|
112
|
-
for (let i = 0; i < streams.length; i++) {
|
|
113
|
-
pipe(streams[i]);
|
|
114
|
-
}
|
|
115
|
-
next();
|
|
116
|
-
}
|
|
117
|
-
function endStream() {
|
|
118
|
-
merging = false;
|
|
119
|
-
mergedStream.emit("queueDrain");
|
|
120
|
-
if (doEnd) {
|
|
121
|
-
mergedStream.end();
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
mergedStream.setMaxListeners(0);
|
|
125
|
-
mergedStream.add = addStream;
|
|
126
|
-
mergedStream.on("unpipe", function(stream) {
|
|
127
|
-
stream.emit("merge2UnpipeEnd");
|
|
128
|
-
});
|
|
129
|
-
if (args.length) {
|
|
130
|
-
addStream.apply(null, args);
|
|
131
|
-
}
|
|
132
|
-
return mergedStream;
|
|
133
|
-
}
|
|
134
|
-
function pauseStreams(streams, options) {
|
|
135
|
-
if (!Array.isArray(streams)) {
|
|
136
|
-
if (!streams._readableState && streams.pipe) {
|
|
137
|
-
streams = streams.pipe(PassThrough(options));
|
|
138
|
-
}
|
|
139
|
-
if (!streams._readableState || !streams.pause || !streams.pipe) {
|
|
140
|
-
throw new Error("Only readable stream can be merged.");
|
|
141
|
-
}
|
|
142
|
-
streams.pause();
|
|
143
|
-
} else {
|
|
144
|
-
for (let i = 0, len = streams.length; i < len; i++) {
|
|
145
|
-
streams[i] = pauseStreams(streams[i], options);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
return streams;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
28
|
var require_array = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
153
29
|
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
154
30
|
"use strict";
|
|
@@ -3314,6 +3190,123 @@ var require_pattern = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
3314
3190
|
exports.isAbsolute = isAbsolute;
|
|
3315
3191
|
}
|
|
3316
3192
|
});
|
|
3193
|
+
var require_merge2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
3194
|
+
"../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js"(exports, module2) {
|
|
3195
|
+
"use strict";
|
|
3196
|
+
var Stream = (0, import_chunk_4VNS5WPM.__require)("stream");
|
|
3197
|
+
var PassThrough = Stream.PassThrough;
|
|
3198
|
+
var slice = Array.prototype.slice;
|
|
3199
|
+
module2.exports = merge2;
|
|
3200
|
+
function merge2() {
|
|
3201
|
+
const streamsQueue = [];
|
|
3202
|
+
const args = slice.call(arguments);
|
|
3203
|
+
let merging = false;
|
|
3204
|
+
let options = args[args.length - 1];
|
|
3205
|
+
if (options && !Array.isArray(options) && options.pipe == null) {
|
|
3206
|
+
args.pop();
|
|
3207
|
+
} else {
|
|
3208
|
+
options = {};
|
|
3209
|
+
}
|
|
3210
|
+
const doEnd = options.end !== false;
|
|
3211
|
+
const doPipeError = options.pipeError === true;
|
|
3212
|
+
if (options.objectMode == null) {
|
|
3213
|
+
options.objectMode = true;
|
|
3214
|
+
}
|
|
3215
|
+
if (options.highWaterMark == null) {
|
|
3216
|
+
options.highWaterMark = 64 * 1024;
|
|
3217
|
+
}
|
|
3218
|
+
const mergedStream = PassThrough(options);
|
|
3219
|
+
function addStream() {
|
|
3220
|
+
for (let i = 0, len = arguments.length; i < len; i++) {
|
|
3221
|
+
streamsQueue.push(pauseStreams(arguments[i], options));
|
|
3222
|
+
}
|
|
3223
|
+
mergeStream();
|
|
3224
|
+
return this;
|
|
3225
|
+
}
|
|
3226
|
+
function mergeStream() {
|
|
3227
|
+
if (merging) {
|
|
3228
|
+
return;
|
|
3229
|
+
}
|
|
3230
|
+
merging = true;
|
|
3231
|
+
let streams = streamsQueue.shift();
|
|
3232
|
+
if (!streams) {
|
|
3233
|
+
process.nextTick(endStream);
|
|
3234
|
+
return;
|
|
3235
|
+
}
|
|
3236
|
+
if (!Array.isArray(streams)) {
|
|
3237
|
+
streams = [streams];
|
|
3238
|
+
}
|
|
3239
|
+
let pipesCount = streams.length + 1;
|
|
3240
|
+
function next() {
|
|
3241
|
+
if (--pipesCount > 0) {
|
|
3242
|
+
return;
|
|
3243
|
+
}
|
|
3244
|
+
merging = false;
|
|
3245
|
+
mergeStream();
|
|
3246
|
+
}
|
|
3247
|
+
function pipe(stream) {
|
|
3248
|
+
function onend() {
|
|
3249
|
+
stream.removeListener("merge2UnpipeEnd", onend);
|
|
3250
|
+
stream.removeListener("end", onend);
|
|
3251
|
+
if (doPipeError) {
|
|
3252
|
+
stream.removeListener("error", onerror);
|
|
3253
|
+
}
|
|
3254
|
+
next();
|
|
3255
|
+
}
|
|
3256
|
+
function onerror(err) {
|
|
3257
|
+
mergedStream.emit("error", err);
|
|
3258
|
+
}
|
|
3259
|
+
if (stream._readableState.endEmitted) {
|
|
3260
|
+
return next();
|
|
3261
|
+
}
|
|
3262
|
+
stream.on("merge2UnpipeEnd", onend);
|
|
3263
|
+
stream.on("end", onend);
|
|
3264
|
+
if (doPipeError) {
|
|
3265
|
+
stream.on("error", onerror);
|
|
3266
|
+
}
|
|
3267
|
+
stream.pipe(mergedStream, { end: false });
|
|
3268
|
+
stream.resume();
|
|
3269
|
+
}
|
|
3270
|
+
for (let i = 0; i < streams.length; i++) {
|
|
3271
|
+
pipe(streams[i]);
|
|
3272
|
+
}
|
|
3273
|
+
next();
|
|
3274
|
+
}
|
|
3275
|
+
function endStream() {
|
|
3276
|
+
merging = false;
|
|
3277
|
+
mergedStream.emit("queueDrain");
|
|
3278
|
+
if (doEnd) {
|
|
3279
|
+
mergedStream.end();
|
|
3280
|
+
}
|
|
3281
|
+
}
|
|
3282
|
+
mergedStream.setMaxListeners(0);
|
|
3283
|
+
mergedStream.add = addStream;
|
|
3284
|
+
mergedStream.on("unpipe", function(stream) {
|
|
3285
|
+
stream.emit("merge2UnpipeEnd");
|
|
3286
|
+
});
|
|
3287
|
+
if (args.length) {
|
|
3288
|
+
addStream.apply(null, args);
|
|
3289
|
+
}
|
|
3290
|
+
return mergedStream;
|
|
3291
|
+
}
|
|
3292
|
+
function pauseStreams(streams, options) {
|
|
3293
|
+
if (!Array.isArray(streams)) {
|
|
3294
|
+
if (!streams._readableState && streams.pipe) {
|
|
3295
|
+
streams = streams.pipe(PassThrough(options));
|
|
3296
|
+
}
|
|
3297
|
+
if (!streams._readableState || !streams.pause || !streams.pipe) {
|
|
3298
|
+
throw new Error("Only readable stream can be merged.");
|
|
3299
|
+
}
|
|
3300
|
+
streams.pause();
|
|
3301
|
+
} else {
|
|
3302
|
+
for (let i = 0, len = streams.length; i < len; i++) {
|
|
3303
|
+
streams[i] = pauseStreams(streams[i], options);
|
|
3304
|
+
}
|
|
3305
|
+
}
|
|
3306
|
+
return streams;
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
});
|
|
3317
3310
|
var require_stream = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
3318
3311
|
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
3319
3312
|
"use strict";
|
|
@@ -3971,7 +3964,7 @@ var require_out2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
3971
3964
|
}
|
|
3972
3965
|
});
|
|
3973
3966
|
var require_reusify = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
3974
|
-
"../../node_modules/.pnpm/reusify@1.
|
|
3967
|
+
"../../node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.js"(exports, module2) {
|
|
3975
3968
|
"use strict";
|
|
3976
3969
|
function reusify(Constructor) {
|
|
3977
3970
|
var head = new Constructor();
|
|
@@ -4000,17 +3993,17 @@ var require_reusify = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4000
3993
|
}
|
|
4001
3994
|
});
|
|
4002
3995
|
var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
4003
|
-
"../../node_modules/.pnpm/fastq@1.
|
|
3996
|
+
"../../node_modules/.pnpm/fastq@1.15.0/node_modules/fastq/queue.js"(exports, module2) {
|
|
4004
3997
|
"use strict";
|
|
4005
3998
|
var reusify = require_reusify();
|
|
4006
|
-
function fastqueue(context, worker,
|
|
3999
|
+
function fastqueue(context, worker, concurrency) {
|
|
4007
4000
|
if (typeof context === "function") {
|
|
4008
|
-
|
|
4001
|
+
concurrency = worker;
|
|
4009
4002
|
worker = context;
|
|
4010
4003
|
context = null;
|
|
4011
4004
|
}
|
|
4012
|
-
if (
|
|
4013
|
-
throw new Error("fastqueue concurrency must be
|
|
4005
|
+
if (concurrency < 1) {
|
|
4006
|
+
throw new Error("fastqueue concurrency must be greater than 1");
|
|
4014
4007
|
}
|
|
4015
4008
|
var cache = reusify(Task);
|
|
4016
4009
|
var queueHead = null;
|
|
@@ -4023,20 +4016,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4023
4016
|
saturated: noop,
|
|
4024
4017
|
pause,
|
|
4025
4018
|
paused: false,
|
|
4026
|
-
|
|
4027
|
-
return _concurrency;
|
|
4028
|
-
},
|
|
4029
|
-
set concurrency(value) {
|
|
4030
|
-
if (!(value >= 1)) {
|
|
4031
|
-
throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
4032
|
-
}
|
|
4033
|
-
_concurrency = value;
|
|
4034
|
-
if (self.paused) return;
|
|
4035
|
-
for (; queueHead && _running < _concurrency; ) {
|
|
4036
|
-
_running++;
|
|
4037
|
-
release();
|
|
4038
|
-
}
|
|
4039
|
-
},
|
|
4019
|
+
concurrency,
|
|
4040
4020
|
running,
|
|
4041
4021
|
resume,
|
|
4042
4022
|
idle,
|
|
@@ -4076,12 +4056,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4076
4056
|
function resume() {
|
|
4077
4057
|
if (!self.paused) return;
|
|
4078
4058
|
self.paused = false;
|
|
4079
|
-
|
|
4080
|
-
_running++;
|
|
4081
|
-
release();
|
|
4082
|
-
return;
|
|
4083
|
-
}
|
|
4084
|
-
for (; queueHead && _running < _concurrency; ) {
|
|
4059
|
+
for (var i = 0; i < self.concurrency; i++) {
|
|
4085
4060
|
_running++;
|
|
4086
4061
|
release();
|
|
4087
4062
|
}
|
|
@@ -4096,7 +4071,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4096
4071
|
current.value = value;
|
|
4097
4072
|
current.callback = done || noop;
|
|
4098
4073
|
current.errorHandler = errorHandler;
|
|
4099
|
-
if (_running
|
|
4074
|
+
if (_running === self.concurrency || self.paused) {
|
|
4100
4075
|
if (queueTail) {
|
|
4101
4076
|
queueTail.next = current;
|
|
4102
4077
|
queueTail = current;
|
|
@@ -4116,8 +4091,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4116
4091
|
current.release = release;
|
|
4117
4092
|
current.value = value;
|
|
4118
4093
|
current.callback = done || noop;
|
|
4119
|
-
|
|
4120
|
-
if (_running >= _concurrency || self.paused) {
|
|
4094
|
+
if (_running === self.concurrency || self.paused) {
|
|
4121
4095
|
if (queueHead) {
|
|
4122
4096
|
current.next = queueHead;
|
|
4123
4097
|
queueHead = current;
|
|
@@ -4136,7 +4110,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4136
4110
|
cache.release(holder);
|
|
4137
4111
|
}
|
|
4138
4112
|
var next = queueHead;
|
|
4139
|
-
if (next
|
|
4113
|
+
if (next) {
|
|
4140
4114
|
if (!self.paused) {
|
|
4141
4115
|
if (queueTail === queueHead) {
|
|
4142
4116
|
queueTail = null;
|
|
@@ -4192,9 +4166,9 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4192
4166
|
self.release(self);
|
|
4193
4167
|
};
|
|
4194
4168
|
}
|
|
4195
|
-
function queueAsPromised(context, worker,
|
|
4169
|
+
function queueAsPromised(context, worker, concurrency) {
|
|
4196
4170
|
if (typeof context === "function") {
|
|
4197
|
-
|
|
4171
|
+
concurrency = worker;
|
|
4198
4172
|
worker = context;
|
|
4199
4173
|
context = null;
|
|
4200
4174
|
}
|
|
@@ -4203,7 +4177,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4203
4177
|
cb(null, res);
|
|
4204
4178
|
}, cb);
|
|
4205
4179
|
}
|
|
4206
|
-
var queue = fastqueue(context, asyncWrapper,
|
|
4180
|
+
var queue = fastqueue(context, asyncWrapper, concurrency);
|
|
4207
4181
|
var pushCb = queue.push;
|
|
4208
4182
|
var unshiftCb = queue.unshift;
|
|
4209
4183
|
queue.push = push;
|
|
@@ -4237,19 +4211,17 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
4237
4211
|
return p;
|
|
4238
4212
|
}
|
|
4239
4213
|
function drained() {
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
resolve();
|
|
4244
|
-
} else {
|
|
4245
|
-
var previousDrain = queue.drain;
|
|
4246
|
-
queue.drain = function() {
|
|
4247
|
-
if (typeof previousDrain === "function") previousDrain();
|
|
4248
|
-
resolve();
|
|
4249
|
-
queue.drain = previousDrain;
|
|
4250
|
-
};
|
|
4251
|
-
}
|
|
4214
|
+
if (queue.idle()) {
|
|
4215
|
+
return new Promise(function(resolve) {
|
|
4216
|
+
resolve();
|
|
4252
4217
|
});
|
|
4218
|
+
}
|
|
4219
|
+
var previousDrain = queue.drain;
|
|
4220
|
+
var p = new Promise(function(resolve) {
|
|
4221
|
+
queue.drain = function() {
|
|
4222
|
+
previousDrain();
|
|
4223
|
+
resolve();
|
|
4224
|
+
};
|
|
4253
4225
|
});
|
|
4254
4226
|
return p;
|
|
4255
4227
|
}
|
|
@@ -5379,6 +5351,14 @@ var require_out4 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
5379
5351
|
module2.exports = FastGlob;
|
|
5380
5352
|
}
|
|
5381
5353
|
});
|
|
5354
|
+
var require_array_union = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
5355
|
+
"../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module2) {
|
|
5356
|
+
"use strict";
|
|
5357
|
+
module2.exports = (...arguments_) => {
|
|
5358
|
+
return [...new Set([].concat(...arguments_))];
|
|
5359
|
+
};
|
|
5360
|
+
}
|
|
5361
|
+
});
|
|
5382
5362
|
var require_path_type = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
5383
5363
|
"../../node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.js"(exports) {
|
|
5384
5364
|
"use strict";
|
|
@@ -5481,7 +5461,7 @@ var require_dir_glob = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
5481
5461
|
}
|
|
5482
5462
|
});
|
|
5483
5463
|
var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
5484
|
-
"../../node_modules/.pnpm/ignore@5.
|
|
5464
|
+
"../../node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.js"(exports, module2) {
|
|
5485
5465
|
"use strict";
|
|
5486
5466
|
function makeArray(subject) {
|
|
5487
5467
|
return Array.isArray(subject) ? subject : [subject];
|
|
@@ -5513,32 +5493,18 @@ var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
5513
5493
|
return slashes.slice(0, length - length % 2);
|
|
5514
5494
|
};
|
|
5515
5495
|
var REPLACERS = [
|
|
5516
|
-
[
|
|
5517
|
-
// remove BOM
|
|
5518
|
-
// TODO:
|
|
5519
|
-
// Other similar zero-width characters?
|
|
5520
|
-
/^\uFEFF/,
|
|
5521
|
-
() => EMPTY
|
|
5522
|
-
],
|
|
5523
5496
|
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
5524
5497
|
[
|
|
5525
5498
|
// (a\ ) -> (a )
|
|
5526
5499
|
// (a ) -> (a)
|
|
5527
|
-
// (a ) -> (a)
|
|
5528
5500
|
// (a \ ) -> (a )
|
|
5529
|
-
|
|
5530
|
-
(
|
|
5501
|
+
/\\?\s+$/,
|
|
5502
|
+
(match) => match.indexOf("\\") === 0 ? SPACE : EMPTY
|
|
5531
5503
|
],
|
|
5532
5504
|
// replace (\ ) with ' '
|
|
5533
|
-
// (\ ) -> ' '
|
|
5534
|
-
// (\\ ) -> '\\ '
|
|
5535
|
-
// (\\\ ) -> '\\ '
|
|
5536
5505
|
[
|
|
5537
|
-
|
|
5538
|
-
(
|
|
5539
|
-
const { length } = m1;
|
|
5540
|
-
return m1.slice(0, length - length % 2) + SPACE;
|
|
5541
|
-
}
|
|
5506
|
+
/\\\s/g,
|
|
5507
|
+
() => SPACE
|
|
5542
5508
|
],
|
|
5543
5509
|
// Escape metacharacters
|
|
5544
5510
|
// which is written down by users but means special for regular expressions.
|
|
@@ -5673,7 +5639,7 @@ var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
5673
5639
|
let source = regexCache[pattern];
|
|
5674
5640
|
if (!source) {
|
|
5675
5641
|
source = REPLACERS.reduce(
|
|
5676
|
-
(prev,
|
|
5642
|
+
(prev, current) => prev.replace(current[0], current[1].bind(pattern)),
|
|
5677
5643
|
pattern
|
|
5678
5644
|
);
|
|
5679
5645
|
regexCache[pattern] = source;
|
|
@@ -16,15 +16,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_JTS4UPHJ_exports = {};
|
|
20
|
+
__export(chunk_JTS4UPHJ_exports, {
|
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_JTS4UPHJ_exports);
|
|
24
|
+
var import_chunk_QJ3QPUM5 = require("./chunk-QJ3QPUM5.js");
|
|
24
25
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
|
25
|
-
var import_chunk_WITEP52Z = require("./chunk-WITEP52Z.js");
|
|
26
26
|
function addVersionDetailsToErrorMessage(message) {
|
|
27
|
-
const rows = [["Prisma CLI Version",
|
|
27
|
+
const rows = [["Prisma CLI Version", import_chunk_QJ3QPUM5.version]];
|
|
28
28
|
return `${message}
|
|
29
29
|
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
|
@@ -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_LV27YCGC_exports = {};
|
|
30
|
+
__export(chunk_LV27YCGC_exports, {
|
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
|
32
32
|
getDMMF: () => getDMMF
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_LV27YCGC_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_JTS4UPHJ = require("./chunk-JTS4UPHJ.js");
|
|
38
|
+
var import_chunk_FHZ5QJLR = require("./chunk-FHZ5QJLR.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_JTS4UPHJ.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_FHZ5QJLR.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_FHZ5QJLR.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 });
|