@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
@@ -16,18 +16,18 @@ 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_S4LINK5Y_exports = {};
|
20
|
+
__export(chunk_S4LINK5Y_exports, {
|
21
21
|
loadLibrary: () => loadLibrary
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_S4LINK5Y_exports);
|
24
|
+
var import_chunk_J4MA2JIK = require("./chunk-J4MA2JIK.js");
|
25
25
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
26
26
|
function loadLibrary(id, platformInfo) {
|
27
27
|
try {
|
28
28
|
return (0, import_chunk_WWAWV7DQ.__require)(id);
|
29
29
|
} catch (e) {
|
30
|
-
const errorMessage = (0,
|
30
|
+
const errorMessage = (0, import_chunk_J4MA2JIK.handleLibraryLoadingErrors)({
|
31
31
|
e,
|
32
32
|
platformInfo,
|
33
33
|
id
|
@@ -26,22 +26,22 @@ 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_UR3LUZY3_exports = {};
|
30
|
+
__export(chunk_UR3LUZY3_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_UR3LUZY3_exports);
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
39
|
-
var
|
40
|
-
var
|
41
|
-
var
|
39
|
+
var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
|
40
|
+
var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
|
41
|
+
var import_chunk_67KWF6KB = require("./chunk-67KWF6KB.js");
|
42
42
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
43
|
-
var
|
44
|
-
var
|
43
|
+
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
44
|
+
var import_chunk_MUJIYA44 = require("./chunk-MUJIYA44.js");
|
45
45
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
46
46
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
47
47
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
@@ -53,7 +53,7 @@ var debug = (0, import_debug.default)("prisma:getConfig");
|
|
53
53
|
var SCHEMA_VALIDATION_ERROR_CODE = "P1012";
|
54
54
|
var GetConfigError = class extends Error {
|
55
55
|
constructor(params) {
|
56
|
-
const constructedErrorMessage = (0,
|
56
|
+
const constructedErrorMessage = (0, import_chunk_H3T4L34H.$)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
|
57
57
|
const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
|
58
58
|
return `${reason}
|
59
59
|
${errorCodeMessage}
|
@@ -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_67KWF6KB.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_IAEMHQAC.createDebugErrorType)(debug, "getConfigWasm");
|
87
87
|
debug(`Using getConfig Wasm`);
|
88
88
|
const configEither = (0, import_function.pipe)(
|
89
89
|
(0, import_chunk_7MD6344A.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_MUJIYA44.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_MUJIYA44.prismaSchemaWasm.get_config(params);
|
102
102
|
return data;
|
103
103
|
},
|
104
104
|
(e) => ({
|
@@ -140,7 +140,7 @@ async function getConfig(options) {
|
|
140
140
|
}
|
141
141
|
return Promise.resolve(data);
|
142
142
|
}
|
143
|
-
const error = (0,
|
143
|
+
const error = (0, import_chunk_H3T4L34H.$)(configEither.left).with({ type: "wasm-error" }, (e) => {
|
144
144
|
debugErrorType(e);
|
145
145
|
if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
|
146
146
|
const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e.error);
|
@@ -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_IAEMHQAC.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_IAEMHQAC.createSchemaValidationError)(e.reason),
|
169
169
|
message: formatErrors(e.error)
|
170
170
|
});
|
171
171
|
}).otherwise((e) => {
|
@@ -195,7 +195,7 @@ async function resolveBinaryTargets(generator) {
|
|
195
195
|
}
|
196
196
|
}
|
197
197
|
function formatErrors(errors) {
|
198
|
-
const formattedErrors = errors.map((e) => (0,
|
198
|
+
const formattedErrors = errors.map((e) => (0, import_chunk_WMIBAVWZ.relativizePathInPSLError)(e.message)).join("\n\n");
|
199
199
|
const errorCount = `Validation Error Count: ${errors.length}`;
|
200
200
|
return `${formattedErrors}
|
201
201
|
${errorCount}`;
|
@@ -16,13 +16,13 @@ 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_V2VWODV3_exports = {};
|
20
|
+
__export(chunk_V2VWODV3_exports, {
|
21
21
|
getEngineVersion: () => getEngineVersion,
|
22
22
|
safeGetEngineVersion: () => safeGetEngineVersion
|
23
23
|
});
|
24
|
-
module.exports = __toCommonJS(
|
25
|
-
var
|
24
|
+
module.exports = __toCommonJS(chunk_V2VWODV3_exports);
|
25
|
+
var import_chunk_S4LINK5Y = require("./chunk-S4LINK5Y.js");
|
26
26
|
var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
|
27
27
|
var import_chunk_QJZIYUVB = require("./chunk-QJZIYUVB.js");
|
28
28
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
@@ -39,7 +39,7 @@ async function getEngineVersion(enginePath, binaryName) {
|
|
39
39
|
const platformInfo = await (0, import_get_platform.getPlatformInfo)();
|
40
40
|
if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
|
41
41
|
(0, import_get_platform.assertNodeAPISupported)();
|
42
|
-
const QE = (0,
|
42
|
+
const QE = (0, import_chunk_S4LINK5Y.loadLibrary)(enginePath, platformInfo);
|
43
43
|
return `${import_fetch_engine.BinaryType.QueryEngineLibrary} ${QE.version().commit}`;
|
44
44
|
} else {
|
45
45
|
const { stdout } = await (0, import_execa.default)(enginePath, ["--version"]);
|
@@ -26,19 +26,19 @@ 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_VFU3I6P6_exports = {};
|
30
|
+
__export(chunk_VFU3I6P6_exports, {
|
31
31
|
ValidateError: () => ValidateError,
|
32
32
|
validate: () => validate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_VFU3I6P6_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
|
-
var
|
37
|
-
var
|
38
|
-
var
|
36
|
+
var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
|
37
|
+
var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
|
38
|
+
var import_chunk_KNNIRRTO = require("./chunk-KNNIRRTO.js");
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
40
|
-
var
|
41
|
-
var
|
40
|
+
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
41
|
+
var import_chunk_2WJPHJ2I = require("./chunk-2WJPHJ2I.js");
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
43
43
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
@@ -48,11 +48,11 @@ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVW
|
|
48
48
|
var debug = (0, import_debug.default)("prisma:validate");
|
49
49
|
var ValidateError = class extends Error {
|
50
50
|
constructor(params) {
|
51
|
-
const constructedErrorMessage = (0,
|
51
|
+
const constructedErrorMessage = (0, import_chunk_H3T4L34H.$)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
|
52
52
|
const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
|
53
53
|
return `${reason}
|
54
54
|
${errorCodeMessage}
|
55
|
-
${(0,
|
55
|
+
${(0, import_chunk_WMIBAVWZ.relativizePathInPSLError)(message)}`;
|
56
56
|
}).with({ _tag: "unparsed" }, ({ message, reason }) => {
|
57
57
|
const detailsHeader = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)("Details:"));
|
58
58
|
return `${reason}
|
@@ -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_KNNIRRTO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "ValidateError";
|
65
65
|
}
|
66
66
|
};
|
67
67
|
function validate(options) {
|
68
|
-
const debugErrorType = (0,
|
68
|
+
const debugErrorType = (0, import_chunk_IAEMHQAC.createDebugErrorType)(debug, "validateWasm");
|
69
69
|
debug(`Using validate Wasm`);
|
70
70
|
const validateEither = (0, import_function.pipe)(
|
71
71
|
(0, import_chunk_7MD6344A.tryCatch)(
|
72
72
|
() => {
|
73
73
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
74
74
|
debug("Triggering a Rust panic...");
|
75
|
-
|
75
|
+
import_chunk_2WJPHJ2I.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_2WJPHJ2I.prismaSchemaWasm.validate(params);
|
82
82
|
},
|
83
83
|
(e) => ({
|
84
84
|
type: "wasm-error",
|
@@ -90,7 +90,7 @@ function validate(options) {
|
|
90
90
|
if ((0, import_chunk_7MD6344A.isRight)(validateEither)) {
|
91
91
|
return;
|
92
92
|
}
|
93
|
-
const error = (0,
|
93
|
+
const error = (0, import_chunk_H3T4L34H.$)(validateEither.left).with({ type: "wasm-error" }, (e) => {
|
94
94
|
debugErrorType(e);
|
95
95
|
console.error("");
|
96
96
|
if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
|
@@ -113,7 +113,7 @@ function validate(options) {
|
|
113
113
|
return panic;
|
114
114
|
}
|
115
115
|
const errorOutput = e.error.message;
|
116
|
-
return new ValidateError((0,
|
116
|
+
return new ValidateError((0, import_chunk_IAEMHQAC.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
117
117
|
}).exhaustive();
|
118
118
|
throw error;
|
119
119
|
}
|