@prisma/internals 6.19.0-integration-feat-remove-library-engine.4 → 6.19.0-integration-next.15
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-EYGLXZ7L.js → chunk-4PZUFZNL.js} +5 -5
- package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
- package/dist/{chunk-5MHUYAV3.js → chunk-5XFNC2RY.js} +9 -9
- package/dist/chunk-6TTRTZXU.js +37 -0
- package/dist/{chunk-UB2X7DGZ.js → chunk-75BIJ5PX.js} +9 -9
- package/dist/{chunk-H6PPJ5PX.js → chunk-7QC5VORA.js} +7 -7
- package/dist/{chunk-33K2EQQZ.js → chunk-AX5N26KG.js} +10 -10
- package/dist/{chunk-5I4ERIIY.js → chunk-B22EOFPW.js} +6 -3
- package/dist/{chunk-Z2IPE4NA.js → chunk-BJUIZZOW.js} +47 -32
- package/dist/{chunk-32LLAKF4.js → chunk-BVJP43JS.js} +784 -13
- package/dist/{chunk-AOJ2N25Z.js → chunk-CAYOFOK7.js} +8 -8
- package/dist/{chunk-IRWX4FCC.js → chunk-D4VDA2TZ.js} +6 -6
- package/dist/{chunk-KUU5CPWK.js → chunk-DAWUGT2S.js} +5 -5
- package/dist/{chunk-EBJBIVXN.js → chunk-DSOOZF5Q.js} +5 -5
- package/dist/chunk-DZYINYAA.js +68 -0
- package/dist/{chunk-L7QYUMS4.js → chunk-EGJS32NP.js} +8 -8
- package/dist/{chunk-22HIO2UL.js → chunk-FC6CQUSK.js} +7 -7
- package/dist/{chunk-R3J2O23S.js → chunk-FCYHZHVW.js} +4 -4
- package/dist/chunk-FUYRCYVL.js +53 -0
- package/dist/{chunk-HNRMSI3R.js → chunk-FYZCPL2Z.js} +8 -5
- package/dist/{chunk-BUQN4WLU.js → chunk-GSH4BXBI.js} +6 -6
- package/dist/{chunk-UMB3Y33W.js → chunk-HD2CUQO5.js} +7 -7
- package/dist/{chunk-CGLLQXZE.js → chunk-HHG4DGHC.js} +12 -11
- package/dist/{chunk-TDQDOFYQ.js → chunk-HQAD5FY2.js} +5 -5
- package/dist/{chunk-IKYFTE43.js → chunk-HZ6U2UGL.js} +8 -8
- package/dist/{chunk-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
- package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
- package/dist/{chunk-T3NMG3HB.js → chunk-ITUREZTQ.js} +7 -7
- package/dist/{chunk-NVSVTFPX.js → chunk-IZW777ZO.js} +5 -5
- package/dist/{chunk-2LOGW45F.js → chunk-JOIIWB3U.js} +33 -68
- package/dist/{chunk-IU77SCOB.js → chunk-KIFFN3IT.js} +9 -9
- package/dist/{chunk-LGJMPZ7V.js → chunk-MURRA56K.js} +5 -5
- package/dist/{chunk-ZVTQSH5K.js → chunk-N657I3KT.js} +5 -5
- package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
- package/dist/{chunk-D7L3VT6R.js → chunk-QABDTHAM.js} +8 -8
- package/dist/{chunk-MUZJUPDX.js → chunk-S553BGWR.js} +4 -4
- package/dist/{chunk-H5STSTVK.js → chunk-SRZLJFU4.js} +16 -7
- package/dist/{chunk-VNIE2AZB.js → chunk-TQCLUNM2.js} +4 -4
- package/dist/{chunk-MXAUURHG.js → chunk-TQFONRJP.js} +5 -5
- package/dist/{chunk-WJKBKH3Y.js → chunk-UHI6VYFX.js} +5 -5
- package/dist/{chunk-XIVQSSTX.js → chunk-UIYQPPLE.js} +8 -8
- package/dist/{chunk-NNYJV66S.js → chunk-VIEJEAGW.js} +5 -5
- package/dist/{chunk-GJSFP4V4.js → chunk-VRGMXDRD.js} +6 -3
- package/dist/{chunk-E4GP3FX7.js → chunk-VVF5HBJU.js} +47 -32
- package/dist/{chunk-KO44E4Z3.js → chunk-XTWFEQXH.js} +5 -5
- package/dist/{chunk-BZV6PVWV.js → chunk-ZLYKU4D6.js} +8 -8
- package/dist/cli/checkUnsupportedDataProxy.js +49 -47
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +49 -47
- package/dist/cli/schemaContext.js +49 -47
- package/dist/client/getClientEngineType.d.ts +6 -0
- package/dist/client/getClientEngineType.js +26 -0
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +48 -46
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/getEngineVersion.js +9 -6
- package/dist/engine-commands/getEnginesInfo.js +9 -7
- package/dist/engine-commands/index.js +60 -58
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +7 -7
- package/dist/engine-commands/validate.js +7 -7
- package/dist/errorReporting.js +6 -6
- package/dist/get-generators/getGenerators.js +51 -49
- 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/highlight/highlight.js +5 -5
- package/dist/index.d.ts +4 -1
- package/dist/index.js +95 -88
- 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/canPrompt.js +3 -3
- package/dist/utils/cloudflareD1.js +3 -3
- 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/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handleEngineLoadingErrors.d.ts +8 -0
- package/dist/utils/handleEngineLoadingErrors.js +27 -0
- package/dist/utils/handlePanic.js +8 -8
- 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/missingDatasource.js +5 -5
- package/dist/utils/missingGeneratorMessage.js +7 -7
- package/dist/wasm.js +5 -5
- package/package.json +12 -12
- package/dist/chunk-DYV47NUW.js +0 -796
|
@@ -26,20 +26,20 @@ 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_QABDTHAM_exports = {};
|
|
30
|
+
__export(chunk_QABDTHAM_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_QABDTHAM_exports);
|
|
38
38
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
39
39
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
40
40
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
41
|
-
var
|
|
42
|
-
var
|
|
41
|
+
var import_chunk_DSOOZF5Q = require("./chunk-DSOOZF5Q.js");
|
|
42
|
+
var import_chunk_N657I3KT = require("./chunk-N657I3KT.js");
|
|
43
43
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
44
44
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
45
45
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
@@ -64,7 +64,7 @@ ${detailsHeader} ${message}`;
|
|
|
64
64
|
}).exhaustive();
|
|
65
65
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
66
66
|
[Context: getConfig]`;
|
|
67
|
-
super((0,
|
|
67
|
+
super((0, import_chunk_DSOOZF5Q.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
68
68
|
this.name = "GetConfigError";
|
|
69
69
|
}
|
|
70
70
|
};
|
|
@@ -89,7 +89,7 @@ async function getConfig(options) {
|
|
|
89
89
|
() => {
|
|
90
90
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
|
91
91
|
debug("Triggering a Rust panic...");
|
|
92
|
-
|
|
92
|
+
import_chunk_N657I3KT.prismaSchemaWasm.debug_panic();
|
|
93
93
|
}
|
|
94
94
|
const params = JSON.stringify({
|
|
95
95
|
prismaSchema: options.datamodel,
|
|
@@ -97,7 +97,7 @@ async function getConfig(options) {
|
|
|
97
97
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
|
98
98
|
env: process.env
|
|
99
99
|
});
|
|
100
|
-
const data =
|
|
100
|
+
const data = import_chunk_N657I3KT.prismaSchemaWasm.get_config(params);
|
|
101
101
|
return data;
|
|
102
102
|
},
|
|
103
103
|
(e) => ({
|
|
@@ -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_S553BGWR_exports = {};
|
|
20
|
+
__export(chunk_S553BGWR_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_S553BGWR_exports);
|
|
24
24
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
25
25
|
var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
26
26
|
"package.json"(exports, module2) {
|
|
@@ -59,7 +59,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
59
59
|
"@swc/jest": "0.2.37",
|
|
60
60
|
"@types/babel__helper-validator-identifier": "7.15.2",
|
|
61
61
|
"@types/jest": "29.5.14",
|
|
62
|
-
"@types/node": "~20.19.
|
|
62
|
+
"@types/node": "~20.19.0",
|
|
63
63
|
"@types/resolve": "1.20.6",
|
|
64
64
|
archiver: "6.0.2",
|
|
65
65
|
"checkpoint-client": "1.1.33",
|
|
@@ -16,20 +16,29 @@ 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_SRZLJFU4_exports = {};
|
|
20
|
+
__export(chunk_SRZLJFU4_exports, {
|
|
21
21
|
getEngineVersion: () => getEngineVersion,
|
|
22
22
|
safeGetEngineVersion: () => safeGetEngineVersion
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
24
|
+
module.exports = __toCommonJS(chunk_SRZLJFU4_exports);
|
|
25
|
+
var import_chunk_6TTRTZXU = require("./chunk-6TTRTZXU.js");
|
|
25
26
|
var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
|
|
26
|
-
var
|
|
27
|
+
var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
|
|
27
28
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
28
29
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
|
30
|
+
var import_get_platform = require("@prisma/get-platform");
|
|
29
31
|
async function getEngineVersion(enginePath, binaryName) {
|
|
30
|
-
enginePath = await (0,
|
|
31
|
-
const
|
|
32
|
-
|
|
32
|
+
enginePath = await (0, import_chunk_FYZCPL2Z.resolveBinary)(binaryName ?? import_fetch_engine.BinaryType.QueryEngineLibrary, enginePath);
|
|
33
|
+
const platformInfo = await (0, import_get_platform.getPlatformInfo)();
|
|
34
|
+
if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
|
|
35
|
+
(0, import_get_platform.assertNodeAPISupported)();
|
|
36
|
+
const QE = (0, import_chunk_6TTRTZXU.loadLibrary)(enginePath, platformInfo);
|
|
37
|
+
return `${import_fetch_engine.BinaryType.QueryEngineLibrary} ${QE.version().commit}`;
|
|
38
|
+
} else {
|
|
39
|
+
const { stdout } = await (0, import_chunk_JOIHHXR6.execa)(enginePath, ["--version"]);
|
|
40
|
+
return stdout;
|
|
41
|
+
}
|
|
33
42
|
}
|
|
34
43
|
function safeGetEngineVersion(enginePath, binaryName) {
|
|
35
44
|
return (0, import_chunk_5DBOS77Y.tryCatch2)(
|
|
@@ -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_TQCLUNM2_exports = {};
|
|
20
|
+
__export(chunk_TQCLUNM2_exports, {
|
|
21
21
|
highlightDatamodel: () => highlightDatamodel,
|
|
22
22
|
highlightSql: () => highlightSql,
|
|
23
23
|
highlightTS: () => highlightTS
|
|
24
24
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
26
|
-
var import_chunk_CYAS6B5N = require("./chunk-CYAS6B5N.js");
|
|
25
|
+
module.exports = __toCommonJS(chunk_TQCLUNM2_exports);
|
|
27
26
|
var import_chunk_OIVPX3BR = require("./chunk-OIVPX3BR.js");
|
|
27
|
+
var import_chunk_CYAS6B5N = require("./chunk-CYAS6B5N.js");
|
|
28
28
|
var import_chunk_HPVMQFIY = require("./chunk-HPVMQFIY.js");
|
|
29
29
|
function highlightDatamodel(str) {
|
|
30
30
|
return highlight(str, import_chunk_OIVPX3BR.dml);
|
|
@@ -26,8 +26,8 @@ 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_TQFONRJP_exports = {};
|
|
30
|
+
__export(chunk_TQFONRJP_exports, {
|
|
31
31
|
createDirIfNotExists: () => createDirIfNotExists,
|
|
32
32
|
fs_utils_exports: () => fs_utils_exports,
|
|
33
33
|
getFilesInDir: () => getFilesInDir,
|
|
@@ -36,9 +36,9 @@ __export(chunk_MXAUURHG_exports, {
|
|
|
36
36
|
removeEmptyDirs: () => removeEmptyDirs,
|
|
37
37
|
writeFile: () => writeFile
|
|
38
38
|
});
|
|
39
|
-
module.exports = __toCommonJS(
|
|
39
|
+
module.exports = __toCommonJS(chunk_TQFONRJP_exports);
|
|
40
40
|
var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
|
|
42
42
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
43
43
|
var import_promises = __toESM(require("fs/promises"));
|
|
44
44
|
var import_path = __toESM(require("path"));
|
|
@@ -51,7 +51,7 @@ var fs_utils_exports = {};
|
|
|
51
51
|
removeEmptyDirs: () => removeEmptyDirs,
|
|
52
52
|
writeFile: () => writeFile
|
|
53
53
|
});
|
|
54
|
-
var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
|
54
|
+
var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_globby)());
|
|
55
55
|
function createDirIfNotExists(dir) {
|
|
56
56
|
return import_promises.default.mkdir(dir, { recursive: true });
|
|
57
57
|
}
|
|
@@ -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_UHI6VYFX_exports = {};
|
|
20
|
+
__export(chunk_UHI6VYFX_exports, {
|
|
21
21
|
SchemaEngineExitCode: () => SchemaEngineExitCode,
|
|
22
22
|
canConnectToDatabase: () => canConnectToDatabase,
|
|
23
23
|
createDatabase: () => createDatabase,
|
|
24
24
|
dropDatabase: () => dropDatabase,
|
|
25
25
|
execaCommand: () => execaCommand
|
|
26
26
|
});
|
|
27
|
-
module.exports = __toCommonJS(
|
|
27
|
+
module.exports = __toCommonJS(chunk_UHI6VYFX_exports);
|
|
28
28
|
var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
|
|
29
|
-
var
|
|
29
|
+
var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
|
|
30
30
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
|
31
31
|
var SchemaEngineExitCode = /* @__PURE__ */ ((SchemaEngineExitCode2) => {
|
|
32
32
|
SchemaEngineExitCode2[SchemaEngineExitCode2["Success"] = 0] = "Success";
|
|
@@ -139,7 +139,7 @@ async function execaCommand({
|
|
|
139
139
|
schemaEnginePath,
|
|
140
140
|
engineCommandName
|
|
141
141
|
}) {
|
|
142
|
-
schemaEnginePath = schemaEnginePath || await (0,
|
|
142
|
+
schemaEnginePath = schemaEnginePath || await (0, import_chunk_FYZCPL2Z.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
|
|
143
143
|
try {
|
|
144
144
|
return await (0, import_chunk_JOIHHXR6.execa)(schemaEnginePath, ["cli", "--datasource", connectionString, engineCommandName], {
|
|
145
145
|
cwd,
|
|
@@ -26,17 +26,17 @@ 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_UIYQPPLE_exports = {};
|
|
30
|
+
__export(chunk_UIYQPPLE_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_UIYQPPLE_exports);
|
|
35
35
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
36
36
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
37
37
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var import_chunk_DSOOZF5Q = require("./chunk-DSOOZF5Q.js");
|
|
39
|
+
var import_chunk_N657I3KT = require("./chunk-N657I3KT.js");
|
|
40
40
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
41
41
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
42
42
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
|
|
|
59
59
|
}).exhaustive();
|
|
60
60
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
61
61
|
[Context: validate]`;
|
|
62
|
-
super((0,
|
|
62
|
+
super((0, import_chunk_DSOOZF5Q.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
63
63
|
this.name = "ValidateError";
|
|
64
64
|
}
|
|
65
65
|
};
|
|
@@ -71,13 +71,13 @@ function validate(options) {
|
|
|
71
71
|
() => {
|
|
72
72
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
73
73
|
debug("Triggering a Rust panic...");
|
|
74
|
-
|
|
74
|
+
import_chunk_N657I3KT.prismaSchemaWasm.debug_panic();
|
|
75
75
|
}
|
|
76
76
|
const params = JSON.stringify({
|
|
77
77
|
prismaSchema: options.schemas,
|
|
78
78
|
noColor: Boolean(process.env.NO_COLOR)
|
|
79
79
|
});
|
|
80
|
-
|
|
80
|
+
import_chunk_N657I3KT.prismaSchemaWasm.validate(params);
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|
|
83
83
|
type: "wasm-error",
|
|
@@ -16,20 +16,20 @@ 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_VIEJEAGW_exports = {};
|
|
20
|
+
__export(chunk_VIEJEAGW_exports, {
|
|
21
21
|
getLintWarnings: () => getLintWarnings,
|
|
22
22
|
getLintWarningsAsText: () => getLintWarningsAsText,
|
|
23
23
|
handleLintPanic: () => handleLintPanic,
|
|
24
24
|
lintSchema: () => lintSchema,
|
|
25
25
|
warningToString: () => warningToString
|
|
26
26
|
});
|
|
27
|
-
module.exports = __toCommonJS(
|
|
28
|
-
var
|
|
27
|
+
module.exports = __toCommonJS(chunk_VIEJEAGW_exports);
|
|
28
|
+
var import_chunk_HQAD5FY2 = require("./chunk-HQAD5FY2.js");
|
|
29
29
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
30
30
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
31
31
|
function lintSchema({ schemas }) {
|
|
32
|
-
const lintResult =
|
|
32
|
+
const lintResult = import_chunk_HQAD5FY2.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
|
33
33
|
const lintDiagnostics = JSON.parse(lintResult);
|
|
34
34
|
return lintDiagnostics;
|
|
35
35
|
}
|
|
@@ -16,15 +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_VRGMXDRD_exports = {};
|
|
20
|
+
__export(chunk_VRGMXDRD_exports, {
|
|
21
21
|
engineTypeToBinaryType: () => engineTypeToBinaryType
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_VRGMXDRD_exports);
|
|
24
24
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
|
25
25
|
function engineTypeToBinaryType(engineType) {
|
|
26
26
|
if (engineType === "schemaEngine") {
|
|
27
27
|
return import_fetch_engine.BinaryType.SchemaEngineBinary;
|
|
28
28
|
}
|
|
29
|
+
if (engineType === "libqueryEngine") {
|
|
30
|
+
return import_fetch_engine.BinaryType.QueryEngineLibrary;
|
|
31
|
+
}
|
|
29
32
|
throw new Error(`Could not convert engine type ${engineType}`);
|
|
30
33
|
}
|
|
@@ -26,8 +26,8 @@ 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_VVF5HBJU_exports = {};
|
|
30
|
+
__export(chunk_VVF5HBJU_exports, {
|
|
31
31
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
|
32
32
|
checkUnsupportedSchemaEngineWasm: () => checkUnsupportedSchemaEngineWasm,
|
|
33
33
|
forbiddenCmdFlagWithSchemaEngineWasm: () => forbiddenCmdFlagWithSchemaEngineWasm,
|
|
@@ -36,37 +36,40 @@ __export(chunk_E4GP3FX7_exports, {
|
|
|
36
36
|
getBinaryTargetForCurrentPlatform: () => import_get_platform2.getBinaryTargetForCurrentPlatform,
|
|
37
37
|
getGenerator: () => getGenerator,
|
|
38
38
|
getGenerators: () => getGenerators,
|
|
39
|
+
getNodeAPIName: () => import_get_platform2.getNodeAPIName,
|
|
39
40
|
knownBinaryTargets: () => knownBinaryTargets,
|
|
40
41
|
loadSchemaContext: () => loadSchemaContext,
|
|
41
42
|
processSchemaResult: () => processSchemaResult,
|
|
42
43
|
skipIndex: () => skipIndex
|
|
43
44
|
});
|
|
44
|
-
module.exports = __toCommonJS(
|
|
45
|
-
var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
|
|
46
|
-
var import_chunk_5MHUYAV3 = require("./chunk-5MHUYAV3.js");
|
|
45
|
+
module.exports = __toCommonJS(chunk_VVF5HBJU_exports);
|
|
47
46
|
var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
|
|
48
47
|
var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
|
|
48
|
+
var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
|
|
49
|
+
var import_chunk_5XFNC2RY = require("./chunk-5XFNC2RY.js");
|
|
50
|
+
var import_chunk_B22EOFPW = require("./chunk-B22EOFPW.js");
|
|
49
51
|
var import_chunk_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
|
|
50
52
|
var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
+
var import_chunk_7QC5VORA = require("./chunk-7QC5VORA.js");
|
|
54
|
+
var import_chunk_AX5N26KG = require("./chunk-AX5N26KG.js");
|
|
53
55
|
var import_chunk_6QTN4DDB = require("./chunk-6QTN4DDB.js");
|
|
54
|
-
var
|
|
56
|
+
var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
|
|
55
57
|
var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
58
|
+
var import_chunk_QABDTHAM = require("./chunk-QABDTHAM.js");
|
|
59
|
+
var import_chunk_ZLYKU4D6 = require("./chunk-ZLYKU4D6.js");
|
|
60
|
+
var import_chunk_DAWUGT2S = require("./chunk-DAWUGT2S.js");
|
|
61
|
+
var import_chunk_ITUREZTQ = require("./chunk-ITUREZTQ.js");
|
|
60
62
|
var import_chunk_OKVM3CW4 = require("./chunk-OKVM3CW4.js");
|
|
61
|
-
var
|
|
63
|
+
var import_chunk_N657I3KT = require("./chunk-N657I3KT.js");
|
|
62
64
|
var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
|
|
63
65
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
|
66
|
+
var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
|
|
64
67
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
65
68
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
66
69
|
var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
|
|
67
70
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
|
68
71
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
69
|
-
var
|
|
72
|
+
var import_chunk_BVJP43JS = require("./chunk-BVJP43JS.js");
|
|
70
73
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
71
74
|
var import_path = __toESM(require("path"));
|
|
72
75
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
@@ -79,7 +82,7 @@ var forbiddenCmdFlagWithSchemaEngineWasm = ({ cmd, flag }) => `
|
|
|
79
82
|
Passing the ${(0, import_chunk_PG5FDKSF.green)(`${flag}`)} flag to the ${(0, import_chunk_PG5FDKSF.green)(`prisma ${cmd}`)} command is not supported when
|
|
80
83
|
defining an ${(0, import_chunk_PG5FDKSF.green)(`adapter`)} in Prisma config file (e.g., ${(0, import_chunk_PG5FDKSF.green)(`\`prisma.config.ts\``)}).
|
|
81
84
|
|
|
82
|
-
More information about this limitation: ${(0,
|
|
85
|
+
More information about this limitation: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/schema-engine-limitations")}
|
|
83
86
|
`;
|
|
84
87
|
function checkUnsupportedSchemaEngineWasm({
|
|
85
88
|
cmd,
|
|
@@ -100,7 +103,7 @@ var debug = (0, import_debug.default)("prisma:format");
|
|
|
100
103
|
async function formatSchema({ schemas }, inputFormattingOptions) {
|
|
101
104
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
|
102
105
|
handleFormatPanic(() => {
|
|
103
|
-
|
|
106
|
+
import_chunk_N657I3KT.prismaSchemaWasm.debug_panic();
|
|
104
107
|
});
|
|
105
108
|
}
|
|
106
109
|
const defaultFormattingOptions = {
|
|
@@ -117,10 +120,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
|
|
|
117
120
|
const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
|
|
118
121
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
|
|
119
122
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
|
120
|
-
const lintDiagnostics2 = (0,
|
|
123
|
+
const lintDiagnostics2 = (0, import_chunk_DAWUGT2S.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
|
121
124
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
|
122
125
|
});
|
|
123
|
-
const lintWarnings = (0,
|
|
126
|
+
const lintWarnings = (0, import_chunk_DAWUGT2S.getLintWarningsAsText)(lintDiagnostics);
|
|
124
127
|
if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
|
|
125
128
|
console.warn(lintWarnings);
|
|
126
129
|
}
|
|
@@ -147,7 +150,7 @@ function handleFormatPanic(tryCb) {
|
|
|
147
150
|
}
|
|
148
151
|
}
|
|
149
152
|
function formatWasm(schema, documentFormattingParams) {
|
|
150
|
-
const formattedSchema =
|
|
153
|
+
const formattedSchema = import_chunk_N657I3KT.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
|
151
154
|
return formattedSchema;
|
|
152
155
|
}
|
|
153
156
|
async function loadSchemaContext({
|
|
@@ -187,7 +190,7 @@ async function processSchemaResult({
|
|
|
187
190
|
if (printLoadMessage) {
|
|
188
191
|
(0, import_chunk_OKVM3CW4.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
|
|
189
192
|
}
|
|
190
|
-
const configFromPsl = await (0,
|
|
193
|
+
const configFromPsl = await (0, import_chunk_QABDTHAM.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
|
|
191
194
|
const datasourceFromPsl = configFromPsl.datasources.at(0);
|
|
192
195
|
const primaryDatasource = (0, import_chunk_XKZ6CBLA.z)(schemaEngineConfig).with({ engine: "classic" }, ({ datasource }) => {
|
|
193
196
|
const { url, directUrl, shadowDatabaseUrl } = datasource;
|
|
@@ -220,7 +223,7 @@ function getPrimaryDatasourceDirectory(primaryDatasource) {
|
|
|
220
223
|
}
|
|
221
224
|
return null;
|
|
222
225
|
}
|
|
223
|
-
var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
|
226
|
+
var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_BVJP43JS.require_p_map)());
|
|
224
227
|
var debug2 = (0, import_debug2.default)("prisma:getGenerators");
|
|
225
228
|
async function getGenerators(options) {
|
|
226
229
|
if (options.registry === void 0 && options.providerAliases !== void 0) {
|
|
@@ -253,19 +256,19 @@ async function getGenerators(options) {
|
|
|
253
256
|
throw new Error(`no schema provided for getGenerators`);
|
|
254
257
|
}
|
|
255
258
|
if (!schemaContext.primaryDatasource) {
|
|
256
|
-
throw new Error(
|
|
259
|
+
throw new Error(import_chunk_7QC5VORA.missingDatasource);
|
|
257
260
|
}
|
|
258
261
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
|
|
259
262
|
const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
|
|
260
|
-
const dmmf = await (0,
|
|
263
|
+
const dmmf = await (0, import_chunk_ZLYKU4D6.getDMMF)({
|
|
261
264
|
datamodel: schemaContext.schemaFiles,
|
|
262
265
|
previewFeatures
|
|
263
266
|
});
|
|
264
267
|
if (dmmf.datamodel.models.length === 0 && !allowNoModels) {
|
|
265
268
|
if (schemaContext.primaryDatasource.provider === "mongodb") {
|
|
266
|
-
throw new Error(
|
|
269
|
+
throw new Error(import_chunk_AX5N26KG.missingModelMessageMongoDB);
|
|
267
270
|
}
|
|
268
|
-
throw new Error(
|
|
271
|
+
throw new Error(import_chunk_AX5N26KG.missingModelMessage);
|
|
269
272
|
}
|
|
270
273
|
const generatorConfigs = filterGenerators(overrideGenerators || schemaContext.generators, generatorNames);
|
|
271
274
|
await validateGenerators(generatorConfigs);
|
|
@@ -308,7 +311,7 @@ You need to define \`output\` in the generator block in the schema file.`
|
|
|
308
311
|
fromEnvVar: null
|
|
309
312
|
};
|
|
310
313
|
}
|
|
311
|
-
const datamodel = (0,
|
|
314
|
+
const datamodel = (0, import_chunk_ITUREZTQ.mergeSchemas)({ schemas: schemaContext.schemaFiles });
|
|
312
315
|
const envPaths = (0, import_chunk_6QTN4DDB.getEnvPaths)(schemaContext.schemaPath, { cwd: generatorConfig.output.value });
|
|
313
316
|
const options2 = {
|
|
314
317
|
datamodel,
|
|
@@ -366,16 +369,17 @@ generator gen {
|
|
|
366
369
|
}
|
|
367
370
|
const generatorBinaryTargets = g.options?.generator?.binaryTargets;
|
|
368
371
|
if (generatorBinaryTargets && generatorBinaryTargets.length > 0) {
|
|
369
|
-
for (const
|
|
370
|
-
if (!neededVersions[neededVersion].binaryTargets.find((object) => object.value ===
|
|
371
|
-
neededVersions[neededVersion].binaryTargets.push(
|
|
372
|
+
for (const binaryTarget2 of generatorBinaryTargets) {
|
|
373
|
+
if (!neededVersions[neededVersion].binaryTargets.find((object) => object.value === binaryTarget2.value)) {
|
|
374
|
+
neededVersions[neededVersion].binaryTargets.push(binaryTarget2);
|
|
372
375
|
}
|
|
373
376
|
}
|
|
374
377
|
}
|
|
375
378
|
}
|
|
376
379
|
}
|
|
380
|
+
const queryEngineType = (0, import_chunk_B22EOFPW.binaryTypeToEngineType)(import_chunk_FYZCPL2Z.BinaryType.QueryEngineLibrary);
|
|
377
381
|
debug2("neededVersions", JSON.stringify(neededVersions, null, 2));
|
|
378
|
-
const { binaryPathsByVersion } = await (0,
|
|
382
|
+
const { binaryPathsByVersion, binaryTarget } = await (0, import_chunk_5XFNC2RY.getBinaryPathsByVersion)({
|
|
379
383
|
neededVersions,
|
|
380
384
|
// We're lazily computing the binary target here, to avoid printing the
|
|
381
385
|
// `Prisma failed to detect the libssl/openssl version to use` warning
|
|
@@ -396,6 +400,17 @@ generator gen {
|
|
|
396
400
|
const generatorBinaryPaths = (0, import_chunk_GXW4NTU2.pick)(binaryPaths ?? {}, generator.manifest.requiresEngines);
|
|
397
401
|
debug2({ generatorBinaryPaths });
|
|
398
402
|
generator.setBinaryPaths(generatorBinaryPaths);
|
|
403
|
+
if (engineVersion !== version2 && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
|
404
|
+
const customDmmf = await (0, import_chunk_ZLYKU4D6.getDMMF)({
|
|
405
|
+
datamodel: schemaContext.schemaFiles,
|
|
406
|
+
previewFeatures
|
|
407
|
+
});
|
|
408
|
+
const options2 = { ...generator.options, dmmf: customDmmf };
|
|
409
|
+
debug2("generator.manifest.prettyName", generator.manifest.prettyName);
|
|
410
|
+
debug2("options", options2);
|
|
411
|
+
debug2("options.generator.binaryTargets", options2.generator.binaryTargets);
|
|
412
|
+
generator.setOptions(options2);
|
|
413
|
+
}
|
|
399
414
|
}
|
|
400
415
|
}
|
|
401
416
|
return generators;
|
|
@@ -483,7 +498,7 @@ var forbiddenCmdWithDataProxyFlagMessage = (command) => `
|
|
|
483
498
|
Using an Accelerate URL is not supported for this CLI command ${(0, import_chunk_PG5FDKSF.green)(`prisma ${command}`)} yet.
|
|
484
499
|
Please use a direct connection to your database via the datasource \`directUrl\` setting.
|
|
485
500
|
|
|
486
|
-
More information about this limitation: ${(0,
|
|
501
|
+
More information about this limitation: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/accelerate-limitations")}
|
|
487
502
|
`;
|
|
488
503
|
function checkUnsupportedDataProxy({
|
|
489
504
|
cmd,
|
|
@@ -496,7 +511,7 @@ function checkUnsupportedDataProxy({
|
|
|
496
511
|
}
|
|
497
512
|
}
|
|
498
513
|
if (!schemaContext?.primaryDatasource) return;
|
|
499
|
-
const url = (0,
|
|
514
|
+
const url = (0, import_chunk_QABDTHAM.resolveUrl)((0, import_chunk_QABDTHAM.getEffectiveUrl)(schemaContext.primaryDatasource));
|
|
500
515
|
if (url?.startsWith("prisma://")) {
|
|
501
516
|
throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
|
|
502
517
|
}
|
|
@@ -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_XTWFEQXH_exports = {};
|
|
20
|
+
__export(chunk_XTWFEQXH_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_XTWFEQXH_exports);
|
|
24
|
+
var import_chunk_S553BGWR = require("./chunk-S553BGWR.js");
|
|
25
|
+
var packageJson = (0, import_chunk_S553BGWR.require_package)();
|
|
26
26
|
var version = packageJson.version;
|
|
@@ -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_ZLYKU4D6_exports = {};
|
|
30
|
+
__export(chunk_ZLYKU4D6_exports, {
|
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
|
32
32
|
getDMMF: () => getDMMF
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_ZLYKU4D6_exports);
|
|
35
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_DSOOZF5Q = require("./chunk-DSOOZF5Q.js");
|
|
38
|
+
var import_chunk_N657I3KT = require("./chunk-N657I3KT.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,7 +58,7 @@ ${detailsHeader} ${message}`;
|
|
|
58
58
|
}).exhaustive();
|
|
59
59
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
60
60
|
[Context: getDmmf]`;
|
|
61
|
-
super((0,
|
|
61
|
+
super((0, import_chunk_DSOOZF5Q.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
62
62
|
this.name = "GetDmmfError";
|
|
63
63
|
}
|
|
64
64
|
};
|
|
@@ -70,13 +70,13 @@ async function getDMMF(options) {
|
|
|
70
70
|
() => {
|
|
71
71
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
72
72
|
debug("Triggering a Rust panic...");
|
|
73
|
-
|
|
73
|
+
import_chunk_N657I3KT.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_N657I3KT.prismaSchemaWasm.get_dmmf(params);
|
|
80
80
|
return data;
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|