decord/source/modules/gateway/PrivateChannelHidingExperiment.tsx

28 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 13142
// Function ID: 13143
2026-07-20 16:05:17 +00:00
// Name: getCachedPrivateChannelObfuscation
2026-08-25 06:04:03 +00:00
// Dependencies: [1472, 2, 13143]
2026-07-20 16:05:17 +00:00
// Exports: isChannelMetadataIntegrityCheckEnabled, isChannelMetadataObfuscationEnabled, useIsChannelMetadataObfuscationEnabled
2026-08-25 06:04:03 +00:00
// Module 13142 (getCachedPrivateChannelObfuscation)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-08-25 06:04:03 +00:00
import PRIVATE_CHANNEL_OBFUSCATION_KEY from "PRIVATE_CHANNEL_OBFUSCATION_KEY" /* 13143 */;
2026-08-24 06:08:38 +00:00
import ApexExperiment from "ApexExperiment" /* 1472 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
const obj = { 1: null, 2: { enableObfuscation: true, enableIntegrityCheck: false }, 3: { enableObfuscation: true, enableIntegrityCheck: true } };
obj[3] = { enableObfuscation: false, enableIntegrityCheck: false };
let closure_0 = ApexExperiment.createApexExperiment({ name: "2026-02-private-channel-hiding", kind: "user", defaultConfig: { enableObfuscation: false, enableIntegrityCheck: false }, variations: obj });
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/gateway/PrivateChannelHidingExperiment.tsx");
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
export const getCachedPrivateChannelObfuscation = PRIVATE_CHANNEL_OBFUSCATION_KEY.getCachedPrivateChannelObfuscation;
export const PRIVATE_CHANNEL_OBFUSCATION_KEY = PRIVATE_CHANNEL_OBFUSCATION_KEY.PRIVATE_CHANNEL_OBFUSCATION_KEY;
2026-07-20 16:05:17 +00:00
export const isChannelMetadataObfuscationEnabled = function isChannelMetadataObfuscationEnabled(GatewaySocket) {
return store.getConfig({ location: GatewaySocket }).enableObfuscation;
};
export const useIsChannelMetadataObfuscationEnabled = function useIsChannelMetadataObfuscationEnabled(App) {
return store.useConfig({ location: App }).enableObfuscation;
};
export const isChannelMetadataIntegrityCheckEnabled = function isChannelMetadataIntegrityCheckEnabled(scheduleIntegrityCheck) {
return store.getConfig({ location: scheduleIntegrityCheck }).enableIntegrityCheck;
};