decord/stable/source/modules/cache/trackCacheSkipped.native.tsx
github-actions 528a3dd5ba chore: update source for stable 345.9
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4745.js (118.4 MB)
2026-09-18 20:18:48 +00:00

32 lines
1 KiB
TypeScript

// Module ID: 7665
// Function ID: 7666
// Name: trackCacheSkipped
// Dependencies: [1074, 1242, 7475, 2]
// Exports: default
// Module 7665 (trackCacheSkipped)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
import TTIAnalyticsUtils from "TTIAnalyticsUtils" /* 7475 */;
import size from "module_2" /* 2 */;
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/cache/trackCacheSkipped.native.tsx");
export default function trackCacheSkipped(reason, message) {
const obj2 = { load_id: null, reason: null, error_message: null, error_stack: null };
const obj = AnalyticsUtilsDefault;
obj2.load_id = TTIAnalyticsUtils.currentLoadId();
obj2.reason = reason;
message = undefined;
if (message != null) {
message = message.message;
}
obj2.error_message = message;
let stack;
if (message != null) {
stack = message.stack;
}
obj2.error_stack = stack;
obj.track(AnalyticEvents.CACHE_STORE_CACHE_SKIPPED, obj2);
};