@prisma/internals 6.6.0-dev.24 → 6.6.0-dev.25
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-5SN5JBT2.js → chunk-2T4NJDHK.js} +22 -22
- package/dist/{chunk-7XNZDY2V.js → chunk-2WR3PY2L.js} +60 -60
- package/dist/{chunk-6TXVGFQA.js → chunk-4URMCTG6.js} +6 -6
- package/dist/{chunk-BVCREFE3.js → chunk-5UTAMENR.js} +9 -9
- package/dist/{chunk-OZ67AQ5E.js → chunk-64UA4UOO.js} +8 -8
- package/dist/{chunk-TZCE3PWZ.js → chunk-6TVEFPKE.js} +7 -7
- package/dist/{chunk-MGZOEY6N.js → chunk-72UZXEBG.js} +6 -6
- package/dist/{chunk-VRT7T6MF.js → chunk-BWGDP6B5.js} +94 -105
- package/dist/{chunk-7YOCMGWK.js → chunk-BXF4VTJQ.js} +5 -5
- package/dist/{chunk-ATFQZVBS.js → chunk-CCQRDM7X.js} +10 -11
- package/dist/{chunk-HFN2WZUJ.js → chunk-D6H2JDDL.js} +8 -8
- package/dist/{chunk-4PGRSJWB.js → chunk-DG6E4UCC.js} +18 -18
- package/dist/{chunk-PIPE5DSU.js → chunk-DGZO4GAJ.js} +6 -6
- package/dist/{chunk-ZYW3HGSH.js → chunk-DYVL6P7F.js} +7 -8
- package/dist/{chunk-77BIZNY2.js → chunk-EHJNNRXK.js} +18 -18
- package/dist/{chunk-NJQWZ447.js → chunk-EIERU2IM.js} +6 -6
- 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-M7EVD7PF.js → chunk-FRH7ZI7P.js} +19 -19
- package/dist/{chunk-S57RMXZW.js → chunk-GHHABGYW.js} +5 -5
- package/dist/{chunk-JXWKKKDF.js → chunk-GQACUSUF.js} +319 -319
- package/dist/{chunk-CHMJ5V7I.js → chunk-H5XZKD22.js} +7 -7
- package/dist/{chunk-ONHKZPSV.js → chunk-IKQFIRRX.js} +6 -6
- package/dist/{chunk-AX46XUDV.js → chunk-IMI6TYQ4.js} +18 -18
- package/dist/{chunk-5Q4NYGQV.js → chunk-JFROJGHQ.js} +5 -5
- 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-ZVRFFLZI.js → chunk-LE225BZ5.js} +5 -5
- package/dist/{chunk-I7IEEULS.js → chunk-LSYWDURQ.js} +5 -5
- package/dist/{chunk-AZNLB67U.js → chunk-MBB2KJWX.js} +5 -5
- package/dist/{chunk-3VBZ5DIO.js → chunk-MC6GX7HZ.js} +17 -17
- package/dist/{chunk-TATYN3T2.js → chunk-MM4PIVNT.js} +10 -10
- package/dist/{chunk-KQOJB3ZW.js → chunk-NLYH6XB4.js} +10 -10
- package/dist/{chunk-QKRZQKZ4.js → chunk-NM6AESCR.js} +5 -5
- package/dist/{chunk-5RV3EMX6.js → chunk-ORR3O5RU.js} +57 -57
- package/dist/{chunk-ZSBSOL5F.js → chunk-PG5DWXQ5.js} +319 -319
- package/dist/{chunk-Q22BLLK3.js → chunk-PORKIX5G.js} +6 -6
- package/dist/{chunk-ADLIKZEN.js → chunk-PS4DTKFB.js} +17 -17
- package/dist/{chunk-3LJ3PARU.js → chunk-QY3IYHB3.js} +19 -19
- package/dist/{chunk-FIFK6NVL.js → chunk-R2BUFXGK.js} +9 -9
- package/dist/{chunk-GXDYIY4M.js → chunk-RAYPCPVU.js} +56 -56
- package/dist/{chunk-Z5SL4ZNA.js → chunk-SU4VTBR6.js} +18 -18
- package/dist/{chunk-UNUCCAXA.js → chunk-SYCT2PLK.js} +5 -5
- package/dist/{chunk-Y3OWT3K2.js → chunk-T7EWI7A3.js} +7 -7
- package/dist/{chunk-ZKAW5JSN.js → chunk-UETN3RLH.js} +5 -5
- package/dist/{chunk-BGFWFIPR.js → chunk-UJ725NXW.js} +5 -5
- package/dist/{chunk-53LS3WUO.js → chunk-V37JTUKZ.js} +116 -116
- package/dist/{chunk-V2ZF7ETH.js → chunk-VLGS4WJI.js} +66 -68
- package/dist/{chunk-XLF2J4OH.js → chunk-VV44YB7T.js} +6 -6
- package/dist/{chunk-6HZ4Q3EX.js → chunk-VYDFN4XN.js} +5 -5
- package/dist/{chunk-5MCWLJSR.js → chunk-WEATFJ6G.js} +10 -10
- package/dist/{chunk-BPZFDGKN.js → chunk-WXRVYSYN.js} +4 -7
- package/dist/{chunk-L6GBFCXG.js → chunk-XXDGZSJ4.js} +12 -12
- package/dist/{chunk-3ERIN7PH.js → chunk-YBYBY7QI.js} +8 -8
- package/dist/{chunk-2MWIMEFK.js → chunk-Z4ALPGAK.js} +6 -6
- 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 +55 -55
- package/dist/cli/getGeneratorSuccessMessage.js +1 -1
- package/dist/cli/getSchema.js +59 -59
- package/dist/cli/getTypescriptVersion.js +1 -1
- package/dist/cli/hashes.js +55 -55
- 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 +54 -54
- 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 +65 -65
- 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 +54 -54
- 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 +54 -54
- 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 +55 -55
- package/dist/get-generators/getGenerators.js +57 -57
- 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 +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.js +113 -113
- package/dist/logger.js +9 -9
- 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 +54 -54
- 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 +1 -1
- 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 +1 -1
- 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.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 +54 -54
- package/dist/utils/getGitHubIssueUrl.js +4 -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 +54 -54
- 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 +54 -54
- 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.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 +8 -8
@@ -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_LE225BZ5_exports = {};
|
20
|
+
__export(chunk_LE225BZ5_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_LE225BZ5_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",
|
@@ -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,25 +26,25 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_MC6GX7HZ_exports = {};
|
30
|
+
__export(chunk_MC6GX7HZ_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_MC6GX7HZ_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
|
-
var
|
36
|
+
var import_chunk_4URMCTG6 = require("./chunk-4URMCTG6.js");
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
38
|
-
var
|
39
|
-
var
|
38
|
+
var import_chunk_VYDFN4XN = require("./chunk-VYDFN4XN.js");
|
39
|
+
var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
41
|
-
var
|
42
|
-
var
|
41
|
+
var import_chunk_R2BUFXGK = require("./chunk-R2BUFXGK.js");
|
42
|
+
var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
|
43
43
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
45
|
-
var
|
45
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
46
46
|
var import_debug = __toESM(require("@prisma/debug"));
|
47
|
-
var import_function = (0,
|
47
|
+
var import_function = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_ZGAIRZ32.require_function)());
|
48
48
|
var debug = (0, import_debug.default)("prisma:mergeSchemas");
|
49
49
|
var MergeSchemasError = class extends Error {
|
50
50
|
constructor(params) {
|
@@ -60,12 +60,12 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: mergeSchemas]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_VYDFN4XN.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "MergeSchemasError";
|
65
65
|
}
|
66
66
|
};
|
67
67
|
function mergeSchemas(options) {
|
68
|
-
const debugErrorType = (0,
|
68
|
+
const debugErrorType = (0, import_chunk_4URMCTG6.createDebugErrorType)(debug, "mergeSchemasWasm");
|
69
69
|
debug(`Using mergeSchemas Wasm`);
|
70
70
|
const mergeSchemasEither = (0, import_function.pipe)(
|
71
71
|
(0, import_chunk_7MD6344A.tryCatch)(
|
@@ -73,7 +73,7 @@ function mergeSchemas(options) {
|
|
73
73
|
const params = JSON.stringify({
|
74
74
|
schema: options.schemas
|
75
75
|
});
|
76
|
-
return
|
76
|
+
return import_chunk_R2BUFXGK.prismaSchemaWasm.merge_schemas(params);
|
77
77
|
},
|
78
78
|
(e) => ({
|
79
79
|
type: "wasm-error",
|
@@ -88,11 +88,11 @@ function mergeSchemas(options) {
|
|
88
88
|
const error = (0, import_chunk_XKZ6CBLA.z)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
|
89
89
|
debugErrorType(e);
|
90
90
|
console.error("");
|
91
|
-
if ((0,
|
92
|
-
const { message, stack } = (0,
|
91
|
+
if ((0, import_chunk_CCQRDM7X.isWasmPanic)(e.error)) {
|
92
|
+
const { message, stack } = (0, import_chunk_CCQRDM7X.getWasmError)(e.error);
|
93
93
|
debug(`Error merging schemas: ${message}`);
|
94
94
|
debug(stack);
|
95
|
-
const panic = new
|
95
|
+
const panic = new import_chunk_CCQRDM7X.RustPanic(
|
96
96
|
/* message */
|
97
97
|
message,
|
98
98
|
/* rustStack */
|
@@ -108,7 +108,7 @@ function mergeSchemas(options) {
|
|
108
108
|
return panic;
|
109
109
|
}
|
110
110
|
const errorOutput = e.error.message;
|
111
|
-
return new MergeSchemasError((0,
|
111
|
+
return new MergeSchemasError((0, import_chunk_4URMCTG6.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
112
112
|
}).exhaustive();
|
113
113
|
throw error;
|
114
114
|
}
|
@@ -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 = {
|
@@ -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") {
|
@@ -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_NM6AESCR_exports = {};
|
20
|
+
__export(chunk_NM6AESCR_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_NM6AESCR_exports);
|
24
|
+
var import_chunk_JFROJGHQ = require("./chunk-JFROJGHQ.js");
|
25
25
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
26
26
|
function addVersionDetailsToErrorMessage(message) {
|
27
|
-
const rows = [["Prisma CLI Version",
|
27
|
+
const rows = [["Prisma CLI Version", import_chunk_JFROJGHQ.version]];
|
28
28
|
return `${message}
|
29
29
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|