@prisma/internals 5.17.0-integration-show-platform-auth-token.3 → 5.17.0-integration-show-platform-auth-token.5
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-IEOLMIMU.js → chunk-2NJOBWJS.js} +15 -15
- package/dist/{chunk-5TGIEWON.js → chunk-2SSYVXDR.js} +22 -22
- package/dist/{chunk-3CRBDWPU.js → chunk-2X6W7TFG.js} +5 -5
- package/dist/{chunk-JM6ICT4D.js → chunk-4A5ZK522.js} +3 -3
- package/dist/{chunk-7QFKPVEI.js → chunk-56ERTRFR.js} +5 -5
- package/dist/{chunk-EOTOEWEG.js → chunk-BNIMKZNL.js} +16 -16
- package/dist/{chunk-HNFCHBPX.js → chunk-CZE6J5XE.js} +5 -5
- package/dist/{chunk-LQD72ZI2.js → chunk-DQPVFTJQ.js} +15 -15
- package/dist/{chunk-4SKD6RMZ.js → chunk-ELQBOUCU.js} +6 -6
- package/dist/{chunk-5SEXCYQP.js → chunk-ERFLQLMI.js} +23 -23
- package/dist/{chunk-2HYB2BOP.js → chunk-ETZHFUR5.js} +23 -23
- package/dist/{chunk-BDXNOGJ3.js → chunk-EY6S56AZ.js} +5 -5
- package/dist/{chunk-6HXOL3QF.js → chunk-EYOPVHNV.js} +28 -28
- package/dist/{chunk-FTFPVECN.js → chunk-GCEA7FEH.js} +5 -5
- package/dist/{chunk-Z2NHAREC.js → chunk-GHYJGM56.js} +5 -5
- package/dist/{chunk-EKSAMZHR.js → chunk-KUMD5MBR.js} +10 -10
- package/dist/{chunk-HHHZRX5T.js → chunk-LNOKNOBG.js} +16 -16
- package/dist/{chunk-KRU3ZK3W.js → chunk-NYIOBR7P.js} +19 -19
- package/dist/{chunk-BQ3ZVZLP.js → chunk-OR67YWXT.js} +22 -22
- package/dist/{chunk-OI5GDSG6.js → chunk-PN2OFBAO.js} +5 -5
- package/dist/{chunk-22WWDCBL.js → chunk-QL3K6JIN.js} +7 -7
- package/dist/{chunk-SMHAELKS.js → chunk-QOTVZEEZ.js} +17 -17
- package/dist/{chunk-IJK3NGWG.js → chunk-TO5N4ITO.js} +5 -5
- package/dist/{chunk-WPDXG7BG.js → chunk-VY6W7UY5.js} +5 -5
- package/dist/{chunk-V3GTH2TA.js → chunk-Y6KJKZQK.js} +5 -5
- package/dist/{chunk-P6T3CL5R.js → chunk-YCHXUHBZ.js} +5 -5
- package/dist/{chunk-QEMHOJR6.js → chunk-YM3CE76B.js} +147 -160
- package/dist/{chunk-ZMLBYV2S.js → chunk-ZWBK7KH4.js} +19 -19
- 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
|
@@ -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_2NJOBWJS_exports = {};
|
|
30
|
+
__export(chunk_2NJOBWJS_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_2NJOBWJS_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_GCEA7FEH = require("./chunk-GCEA7FEH.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_CZE6J5XE = require("./chunk-CZE6J5XE.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_GCEA7FEH.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_CZE6J5XE.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
|
}
|
|
@@ -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_2SSYVXDR_exports = {};
|
|
30
|
+
__export(chunk_2SSYVXDR_exports, {
|
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
|
32
32
|
getDMMF: () => getDMMF
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_2SSYVXDR_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
36
|
+
var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
|
|
37
|
+
var import_chunk_56ERTRFR = require("./chunk-56ERTRFR.js");
|
|
38
|
+
var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
|
|
39
39
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
40
|
-
var
|
|
40
|
+
var import_chunk_Y6KJKZQK = require("./chunk-Y6KJKZQK.js");
|
|
41
41
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
42
|
-
var
|
|
42
|
+
var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
|
|
43
43
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
44
44
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
45
45
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
46
46
|
var import_fs = __toESM(require("fs"));
|
|
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:getDMMF");
|
|
49
49
|
var GetDmmfError = class extends Error {
|
|
50
50
|
constructor(params) {
|
|
@@ -60,16 +60,16 @@ ${detailsHeader} ${message}`;
|
|
|
60
60
|
}).exhaustive();
|
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
62
62
|
[Context: getDmmf]`;
|
|
63
|
-
super((0,
|
|
63
|
+
super((0, import_chunk_56ERTRFR.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
64
64
|
this.name = "GetDmmfError";
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
async function getDMMF(options) {
|
|
68
68
|
warnOnDeprecatedFeatureFlag(options.previewFeatures);
|
|
69
|
-
const debugErrorType = (0,
|
|
69
|
+
const debugErrorType = (0, import_chunk_KUMD5MBR.createDebugErrorType)(debug, "getDmmfWasm");
|
|
70
70
|
debug(`Using getDmmf Wasm`);
|
|
71
71
|
const dmmfPipeline = (0, import_function.pipe)(
|
|
72
|
-
(0,
|
|
72
|
+
(0, import_chunk_4A5ZK522.tryCatch2)(
|
|
73
73
|
() => {
|
|
74
74
|
if (options.datamodel) {
|
|
75
75
|
debug("Using given datamodel");
|
|
@@ -85,19 +85,19 @@ async function getDMMF(options) {
|
|
|
85
85
|
datamodelPath: options.datamodelPath
|
|
86
86
|
})
|
|
87
87
|
),
|
|
88
|
-
(0,
|
|
88
|
+
(0, import_chunk_4A5ZK522.chainW2)((datamodel) => {
|
|
89
89
|
return (0, import_function.pipe)(
|
|
90
|
-
(0,
|
|
90
|
+
(0, import_chunk_4A5ZK522.tryCatch)(
|
|
91
91
|
() => {
|
|
92
92
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
93
93
|
debug("Triggering a Rust panic...");
|
|
94
|
-
|
|
94
|
+
import_chunk_Y6KJKZQK.prismaSchemaWasm.debug_panic();
|
|
95
95
|
}
|
|
96
96
|
const params = JSON.stringify({
|
|
97
97
|
prismaSchema: datamodel,
|
|
98
98
|
noColor: Boolean(process.env.NO_COLOR)
|
|
99
99
|
});
|
|
100
|
-
const data =
|
|
100
|
+
const data = import_chunk_Y6KJKZQK.prismaSchemaWasm.get_dmmf(params);
|
|
101
101
|
return data;
|
|
102
102
|
},
|
|
103
103
|
(e) => ({
|
|
@@ -106,11 +106,11 @@ async function getDMMF(options) {
|
|
|
106
106
|
error: e
|
|
107
107
|
})
|
|
108
108
|
),
|
|
109
|
-
(0,
|
|
110
|
-
(0,
|
|
109
|
+
(0, import_chunk_4A5ZK522.map)((result) => ({ result })),
|
|
110
|
+
(0, import_chunk_4A5ZK522.chainW)(
|
|
111
111
|
({ result }) => (
|
|
112
112
|
// NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
|
|
113
|
-
(0,
|
|
113
|
+
(0, import_chunk_4A5ZK522.tryCatch)(
|
|
114
114
|
() => JSON.parse(result),
|
|
115
115
|
(e) => ({
|
|
116
116
|
type: "parse-json",
|
|
@@ -120,12 +120,12 @@ async function getDMMF(options) {
|
|
|
120
120
|
)
|
|
121
121
|
)
|
|
122
122
|
),
|
|
123
|
-
|
|
123
|
+
import_chunk_4A5ZK522.fromEither
|
|
124
124
|
);
|
|
125
125
|
})
|
|
126
126
|
);
|
|
127
127
|
const dmmfEither = await dmmfPipeline();
|
|
128
|
-
if ((0,
|
|
128
|
+
if ((0, import_chunk_4A5ZK522.isRight)(dmmfEither)) {
|
|
129
129
|
debug("dmmf data retrieved without errors in getDmmf Wasm");
|
|
130
130
|
const { right: data } = dmmfEither;
|
|
131
131
|
return Promise.resolve(data);
|
|
@@ -158,7 +158,7 @@ Datamodel path: "${e.datamodelPath}"`,
|
|
|
158
158
|
return panic;
|
|
159
159
|
}
|
|
160
160
|
const errorOutput = e.error.message;
|
|
161
|
-
return new GetDmmfError((0,
|
|
161
|
+
return new GetDmmfError((0, import_chunk_KUMD5MBR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
162
162
|
}).with({ type: "parse-json" }, (e) => {
|
|
163
163
|
debugErrorType(e);
|
|
164
164
|
return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
|
|
@@ -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_2X6W7TFG_exports = {};
|
|
20
|
+
__export(chunk_2X6W7TFG_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_2X6W7TFG_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) {
|
|
@@ -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-7.4b84e51743fad4e1b5bcbf8779aa03568f7551f2",
|
|
111
111
|
"@prisma/schema-files-loader": "workspace:*",
|
|
112
112
|
arg: "5.0.2",
|
|
113
113
|
prompts: "2.4.2"
|
|
@@ -16,8 +16,8 @@ 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_4A5ZK522_exports = {};
|
|
20
|
+
__export(chunk_4A5ZK522_exports, {
|
|
21
21
|
as: () => as,
|
|
22
22
|
asUnit: () => asUnit,
|
|
23
23
|
chain: () => chain,
|
|
@@ -41,7 +41,7 @@ __export(chunk_JM6ICT4D_exports, {
|
|
|
41
41
|
tryCatch: () => tryCatch,
|
|
42
42
|
tryCatch2: () => tryCatch2
|
|
43
43
|
});
|
|
44
|
-
module.exports = __toCommonJS(
|
|
44
|
+
module.exports = __toCommonJS(chunk_4A5ZK522_exports);
|
|
45
45
|
var __spreadArray = function(to, from, pack) {
|
|
46
46
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
47
47
|
if (ar || !(i in from)) {
|
|
@@ -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_56ERTRFR_exports = {};
|
|
20
|
+
__export(chunk_56ERTRFR_exports, {
|
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_56ERTRFR_exports);
|
|
24
|
+
var import_chunk_TO5N4ITO = require("./chunk-TO5N4ITO.js");
|
|
25
25
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
|
26
26
|
function addVersionDetailsToErrorMessage(message) {
|
|
27
|
-
const rows = [["Prisma CLI Version",
|
|
27
|
+
const rows = [["Prisma CLI Version", import_chunk_TO5N4ITO.version]];
|
|
28
28
|
return `${message}
|
|
29
29
|
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
|
@@ -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_BNIMKZNL_exports = {};
|
|
30
|
+
__export(chunk_BNIMKZNL_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_BNIMKZNL_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_56ERTRFR = require("./chunk-56ERTRFR.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_Y6KJKZQK = require("./chunk-Y6KJKZQK.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_56ERTRFR.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_Y6KJKZQK.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_Y6KJKZQK.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
|
}
|
|
@@ -26,14 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_CZE6J5XE_exports = {};
|
|
30
|
+
__export(chunk_CZE6J5XE_exports, {
|
|
31
31
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
|
32
32
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
|
|
33
33
|
wasm_exports: () => wasm_exports
|
|
34
34
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
36
|
-
var
|
|
35
|
+
module.exports = __toCommonJS(chunk_CZE6J5XE_exports);
|
|
36
|
+
var import_chunk_ELQBOUCU = require("./chunk-ELQBOUCU.js");
|
|
37
37
|
var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
|
|
38
38
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
39
39
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
|
@@ -42,6 +42,6 @@ var wasm_exports = {};
|
|
|
42
42
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
|
43
43
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
|
|
44
44
|
});
|
|
45
|
-
var { dependencies } = (0,
|
|
45
|
+
var { dependencies } = (0, import_chunk_ELQBOUCU.require_package)();
|
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
|
|
@@ -26,25 +26,25 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_DQPVFTJQ_exports = {};
|
|
30
|
+
__export(chunk_DQPVFTJQ_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_DQPVFTJQ_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_56ERTRFR = require("./chunk-56ERTRFR.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_Y6KJKZQK = require("./chunk-Y6KJKZQK.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_56ERTRFR.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_Y6KJKZQK.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,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_ELQBOUCU_exports = {};
|
|
20
|
+
__export(chunk_ELQBOUCU_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_ELQBOUCU_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.5",
|
|
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-7.4b84e51743fad4e1b5bcbf8779aa03568f7551f2",
|
|
111
111
|
"@prisma/schema-files-loader": "workspace:*",
|
|
112
112
|
arg: "5.0.2",
|
|
113
113
|
prompts: "2.4.2"
|
|
@@ -26,29 +26,29 @@ 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_ERFLQLMI_exports = {};
|
|
30
|
+
__export(chunk_ERFLQLMI_exports, {
|
|
31
31
|
GetConfigError: () => GetConfigError,
|
|
32
32
|
getConfig: () => getConfig,
|
|
33
33
|
getDirectUrl: () => getDirectUrl,
|
|
34
34
|
getEffectiveUrl: () => getEffectiveUrl,
|
|
35
35
|
resolveUrl: () => resolveUrl
|
|
36
36
|
});
|
|
37
|
-
module.exports = __toCommonJS(
|
|
37
|
+
module.exports = __toCommonJS(chunk_ERFLQLMI_exports);
|
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
39
|
-
var
|
|
39
|
+
var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
|
|
40
40
|
var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
|
|
41
|
-
var
|
|
42
|
-
var
|
|
41
|
+
var import_chunk_GCEA7FEH = require("./chunk-GCEA7FEH.js");
|
|
42
|
+
var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
|
|
43
43
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
44
|
-
var
|
|
44
|
+
var import_chunk_CZE6J5XE = require("./chunk-CZE6J5XE.js");
|
|
45
45
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
46
|
-
var
|
|
46
|
+
var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
|
|
47
47
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
48
48
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
49
49
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
50
50
|
var import_get_platform = require("@prisma/get-platform");
|
|
51
|
-
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
|
51
|
+
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_QOTVZEEZ.require_function)());
|
|
52
52
|
var debug = (0, import_debug.default)("prisma:getConfig");
|
|
53
53
|
var SCHEMA_VALIDATION_ERROR_CODE = "P1012";
|
|
54
54
|
var GetConfigError = class extends Error {
|
|
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
|
|
|
65
65
|
}).exhaustive();
|
|
66
66
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
67
67
|
[Context: getConfig]`;
|
|
68
|
-
super((0,
|
|
68
|
+
super((0, import_chunk_GCEA7FEH.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
69
69
|
this.name = "GetConfigError";
|
|
70
70
|
}
|
|
71
71
|
};
|
|
@@ -83,14 +83,14 @@ function resolveUrl(envValue) {
|
|
|
83
83
|
return urlFromValue ?? urlEnvVarValue;
|
|
84
84
|
}
|
|
85
85
|
async function getConfig(options) {
|
|
86
|
-
const debugErrorType = (0,
|
|
86
|
+
const debugErrorType = (0, import_chunk_KUMD5MBR.createDebugErrorType)(debug, "getConfigWasm");
|
|
87
87
|
debug(`Using getConfig Wasm`);
|
|
88
88
|
const configEither = (0, import_function.pipe)(
|
|
89
|
-
(0,
|
|
89
|
+
(0, import_chunk_4A5ZK522.tryCatch)(
|
|
90
90
|
() => {
|
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
|
92
92
|
debug("Triggering a Rust panic...");
|
|
93
|
-
|
|
93
|
+
import_chunk_CZE6J5XE.prismaSchemaWasm.debug_panic();
|
|
94
94
|
}
|
|
95
95
|
const params = JSON.stringify({
|
|
96
96
|
prismaSchema: options.datamodel,
|
|
@@ -98,7 +98,7 @@ async function getConfig(options) {
|
|
|
98
98
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
|
99
99
|
env: process.env
|
|
100
100
|
});
|
|
101
|
-
const data =
|
|
101
|
+
const data = import_chunk_CZE6J5XE.prismaSchemaWasm.get_config(params);
|
|
102
102
|
return data;
|
|
103
103
|
},
|
|
104
104
|
(e) => ({
|
|
@@ -107,11 +107,11 @@ async function getConfig(options) {
|
|
|
107
107
|
error: e
|
|
108
108
|
})
|
|
109
109
|
),
|
|
110
|
-
(0,
|
|
111
|
-
(0,
|
|
110
|
+
(0, import_chunk_4A5ZK522.map)((result) => ({ result })),
|
|
111
|
+
(0, import_chunk_4A5ZK522.chainW)(
|
|
112
112
|
({ result }) => (
|
|
113
113
|
// NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
|
|
114
|
-
(0,
|
|
114
|
+
(0, import_chunk_4A5ZK522.tryCatch)(
|
|
115
115
|
() => JSON.parse(result),
|
|
116
116
|
(e) => ({
|
|
117
117
|
type: "parse-json",
|
|
@@ -121,18 +121,18 @@ async function getConfig(options) {
|
|
|
121
121
|
)
|
|
122
122
|
)
|
|
123
123
|
),
|
|
124
|
-
(0,
|
|
124
|
+
(0, import_chunk_4A5ZK522.chainW)((response) => {
|
|
125
125
|
if (response.errors.length > 0) {
|
|
126
|
-
return (0,
|
|
126
|
+
return (0, import_chunk_4A5ZK522.left)({
|
|
127
127
|
type: "validation-error",
|
|
128
128
|
reason: "(get-config wasm)",
|
|
129
129
|
error: response.errors
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
return (0,
|
|
132
|
+
return (0, import_chunk_4A5ZK522.right)(response.config);
|
|
133
133
|
})
|
|
134
134
|
);
|
|
135
|
-
if ((0,
|
|
135
|
+
if ((0, import_chunk_4A5ZK522.isRight)(configEither)) {
|
|
136
136
|
debug("config data retrieved without errors in getConfig Wasm");
|
|
137
137
|
const { right: data } = configEither;
|
|
138
138
|
for (const generator of data.generators) {
|
|
@@ -160,12 +160,12 @@ async function getConfig(options) {
|
|
|
160
160
|
return panic;
|
|
161
161
|
}
|
|
162
162
|
const errorOutput = e.error.message;
|
|
163
|
-
return new GetConfigError((0,
|
|
163
|
+
return new GetConfigError((0, import_chunk_KUMD5MBR.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
164
164
|
}).with({ type: "validation-error" }, (e) => {
|
|
165
165
|
return new GetConfigError({
|
|
166
166
|
_tag: "parsed",
|
|
167
167
|
errorCode: SCHEMA_VALIDATION_ERROR_CODE,
|
|
168
|
-
reason: (0,
|
|
168
|
+
reason: (0, import_chunk_KUMD5MBR.createSchemaValidationError)(e.reason),
|
|
169
169
|
message: formatErrors(e.error)
|
|
170
170
|
});
|
|
171
171
|
}).otherwise((e) => {
|