@prisma/internals 6.6.0-dev.9 → 6.6.0-dev.91
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-XLGODPZH.js → chunk-3DQANJMY.js} +12 -12
- package/dist/{chunk-Y556XG3B.js → chunk-3HN6ODNI.js} +12 -11
- 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-TKQ7NOUN.js → chunk-5XZG3TEG.js} +30 -34
- package/dist/{chunk-YXD4CJDK.js → chunk-67I7CEQJ.js} +30 -31
- package/dist/{chunk-I7IEEULS.js → chunk-6TTRTZXU.js} +5 -5
- package/dist/{chunk-5RV3EMX6.js → chunk-75BIJ5PX.js} +57 -57
- package/dist/{chunk-BGFWFIPR.js → chunk-7QC5VORA.js} +5 -5
- package/dist/{chunk-2MWIMEFK.js → chunk-AX5N26KG.js} +6 -6
- package/dist/{chunk-WWKPV5SR.js → chunk-AXYQWZXV.js} +46 -79
- 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-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-FRNDDXVT.js +900 -0
- package/dist/{chunk-5SN5JBT2.js → chunk-FXMGS3L5.js} +21 -40
- package/dist/{chunk-3ERIN7PH.js → chunk-HG3YOAAE.js} +10 -10
- package/dist/chunk-I6WLABB2.js +429 -0
- package/dist/{chunk-GXDYIY4M.js → chunk-IDINCQMN.js} +56 -57
- package/dist/{chunk-ITLOFM5Q.js → chunk-IRTBJKYB.js} +11 -15
- 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-OE4MFVDB.js → chunk-LKR4OOFJ.js} +5 -5
- package/dist/{chunk-ATFQZVBS.js → chunk-LMVSIVKQ.js} +9 -14
- 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-BUSRAOJT.js → chunk-N6H26BQE.js} +5 -5
- package/dist/{chunk-V2ZF7ETH.js → chunk-NVNI2SRU.js} +66 -68
- package/dist/{chunk-GKCSB52I.js → chunk-O3X5PEOU.js} +23 -27
- package/dist/{chunk-EPNDXRXB.js → chunk-OESCEI3R.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-WIQVR535.js → chunk-PUXNALMZ.js} +5 -5
- package/dist/{chunk-5HSKR6FE.js → chunk-QDOO76BJ.js} +46 -79
- package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
- package/dist/{chunk-PFLLVWZX.js → chunk-R6QH57HZ.js} +5 -5
- package/dist/chunk-RENAG7EW.js +900 -0
- package/dist/{chunk-TVGDXZ2E.js → chunk-S2CNOAWN.js} +9 -9
- package/dist/{chunk-Y3OWT3K2.js → chunk-TQFONRJP.js} +7 -7
- package/dist/{chunk-TQJ5XNIU.js → chunk-TWSSYOC7.js} +11 -10
- package/dist/{chunk-3BND5XB4.js → chunk-UTJGRVMG.js} +11 -11
- package/dist/{chunk-CHMJ5V7I.js → chunk-UZTXEBTM.js} +7 -7
- package/dist/{chunk-35JO7PFL.js → chunk-VTZ7JKBM.js} +5 -5
- package/dist/{chunk-6TXVGFQA.js → chunk-WSZXPLJQ.js} +11 -11
- package/dist/{chunk-BPZFDGKN.js → chunk-WXRVYSYN.js} +4 -7
- package/dist/{chunk-LD5ZZC24.js → chunk-X6N5SACR.js} +11 -15
- package/dist/{chunk-YTW4YPKF.js → chunk-XF3D7LPL.js} +9 -9
- package/dist/{chunk-7NHX62BP.js → chunk-XP2UYA2I.js} +23 -27
- package/dist/chunk-XR4RJTDM.js +101 -0
- package/dist/{chunk-47K4FUF7.js → chunk-YKMFYZPB.js} +22 -26
- package/dist/chunk-YR5KNFKN.js +1834 -0
- package/dist/{chunk-YIZAJNC6.js → chunk-ZIDL7EUE.js} +22 -26
- 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 +14 -13
- package/dist/chunk-77IC3DNO.js +0 -35
- package/dist/chunk-AOQIUJT4.js +0 -41
- package/dist/chunk-L6GBFCXG.js +0 -367
- package/dist/chunk-MGZOEY6N.js +0 -28
- package/dist/chunk-PNFNDBKA.js +0 -15631
- package/dist/chunk-S57RMXZW.js +0 -28
- package/dist/chunk-VRT7T6MF.js +0 -4959
- package/dist/chunk-WYFFSU2Q.js +0 -15631
- 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,14 +16,14 @@ 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_AX5N26KG_exports = {};
|
20
|
+
__export(chunk_AX5N26KG_exports, {
|
21
21
|
missingGeneratorMessage: () => missingGeneratorMessage,
|
22
22
|
missingModelMessage: () => missingModelMessage,
|
23
23
|
missingModelMessageMongoDB: () => missingModelMessageMongoDB
|
24
24
|
});
|
25
|
-
module.exports = __toCommonJS(
|
26
|
-
var
|
25
|
+
module.exports = __toCommonJS(chunk_AX5N26KG_exports);
|
26
|
+
var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
|
27
27
|
var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
|
28
28
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
29
29
|
var missingGeneratorMessage = `
|
@@ -52,7 +52,7 @@ ${(0, import_chunk_PG5FDKSF.bold)(
|
|
52
52
|
)}
|
53
53
|
|
54
54
|
More information in our documentation:
|
55
|
-
${(0,
|
55
|
+
${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
|
56
56
|
`;
|
57
57
|
var missingModelMessageMongoDB = `
|
58
58
|
You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
|
@@ -69,5 +69,5 @@ ${(0, import_chunk_PG5FDKSF.bold)(
|
|
69
69
|
)}
|
70
70
|
|
71
71
|
More information in our documentation:
|
72
|
-
${(0,
|
72
|
+
${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
|
73
73
|
`;
|
@@ -26,25 +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_AXYQWZXV_exports = {};
|
30
|
+
__export(chunk_AXYQWZXV_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
35
|
-
var
|
36
|
-
var
|
37
|
-
var
|
38
|
-
var
|
34
|
+
module.exports = __toCommonJS(chunk_AXYQWZXV_exports);
|
35
|
+
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
36
|
+
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
37
|
+
var import_chunk_LKR4OOFJ = require("./chunk-LKR4OOFJ.js");
|
38
|
+
var import_chunk_XF3D7LPL = require("./chunk-XF3D7LPL.js");
|
39
|
+
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
39
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
40
|
-
var
|
41
|
-
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
|
42
|
-
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
41
|
+
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
43
42
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
44
|
-
var
|
43
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
45
44
|
var import_debug = __toESM(require("@prisma/debug"));
|
46
|
-
var
|
47
|
-
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
|
45
|
+
var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57HZ.require_function)());
|
48
46
|
var debug = (0, import_debug.default)("prisma:getDMMF");
|
49
47
|
var GetDmmfError = class extends Error {
|
50
48
|
constructor(params) {
|
@@ -60,104 +58,73 @@ ${detailsHeader} ${message}`;
|
|
60
58
|
}).exhaustive();
|
61
59
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
60
|
[Context: getDmmf]`;
|
63
|
-
super((0,
|
61
|
+
super((0, import_chunk_LKR4OOFJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
62
|
this.name = "GetDmmfError";
|
65
63
|
}
|
66
64
|
};
|
67
65
|
async function getDMMF(options) {
|
68
|
-
const debugErrorType = (0,
|
66
|
+
const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getDmmfWasm");
|
69
67
|
debug(`Using getDmmf Wasm`);
|
70
68
|
const dmmfPipeline = (0, import_function.pipe)(
|
71
|
-
(0,
|
69
|
+
(0, import_chunk_5DBOS77Y.tryCatch)(
|
72
70
|
() => {
|
73
|
-
if (
|
74
|
-
debug("
|
75
|
-
|
71
|
+
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
72
|
+
debug("Triggering a Rust panic...");
|
73
|
+
import_chunk_XF3D7LPL.prismaSchemaWasm.debug_panic();
|
76
74
|
}
|
77
|
-
|
78
|
-
|
75
|
+
const params = JSON.stringify({
|
76
|
+
prismaSchema: options.datamodel,
|
77
|
+
noColor: Boolean(process.env.NO_COLOR)
|
78
|
+
});
|
79
|
+
const data = import_chunk_XF3D7LPL.prismaSchemaWasm.get_dmmf(params);
|
80
|
+
return data;
|
79
81
|
},
|
80
82
|
(e) => ({
|
81
|
-
type: "
|
82
|
-
reason: "
|
83
|
-
error: e
|
84
|
-
datamodelPath: options.datamodelPath
|
83
|
+
type: "wasm-error",
|
84
|
+
reason: "(get-dmmf wasm)",
|
85
|
+
error: e
|
85
86
|
})
|
86
87
|
),
|
87
|
-
(0,
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
import_chunk_TVGDXZ2E.prismaSchemaWasm.debug_panic();
|
94
|
-
}
|
95
|
-
const params = JSON.stringify({
|
96
|
-
prismaSchema: datamodel,
|
97
|
-
noColor: Boolean(process.env.NO_COLOR)
|
98
|
-
});
|
99
|
-
const data = import_chunk_TVGDXZ2E.prismaSchemaWasm.get_dmmf(params);
|
100
|
-
return data;
|
101
|
-
},
|
88
|
+
(0, import_chunk_5DBOS77Y.map)((result) => ({ result })),
|
89
|
+
(0, import_chunk_5DBOS77Y.chainW)(
|
90
|
+
({ result }) => (
|
91
|
+
// NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
|
92
|
+
(0, import_chunk_5DBOS77Y.tryCatch)(
|
93
|
+
() => JSON.parse(result),
|
102
94
|
(e) => ({
|
103
|
-
type: "
|
104
|
-
reason: "
|
95
|
+
type: "parse-json",
|
96
|
+
reason: "Unable to parse JSON",
|
105
97
|
error: e
|
106
98
|
})
|
107
|
-
)
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
// NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
|
112
|
-
(0, import_chunk_7MD6344A.tryCatch)(
|
113
|
-
() => JSON.parse(result),
|
114
|
-
(e) => ({
|
115
|
-
type: "parse-json",
|
116
|
-
reason: "Unable to parse JSON",
|
117
|
-
error: e
|
118
|
-
})
|
119
|
-
)
|
120
|
-
)
|
121
|
-
),
|
122
|
-
import_chunk_7MD6344A.fromEither
|
123
|
-
);
|
124
|
-
})
|
99
|
+
)
|
100
|
+
)
|
101
|
+
),
|
102
|
+
import_chunk_5DBOS77Y.fromEither
|
125
103
|
);
|
126
104
|
const dmmfEither = await dmmfPipeline();
|
127
|
-
if ((0,
|
105
|
+
if ((0, import_chunk_5DBOS77Y.isRight)(dmmfEither)) {
|
128
106
|
debug("dmmf data retrieved without errors in getDmmf Wasm");
|
129
107
|
const { right: data } = dmmfEither;
|
130
108
|
return Promise.resolve(data);
|
131
109
|
}
|
132
|
-
const error = (0, import_chunk_XKZ6CBLA.z)(dmmfEither.left).with({ type: "
|
133
|
-
debugErrorType(e);
|
134
|
-
return new GetDmmfError({
|
135
|
-
_tag: "unparsed",
|
136
|
-
message: `${e.error.message}
|
137
|
-
Datamodel path: "${e.datamodelPath}"`,
|
138
|
-
reason: e.reason
|
139
|
-
});
|
140
|
-
}).with({ type: "wasm-error" }, (e) => {
|
110
|
+
const error = (0, import_chunk_XKZ6CBLA.z)(dmmfEither.left).with({ type: "wasm-error" }, (e) => {
|
141
111
|
debugErrorType(e);
|
142
|
-
if ((0,
|
143
|
-
const { message, stack } = (0,
|
144
|
-
const panic = new
|
112
|
+
if ((0, import_chunk_LMVSIVKQ.isWasmPanic)(e.error)) {
|
113
|
+
const { message, stack } = (0, import_chunk_LMVSIVKQ.getWasmError)(e.error);
|
114
|
+
const panic = new import_chunk_LMVSIVKQ.RustPanic(
|
145
115
|
/* message */
|
146
116
|
message,
|
147
117
|
/* rustStack */
|
148
118
|
stack,
|
149
119
|
/* request */
|
150
120
|
"@prisma/prisma-schema-wasm get_dmmf",
|
151
|
-
"FMT_CLI"
|
152
|
-
/*
|
153
|
-
options.prismaPath,
|
154
|
-
/* schema */
|
155
|
-
(0, import_chunk_YRBRUREX.toMultipleSchemas)(options.datamodel)
|
121
|
+
"FMT_CLI"
|
122
|
+
/* FMT_CLI */
|
156
123
|
);
|
157
124
|
return panic;
|
158
125
|
}
|
159
126
|
const errorOutput = e.error.message;
|
160
|
-
return new GetDmmfError((0,
|
127
|
+
return new GetDmmfError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
161
128
|
}).with({ type: "parse-json" }, (e) => {
|
162
129
|
debugErrorType(e);
|
163
130
|
return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
|
@@ -16,35 +16,31 @@ 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
|
-
Generator: () => Generator
|
19
|
+
var chunk_BPDMLM32_exports = {};
|
20
|
+
__export(chunk_BPDMLM32_exports, {
|
21
|
+
Generator: () => Generator,
|
22
|
+
InProcessGenerator: () => InProcessGenerator,
|
23
|
+
JsonRpcGenerator: () => JsonRpcGenerator
|
22
24
|
});
|
23
|
-
module.exports = __toCommonJS(
|
25
|
+
module.exports = __toCommonJS(chunk_BPDMLM32_exports);
|
24
26
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
25
|
-
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
26
27
|
var import_generator_helper = require("@prisma/generator-helper");
|
27
28
|
var Generator = class {
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "options");
|
29
|
+
manifest = null;
|
30
|
+
config;
|
31
|
+
options;
|
32
|
+
constructor(config) {
|
33
33
|
this.config = config;
|
34
|
-
this.generatorProcess = new import_generator_helper.GeneratorProcess(executablePath, { isNode });
|
35
34
|
}
|
36
35
|
async init() {
|
37
|
-
await this.
|
38
|
-
this.manifest = await this.
|
39
|
-
}
|
40
|
-
stop() {
|
41
|
-
this.generatorProcess.stop();
|
36
|
+
await this.initImpl();
|
37
|
+
this.manifest = await this.getManifest();
|
42
38
|
}
|
43
39
|
generate() {
|
44
40
|
if (!this.options) {
|
45
41
|
throw new Error(`Please first run .setOptions() on the Generator to initialize the options`);
|
46
42
|
}
|
47
|
-
return this.
|
43
|
+
return this.generateImpl(this.options);
|
48
44
|
}
|
49
45
|
setOptions(options) {
|
50
46
|
this.options = options;
|
@@ -71,3 +67,39 @@ var Generator = class {
|
|
71
67
|
return (0, import_chunk_IOIAK7V7.parseEnvValue)(this.config.provider);
|
72
68
|
}
|
73
69
|
};
|
70
|
+
var JsonRpcGenerator = class extends Generator {
|
71
|
+
#generatorProcess;
|
72
|
+
constructor(executablePath, config, isNode) {
|
73
|
+
super(config);
|
74
|
+
this.#generatorProcess = new import_generator_helper.GeneratorProcess(executablePath, { isNode });
|
75
|
+
}
|
76
|
+
async initImpl() {
|
77
|
+
await this.#generatorProcess.init();
|
78
|
+
}
|
79
|
+
async getManifest() {
|
80
|
+
return await this.#generatorProcess.getManifest(this.config);
|
81
|
+
}
|
82
|
+
async generateImpl(options) {
|
83
|
+
await this.#generatorProcess.generate(options);
|
84
|
+
}
|
85
|
+
stop() {
|
86
|
+
this.#generatorProcess.stop();
|
87
|
+
}
|
88
|
+
};
|
89
|
+
var InProcessGenerator = class extends Generator {
|
90
|
+
#generator;
|
91
|
+
constructor(config, generator) {
|
92
|
+
super(config);
|
93
|
+
this.#generator = generator;
|
94
|
+
}
|
95
|
+
async initImpl() {
|
96
|
+
}
|
97
|
+
async getManifest() {
|
98
|
+
return await this.#generator.getManifest(this.config);
|
99
|
+
}
|
100
|
+
async generateImpl(options) {
|
101
|
+
await this.#generator.generate(options);
|
102
|
+
}
|
103
|
+
stop() {
|
104
|
+
}
|
105
|
+
};
|
@@ -26,14 +26,14 @@ 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_CR3XKUEA_exports = {};
|
30
|
+
__export(chunk_CR3XKUEA_exports, {
|
31
31
|
isCurrentBinInstalledGlobally: () => isCurrentBinInstalledGlobally
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
34
|
-
var
|
33
|
+
module.exports = __toCommonJS(chunk_CR3XKUEA_exports);
|
34
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
35
35
|
var import_fs = __toESM(require("fs"));
|
36
|
-
var require_ini = (0,
|
36
|
+
var require_ini = (0, import_chunk_4VNS5WPM.__commonJS)({
|
37
37
|
"../../node_modules/.pnpm/ini@2.0.0/node_modules/ini/ini.js"(exports, module2) {
|
38
38
|
"use strict";
|
39
39
|
var { hasOwnProperty } = Object.prototype;
|
@@ -186,12 +186,12 @@ var require_ini = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
186
186
|
};
|
187
187
|
}
|
188
188
|
});
|
189
|
-
var require_global_dirs = (0,
|
189
|
+
var require_global_dirs = (0, import_chunk_4VNS5WPM.__commonJS)({
|
190
190
|
"../../node_modules/.pnpm/global-dirs@4.0.0/node_modules/global-dirs/index.js"(exports) {
|
191
191
|
"use strict";
|
192
|
-
var path = (0,
|
193
|
-
var os = (0,
|
194
|
-
var fs2 = (0,
|
192
|
+
var path = (0, import_chunk_4VNS5WPM.__require)("path");
|
193
|
+
var os = (0, import_chunk_4VNS5WPM.__require)("os");
|
194
|
+
var fs2 = (0, import_chunk_4VNS5WPM.__require)("fs");
|
195
195
|
var ini = require_ini();
|
196
196
|
var isWindows = process.platform === "win32";
|
197
197
|
var readRc = (filePath) => {
|
@@ -282,7 +282,7 @@ var require_global_dirs = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
282
282
|
exports.yarn.binaries = path.join(exports.yarn.packages, ".bin");
|
283
283
|
}
|
284
284
|
});
|
285
|
-
var import_global_dirs = (0,
|
285
|
+
var import_global_dirs = (0, import_chunk_4VNS5WPM.__toESM)(require_global_dirs());
|
286
286
|
function isCurrentBinInstalledGlobally() {
|
287
287
|
try {
|
288
288
|
const realPrismaPath = import_fs.default.realpathSync(process.argv[1]);
|
@@ -16,12 +16,12 @@ 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_CRVLHWC5_exports = {};
|
20
|
+
__export(chunk_CRVLHWC5_exports, {
|
21
21
|
extractPreviewFeatures: () => extractPreviewFeatures
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_CRVLHWC5_exports);
|
24
24
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
25
|
-
function extractPreviewFeatures(
|
26
|
-
return
|
25
|
+
function extractPreviewFeatures(generators) {
|
26
|
+
return generators.find((g) => (0, import_chunk_IOIAK7V7.parseEnvValue)(g.provider) === "prisma-client-js")?.previewFeatures || [];
|
27
27
|
}
|
@@ -26,18 +26,18 @@ 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_D4VDA2TZ_exports = {};
|
30
|
+
__export(chunk_D4VDA2TZ_exports, {
|
31
31
|
locateLocalCloudflareD1: () => locateLocalCloudflareD1
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
33
|
+
module.exports = __toCommonJS(chunk_D4VDA2TZ_exports);
|
34
34
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
35
|
-
var
|
36
|
-
var
|
35
|
+
var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
|
36
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
37
37
|
var import_node_path = __toESM(require("node:path"));
|
38
38
|
var import_node_process = __toESM(require("node:process"));
|
39
|
-
var import_fast_glob = (0,
|
40
|
-
var import_globby = (0,
|
39
|
+
var import_fast_glob = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_out)());
|
40
|
+
var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_globby)());
|
41
41
|
var defaultD1DirPath = import_node_path.default.join(".wrangler", "state", "v3", "d1", "miniflare-D1DatabaseObject");
|
42
42
|
async function locateLocalCloudflareD1({ arg }) {
|
43
43
|
const cwd = import_node_process.default.cwd();
|
@@ -26,16 +26,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_D4VZUY3O_exports = {};
|
30
|
+
__export(chunk_D4VZUY3O_exports, {
|
31
31
|
arg: () => arg,
|
32
32
|
format: () => format,
|
33
33
|
isError: () => isError
|
34
34
|
});
|
35
|
-
module.exports = __toCommonJS(
|
36
|
-
var
|
35
|
+
module.exports = __toCommonJS(chunk_D4VZUY3O_exports);
|
36
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
37
37
|
var import_arg = __toESM(require("arg"));
|
38
|
-
var require_min_indent = (0,
|
38
|
+
var require_min_indent = (0, import_chunk_4VNS5WPM.__commonJS)({
|
39
39
|
"../../node_modules/.pnpm/min-indent@1.0.1/node_modules/min-indent/index.js"(exports, module2) {
|
40
40
|
"use strict";
|
41
41
|
module2.exports = (string) => {
|
@@ -47,7 +47,7 @@ var require_min_indent = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
47
47
|
};
|
48
48
|
}
|
49
49
|
});
|
50
|
-
var import_min_indent = (0,
|
50
|
+
var import_min_indent = (0, import_chunk_4VNS5WPM.__toESM)(require_min_indent(), 1);
|
51
51
|
function stripIndent(string) {
|
52
52
|
const indent = (0, import_min_indent.default)(string);
|
53
53
|
if (indent === 0) {
|
@@ -16,20 +16,20 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
return to;
|
17
17
|
};
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
var
|
20
|
-
__export(
|
19
|
+
var chunk_DKSUHQGA_exports = {};
|
20
|
+
__export(chunk_DKSUHQGA_exports, {
|
21
21
|
SchemaEngineExitCode: () => SchemaEngineExitCode,
|
22
22
|
canConnectToDatabase: () => canConnectToDatabase,
|
23
23
|
createDatabase: () => createDatabase,
|
24
24
|
dropDatabase: () => dropDatabase,
|
25
25
|
execaCommand: () => execaCommand
|
26
26
|
});
|
27
|
-
module.exports = __toCommonJS(
|
28
|
-
var
|
29
|
-
var
|
30
|
-
var
|
27
|
+
module.exports = __toCommonJS(chunk_DKSUHQGA_exports);
|
28
|
+
var import_chunk_ETYWYJBX = require("./chunk-ETYWYJBX.js");
|
29
|
+
var import_chunk_HG3YOAAE = require("./chunk-HG3YOAAE.js");
|
30
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
31
31
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
32
|
-
var import_execa = (0,
|
32
|
+
var import_execa = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_ETYWYJBX.require_execa)());
|
33
33
|
var SchemaEngineExitCode = /* @__PURE__ */ ((SchemaEngineExitCode2) => {
|
34
34
|
SchemaEngineExitCode2[SchemaEngineExitCode2["Success"] = 0] = "Success";
|
35
35
|
SchemaEngineExitCode2[SchemaEngineExitCode2["Error"] = 1] = "Error";
|
@@ -141,7 +141,7 @@ async function execaCommand({
|
|
141
141
|
schemaEnginePath,
|
142
142
|
engineCommandName
|
143
143
|
}) {
|
144
|
-
schemaEnginePath = schemaEnginePath || await (0,
|
144
|
+
schemaEnginePath = schemaEnginePath || await (0, import_chunk_HG3YOAAE.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
|
145
145
|
try {
|
146
146
|
return await (0, import_execa.default)(schemaEnginePath, ["cli", "--datasource", connectionString, engineCommandName], {
|
147
147
|
cwd,
|
@@ -16,31 +16,19 @@ 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_DODIJPCS_exports = {};
|
20
|
+
__export(chunk_DODIJPCS_exports, {
|
21
|
+
binaryTargetRegex: () => binaryTargetRegex
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
return true;
|
23
|
+
module.exports = __toCommonJS(chunk_DODIJPCS_exports);
|
24
|
+
var import_get_platform = require("@prisma/get-platform");
|
25
|
+
function escapeStringRegexp(string) {
|
26
|
+
if (typeof string !== "string") {
|
27
|
+
throw new TypeError("Expected a string");
|
29
28
|
}
|
30
|
-
|
31
|
-
return false;
|
32
|
-
}
|
33
|
-
if (minor1 < minor2) {
|
34
|
-
return true;
|
35
|
-
}
|
36
|
-
if (minor1 > minor2) {
|
37
|
-
return false;
|
38
|
-
}
|
39
|
-
if (patch1 < patch2) {
|
40
|
-
return true;
|
41
|
-
}
|
42
|
-
if (patch1 > patch2) {
|
43
|
-
return false;
|
44
|
-
}
|
45
|
-
return false;
|
29
|
+
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
46
30
|
}
|
31
|
+
var binaryTargetRegex = new RegExp(
|
32
|
+
"(" + [...import_get_platform.binaryTargets].sort((a, b) => b.length - a.length).map((p) => escapeStringRegexp(p)).join("|") + ")",
|
33
|
+
"g"
|
34
|
+
);
|
@@ -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_DTPFRZWV_exports = {};
|
20
|
+
__export(chunk_DTPFRZWV_exports, {
|
21
21
|
warnOnce: () => warnOnce
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_DTPFRZWV_exports);
|
24
|
+
var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
|
25
25
|
var alreadyWarned = /* @__PURE__ */ new Set();
|
26
26
|
var warnOnce = (key, message, ...args) => {
|
27
27
|
if (!alreadyWarned.has(key)) {
|
28
28
|
alreadyWarned.add(key);
|
29
|
-
(0,
|
29
|
+
(0, import_chunk_ZJWZK45Z.warn)(message, ...args);
|
30
30
|
}
|
31
31
|
};
|
@@ -26,21 +26,21 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_EPXBOIA5_exports = {};
|
30
|
+
__export(chunk_EPXBOIA5_exports, {
|
31
31
|
getBinaryPathsByVersion: () => getBinaryPathsByVersion
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
33
|
+
module.exports = __toCommonJS(chunk_EPXBOIA5_exports);
|
34
34
|
var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
|
35
35
|
var import_chunk_4CGPN5SR = require("./chunk-4CGPN5SR.js");
|
36
36
|
var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
|
37
37
|
var import_chunk_7B5PXS6N = require("./chunk-7B5PXS6N.js");
|
38
|
-
var
|
39
|
-
var
|
38
|
+
var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
|
39
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
40
40
|
var import_engines = require("@prisma/engines");
|
41
41
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
42
42
|
var import_path = __toESM2(require("path"));
|
43
|
-
var import_fs_extra = (0,
|
43
|
+
var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_IDINCQMN.require_lib)());
|
44
44
|
async function getBinaryPathsByVersion({
|
45
45
|
neededVersions,
|
46
46
|
binaryTarget,
|