@prisma/internals 5.23.0-integration-otel-peer-deps.1 → 5.23.0-integration-engines-5-23-0-6-integration-enum-mapped-values-cc1d5ee45ff9a116165edca8ab47690e5133baf0.2

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.
Files changed (50) hide show
  1. package/dist/{chunk-5UACJAAB.js → chunk-2MQ6VKNW.js} +8 -8
  2. package/dist/{chunk-Z6NMDIG3.js → chunk-3BBE3OER.js} +5 -5
  3. package/dist/{chunk-LIB5PV7H.js → chunk-4D3OLD2H.js} +5 -5
  4. package/dist/{chunk-MA5DHOZQ.js → chunk-4RISS5SJ.js} +19 -19
  5. package/dist/{chunk-PK7HIANT.js → chunk-4WZXC44X.js} +4 -4
  6. package/dist/{chunk-FBZ2C4MS.js → chunk-7L4LC3WC.js} +5 -5
  7. package/dist/{chunk-2A3J5VY6.js → chunk-CACPVTXR.js} +5 -5
  8. package/dist/{chunk-LZRPG62W.js → chunk-CAOAHTWU.js} +5 -5
  9. package/dist/{chunk-7NNOHWLC.js → chunk-D2OKAYOV.js} +795 -24
  10. package/dist/{chunk-VXYOCPJC.js → chunk-FQYS2INM.js} +8 -8
  11. package/dist/{chunk-SZKPXBSP.js → chunk-FUQCOATA.js} +7 -7
  12. package/dist/{chunk-4ILHL6B6.js → chunk-K56LBAHF.js} +5 -5
  13. package/dist/{chunk-INHGTPT5.js → chunk-MVX52NYF.js} +8 -8
  14. package/dist/{chunk-H4XGFUUS.js → chunk-O4XBR3IH.js} +8 -8
  15. package/dist/{chunk-ICKVHNU6.js → chunk-PSVA3ZF4.js} +5 -5
  16. package/dist/{chunk-QEVSPE5U.js → chunk-SCP6UT5D.js} +5 -5
  17. package/dist/{chunk-T3WESZW2.js → chunk-V2K6EBMD.js} +8 -8
  18. package/dist/{chunk-4M4LPJPC.js → chunk-W32AO3T2.js} +5 -5
  19. package/dist/{chunk-CSRUIX22.js → chunk-WJBKED7Q.js} +8 -8
  20. package/dist/{chunk-VFZ7Y4Z5.js → chunk-YKYB465H.js} +7 -7
  21. package/dist/cli/checkUnsupportedDataProxy.js +12 -12
  22. package/dist/cli/getSchema.js +17 -17
  23. package/dist/cli/hashes.js +12 -12
  24. package/dist/engine-commands/errorHelpers.js +4 -4
  25. package/dist/engine-commands/formatSchema.js +11 -11
  26. package/dist/engine-commands/getConfig.js +10 -10
  27. package/dist/engine-commands/getDmmf.js +7 -7
  28. package/dist/engine-commands/index.js +20 -20
  29. package/dist/engine-commands/lintSchema.js +8 -8
  30. package/dist/engine-commands/mergeSchemas.js +7 -7
  31. package/dist/engine-commands/validate.js +7 -7
  32. package/dist/get-generators/generatorResolvers/generatorResolvers.js +11 -11
  33. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +11 -11
  34. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +11 -11
  35. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +12 -12
  36. package/dist/get-generators/getGenerators.js +14 -14
  37. package/dist/index.js +39 -39
  38. package/dist/sendPanic.js +11 -11
  39. package/dist/utils/getEnvPaths.js +11 -11
  40. package/dist/utils/getVersionFromPackageJson.js +3 -3
  41. package/dist/utils/handlePanic.js +11 -11
  42. package/dist/utils/loadEnvFile.js +11 -11
  43. package/dist/wasm.js +4 -4
  44. package/package.json +8 -8
  45. package/dist/chunk-2DXAGCPS.js +0 -177
  46. package/dist/chunk-5XRQ7ONW.js +0 -122
  47. package/dist/chunk-QIVUAERL.js +0 -2202
  48. package/dist/chunk-QJZIYUVB.js +0 -110
  49. package/dist/chunk-TFSZCVKC.js +0 -166
  50. package/dist/chunk-V2VWODV3.js +0 -54
@@ -1,122 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_5XRQ7ONW_exports = {};
30
- __export(chunk_5XRQ7ONW_exports, {
31
- getBinaryPathsByVersion: () => getBinaryPathsByVersion
32
- });
33
- module.exports = __toCommonJS(chunk_5XRQ7ONW_exports);
34
- var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
35
- var import_chunk_4CGPN5SR = require("./chunk-4CGPN5SR.js");
36
- var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
37
- var import_chunk_7B5PXS6N = require("./chunk-7B5PXS6N.js");
38
- var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
39
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
40
- var import_engines = require("@prisma/engines");
41
- var import_fetch_engine = require("@prisma/fetch-engine");
42
- var import_path = __toESM2(require("path"));
43
- var import_fs_extra = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_QIVUAERL.require_lib)());
44
- async function getBinaryPathsByVersion({
45
- neededVersions,
46
- binaryTarget,
47
- version,
48
- printDownloadProgress,
49
- skipDownload,
50
- binaryPathsOverride
51
- }) {
52
- const binaryPathsByVersion = /* @__PURE__ */ Object.create(null);
53
- for (const currentVersion in neededVersions) {
54
- binaryPathsByVersion[currentVersion] = {};
55
- const neededVersion = neededVersions[currentVersion];
56
- if (neededVersion.binaryTargets.length === 0) {
57
- neededVersion.binaryTargets = [{ fromEnvVar: null, value: binaryTarget }];
58
- }
59
- if (process.env.NETLIFY) {
60
- const isNodeMajor20OrUp = parseInt(process.versions.node.split(".")[0]) >= 20;
61
- const awsRuntimeVersion = (0, import_chunk_2SDPW6AX.parseAWSNodejsRuntimeEnvVarVersion)();
62
- const isRuntimeEnvVar20OrUp = awsRuntimeVersion && awsRuntimeVersion >= 20;
63
- const isRuntimeEnvVar18OrDown = awsRuntimeVersion && awsRuntimeVersion <= 18;
64
- const isRhelBinaryTarget1xInNeededVersions = neededVersion.binaryTargets.find(
65
- (object) => object.value === "rhel-openssl-1.0.x"
66
- );
67
- const isRhelBinaryTarget3xInNeededVersions = neededVersion.binaryTargets.find(
68
- (object) => object.value === "rhel-openssl-3.0.x"
69
- );
70
- if (!isRhelBinaryTarget3xInNeededVersions && (isNodeMajor20OrUp || isRuntimeEnvVar20OrUp) && !isRuntimeEnvVar18OrDown) {
71
- neededVersion.binaryTargets.push({
72
- fromEnvVar: null,
73
- value: "rhel-openssl-3.0.x"
74
- });
75
- } else if (!isRhelBinaryTarget1xInNeededVersions) {
76
- neededVersion.binaryTargets.push({
77
- fromEnvVar: null,
78
- value: "rhel-openssl-1.0.x"
79
- });
80
- }
81
- }
82
- let binaryTargetBaseDir = eval(`require('path').join(__dirname, '..')`);
83
- if (version !== currentVersion) {
84
- binaryTargetBaseDir = import_path.default.join(binaryTargetBaseDir, `./engines/${currentVersion}/`);
85
- await (0, import_fs_extra.ensureDir)(binaryTargetBaseDir).catch((e) => console.error(e));
86
- }
87
- const binariesConfig = neededVersion.engines.reduce((acc, curr) => {
88
- if (!binaryPathsOverride?.[curr]) {
89
- acc[(0, import_chunk_4CGPN5SR.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
90
- }
91
- return acc;
92
- }, /* @__PURE__ */ Object.create(null));
93
- if (Object.values(binariesConfig).length > 0) {
94
- const binaryTargets = neededVersion.binaryTargets.map(
95
- (binaryTarget2) => binaryTarget2.value
96
- );
97
- const downloadParams = {
98
- binaries: binariesConfig,
99
- binaryTargets,
100
- showProgress: typeof printDownloadProgress === "boolean" ? printDownloadProgress : true,
101
- version: currentVersion && currentVersion !== "latest" ? currentVersion : import_engines.enginesVersion,
102
- skipDownload
103
- };
104
- const binaryPathsWithEngineType = await (0, import_fetch_engine.download)(downloadParams);
105
- const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_RS2R7COT.binaryTypeToEngineType);
106
- binaryPathsByVersion[currentVersion] = binaryPaths;
107
- }
108
- if (binaryPathsOverride) {
109
- const overrideEngines = Object.keys(binaryPathsOverride);
110
- const enginesCoveredByOverride = neededVersion.engines.filter((engine) => overrideEngines.includes(engine));
111
- if (enginesCoveredByOverride.length > 0) {
112
- for (const engine of enginesCoveredByOverride) {
113
- const enginePath = binaryPathsOverride[engine];
114
- binaryPathsByVersion[currentVersion][engine] = {
115
- [binaryTarget]: enginePath
116
- };
117
- }
118
- }
119
- }
120
- }
121
- return binaryPathsByVersion;
122
- }