Files
discord-decomp/_bundle/Module1184.js
T
2026-11-01 12:12:55 +02:00

25 lines
684 B
JavaScript

// Metro module 1184 (f1185).
import { RN_GLOBAL_OBJ } from "./Module816";
import { notWeb } from "./Module1002";
export function createReleaseFromGlobalReleaseConstants() {
const SENTRY_RELEASE = RN_GLOBAL_OBJ.SENTRY_RELEASE;
if (SENTRY_RELEASE) {
const { name, version } = SENTRY_RELEASE;
if (name && version) {
return `${name}@${version}`;
}
}
}
export function getDefaultRelease() {
if (notWeb()) {
return void 0;
}
const SENTRY_RELEASE = RN_GLOBAL_OBJ.SENTRY_RELEASE;
let r14 = void 0;
if (SENTRY_RELEASE) {
const { name, version } = SENTRY_RELEASE;
r14 = name ? version ? `${name}@${version}` : void 0 : void 0;
}
return r14;
}