@prisma/internals 6.6.0-dev.3 → 6.6.0-dev.30
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/Generator.js +3 -3
- package/dist/WasmPanicRegistry.js +3 -3
- package/dist/{chunk-YXD4CJDK.js → chunk-23MPYLL6.js} +27 -27
- package/dist/{chunk-WWAWV7DQ.js → chunk-2ESYSVXG.js} +3 -27
- package/dist/{chunk-LKTTJWFT.js → chunk-2R6DII47.js} +5 -5
- package/dist/{chunk-AC6EAR56.js → chunk-2T4NJDHK.js} +40 -21
- package/dist/{chunk-7XNZDY2V.js → chunk-2WR3PY2L.js} +60 -60
- package/dist/{chunk-BGFWFIPR.js → chunk-2ZPYYZJB.js} +7 -7
- package/dist/{chunk-BEKX6YEU.js → chunk-4VX3SCSY.js} +17 -17
- package/dist/{chunk-IZKGRA7W.js → chunk-5ELQCMKU.js} +8 -8
- package/dist/{chunk-QJLOQH3Y.js → chunk-63UICP6I.js} +5 -5
- package/dist/{chunk-I7W4ZRX4.js → chunk-67ZYNR2V.js} +5 -5
- package/dist/{chunk-IO5N2P4Y.js → chunk-6K6EHLCH.js} +420 -376
- package/dist/{chunk-6KWNGQHF.js → chunk-6OPHYVCL.js} +9 -9
- package/dist/{chunk-TZCE3PWZ.js → chunk-6TVEFPKE.js} +7 -7
- package/dist/{chunk-MGZOEY6N.js → chunk-72UZXEBG.js} +6 -6
- package/dist/{chunk-UI6HIQ23.js → chunk-AMOV4PS4.js} +420 -376
- package/dist/{chunk-VRT7T6MF.js → chunk-BWGDP6B5.js} +94 -105
- package/dist/{chunk-ATFQZVBS.js → chunk-CCQRDM7X.js} +10 -11
- package/dist/{chunk-PIPE5DSU.js → chunk-DGZO4GAJ.js} +6 -6
- package/dist/chunk-DODIJPCS.js +34 -0
- package/dist/{chunk-ZYW3HGSH.js → chunk-DYVL6P7F.js} +7 -8
- package/dist/{chunk-PQPIPZMI.js → chunk-E7CSPTYY.js} +11 -11
- package/dist/{chunk-NJQWZ447.js → chunk-EIERU2IM.js} +6 -6
- package/dist/{chunk-FYOYC5PA.js → chunk-EL7UDAZP.js} +18 -18
- package/dist/{chunk-KTBNIQ7N.js → chunk-EORSBI5P.js} +8 -8
- package/dist/{chunk-77IC3DNO.js → chunk-ETNCBIDF.js} +8 -8
- package/dist/{chunk-CZL7DCL2.js → chunk-EWKNNPH2.js} +6 -6
- package/dist/{chunk-SHJNE6T7.js → chunk-F46BPOEO.js} +7 -7
- package/dist/{chunk-L6GBFCXG.js → chunk-FNA4EAZ6.js} +142 -155
- package/dist/{chunk-S57RMXZW.js → chunk-GHHABGYW.js} +5 -5
- package/dist/{chunk-CHMJ5V7I.js → chunk-H5XZKD22.js} +7 -7
- package/dist/{chunk-KKGIKPIK.js → chunk-HHG4DGHC.js} +5 -82
- package/dist/{chunk-TN26CEXA.js → chunk-HI3MXINR.js} +5 -5
- package/dist/{chunk-2MWIMEFK.js → chunk-HL5VFJX4.js} +10 -10
- package/dist/{chunk-ONHKZPSV.js → chunk-IKQFIRRX.js} +6 -6
- package/dist/{chunk-4E7A3GDU.js → chunk-KR25OQ6F.js} +5 -5
- package/dist/{chunk-XLGODPZH.js → chunk-KTB2HCCO.js} +10 -10
- package/dist/{chunk-C2WD2XUT.js → chunk-KYMYLH7F.js} +971 -988
- package/dist/{chunk-QWCOEHP3.js → chunk-LJAZFFBF.js} +10 -10
- package/dist/{chunk-GNN2TWXT.js → chunk-LMKDA2TU.js} +8 -8
- package/dist/{chunk-I7IEEULS.js → chunk-LSYWDURQ.js} +5 -5
- package/dist/{chunk-AZNLB67U.js → chunk-MBB2KJWX.js} +5 -5
- package/dist/{chunk-OG2B76U6.js → chunk-MHWH2PHS.js} +19 -19
- package/dist/{chunk-TATYN3T2.js → chunk-MM4PIVNT.js} +10 -10
- package/dist/{chunk-KUITHSVG.js → chunk-MRLXY5TT.js} +5 -5
- package/dist/{chunk-KQOJB3ZW.js → chunk-NLYH6XB4.js} +10 -10
- package/dist/{chunk-H3D6XCA2.js → chunk-NRKSZ6TI.js} +9 -9
- package/dist/{chunk-5RV3EMX6.js → chunk-ORR3O5RU.js} +57 -57
- package/dist/{chunk-MUPZUVSI.js → chunk-PORKIX5G.js} +14 -20
- package/dist/{chunk-6TXVGFQA.js → chunk-PSYMCJ4B.js} +6 -6
- package/dist/{chunk-XAU776BW.js → chunk-QP2MIEEK.js} +18 -18
- package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
- package/dist/{chunk-GXDYIY4M.js → chunk-RAYPCPVU.js} +56 -56
- package/dist/{chunk-UNUCCAXA.js → chunk-SYCT2PLK.js} +5 -5
- package/dist/{chunk-Y3OWT3K2.js → chunk-T7EWI7A3.js} +7 -7
- package/dist/{chunk-7WJ2IM2C.js → chunk-U76NRW2U.js} +18 -18
- package/dist/{chunk-ZKAW5JSN.js → chunk-UETN3RLH.js} +5 -5
- package/dist/{chunk-53LS3WUO.js → chunk-V37JTUKZ.js} +116 -116
- package/dist/{chunk-XLUWN3HM.js → chunk-VCLRUTLD.js} +18 -18
- package/dist/{chunk-V2ZF7ETH.js → chunk-VLGS4WJI.js} +66 -68
- package/dist/{chunk-TQCLUNM2.js → chunk-VNIE2AZB.js} +4 -4
- package/dist/{chunk-5MCWLJSR.js → chunk-WEATFJ6G.js} +10 -10
- package/dist/{chunk-BPZFDGKN.js → chunk-WXRVYSYN.js} +4 -7
- package/dist/{chunk-TXY5QNTI.js → chunk-X2YZOSPP.js} +17 -17
- package/dist/{chunk-3ERIN7PH.js → chunk-YBYBY7QI.js} +8 -8
- package/dist/{chunk-Y244AH7F.js → chunk-YU6PNVRN.js} +19 -19
- package/dist/{chunk-3BND5XB4.js → chunk-ZCVVZ6U6.js} +11 -11
- package/dist/{chunk-PFLLVWZX.js → chunk-ZGAIRZ32.js} +5 -5
- package/dist/cli/Help.js +1 -1
- package/dist/cli/checkUnsupportedDataProxy.js +66 -67
- package/dist/cli/getGeneratorSuccessMessage.js +1 -1
- package/dist/cli/getSchema.js +70 -71
- package/dist/cli/getTypescriptVersion.js +1 -1
- package/dist/cli/hashes.js +66 -67
- package/dist/cli/schemaContext.d.ts +43 -0
- package/dist/cli/schemaContext.js +135 -0
- package/dist/cli/utils.js +5 -5
- package/dist/client/getClientEngineType.js +1 -1
- package/dist/convertCredentials.js +1 -1
- package/dist/dotenvExpand.js +1 -1
- package/dist/engine-commands/errorHelpers.js +5 -5
- package/dist/engine-commands/formatSchema.js +65 -66
- package/dist/engine-commands/getConfig.js +15 -15
- package/dist/engine-commands/getDmmf.js +12 -12
- package/dist/engine-commands/getEngineVersion.js +10 -10
- package/dist/engine-commands/getEnginesMetaInfo.js +13 -13
- package/dist/engine-commands/index.js +76 -77
- package/dist/engine-commands/lintSchema.js +11 -11
- package/dist/engine-commands/mergeSchemas.js +12 -12
- package/dist/engine-commands/queryEngineCommons.js +7 -7
- package/dist/engine-commands/relativizePathInPSLError.js +1 -1
- package/dist/engine-commands/validate.js +12 -12
- package/dist/errorReporting.js +7 -7
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +65 -66
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +7 -7
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +65 -66
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.js +1 -1
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.js +1 -1
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +66 -67
- package/dist/get-generators/getGenerators.js +68 -69
- package/dist/get-generators/utils/binaryTypeToEngineType.js +1 -1
- package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.js +1 -1
- package/dist/get-generators/utils/engineTypeToBinaryType.js +1 -1
- package/dist/get-generators/utils/fixBinaryTargets.js +1 -1
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
- package/dist/get-generators/utils/getEngineVersionForGenerator.js +1 -1
- package/dist/get-generators/utils/printGeneratorConfig.js +7 -7
- package/dist/getPackedPackage.js +9 -9
- package/dist/highlight/highlight.js +6 -6
- package/dist/highlight/languages/dml.js +1 -1
- package/dist/highlight/languages/sql.js +1 -1
- package/dist/highlight/prism.js +1 -1
- package/dist/highlight/theme.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +131 -131
- package/dist/logger.js +9 -9
- package/dist/migrateTypes.d.ts +63 -0
- package/dist/{multipart-parser-32AROPTR.js → multipart-parser-3E7JBBYS.js} +7 -7
- package/dist/panic.js +7 -7
- package/dist/resolveBinary.js +9 -9
- package/dist/resolveOutput.js +1 -1
- package/dist/schemaEngineCommands.js +12 -12
- package/dist/sendPanic.js +65 -66
- package/dist/utils/__tests__/isCi.test.js +1 -1
- package/dist/utils/__tests__/isInteractive.test.js +1 -1
- package/dist/utils/__tests__/maskSchema.test.js +1 -1
- package/dist/utils/assertAlways.js +1 -1
- package/dist/utils/assertNever.js +1 -1
- package/dist/utils/binaryTargetRegex.js +3 -3
- package/dist/utils/byline.js +1 -1
- package/dist/utils/callOnce.js +1 -1
- package/dist/utils/callOnce.test.js +1 -1
- package/dist/utils/canPrompt.js +4 -4
- package/dist/utils/chmodPlusX.js +1 -1
- package/dist/utils/cloudflareD1.js +4 -4
- package/dist/utils/drawBox.js +3 -4
- package/dist/utils/extractPreviewFeatures.js +1 -1
- package/dist/utils/formatTable.js +1 -1
- package/dist/utils/formatms.js +1 -1
- package/dist/utils/fs-functional.js +12 -12
- package/dist/utils/fs-utils.js +9 -9
- package/dist/utils/getCommandWithExecutor.js +4 -4
- package/dist/utils/getEnvPaths.js +65 -66
- package/dist/utils/getGitHubIssueUrl.js +4 -5
- package/dist/utils/getMigrateConfigDir.js +1 -1
- package/dist/utils/getVersionFromPackageJson.js +4 -4
- package/dist/utils/handleEngineLoadingErrors.js +1 -1
- package/dist/utils/handlePanic.js +65 -66
- package/dist/utils/hasOwnProperty.js +1 -1
- package/dist/utils/isCi.js +1 -1
- package/dist/utils/isCurrentBinInstalledGlobally.js +3 -3
- package/dist/utils/isInContainer.js +1 -1
- package/dist/utils/isInNpmLifecycleHook.js +1 -1
- package/dist/utils/isInteractive.js +1 -1
- package/dist/utils/isPromiseLike.js +1 -1
- package/dist/utils/isValidJsIdentifier.js +4 -4
- package/dist/utils/keyBy.js +1 -1
- package/dist/utils/link.js +3 -3
- package/dist/utils/load.js +3 -3
- package/dist/utils/loadEnvFile.js +65 -66
- package/dist/utils/mapKeys.js +1 -1
- package/dist/utils/mapObjectValues.js +1 -1
- package/dist/utils/maskSchema.js +1 -1
- package/dist/utils/max.js +1 -1
- package/dist/utils/max.test.js +1 -1
- package/dist/utils/maybeInGitHook.js +1 -1
- package/dist/utils/missingDatasource.js +6 -6
- package/dist/utils/missingGeneratorMessage.js +8 -8
- package/dist/utils/now.js +1 -1
- package/dist/utils/omit.js +1 -1
- package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.js +1 -1
- package/dist/utils/parseEnvValue.js +1 -1
- package/dist/utils/path.js +1 -1
- package/dist/utils/path.test.js +1 -1
- package/dist/utils/pick.js +1 -1
- package/dist/utils/printConfigWarnings.js +1 -1
- package/dist/utils/prismaPostgres.js +1 -1
- package/dist/utils/prismaPostgres.test.js +1 -1
- package/dist/utils/schemaFileInput.js +1 -1
- package/dist/utils/serializeQueryEngineName.js +1 -1
- package/dist/utils/setClassName.js +1 -1
- package/dist/utils/toSchemasContainer.js +1 -1
- package/dist/utils/tryLoadEnvs.js +6 -6
- package/dist/utils/unique.js +1 -1
- package/dist/utils/vercelPkgPathRegex.js +1 -1
- package/dist/warnOnce.js +4 -4
- package/dist/wasm.js +6 -6
- package/package.json +13 -13
- package/dist/chunk-AOQIUJT4.js +0 -41
- package/dist/chunk-ODI3VNBD.js +0 -43
@@ -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_LJAZFFBF_exports = {};
|
20
|
+
__export(chunk_LJAZFFBF_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var require_package = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_LJAZFFBF_exports);
|
24
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
25
|
+
var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
|
26
26
|
"package.json"(exports, module2) {
|
27
27
|
module2.exports = {
|
28
28
|
name: "@prisma/internals",
|
@@ -67,7 +67,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
67
67
|
"cli-truncate": "4.0.0",
|
68
68
|
dotenv: "16.4.7",
|
69
69
|
esbuild: "0.24.2",
|
70
|
-
"escape-string-regexp": "
|
70
|
+
"escape-string-regexp": "5.0.0",
|
71
71
|
execa: "5.1.1",
|
72
72
|
"fast-glob": "3.3.3",
|
73
73
|
"find-up": "7.0.0",
|
@@ -91,12 +91,12 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
91
91
|
"p-map": "4.0.0",
|
92
92
|
"read-package-up": "11.0.0",
|
93
93
|
resolve: "1.22.10",
|
94
|
-
"string-width": "
|
94
|
+
"string-width": "7.2.0",
|
95
95
|
"strip-ansi": "6.0.1",
|
96
|
-
"strip-indent": "
|
96
|
+
"strip-indent": "4.0.0",
|
97
97
|
"temp-dir": "2.0.0",
|
98
98
|
tempy: "1.0.1",
|
99
|
-
"terminal-link": "
|
99
|
+
"terminal-link": "3.0.0",
|
100
100
|
tmp: "0.2.3",
|
101
101
|
"ts-node": "10.9.2",
|
102
102
|
"ts-pattern": "5.6.2",
|
@@ -111,7 +111,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
111
111
|
"@prisma/fetch-engine": "workspace:*",
|
112
112
|
"@prisma/generator-helper": "workspace:*",
|
113
113
|
"@prisma/get-platform": "workspace:*",
|
114
|
-
"@prisma/prisma-schema-wasm": "6.
|
114
|
+
"@prisma/prisma-schema-wasm": "6.6.0-21.d1dbe8880430b6f753dffc4264de1a7f39e4a15a",
|
115
115
|
"@prisma/schema-files-loader": "workspace:*",
|
116
116
|
arg: "5.0.2",
|
117
117
|
prompts: "2.4.2"
|
@@ -16,21 +16,21 @@ 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_LMKDA2TU_exports = {};
|
20
|
+
__export(chunk_LMKDA2TU_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(
|
27
|
+
module.exports = __toCommonJS(chunk_LMKDA2TU_exports);
|
28
28
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
29
|
-
var
|
30
|
-
var
|
29
|
+
var import_chunk_6OPHYVCL = require("./chunk-6OPHYVCL.js");
|
30
|
+
var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
|
31
31
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
32
32
|
function lintSchema({ schemas }) {
|
33
|
-
const lintResult =
|
33
|
+
const lintResult = import_chunk_6OPHYVCL.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
34
34
|
const lintDiagnostics = JSON.parse(lintResult);
|
35
35
|
return lintDiagnostics;
|
36
36
|
}
|
@@ -38,8 +38,8 @@ function handleLintPanic(tryCb, { schemas }) {
|
|
38
38
|
try {
|
39
39
|
return tryCb();
|
40
40
|
} catch (e) {
|
41
|
-
const { message, stack } = (0,
|
42
|
-
const panic = new
|
41
|
+
const { message, stack } = (0, import_chunk_CCQRDM7X.getWasmError)(e);
|
42
|
+
const panic = new import_chunk_CCQRDM7X.RustPanic(
|
43
43
|
/* message */
|
44
44
|
message,
|
45
45
|
/* rustStack */
|
@@ -16,16 +16,16 @@ 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_LSYWDURQ_exports = {};
|
20
|
+
__export(chunk_LSYWDURQ_exports, {
|
21
21
|
loadLibrary: () => loadLibrary
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_LSYWDURQ_exports);
|
24
24
|
var import_chunk_DZYINYAA = require("./chunk-DZYINYAA.js");
|
25
|
-
var
|
25
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
26
26
|
function loadLibrary(id, platformInfo) {
|
27
27
|
try {
|
28
|
-
return (0,
|
28
|
+
return (0, import_chunk_2ESYSVXG.__require)(id);
|
29
29
|
} catch (e) {
|
30
30
|
const errorMessage = (0, import_chunk_DZYINYAA.handleLibraryLoadingErrors)({
|
31
31
|
e,
|
@@ -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_MBB2KJWX_exports = {};
|
20
|
+
__export(chunk_MBB2KJWX_exports, {
|
21
21
|
error: () => error,
|
22
22
|
info: () => info,
|
23
23
|
log: () => log,
|
@@ -27,11 +27,11 @@ __export(chunk_AZNLB67U_exports, {
|
|
27
27
|
tags: () => tags,
|
28
28
|
warn: () => warn
|
29
29
|
});
|
30
|
-
module.exports = __toCommonJS(
|
30
|
+
module.exports = __toCommonJS(chunk_MBB2KJWX_exports);
|
31
31
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
32
|
-
var
|
32
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
33
33
|
var logger_exports = {};
|
34
|
-
(0,
|
34
|
+
(0, import_chunk_2ESYSVXG.__export)(logger_exports, {
|
35
35
|
error: () => error,
|
36
36
|
info: () => info,
|
37
37
|
log: () => log,
|
@@ -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_MHWH2PHS_exports = {};
|
30
|
+
__export(chunk_MHWH2PHS_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_MHWH2PHS_exports);
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
39
|
-
var
|
39
|
+
var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
|
40
|
+
var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
|
40
41
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
41
|
-
var
|
42
|
-
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
42
|
+
var import_chunk_67ZYNR2V = require("./chunk-67ZYNR2V.js");
|
43
43
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
44
|
-
var
|
45
|
-
var
|
44
|
+
var import_chunk_6OPHYVCL = require("./chunk-6OPHYVCL.js");
|
45
|
+
var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
|
46
46
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
47
47
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
48
|
-
var
|
48
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.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,
|
51
|
+
var import_function = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_ZGAIRZ32.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_67ZYNR2V.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_PSYMCJ4B.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_6OPHYVCL.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_6OPHYVCL.prismaSchemaWasm.get_config(params);
|
102
102
|
return data;
|
103
103
|
},
|
104
104
|
(e) => ({
|
@@ -142,9 +142,9 @@ async function getConfig(options) {
|
|
142
142
|
}
|
143
143
|
const error = (0, import_chunk_XKZ6CBLA.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
|
144
144
|
debugErrorType(e);
|
145
|
-
if ((0,
|
146
|
-
const { message, stack } = (0,
|
147
|
-
const panic = new
|
145
|
+
if ((0, import_chunk_CCQRDM7X.isWasmPanic)(e.error)) {
|
146
|
+
const { message, stack } = (0, import_chunk_CCQRDM7X.getWasmError)(e.error);
|
147
|
+
const panic = new import_chunk_CCQRDM7X.RustPanic(
|
148
148
|
/* message */
|
149
149
|
message,
|
150
150
|
/* rustStack */
|
@@ -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_PSYMCJ4B.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_PSYMCJ4B.createSchemaValidationError)(e.reason),
|
169
169
|
message: formatErrors(e.error)
|
170
170
|
});
|
171
171
|
}).otherwise((e) => {
|
@@ -26,23 +26,23 @@ 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_MM4PIVNT_exports = {};
|
30
|
+
__export(chunk_MM4PIVNT_exports, {
|
31
31
|
getEnginesInfo: () => getEnginesInfo,
|
32
32
|
getEnginesMetaInfo: () => getEnginesMetaInfo,
|
33
33
|
resolveEngine: () => resolveEngine
|
34
34
|
});
|
35
|
-
module.exports = __toCommonJS(
|
36
|
-
var
|
37
|
-
var
|
35
|
+
module.exports = __toCommonJS(chunk_MM4PIVNT_exports);
|
36
|
+
var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
|
37
|
+
var import_chunk_KTB2HCCO = require("./chunk-KTB2HCCO.js");
|
38
38
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
39
|
-
var
|
39
|
+
var import_chunk_YBYBY7QI = require("./chunk-YBYBY7QI.js");
|
40
40
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
41
|
-
var
|
41
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
42
42
|
var import_engines = require("@prisma/engines");
|
43
43
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
44
44
|
var import_path = __toESM(require("path"));
|
45
|
-
var import_function2 = (0,
|
45
|
+
var import_function2 = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_ZGAIRZ32.require_function)());
|
46
46
|
var none2 = import_chunk_7MD6344A.none;
|
47
47
|
var some2 = import_chunk_7MD6344A.some;
|
48
48
|
var getRight = function(ma) {
|
@@ -157,7 +157,7 @@ async function resolveEngine(binaryName) {
|
|
157
157
|
const enginePathEither = await (0, import_function2.pipe)(
|
158
158
|
pathFromEnvOption,
|
159
159
|
fold(
|
160
|
-
() => (0,
|
160
|
+
() => (0, import_chunk_YBYBY7QI.safeResolveBinary)(binaryName),
|
161
161
|
(pathFromEnv) => (0, import_chunk_7MD6344A.right2)(pathFromEnv.path)
|
162
162
|
)
|
163
163
|
)();
|
@@ -165,7 +165,7 @@ async function resolveEngine(binaryName) {
|
|
165
165
|
enginePathEither,
|
166
166
|
import_chunk_7MD6344A.fromEither,
|
167
167
|
(0, import_chunk_7MD6344A.chain)((enginePath) => {
|
168
|
-
return (0,
|
168
|
+
return (0, import_chunk_KTB2HCCO.safeGetEngineVersion)(enginePath, binaryName);
|
169
169
|
})
|
170
170
|
)();
|
171
171
|
const engineInfo = {
|
@@ -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_MRLXY5TT_exports = {};
|
20
|
+
__export(chunk_MRLXY5TT_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_MRLXY5TT_exports);
|
24
|
+
var import_chunk_LJAZFFBF = require("./chunk-LJAZFFBF.js");
|
25
|
+
var packageJson = (0, import_chunk_LJAZFFBF.require_package)();
|
26
26
|
var version = packageJson.version;
|
@@ -26,15 +26,15 @@ 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_NLYH6XB4_exports = {};
|
30
|
+
__export(chunk_NLYH6XB4_exports, {
|
31
31
|
ErrorKind: () => ErrorKind,
|
32
32
|
createErrorReport: () => createErrorReport,
|
33
33
|
makeErrorReportCompleted: () => makeErrorReportCompleted,
|
34
34
|
uploadZip: () => uploadZip
|
35
35
|
});
|
36
|
-
module.exports = __toCommonJS(
|
37
|
-
var
|
36
|
+
module.exports = __toCommonJS(chunk_NLYH6XB4_exports);
|
37
|
+
var import_chunk_VLGS4WJI = require("./chunk-VLGS4WJI.js");
|
38
38
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
39
39
|
var import_node_http = __toESM(require("node:http"));
|
40
40
|
var import_node_https = __toESM(require("node:https"));
|
@@ -151,8 +151,8 @@ var Body = class {
|
|
151
151
|
} else if (ArrayBuffer.isView(body)) {
|
152
152
|
body = import_node_buffer2.Buffer.from(body.buffer, body.byteOffset, body.byteLength);
|
153
153
|
} else if (body instanceof import_node_stream2.default) {
|
154
|
-
} else if (body instanceof
|
155
|
-
body = (0,
|
154
|
+
} else if (body instanceof import_chunk_VLGS4WJI.FormData) {
|
155
|
+
body = (0, import_chunk_VLGS4WJI.formDataToBlob)(body);
|
156
156
|
boundary = body.type.split("=")[1];
|
157
157
|
} else {
|
158
158
|
body = import_node_buffer2.Buffer.from(String(body));
|
@@ -196,14 +196,14 @@ var Body = class {
|
|
196
196
|
async formData() {
|
197
197
|
const ct = this.headers.get("content-type");
|
198
198
|
if (ct.startsWith("application/x-www-form-urlencoded")) {
|
199
|
-
const formData = new
|
199
|
+
const formData = new import_chunk_VLGS4WJI.FormData();
|
200
200
|
const parameters = new URLSearchParams(await this.text());
|
201
201
|
for (const [name, value] of parameters) {
|
202
202
|
formData.append(name, value);
|
203
203
|
}
|
204
204
|
return formData;
|
205
205
|
}
|
206
|
-
const { toFormData } = await import("./multipart-parser-
|
206
|
+
const { toFormData } = await import("./multipart-parser-3E7JBBYS.js");
|
207
207
|
return toFormData(this.body, ct);
|
208
208
|
}
|
209
209
|
/**
|
@@ -214,7 +214,7 @@ var Body = class {
|
|
214
214
|
async blob() {
|
215
215
|
const ct = this.headers && this.headers.get("content-type") || this[INTERNALS].body && this[INTERNALS].body.type || "";
|
216
216
|
const buf = await this.arrayBuffer();
|
217
|
-
return new
|
217
|
+
return new import_chunk_VLGS4WJI.fetch_blob_default([buf], {
|
218
218
|
type: ct
|
219
219
|
});
|
220
220
|
}
|
@@ -342,7 +342,7 @@ var extractContentType = (body, request2) => {
|
|
342
342
|
if (import_node_buffer2.Buffer.isBuffer(body) || import_node_util.types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
|
343
343
|
return null;
|
344
344
|
}
|
345
|
-
if (body instanceof
|
345
|
+
if (body instanceof import_chunk_VLGS4WJI.FormData) {
|
346
346
|
return `multipart/form-data; boundary=${request2[INTERNALS].boundary}`;
|
347
347
|
}
|
348
348
|
if (body && typeof body.getBoundary === "function") {
|
@@ -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_NRKSZ6TI_exports = {};
|
30
|
+
__export(chunk_NRKSZ6TI_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
|
37
|
-
var
|
38
|
-
var
|
35
|
+
module.exports = __toCommonJS(chunk_NRKSZ6TI_exports);
|
36
|
+
var import_chunk_LJAZFFBF = require("./chunk-LJAZFFBF.js");
|
37
|
+
var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
|
38
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
39
39
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
40
40
|
var wasm_exports = {};
|
41
|
-
(0,
|
41
|
+
(0, import_chunk_2ESYSVXG.__export)(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_LJAZFFBF.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
|
-
globalThis.PRISMA_WASM_PANIC_REGISTRY = new
|
47
|
+
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
|