@prisma/internals 5.17.0-integration-show-platform-auth-token.3 → 5.17.0-integration-show-platform-auth-token.4
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-EOTOEWEG.js → chunk-2QFQJTM3.js} +16 -16
- package/dist/{chunk-JM6ICT4D.js → chunk-4A5ZK522.js} +3 -3
- package/dist/{chunk-22WWDCBL.js → chunk-5R627ZMI.js} +7 -7
- package/dist/chunk-5XRQ7ONW.js +122 -0
- package/dist/{chunk-7QFKPVEI.js → chunk-63WDBN55.js} +5 -5
- package/dist/{chunk-KRU3ZK3W.js → chunk-6GOPQDH2.js} +19 -19
- package/dist/{chunk-3CRBDWPU.js → chunk-6QMBX5PW.js} +5 -5
- package/dist/{chunk-HNFCHBPX.js → chunk-6WETF56C.js} +5 -5
- package/dist/{chunk-V3GTH2TA.js → chunk-7GBD3GZZ.js} +5 -5
- package/dist/{chunk-IEOLMIMU.js → chunk-ALIEF3BE.js} +15 -15
- package/dist/{chunk-OI5GDSG6.js → chunk-EDDYQ5ZF.js} +5 -5
- package/dist/{chunk-6HXOL3QF.js → chunk-EYOPVHNV.js} +28 -28
- package/dist/{chunk-Z2NHAREC.js → chunk-GHYJGM56.js} +5 -5
- package/dist/{chunk-BDXNOGJ3.js → chunk-GJMGCWTR.js} +5 -5
- package/dist/chunk-JTMEVPXK.js +177 -0
- package/dist/chunk-JUIG32DW.js +110 -0
- package/dist/{chunk-EKSAMZHR.js → chunk-KUMD5MBR.js} +10 -10
- package/dist/{chunk-IJK3NGWG.js → chunk-NCYBGN3M.js} +5 -5
- package/dist/chunk-PN2OFBAO.js +166 -0
- package/dist/{chunk-5TGIEWON.js → chunk-QCERIVWN.js} +22 -22
- package/dist/chunk-QIVUAERL.js +2202 -0
- package/dist/chunk-QL3K6JIN.js +54 -0
- package/dist/{chunk-SMHAELKS.js → chunk-QOTVZEEZ.js} +17 -17
- package/dist/{chunk-LQD72ZI2.js → chunk-QTT3VIQ3.js} +15 -15
- package/dist/{chunk-WPDXG7BG.js → chunk-QVK4UV4F.js} +5 -5
- package/dist/{chunk-4SKD6RMZ.js → chunk-TEGKDZJW.js} +6 -6
- package/dist/{chunk-HHHZRX5T.js → chunk-TWCV53Y5.js} +16 -16
- package/dist/{chunk-ZMLBYV2S.js → chunk-U3FOR7Z4.js} +24 -795
- package/dist/{chunk-FTFPVECN.js → chunk-UGBKVZL5.js} +5 -5
- package/dist/{chunk-P6T3CL5R.js → chunk-W4W3SS5M.js} +5 -5
- package/dist/{chunk-5SEXCYQP.js → chunk-WZYDGIB3.js} +23 -23
- package/dist/{chunk-BQ3ZVZLP.js → chunk-XY27KEAX.js} +22 -22
- package/dist/{chunk-QEMHOJR6.js → chunk-YM3CE76B.js} +147 -160
- package/dist/{chunk-2HYB2BOP.js → chunk-ZH2S54SA.js} +23 -23
- package/dist/cli/checkUnsupportedDataProxy.js +20 -20
- package/dist/cli/getSchema.js +25 -25
- package/dist/cli/hashes.js +20 -20
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +19 -19
- 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 +30 -30
- 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 +19 -19
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +19 -19
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +19 -19
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +20 -20
- package/dist/get-generators/getGenerators.js +22 -22
- package/dist/index.js +57 -57
- package/dist/resolveBinary.js +7 -7
- package/dist/schemaEngineCommands.js +8 -8
- package/dist/sendPanic.js +19 -19
- package/dist/utils/fs-functional.js +9 -9
- package/dist/utils/getEnvPaths.js +19 -19
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +19 -19
- package/dist/utils/loadEnvFile.js +19 -19
- package/dist/wasm.js +4 -4
- package/package.json +9 -9
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var chunk_QL3K6JIN_exports = {};
|
|
20
|
+
__export(chunk_QL3K6JIN_exports, {
|
|
21
|
+
getEngineVersion: () => getEngineVersion,
|
|
22
|
+
safeGetEngineVersion: () => safeGetEngineVersion
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(chunk_QL3K6JIN_exports);
|
|
25
|
+
var import_chunk_S4LINK5Y = require("./chunk-S4LINK5Y.js");
|
|
26
|
+
var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
|
|
27
|
+
var import_chunk_GHYJGM56 = require("./chunk-GHYJGM56.js");
|
|
28
|
+
var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
|
|
29
|
+
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
30
|
+
var import_engines = require("@prisma/engines");
|
|
31
|
+
var import_fetch_engine = require("@prisma/fetch-engine");
|
|
32
|
+
var import_get_platform = require("@prisma/get-platform");
|
|
33
|
+
var import_execa = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_7XNZDY2V.require_execa)());
|
|
34
|
+
async function getEngineVersion(enginePath, binaryName) {
|
|
35
|
+
if (!binaryName) {
|
|
36
|
+
binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
|
|
37
|
+
}
|
|
38
|
+
enginePath = await (0, import_chunk_GHYJGM56.resolveBinary)(binaryName, enginePath);
|
|
39
|
+
const platformInfo = await (0, import_get_platform.getPlatformInfo)();
|
|
40
|
+
if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
|
|
41
|
+
(0, import_get_platform.assertNodeAPISupported)();
|
|
42
|
+
const QE = (0, import_chunk_S4LINK5Y.loadLibrary)(enginePath, platformInfo);
|
|
43
|
+
return `${import_fetch_engine.BinaryType.QueryEngineLibrary} ${QE.version().commit}`;
|
|
44
|
+
} else {
|
|
45
|
+
const { stdout } = await (0, import_execa.default)(enginePath, ["--version"]);
|
|
46
|
+
return stdout;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function safeGetEngineVersion(enginePath, binaryName) {
|
|
50
|
+
return (0, import_chunk_4A5ZK522.tryCatch2)(
|
|
51
|
+
() => getEngineVersion(enginePath, binaryName),
|
|
52
|
+
(error) => error
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -16,14 +16,14 @@ 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_QOTVZEEZ_exports = {};
|
|
20
|
+
__export(chunk_QOTVZEEZ_exports, {
|
|
21
21
|
require_function: () => require_function
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_QOTVZEEZ_exports);
|
|
24
24
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
25
25
|
var require_function = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
26
|
-
"../../node_modules/.pnpm/fp-ts@2.16.
|
|
26
|
+
"../../node_modules/.pnpm/fp-ts@2.16.8/node_modules/fp-ts/lib/function.js"(exports) {
|
|
27
27
|
"use strict";
|
|
28
28
|
var __spreadArray = exports && exports.__spreadArray || function(to, from, pack) {
|
|
29
29
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
@@ -35,7 +35,19 @@ var require_function = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
35
35
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.dual = exports.getEndomorphismMonoid = exports.
|
|
38
|
+
exports.dual = exports.getEndomorphismMonoid = exports.SK = exports.hole = exports.constVoid = exports.constUndefined = exports.constNull = exports.constFalse = exports.constTrue = exports.unsafeCoerce = exports.apply = exports.getRing = exports.getSemiring = exports.getMonoid = exports.getSemigroup = exports.getBooleanAlgebra = void 0;
|
|
39
|
+
exports.identity = identity;
|
|
40
|
+
exports.constant = constant;
|
|
41
|
+
exports.flip = flip;
|
|
42
|
+
exports.flow = flow;
|
|
43
|
+
exports.tuple = tuple;
|
|
44
|
+
exports.increment = increment;
|
|
45
|
+
exports.decrement = decrement;
|
|
46
|
+
exports.absurd = absurd;
|
|
47
|
+
exports.tupled = tupled;
|
|
48
|
+
exports.untupled = untupled;
|
|
49
|
+
exports.pipe = pipe;
|
|
50
|
+
exports.not = not;
|
|
39
51
|
var getBooleanAlgebra = function(B) {
|
|
40
52
|
return function() {
|
|
41
53
|
return {
|
|
@@ -138,14 +150,12 @@ var require_function = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
138
150
|
function identity(a) {
|
|
139
151
|
return a;
|
|
140
152
|
}
|
|
141
|
-
exports.identity = identity;
|
|
142
153
|
exports.unsafeCoerce = identity;
|
|
143
154
|
function constant(a) {
|
|
144
155
|
return function() {
|
|
145
156
|
return a;
|
|
146
157
|
};
|
|
147
158
|
}
|
|
148
|
-
exports.constant = constant;
|
|
149
159
|
exports.constTrue = constant(true);
|
|
150
160
|
exports.constFalse = constant(false);
|
|
151
161
|
exports.constNull = constant(null);
|
|
@@ -165,7 +175,6 @@ var require_function = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
165
175
|
};
|
|
166
176
|
};
|
|
167
177
|
}
|
|
168
|
-
exports.flip = flip;
|
|
169
178
|
function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
|
|
170
179
|
switch (arguments.length) {
|
|
171
180
|
case 1:
|
|
@@ -205,7 +214,6 @@ var require_function = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
205
214
|
}
|
|
206
215
|
return;
|
|
207
216
|
}
|
|
208
|
-
exports.flow = flow;
|
|
209
217
|
function tuple() {
|
|
210
218
|
var t = [];
|
|
211
219
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -213,25 +221,20 @@ var require_function = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
213
221
|
}
|
|
214
222
|
return t;
|
|
215
223
|
}
|
|
216
|
-
exports.tuple = tuple;
|
|
217
224
|
function increment(n) {
|
|
218
225
|
return n + 1;
|
|
219
226
|
}
|
|
220
|
-
exports.increment = increment;
|
|
221
227
|
function decrement(n) {
|
|
222
228
|
return n - 1;
|
|
223
229
|
}
|
|
224
|
-
exports.decrement = decrement;
|
|
225
230
|
function absurd(_) {
|
|
226
231
|
throw new Error("Called `absurd` function which should be uncallable");
|
|
227
232
|
}
|
|
228
|
-
exports.absurd = absurd;
|
|
229
233
|
function tupled(f) {
|
|
230
234
|
return function(a) {
|
|
231
235
|
return f.apply(void 0, a);
|
|
232
236
|
};
|
|
233
237
|
}
|
|
234
|
-
exports.tupled = tupled;
|
|
235
238
|
function untupled(f) {
|
|
236
239
|
return function() {
|
|
237
240
|
var a = [];
|
|
@@ -241,7 +244,6 @@ var require_function = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
241
244
|
return f(a);
|
|
242
245
|
};
|
|
243
246
|
}
|
|
244
|
-
exports.untupled = untupled;
|
|
245
247
|
function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
|
|
246
248
|
switch (arguments.length) {
|
|
247
249
|
case 1:
|
|
@@ -271,7 +273,6 @@ var require_function = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
271
273
|
}
|
|
272
274
|
}
|
|
273
275
|
}
|
|
274
|
-
exports.pipe = pipe;
|
|
275
276
|
exports.hole = absurd;
|
|
276
277
|
var SK = function(_, b) {
|
|
277
278
|
return b;
|
|
@@ -282,7 +283,6 @@ var require_function = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
282
283
|
return !predicate(a);
|
|
283
284
|
};
|
|
284
285
|
}
|
|
285
|
-
exports.not = not;
|
|
286
286
|
var getEndomorphismMonoid = function() {
|
|
287
287
|
return {
|
|
288
288
|
concat: function(first, second) {
|
|
@@ -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_QTT3VIQ3_exports = {};
|
|
30
|
+
__export(chunk_QTT3VIQ3_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_QTT3VIQ3_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
|
|
37
37
|
var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var import_chunk_63WDBN55 = require("./chunk-63WDBN55.js");
|
|
39
|
+
var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
|
|
40
40
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_7GBD3GZZ = require("./chunk-7GBD3GZZ.js");
|
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
43
|
-
var
|
|
43
|
+
var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.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_QOTVZEEZ.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_63WDBN55.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_KUMD5MBR.createDebugErrorType)(debug, "mergeSchemasWasm");
|
|
69
69
|
debug(`Using mergeSchemas Wasm`);
|
|
70
70
|
const mergeSchemasEither = (0, import_function.pipe)(
|
|
71
|
-
(0,
|
|
71
|
+
(0, import_chunk_4A5ZK522.tryCatch)(
|
|
72
72
|
() => {
|
|
73
73
|
const params = JSON.stringify({
|
|
74
74
|
schema: options.schemas
|
|
75
75
|
});
|
|
76
|
-
return
|
|
76
|
+
return import_chunk_7GBD3GZZ.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_4A5ZK522.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_KUMD5MBR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
112
112
|
}).exhaustive();
|
|
113
113
|
throw error;
|
|
114
114
|
}
|
|
@@ -16,11 +16,11 @@ 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_QVK4UV4F_exports = {};
|
|
20
|
+
__export(chunk_QVK4UV4F_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_QVK4UV4F_exports);
|
|
24
|
+
var import_chunk_TEGKDZJW = require("./chunk-TEGKDZJW.js");
|
|
25
|
+
var packageJson = (0, import_chunk_TEGKDZJW.require_package)();
|
|
26
26
|
var version = packageJson.version;
|
|
@@ -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_TEGKDZJW_exports = {};
|
|
20
|
+
__export(chunk_TEGKDZJW_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_TEGKDZJW_exports);
|
|
24
24
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
25
25
|
var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
26
26
|
"package.json"(exports, module2) {
|
|
27
27
|
module2.exports = {
|
|
28
28
|
name: "@prisma/internals",
|
|
29
|
-
version: "5.17.0-integration-show-platform-auth-token.
|
|
29
|
+
version: "5.17.0-integration-show-platform-auth-token.4",
|
|
30
30
|
description: "This package is intended for Prisma's internal use",
|
|
31
31
|
main: "dist/index.js",
|
|
32
32
|
types: "dist/index.d.ts",
|
|
@@ -69,7 +69,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
69
69
|
execa: "5.1.1",
|
|
70
70
|
"fast-glob": "3.3.2",
|
|
71
71
|
"find-up": "5.0.0",
|
|
72
|
-
"fp-ts": "2.16.
|
|
72
|
+
"fp-ts": "2.16.8",
|
|
73
73
|
"fs-extra": "11.1.1",
|
|
74
74
|
"fs-jetpack": "5.1.0",
|
|
75
75
|
"global-dirs": "4.0.0",
|
|
@@ -107,7 +107,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
107
107
|
"@prisma/fetch-engine": "workspace:*",
|
|
108
108
|
"@prisma/generator-helper": "workspace:*",
|
|
109
109
|
"@prisma/get-platform": "workspace:*",
|
|
110
|
-
"@prisma/prisma-schema-wasm": "5.17.0-
|
|
110
|
+
"@prisma/prisma-schema-wasm": "5.17.0-5.c41dd5bcfeef5b6c035aaa4c241397cb6f009168",
|
|
111
111
|
"@prisma/schema-files-loader": "workspace:*",
|
|
112
112
|
arg: "5.0.2",
|
|
113
113
|
prompts: "2.4.2"
|
|
@@ -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_TWCV53Y5_exports = {};
|
|
30
|
+
__export(chunk_TWCV53Y5_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_TWCV53Y5_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
|
|
37
37
|
var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var import_chunk_63WDBN55 = require("./chunk-63WDBN55.js");
|
|
39
|
+
var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
|
|
40
40
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_7GBD3GZZ = require("./chunk-7GBD3GZZ.js");
|
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
43
|
-
var
|
|
43
|
+
var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.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_QOTVZEEZ.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_63WDBN55.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_KUMD5MBR.createDebugErrorType)(debug, "validateWasm");
|
|
69
69
|
debug(`Using validate Wasm`);
|
|
70
70
|
const validateEither = (0, import_function.pipe)(
|
|
71
|
-
(0,
|
|
71
|
+
(0, import_chunk_4A5ZK522.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_7GBD3GZZ.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_7GBD3GZZ.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_4A5ZK522.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_KUMD5MBR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
117
117
|
}).exhaustive();
|
|
118
118
|
throw error;
|
|
119
119
|
}
|