@prisma/internals 6.6.0-dev.6 → 6.6.0-dev.61
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.d.ts +23 -5
- package/dist/Generator.js +5 -3
- package/dist/WasmPanicRegistry.js +3 -3
- package/dist/{chunk-PIPE5DSU.js → chunk-2H6XXXKO.js} +18 -21
- package/dist/chunk-2IMW37JH.js +900 -0
- package/dist/chunk-2QTAK7KO.js +101 -0
- package/dist/{chunk-XLGODPZH.js → chunk-3DQANJMY.js} +12 -12
- package/dist/{chunk-O342S7ZQ.js → chunk-4BUV4ESE.js} +22 -26
- package/dist/{chunk-WWAWV7DQ.js → chunk-4VNS5WPM.js} +3 -33
- package/dist/{chunk-KQOJB3ZW.js → chunk-5AI4FIZ3.js} +10 -10
- package/dist/{chunk-7MD6344A.js → chunk-5DBOS77Y.js} +3 -5
- package/dist/{chunk-TZCE3PWZ.js → chunk-5VQNKCKW.js} +7 -7
- package/dist/{chunk-YXD4CJDK.js → chunk-67I7CEQJ.js} +30 -31
- package/dist/{chunk-I7IEEULS.js → chunk-6TTRTZXU.js} +5 -5
- package/dist/{chunk-ESBSOM7H.js → chunk-6WQVUWQM.js} +5 -5
- package/dist/{chunk-5RV3EMX6.js → chunk-75BIJ5PX.js} +57 -57
- package/dist/{chunk-C4KFH4DG.js → chunk-A6IRWWSZ.js} +10 -9
- package/dist/{chunk-BGFWFIPR.js → chunk-AZV6HVKA.js} +5 -5
- package/dist/{chunk-ZYW3HGSH.js → chunk-BPDMLM32.js} +49 -17
- package/dist/{chunk-5MCWLJSR.js → chunk-CR3XKUEA.js} +10 -10
- package/dist/{chunk-TSJICM5S.js → chunk-CRVLHWC5.js} +5 -5
- package/dist/{chunk-NON34H7K.js → chunk-CW6KQ3VH.js} +30 -34
- package/dist/{chunk-SHJNE6T7.js → chunk-D4VDA2TZ.js} +7 -7
- package/dist/{chunk-Q22BLLK3.js → chunk-D4VZUY3O.js} +6 -6
- package/dist/{chunk-KTBNIQ7N.js → chunk-DKSUHQGA.js} +8 -8
- package/dist/{chunk-EUTJYQDW.js → chunk-DODIJPCS.js} +13 -25
- package/dist/{chunk-UNUCCAXA.js → chunk-DTPFRZWV.js} +5 -5
- package/dist/{chunk-NJQWZ447.js → chunk-EPXBOIA5.js} +6 -6
- package/dist/{chunk-7XNZDY2V.js → chunk-ETYWYJBX.js} +60 -60
- package/dist/{chunk-5SN5JBT2.js → chunk-FXMGS3L5.js} +21 -40
- package/dist/{chunk-I7L2MZHS.js → chunk-GNKWZC7O.js} +11 -15
- package/dist/{chunk-OE6YQBXZ.js → chunk-GOOL567Z.js} +11 -10
- package/dist/{chunk-L6GBFCXG.js → chunk-HAGJ64PM.js} +142 -155
- package/dist/{chunk-3ERIN7PH.js → chunk-HG3YOAAE.js} +10 -10
- package/dist/{chunk-GXDYIY4M.js → chunk-IDINCQMN.js} +56 -57
- package/dist/{chunk-B3FIG77N.js → chunk-IJP44JMI.js} +23 -27
- package/dist/{chunk-ZRU4X7P5.js → chunk-IYVKGIB2.js} +11 -15
- package/dist/{chunk-EXVN2NDU.js → chunk-JETLVL4E.js} +5 -5
- package/dist/{chunk-VNUGIB23.js → chunk-JHF7CF7M.js} +5 -5
- package/dist/{chunk-53LS3WUO.js → chunk-JOIIWB3U.js} +116 -116
- package/dist/{chunk-CZL7DCL2.js → chunk-JYMY3OAI.js} +6 -6
- package/dist/{chunk-TATYN3T2.js → chunk-KB5DKCI4.js} +29 -29
- package/dist/{chunk-LKTTJWFT.js → chunk-KDP6C3CB.js} +5 -5
- package/dist/{chunk-ATFQZVBS.js → chunk-LMVSIVKQ.js} +9 -14
- package/dist/{chunk-HNUYQRMW.js → chunk-LOQLID3N.js} +23 -27
- package/dist/{chunk-ZKAW5JSN.js → chunk-LRJ4X43J.js} +5 -5
- package/dist/{chunk-ONHKZPSV.js → chunk-LRU47BGE.js} +6 -6
- package/dist/{chunk-C2WD2XUT.js → chunk-MJIP3FY5.js} +968 -1220
- package/dist/{chunk-4E7A3GDU.js → chunk-MM4ARWWY.js} +5 -5
- package/dist/{chunk-V2ZF7ETH.js → chunk-NVNI2SRU.js} +66 -68
- package/dist/{chunk-O3UVWF5W.js → chunk-OE4XGY7B.js} +30 -34
- package/dist/{chunk-JHQHVXIR.js → chunk-OSHZ4P3G.js} +6 -7
- package/dist/{chunk-IPKE37QC.js → chunk-PFYALFCY.js} +6 -5
- package/dist/{chunk-DQS4NTNF.js → chunk-QJ72IP2K.js} +46 -79
- package/dist/chunk-QXNNDOVP.js +900 -0
- package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
- package/dist/{chunk-PFLLVWZX.js → chunk-R6QH57HZ.js} +5 -5
- package/dist/{chunk-GRHK5FCK.js → chunk-SKDR2FJB.js} +5 -5
- package/dist/{chunk-VXJLHQT3.js → chunk-T5MMBF2S.js} +9 -9
- package/dist/{chunk-YHZJOEOE.js → chunk-TN4KCTWC.js} +22 -26
- package/dist/{chunk-Y3OWT3K2.js → chunk-TQFONRJP.js} +7 -7
- package/dist/{chunk-3BND5XB4.js → chunk-UTJGRVMG.js} +11 -11
- package/dist/{chunk-7RSJWEVV.js → chunk-UUO3P3VK.js} +46 -79
- package/dist/{chunk-CHMJ5V7I.js → chunk-UZTXEBTM.js} +7 -7
- package/dist/{chunk-6TXVGFQA.js → chunk-WSZXPLJQ.js} +11 -11
- package/dist/{chunk-BPZFDGKN.js → chunk-WXRVYSYN.js} +4 -7
- package/dist/{chunk-PB6AJZNB.js → chunk-XHEEFWQQ.js} +9 -9
- package/dist/{chunk-2MWIMEFK.js → chunk-XLTQGAI2.js} +6 -6
- package/dist/chunk-YR5KNFKN.js +1834 -0
- package/dist/{chunk-AZNLB67U.js → chunk-ZJWZK45Z.js} +5 -5
- package/dist/chunk-ZSINRHD4.js +43 -0
- package/dist/cli/Help.js +1 -1
- package/dist/cli/checkUnsupportedDataProxy.d.ts +12 -17
- package/dist/cli/checkUnsupportedDataProxy.js +75 -78
- package/dist/cli/directoryConfig.d.ts +7 -0
- package/dist/cli/directoryConfig.js +25 -0
- package/dist/cli/getGeneratorSuccessMessage.js +1 -1
- package/dist/cli/getSchema.d.ts +3 -28
- package/dist/cli/getSchema.js +78 -82
- package/dist/cli/getTypescriptVersion.js +1 -1
- package/dist/cli/hashes.d.ts +1 -2
- package/dist/cli/hashes.js +75 -78
- package/dist/cli/schemaContext.d.ts +59 -0
- package/dist/cli/schemaContext.js +133 -0
- package/dist/cli/utils.js +5 -5
- package/dist/client/getClientEngineType.d.ts +1 -1
- package/dist/client/getClientEngineType.js +1 -1
- package/dist/convertCredentials.d.ts +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 +74 -77
- package/dist/engine-commands/getConfig.d.ts +1 -5
- package/dist/engine-commands/getConfig.js +16 -17
- package/dist/engine-commands/getDmmf.d.ts +3 -6
- package/dist/engine-commands/getDmmf.js +13 -14
- package/dist/engine-commands/getEngineVersion.js +12 -12
- package/dist/engine-commands/getEnginesMetaInfo.js +15 -15
- package/dist/engine-commands/index.js +85 -88
- package/dist/engine-commands/lintSchema.d.ts +1 -1
- package/dist/engine-commands/lintSchema.js +11 -12
- package/dist/engine-commands/mergeSchemas.js +13 -14
- package/dist/engine-commands/queryEngineCommons.js +8 -8
- package/dist/engine-commands/relativizePathInPSLError.js +1 -1
- package/dist/engine-commands/validate.js +13 -14
- package/dist/errorReporting.d.ts +0 -1
- package/dist/errorReporting.js +7 -7
- package/dist/get-generators/getGenerators.d.ts +22 -9
- package/dist/get-generators/getGenerators.js +77 -80
- package/dist/get-generators/utils/binaryTypeToEngineType.d.ts +1 -1
- package/dist/get-generators/utils/binaryTypeToEngineType.js +1 -1
- package/dist/get-generators/utils/engineTypeToBinaryType.d.ts +1 -1
- package/dist/get-generators/utils/engineTypeToBinaryType.js +1 -1
- package/dist/get-generators/utils/fixBinaryTargets.d.ts +1 -1
- package/dist/get-generators/utils/fixBinaryTargets.js +1 -1
- package/dist/get-generators/utils/getBinaryPathsByVersion.d.ts +1 -1
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
- package/dist/get-generators/utils/getEngineVersionForGenerator.d.ts +1 -1
- package/dist/get-generators/utils/getEngineVersionForGenerator.js +1 -1
- package/dist/get-generators/utils/printGeneratorConfig.d.ts +1 -1
- package/dist/get-generators/utils/printGeneratorConfig.js +7 -7
- package/dist/getPackedPackage.js +9 -9
- package/dist/highlight/highlight.js +1 -1
- 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 +7 -7
- package/dist/index.js +141 -145
- package/dist/logger.js +9 -9
- package/dist/migrateTypes.d.ts +63 -0
- package/dist/{multipart-parser-32AROPTR.js → multipart-parser-3AFJFP6K.js} +7 -7
- package/dist/panic.d.ts +1 -4
- package/dist/panic.js +7 -7
- package/dist/resolveBinary.js +10 -10
- package/dist/resolveOutput.js +1 -1
- package/dist/resolvePkg.d.ts +7 -0
- package/dist/{get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.js → resolvePkg.js} +6 -6
- package/dist/schemaEngineCommands.js +13 -13
- package/dist/sendPanic.js +7 -111
- package/dist/types.d.ts +1 -1
- 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 +1 -1
- package/dist/utils/extractPreviewFeatures.d.ts +2 -2
- package/dist/utils/extractPreviewFeatures.js +3 -3
- 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.d.ts +1 -1
- package/dist/utils/getEnvPaths.js +74 -77
- package/dist/utils/getGitHubIssueUrl.js +5 -4
- 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 +13 -110
- 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 +74 -77
- 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 +4 -4
- package/dist/utils/missingGeneratorMessage.js +6 -6
- 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.d.ts +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.d.ts +0 -4
- package/dist/utils/schemaFileInput.js +3 -7
- package/dist/utils/serializeQueryEngineName.js +1 -1
- package/dist/utils/setClassName.js +1 -1
- package/dist/utils/toSchemasContainer.d.ts +2 -3
- package/dist/utils/toSchemasContainer.js +4 -5
- 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 -12
- package/dist/chunk-77IC3DNO.js +0 -35
- package/dist/chunk-AOQIUJT4.js +0 -41
- package/dist/chunk-KQKHO2IC.js +0 -15631
- package/dist/chunk-MGZOEY6N.js +0 -28
- package/dist/chunk-O2CGGO6D.js +0 -15631
- package/dist/chunk-S57RMXZW.js +0 -28
- package/dist/chunk-VRT7T6MF.js +0 -4959
- package/dist/chunk-YRBRUREX.js +0 -57
- package/dist/get-generators/generatorResolvers/generatorResolvers.d.ts +0 -15
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +0 -135
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.d.ts +0 -6
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.d.ts +0 -9
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.d.ts +0 -8
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +0 -29
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.d.ts +0 -6
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +0 -135
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.d.ts +0 -1
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.d.ts +0 -20
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.d.ts +0 -7
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.d.ts +0 -1
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.js +0 -17
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.d.ts +0 -20
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +0 -136
- package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.d.ts +0 -8
- package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.js +0 -25
@@ -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_MM4ARWWY_exports = {};
|
20
|
+
__export(chunk_MM4ARWWY_exports, {
|
21
21
|
require_is_stream: () => require_is_stream
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var require_is_stream = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_MM4ARWWY_exports);
|
24
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
25
|
+
var require_is_stream = (0, import_chunk_4VNS5WPM.__commonJS)({
|
26
26
|
"../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js"(exports, module2) {
|
27
27
|
"use strict";
|
28
28
|
var isStream = (stream) => stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
|
@@ -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_NVNI2SRU_exports = {};
|
20
|
+
__export(chunk_NVNI2SRU_exports, {
|
21
21
|
FormData: () => FormData,
|
22
22
|
fetch_blob_default: () => fetch_blob_default,
|
23
23
|
file_default: () => file_default,
|
24
24
|
formDataToBlob: () => formDataToBlob
|
25
25
|
});
|
26
|
-
module.exports = __toCommonJS(
|
27
|
-
var
|
26
|
+
module.exports = __toCommonJS(chunk_NVNI2SRU_exports);
|
27
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
28
28
|
var import_node_fs = require("node:fs");
|
29
|
-
var require_ponyfill_es2018 = (0,
|
29
|
+
var require_ponyfill_es2018 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
30
30
|
"../../node_modules/.pnpm/web-streams-polyfill@3.2.1/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js"(exports, module2) {
|
31
31
|
"use strict";
|
32
32
|
(function(global2, factory) {
|
@@ -574,7 +574,7 @@ var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
574
574
|
}
|
575
575
|
try {
|
576
576
|
return x2._asyncIteratorImpl instanceof ReadableStreamAsyncIteratorImpl;
|
577
|
-
} catch (
|
577
|
+
} catch (_a) {
|
578
578
|
return false;
|
579
579
|
}
|
580
580
|
}
|
@@ -1467,7 +1467,7 @@ var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1467
1467
|
}
|
1468
1468
|
try {
|
1469
1469
|
return typeof value.aborted === "boolean";
|
1470
|
-
} catch (
|
1470
|
+
} catch (_a) {
|
1471
1471
|
return false;
|
1472
1472
|
}
|
1473
1473
|
}
|
@@ -1608,12 +1608,12 @@ var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1608
1608
|
return true;
|
1609
1609
|
}
|
1610
1610
|
function WritableStreamAbort(stream, reason) {
|
1611
|
-
var
|
1611
|
+
var _a;
|
1612
1612
|
if (stream._state === "closed" || stream._state === "errored") {
|
1613
1613
|
return promiseResolvedWith(void 0);
|
1614
1614
|
}
|
1615
1615
|
stream._writableStreamController._abortReason = reason;
|
1616
|
-
(
|
1616
|
+
(_a = stream._writableStreamController._abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
1617
1617
|
const state = stream._state;
|
1618
1618
|
if (state === "closed" || state === "errored") {
|
1619
1619
|
return promiseResolvedWith(void 0);
|
@@ -2343,7 +2343,7 @@ var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
2343
2343
|
try {
|
2344
2344
|
new ctor();
|
2345
2345
|
return true;
|
2346
|
-
} catch (
|
2346
|
+
} catch (_a) {
|
2347
2347
|
return false;
|
2348
2348
|
}
|
2349
2349
|
}
|
@@ -3399,7 +3399,7 @@ var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3399
3399
|
value: "size",
|
3400
3400
|
configurable: true
|
3401
3401
|
});
|
3402
|
-
} catch (
|
3402
|
+
} catch (_a) {
|
3403
3403
|
}
|
3404
3404
|
class ByteLengthQueuingStrategy {
|
3405
3405
|
constructor(options) {
|
@@ -3456,7 +3456,7 @@ var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3456
3456
|
value: "size",
|
3457
3457
|
configurable: true
|
3458
3458
|
});
|
3459
|
-
} catch (
|
3459
|
+
} catch (_a) {
|
3460
3460
|
}
|
3461
3461
|
class CountQueuingStrategy {
|
3462
3462
|
constructor(options) {
|
@@ -3835,18 +3835,18 @@ var require_ponyfill_es2018 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3835
3835
|
});
|
3836
3836
|
}
|
3837
3837
|
});
|
3838
|
-
var require_streams = (0,
|
3838
|
+
var require_streams = (0, import_chunk_4VNS5WPM.__commonJS)({
|
3839
3839
|
"../../node_modules/.pnpm/fetch-blob@3.2.0/node_modules/fetch-blob/streams.cjs"() {
|
3840
3840
|
"use strict";
|
3841
3841
|
var POOL_SIZE2 = 65536;
|
3842
3842
|
if (!globalThis.ReadableStream) {
|
3843
3843
|
try {
|
3844
|
-
const process = (0,
|
3844
|
+
const process = (0, import_chunk_4VNS5WPM.__require)("node:process");
|
3845
3845
|
const { emitWarning } = process;
|
3846
3846
|
try {
|
3847
3847
|
process.emitWarning = () => {
|
3848
3848
|
};
|
3849
|
-
Object.assign(globalThis, (0,
|
3849
|
+
Object.assign(globalThis, (0, import_chunk_4VNS5WPM.__require)("node:stream/web"));
|
3850
3850
|
process.emitWarning = emitWarning;
|
3851
3851
|
} catch (error) {
|
3852
3852
|
process.emitWarning = emitWarning;
|
@@ -3857,9 +3857,9 @@ var require_streams = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3857
3857
|
}
|
3858
3858
|
}
|
3859
3859
|
try {
|
3860
|
-
const { Blob:
|
3861
|
-
if (
|
3862
|
-
|
3860
|
+
const { Blob: Blob3 } = (0, import_chunk_4VNS5WPM.__require)("buffer");
|
3861
|
+
if (Blob3 && !Blob3.prototype.stream) {
|
3862
|
+
Blob3.prototype.stream = function name(params) {
|
3863
3863
|
let position = 0;
|
3864
3864
|
const blob = this;
|
3865
3865
|
return new ReadableStream({
|
@@ -3880,12 +3880,12 @@ var require_streams = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3880
3880
|
}
|
3881
3881
|
}
|
3882
3882
|
});
|
3883
|
-
var require_node_domexception = (0,
|
3883
|
+
var require_node_domexception = (0, import_chunk_4VNS5WPM.__commonJS)({
|
3884
3884
|
"../../node_modules/.pnpm/node-domexception@1.0.0/node_modules/node-domexception/index.js"(exports, module2) {
|
3885
3885
|
"use strict";
|
3886
3886
|
if (!globalThis.DOMException) {
|
3887
3887
|
try {
|
3888
|
-
const { MessageChannel } = (0,
|
3888
|
+
const { MessageChannel } = (0, import_chunk_4VNS5WPM.__require)("worker_threads"), port = new MessageChannel().port1, ab = new ArrayBuffer();
|
3889
3889
|
port.postMessage(ab, [ab, ab]);
|
3890
3890
|
} catch (err) {
|
3891
3891
|
err.constructor.name === "DOMException" && (globalThis.DOMException = err.constructor);
|
@@ -3894,7 +3894,7 @@ var require_node_domexception = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
3894
3894
|
module2.exports = globalThis.DOMException;
|
3895
3895
|
}
|
3896
3896
|
});
|
3897
|
-
var import_streams = (0,
|
3897
|
+
var import_streams = (0, import_chunk_4VNS5WPM.__toESM)(require_streams(), 1);
|
3898
3898
|
var POOL_SIZE = 65536;
|
3899
3899
|
async function* toIterator(parts, clone = true) {
|
3900
3900
|
for (const part of parts) {
|
@@ -3930,8 +3930,12 @@ async function* toIterator(parts, clone = true) {
|
|
3930
3930
|
}
|
3931
3931
|
}
|
3932
3932
|
}
|
3933
|
-
var
|
3934
|
-
|
3933
|
+
var _Blob = class Blob {
|
3934
|
+
/** @type {Array.<(Blob|Uint8Array)>} */
|
3935
|
+
#parts = [];
|
3936
|
+
#type = "";
|
3937
|
+
#size = 0;
|
3938
|
+
#endings = "transparent";
|
3935
3939
|
/**
|
3936
3940
|
* The Blob() constructor returns a new Blob object. The content
|
3937
3941
|
* of the blob consists of the concatenation of the values given
|
@@ -3941,10 +3945,6 @@ var _Blob = (_a = class {
|
|
3941
3945
|
* @param {{ type?: string, endings?: string }} [options]
|
3942
3946
|
*/
|
3943
3947
|
constructor(blobParts = [], options = {}) {
|
3944
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _parts, []);
|
3945
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _type, "");
|
3946
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _size, 0);
|
3947
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _endings, "transparent");
|
3948
3948
|
if (typeof blobParts !== "object" || blobParts === null) {
|
3949
3949
|
throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");
|
3950
3950
|
}
|
@@ -3962,30 +3962,30 @@ var _Blob = (_a = class {
|
|
3962
3962
|
part = new Uint8Array(element.buffer.slice(element.byteOffset, element.byteOffset + element.byteLength));
|
3963
3963
|
} else if (element instanceof ArrayBuffer) {
|
3964
3964
|
part = new Uint8Array(element.slice(0));
|
3965
|
-
} else if (element instanceof
|
3965
|
+
} else if (element instanceof Blob) {
|
3966
3966
|
part = element;
|
3967
3967
|
} else {
|
3968
3968
|
part = encoder.encode(`${element}`);
|
3969
3969
|
}
|
3970
|
-
|
3971
|
-
|
3970
|
+
this.#size += ArrayBuffer.isView(part) ? part.byteLength : part.size;
|
3971
|
+
this.#parts.push(part);
|
3972
3972
|
}
|
3973
|
-
|
3973
|
+
this.#endings = `${options.endings === void 0 ? "transparent" : options.endings}`;
|
3974
3974
|
const type = options.type === void 0 ? "" : String(options.type);
|
3975
|
-
|
3975
|
+
this.#type = /^[\x20-\x7E]*$/.test(type) ? type : "";
|
3976
3976
|
}
|
3977
3977
|
/**
|
3978
3978
|
* The Blob interface's size property returns the
|
3979
3979
|
* size of the Blob in bytes.
|
3980
3980
|
*/
|
3981
3981
|
get size() {
|
3982
|
-
return
|
3982
|
+
return this.#size;
|
3983
3983
|
}
|
3984
3984
|
/**
|
3985
3985
|
* The type property of a Blob object returns the MIME type of the file.
|
3986
3986
|
*/
|
3987
3987
|
get type() {
|
3988
|
-
return
|
3988
|
+
return this.#type;
|
3989
3989
|
}
|
3990
3990
|
/**
|
3991
3991
|
* The text() method in the Blob interface returns a Promise
|
@@ -3997,7 +3997,7 @@ var _Blob = (_a = class {
|
|
3997
3997
|
async text() {
|
3998
3998
|
const decoder = new TextDecoder();
|
3999
3999
|
let str = "";
|
4000
|
-
for await (const part of toIterator(
|
4000
|
+
for await (const part of toIterator(this.#parts, false)) {
|
4001
4001
|
str += decoder.decode(part, { stream: true });
|
4002
4002
|
}
|
4003
4003
|
str += decoder.decode();
|
@@ -4013,14 +4013,14 @@ var _Blob = (_a = class {
|
|
4013
4013
|
async arrayBuffer() {
|
4014
4014
|
const data = new Uint8Array(this.size);
|
4015
4015
|
let offset = 0;
|
4016
|
-
for await (const chunk of toIterator(
|
4016
|
+
for await (const chunk of toIterator(this.#parts, false)) {
|
4017
4017
|
data.set(chunk, offset);
|
4018
4018
|
offset += chunk.length;
|
4019
4019
|
}
|
4020
4020
|
return data.buffer;
|
4021
4021
|
}
|
4022
4022
|
stream() {
|
4023
|
-
const it = toIterator(
|
4023
|
+
const it = toIterator(this.#parts, true);
|
4024
4024
|
return new globalThis.ReadableStream({
|
4025
4025
|
// @ts-ignore
|
4026
4026
|
type: "bytes",
|
@@ -4047,7 +4047,7 @@ var _Blob = (_a = class {
|
|
4047
4047
|
let relativeStart = start < 0 ? Math.max(size + start, 0) : Math.min(start, size);
|
4048
4048
|
let relativeEnd = end < 0 ? Math.max(size + end, 0) : Math.min(end, size);
|
4049
4049
|
const span = Math.max(relativeEnd - relativeStart, 0);
|
4050
|
-
const parts =
|
4050
|
+
const parts = this.#parts;
|
4051
4051
|
const blobParts = [];
|
4052
4052
|
let added = 0;
|
4053
4053
|
for (const part of parts) {
|
@@ -4072,9 +4072,9 @@ var _Blob = (_a = class {
|
|
4072
4072
|
relativeStart = 0;
|
4073
4073
|
}
|
4074
4074
|
}
|
4075
|
-
const blob = new
|
4076
|
-
|
4077
|
-
|
4075
|
+
const blob = new Blob([], { type: String(type).toLowerCase() });
|
4076
|
+
blob.#size = span;
|
4077
|
+
blob.#parts = blobParts;
|
4078
4078
|
return blob;
|
4079
4079
|
}
|
4080
4080
|
get [Symbol.toStringTag]() {
|
@@ -4083,16 +4083,17 @@ var _Blob = (_a = class {
|
|
4083
4083
|
static [Symbol.hasInstance](object) {
|
4084
4084
|
return object && typeof object === "object" && typeof object.constructor === "function" && (typeof object.stream === "function" || typeof object.arrayBuffer === "function") && /^(Blob|File)$/.test(object[Symbol.toStringTag]);
|
4085
4085
|
}
|
4086
|
-
}
|
4086
|
+
};
|
4087
4087
|
Object.defineProperties(_Blob.prototype, {
|
4088
4088
|
size: { enumerable: true },
|
4089
4089
|
type: { enumerable: true },
|
4090
4090
|
slice: { enumerable: true }
|
4091
4091
|
});
|
4092
|
-
var
|
4093
|
-
var fetch_blob_default =
|
4094
|
-
var
|
4095
|
-
|
4092
|
+
var Blob2 = _Blob;
|
4093
|
+
var fetch_blob_default = Blob2;
|
4094
|
+
var _File = class File extends fetch_blob_default {
|
4095
|
+
#lastModified = 0;
|
4096
|
+
#name = "";
|
4096
4097
|
/**
|
4097
4098
|
* @param {*[]} fileBits
|
4098
4099
|
* @param {string} fileName
|
@@ -4104,20 +4105,18 @@ var _File = (_a2 = class extends fetch_blob_default {
|
|
4104
4105
|
throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);
|
4105
4106
|
}
|
4106
4107
|
super(fileBits, options);
|
4107
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _lastModified, 0);
|
4108
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _name, "");
|
4109
4108
|
if (options === null) options = {};
|
4110
4109
|
const lastModified = options.lastModified === void 0 ? Date.now() : Number(options.lastModified);
|
4111
4110
|
if (!Number.isNaN(lastModified)) {
|
4112
|
-
|
4111
|
+
this.#lastModified = lastModified;
|
4113
4112
|
}
|
4114
|
-
|
4113
|
+
this.#name = String(fileName);
|
4115
4114
|
}
|
4116
4115
|
get name() {
|
4117
|
-
return
|
4116
|
+
return this.#name;
|
4118
4117
|
}
|
4119
4118
|
get lastModified() {
|
4120
|
-
return
|
4119
|
+
return this.#lastModified;
|
4121
4120
|
}
|
4122
4121
|
get [Symbol.toStringTag]() {
|
4123
4122
|
return "File";
|
@@ -4125,9 +4124,9 @@ var _File = (_a2 = class extends fetch_blob_default {
|
|
4125
4124
|
static [Symbol.hasInstance](object) {
|
4126
4125
|
return !!object && object instanceof fetch_blob_default && /^(File)$/.test(object[Symbol.toStringTag]);
|
4127
4126
|
}
|
4128
|
-
}
|
4129
|
-
var
|
4130
|
-
var file_default =
|
4127
|
+
};
|
4128
|
+
var File2 = _File;
|
4129
|
+
var file_default = File2;
|
4131
4130
|
var { toStringTag: t, iterator: i, hasInstance: h } = Symbol;
|
4132
4131
|
var r = Math.random;
|
4133
4132
|
var m = "append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(",");
|
@@ -4138,10 +4137,9 @@ var x = (n, a, e2) => {
|
|
4138
4137
|
throw new TypeError(`Failed to execute '${n}' on 'FormData': ${e2} arguments required, but only ${a.length} present.`);
|
4139
4138
|
}
|
4140
4139
|
};
|
4141
|
-
var
|
4142
|
-
|
4140
|
+
var FormData = class FormData2 {
|
4141
|
+
#d = [];
|
4143
4142
|
constructor(...a) {
|
4144
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _d, []);
|
4145
4143
|
if (a.length) throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`);
|
4146
4144
|
}
|
4147
4145
|
get [t]() {
|
@@ -4155,30 +4153,30 @@ var FormData = (_a3 = class {
|
|
4155
4153
|
}
|
4156
4154
|
append(...a) {
|
4157
4155
|
x("append", arguments, 2);
|
4158
|
-
|
4156
|
+
this.#d.push(f(...a));
|
4159
4157
|
}
|
4160
4158
|
delete(a) {
|
4161
4159
|
x("delete", arguments, 1);
|
4162
4160
|
a += "";
|
4163
|
-
|
4161
|
+
this.#d = this.#d.filter(([b]) => b !== a);
|
4164
4162
|
}
|
4165
4163
|
get(a) {
|
4166
4164
|
x("get", arguments, 1);
|
4167
4165
|
a += "";
|
4168
|
-
for (var b =
|
4166
|
+
for (var b = this.#d, l = b.length, c = 0; c < l; c++) if (b[c][0] === a) return b[c][1];
|
4169
4167
|
return null;
|
4170
4168
|
}
|
4171
4169
|
getAll(a, b) {
|
4172
4170
|
x("getAll", arguments, 1);
|
4173
4171
|
b = [];
|
4174
4172
|
a += "";
|
4175
|
-
|
4173
|
+
this.#d.forEach((c) => c[0] === a && b.push(c[1]));
|
4176
4174
|
return b;
|
4177
4175
|
}
|
4178
4176
|
has(a) {
|
4179
4177
|
x("has", arguments, 1);
|
4180
4178
|
a += "";
|
4181
|
-
return
|
4179
|
+
return this.#d.some((b) => b[0] === a);
|
4182
4180
|
}
|
4183
4181
|
forEach(a, b) {
|
4184
4182
|
x("forEach", arguments, 1);
|
@@ -4188,14 +4186,14 @@ var FormData = (_a3 = class {
|
|
4188
4186
|
x("set", arguments, 2);
|
4189
4187
|
var b = [], c = true;
|
4190
4188
|
a = f(...a);
|
4191
|
-
|
4189
|
+
this.#d.forEach((d) => {
|
4192
4190
|
d[0] === a[0] ? c && (c = !b.push(a)) : b.push(d);
|
4193
4191
|
});
|
4194
4192
|
c && b.push(a);
|
4195
|
-
|
4193
|
+
this.#d = b;
|
4196
4194
|
}
|
4197
4195
|
*entries() {
|
4198
|
-
yield*
|
4196
|
+
yield* this.#d;
|
4199
4197
|
}
|
4200
4198
|
*keys() {
|
4201
4199
|
for (var [a] of this) yield a;
|
@@ -4203,7 +4201,7 @@ var FormData = (_a3 = class {
|
|
4203
4201
|
*values() {
|
4204
4202
|
for (var [, a] of this) yield a;
|
4205
4203
|
}
|
4206
|
-
}
|
4204
|
+
};
|
4207
4205
|
function formDataToBlob(F, B = fetch_blob_default) {
|
4208
4206
|
var b = `${r()}${r()}`.replace(/\./g, "").slice(-28).padStart(32, "-"), c = [], p = `--${b}\r
|
4209
4207
|
Content-Disposition: form-data; name="`;
|
@@ -4217,7 +4215,7 @@ Content-Type: ${v.type || "application/octet-stream"}\r
|
|
4217
4215
|
c.push(`--${b}--`);
|
4218
4216
|
return new B(c, { type: "multipart/form-data; boundary=" + b });
|
4219
4217
|
}
|
4220
|
-
var import_node_domexception = (0,
|
4218
|
+
var import_node_domexception = (0, import_chunk_4VNS5WPM.__toESM)(require_node_domexception(), 1);
|
4221
4219
|
var { stat } = import_node_fs.promises;
|
4222
4220
|
/*! Bundled license information:
|
4223
4221
|
|
@@ -26,29 +26,28 @@ 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_OE4XGY7B_exports = {};
|
30
|
+
__export(chunk_OE4XGY7B_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(
|
38
|
-
var
|
39
|
-
var
|
37
|
+
module.exports = __toCommonJS(chunk_OE4XGY7B_exports);
|
38
|
+
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
39
|
+
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
40
40
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
41
|
-
var
|
42
|
-
var
|
41
|
+
var import_chunk_JHF7CF7M = require("./chunk-JHF7CF7M.js");
|
42
|
+
var import_chunk_XHEEFWQQ = require("./chunk-XHEEFWQQ.js");
|
43
|
+
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
43
44
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
44
|
-
var
|
45
|
-
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
|
46
|
-
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
45
|
+
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
47
46
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
48
|
-
var
|
47
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
49
48
|
var import_debug = __toESM(require("@prisma/debug"));
|
50
49
|
var import_get_platform = require("@prisma/get-platform");
|
51
|
-
var import_function = (0,
|
50
|
+
var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57HZ.require_function)());
|
52
51
|
var debug = (0, import_debug.default)("prisma:getConfig");
|
53
52
|
var SCHEMA_VALIDATION_ERROR_CODE = "P1012";
|
54
53
|
var GetConfigError = class extends Error {
|
@@ -65,7 +64,7 @@ ${detailsHeader} ${message}`;
|
|
65
64
|
}).exhaustive();
|
66
65
|
const errorMessageWithContext = `${constructedErrorMessage}
|
67
66
|
[Context: getConfig]`;
|
68
|
-
super((0,
|
67
|
+
super((0, import_chunk_JHF7CF7M.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
69
68
|
this.name = "GetConfigError";
|
70
69
|
}
|
71
70
|
};
|
@@ -83,14 +82,14 @@ function resolveUrl(envValue) {
|
|
83
82
|
return urlFromValue ?? urlEnvVarValue;
|
84
83
|
}
|
85
84
|
async function getConfig(options) {
|
86
|
-
const debugErrorType = (0,
|
85
|
+
const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getConfigWasm");
|
87
86
|
debug(`Using getConfig Wasm`);
|
88
87
|
const configEither = (0, import_function.pipe)(
|
89
|
-
(0,
|
88
|
+
(0, import_chunk_5DBOS77Y.tryCatch)(
|
90
89
|
() => {
|
91
90
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
92
91
|
debug("Triggering a Rust panic...");
|
93
|
-
|
92
|
+
import_chunk_XHEEFWQQ.prismaSchemaWasm.debug_panic();
|
94
93
|
}
|
95
94
|
const params = JSON.stringify({
|
96
95
|
prismaSchema: options.datamodel,
|
@@ -98,7 +97,7 @@ async function getConfig(options) {
|
|
98
97
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
99
98
|
env: process.env
|
100
99
|
});
|
101
|
-
const data =
|
100
|
+
const data = import_chunk_XHEEFWQQ.prismaSchemaWasm.get_config(params);
|
102
101
|
return data;
|
103
102
|
},
|
104
103
|
(e) => ({
|
@@ -107,11 +106,11 @@ async function getConfig(options) {
|
|
107
106
|
error: e
|
108
107
|
})
|
109
108
|
),
|
110
|
-
(0,
|
111
|
-
(0,
|
109
|
+
(0, import_chunk_5DBOS77Y.map)((result) => ({ result })),
|
110
|
+
(0, import_chunk_5DBOS77Y.chainW)(
|
112
111
|
({ result }) => (
|
113
112
|
// NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
|
114
|
-
(0,
|
113
|
+
(0, import_chunk_5DBOS77Y.tryCatch)(
|
115
114
|
() => JSON.parse(result),
|
116
115
|
(e) => ({
|
117
116
|
type: "parse-json",
|
@@ -121,18 +120,18 @@ async function getConfig(options) {
|
|
121
120
|
)
|
122
121
|
)
|
123
122
|
),
|
124
|
-
(0,
|
123
|
+
(0, import_chunk_5DBOS77Y.chainW)((response) => {
|
125
124
|
if (response.errors.length > 0) {
|
126
|
-
return (0,
|
125
|
+
return (0, import_chunk_5DBOS77Y.left)({
|
127
126
|
type: "validation-error",
|
128
127
|
reason: "(get-config wasm)",
|
129
128
|
error: response.errors
|
130
129
|
});
|
131
130
|
}
|
132
|
-
return (0,
|
131
|
+
return (0, import_chunk_5DBOS77Y.right)(response.config);
|
133
132
|
})
|
134
133
|
);
|
135
|
-
if ((0,
|
134
|
+
if ((0, import_chunk_5DBOS77Y.isRight)(configEither)) {
|
136
135
|
debug("config data retrieved without errors in getConfig Wasm");
|
137
136
|
const { right: data } = configEither;
|
138
137
|
for (const generator of data.generators) {
|
@@ -142,30 +141,27 @@ async function getConfig(options) {
|
|
142
141
|
}
|
143
142
|
const error = (0, import_chunk_XKZ6CBLA.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
|
144
143
|
debugErrorType(e);
|
145
|
-
if ((0,
|
146
|
-
const { message, stack } = (0,
|
147
|
-
const panic = new
|
144
|
+
if ((0, import_chunk_LMVSIVKQ.isWasmPanic)(e.error)) {
|
145
|
+
const { message, stack } = (0, import_chunk_LMVSIVKQ.getWasmError)(e.error);
|
146
|
+
const panic = new import_chunk_LMVSIVKQ.RustPanic(
|
148
147
|
/* message */
|
149
148
|
message,
|
150
149
|
/* rustStack */
|
151
150
|
stack,
|
152
151
|
/* request */
|
153
152
|
"@prisma/prisma-schema-wasm get_config",
|
154
|
-
"FMT_CLI"
|
155
|
-
/*
|
156
|
-
options.prismaPath,
|
157
|
-
/* schema */
|
158
|
-
(0, import_chunk_YRBRUREX.toMultipleSchemas)(options.datamodel)
|
153
|
+
"FMT_CLI"
|
154
|
+
/* FMT_CLI */
|
159
155
|
);
|
160
156
|
return panic;
|
161
157
|
}
|
162
158
|
const errorOutput = e.error.message;
|
163
|
-
return new GetConfigError((0,
|
159
|
+
return new GetConfigError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
164
160
|
}).with({ type: "validation-error" }, (e) => {
|
165
161
|
return new GetConfigError({
|
166
162
|
_tag: "parsed",
|
167
163
|
errorCode: SCHEMA_VALIDATION_ERROR_CODE,
|
168
|
-
reason: (0,
|
164
|
+
reason: (0, import_chunk_WSZXPLJQ.createSchemaValidationError)(e.reason),
|
169
165
|
message: formatErrors(e.error)
|
170
166
|
});
|
171
167
|
}).otherwise((e) => {
|
@@ -16,22 +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_OSHZ4P3G_exports = {};
|
20
|
+
__export(chunk_OSHZ4P3G_exports, {
|
21
21
|
toSchemasContainer: () => toSchemasContainer,
|
22
22
|
toSchemasWithConfigDir: () => toSchemasWithConfigDir
|
23
23
|
});
|
24
|
-
module.exports = __toCommonJS(
|
25
|
-
var import_chunk_RFB2U4GQ = require("./chunk-RFB2U4GQ.js");
|
24
|
+
module.exports = __toCommonJS(chunk_OSHZ4P3G_exports);
|
26
25
|
function toSchemasContainer(schemas) {
|
27
26
|
return {
|
28
27
|
files: multipleSchemasToSchemaContainers(schemas)
|
29
28
|
};
|
30
29
|
}
|
31
|
-
function toSchemasWithConfigDir(
|
30
|
+
function toSchemasWithConfigDir(schemaContext) {
|
32
31
|
return {
|
33
|
-
files: multipleSchemasToSchemaContainers(
|
34
|
-
configDir:
|
32
|
+
files: multipleSchemasToSchemaContainers(schemaContext.schemaFiles),
|
33
|
+
configDir: schemaContext.primaryDatasourceDirectory
|
35
34
|
};
|
36
35
|
}
|
37
36
|
function multipleSchemasToSchemaContainers(schemas) {
|
@@ -16,10 +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(
|
21
|
-
|
19
|
+
var chunk_PFYALFCY_exports = {};
|
20
|
+
__export(chunk_PFYALFCY_exports, {
|
21
|
+
extractSchemaContent: () => extractSchemaContent
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
function
|
23
|
+
module.exports = __toCommonJS(chunk_PFYALFCY_exports);
|
24
|
+
function extractSchemaContent(multipleSchemas) {
|
25
|
+
return multipleSchemas.map(([, content]) => content);
|
25
26
|
}
|