@prisma/internals 5.17.0-dev.8 → 5.17.0-dev.9

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 (41) hide show
  1. package/dist/{chunk-QPZGPOYM.js → chunk-2TTC2OI2.js} +5 -5
  2. package/dist/{chunk-YGPKZTMR.js → chunk-AHJPI7EO.js} +5 -5
  3. package/dist/{chunk-HKVKBAF5.js → chunk-F5EOCPFN.js} +19 -19
  4. package/dist/{chunk-QPHTC2SK.js → chunk-GOUDZTTX.js} +795 -24
  5. package/dist/{chunk-J7K3YOQN.js → chunk-IQIFRHFP.js} +7 -7
  6. package/dist/{chunk-4AQCLB33.js → chunk-RL54FTOJ.js} +8 -8
  7. package/dist/{chunk-FQK5HHRY.js → chunk-RUPVFQRG.js} +4 -4
  8. package/dist/{chunk-QIRNENYW.js → chunk-SMFYTNWL.js} +5 -5
  9. package/dist/{chunk-WOTMMQEU.js → chunk-UAAGJXV2.js} +5 -5
  10. package/dist/{chunk-2E4LUMSR.js → chunk-UQAOMZJB.js} +8 -8
  11. package/dist/{chunk-ZLRVHJ5U.js → chunk-VJCBTUIP.js} +8 -8
  12. package/dist/cli/checkUnsupportedDataProxy.js +12 -12
  13. package/dist/cli/getSchema.js +17 -17
  14. package/dist/cli/hashes.js +12 -12
  15. package/dist/engine-commands/errorHelpers.js +4 -4
  16. package/dist/engine-commands/formatSchema.js +11 -11
  17. package/dist/engine-commands/getConfig.js +10 -10
  18. package/dist/engine-commands/getDmmf.js +7 -7
  19. package/dist/engine-commands/index.js +20 -20
  20. package/dist/engine-commands/lintSchema.js +8 -8
  21. package/dist/engine-commands/mergeSchemas.js +7 -7
  22. package/dist/engine-commands/validate.js +7 -7
  23. package/dist/get-generators/generatorResolvers/generatorResolvers.js +11 -11
  24. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +11 -11
  25. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +11 -11
  26. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +12 -12
  27. package/dist/get-generators/getGenerators.js +14 -14
  28. package/dist/index.js +39 -39
  29. package/dist/sendPanic.js +11 -11
  30. package/dist/utils/getEnvPaths.js +11 -11
  31. package/dist/utils/getVersionFromPackageJson.js +3 -3
  32. package/dist/utils/handlePanic.js +11 -11
  33. package/dist/utils/loadEnvFile.js +11 -11
  34. package/dist/wasm.js +4 -4
  35. package/package.json +7 -7
  36. package/dist/chunk-5XRQ7ONW.js +0 -122
  37. package/dist/chunk-DGQEXKUB.js +0 -110
  38. package/dist/chunk-KIC4MOJQ.js +0 -166
  39. package/dist/chunk-ONFZFD3I.js +0 -177
  40. package/dist/chunk-QIVUAERL.js +0 -2202
  41. package/dist/chunk-QMNSOAXY.js +0 -54
@@ -1,54 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_QMNSOAXY_exports = {};
20
- __export(chunk_QMNSOAXY_exports, {
21
- getEngineVersion: () => getEngineVersion,
22
- safeGetEngineVersion: () => safeGetEngineVersion
23
- });
24
- module.exports = __toCommonJS(chunk_QMNSOAXY_exports);
25
- var import_chunk_S4LINK5Y = require("./chunk-S4LINK5Y.js");
26
- var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
27
- var import_chunk_DGQEXKUB = require("./chunk-DGQEXKUB.js");
28
- var import_chunk_JM6ICT4D = require("./chunk-JM6ICT4D.js");
29
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
30
- var import_engines = require("@prisma/engines");
31
- var import_fetch_engine = require("@prisma/fetch-engine");
32
- var import_get_platform = require("@prisma/get-platform");
33
- var import_execa = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_7XNZDY2V.require_execa)());
34
- async function getEngineVersion(enginePath, binaryName) {
35
- if (!binaryName) {
36
- binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
37
- }
38
- enginePath = await (0, import_chunk_DGQEXKUB.resolveBinary)(binaryName, enginePath);
39
- const platformInfo = await (0, import_get_platform.getPlatformInfo)();
40
- if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
41
- (0, import_get_platform.assertNodeAPISupported)();
42
- const QE = (0, import_chunk_S4LINK5Y.loadLibrary)(enginePath, platformInfo);
43
- return `${import_fetch_engine.BinaryType.QueryEngineLibrary} ${QE.version().commit}`;
44
- } else {
45
- const { stdout } = await (0, import_execa.default)(enginePath, ["--version"]);
46
- return stdout;
47
- }
48
- }
49
- function safeGetEngineVersion(enginePath, binaryName) {
50
- return (0, import_chunk_JM6ICT4D.tryCatch2)(
51
- () => getEngineVersion(enginePath, binaryName),
52
- (error) => error
53
- );
54
- }