Files
discord-decomp/sources/by-id/module-01023.js
T
2026-07-28 01:06:53 +03:00

45 lines
1.9 KiB
JavaScript

/* Metro module 1023; source: unknown; dependencies: [826] */
function _fun10677(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1150:6, offset: 0x00d935b7, size: 76 bytes, params: 8, frame: 16
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.DEFAULT_BREADCRUMB_LEVEL = 'info';
exports.breadcrumbFromObject = breadcrumbFromObject;
function breadcrumbFromObject(a0) { // fn#10678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1150:149, offset: 0x00d93603, size: 279 bytes, params: 2, frame: 14
var value;
var Date;
const object = {};
if (typeof a0.type === 'string') {
object.type = a0.type;
}
if (typeof a0.level === 'string') {
value = require(826) /* metro dependency 826 */;
object.level = value.severityLevelFromString(a0.level);
}
if (typeof a0.event_id === 'string') {
object.event_id = a0.event_id;
}
if (typeof a0.category === 'string') {
object.category = a0.category;
}
if (typeof a0.message === 'string') {
object.message = a0.message;
}
if (typeof a0.data === 'object' && a0.data !== null) {
object.data = a0.data;
}
if (typeof a0.timestamp === 'string') {
Date = global.Date;
value = Date.parse(a0.timestamp);
value /= 1000;
if (!global.isNaN(value)) {
object.timestamp = value;
}
}
return object;
}
}
global.__d(_fun10677, 1023, [826]) /* metro module 1023, dependencies: [826] */;