decord/alpha/source/modules/rpc/helpers/stripSensitiveLoggingData.tsx

66 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 10893
// Function ID: 10894
2026-07-20 16:05:17 +00:00
// Name: stripSensitiveLoggingData
2026-10-03 08:58:59 +00:00
// Dependencies: [1085, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-09 10:00:15 +00:00
// Module 10893 (stripSensitiveLoggingData)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const RPCCommands = Constants.RPCCommands;
2026-07-29 08:29:29 +00:00
let c1 = "<removed>";
const result = size.fileFinishedImporting("modules/rpc/helpers/stripSensitiveLoggingData.tsx");
2026-07-20 16:05:17 +00:00
export default function stripSensitiveLoggingData(arg0) {
2026-10-03 08:58:59 +00:00
let obj4;
let obj7;
const obj = {};
2026-07-20 16:05:17 +00:00
const merged = Object.assign(arg0);
2026-07-29 08:29:29 +00:00
const args = obj.args;
2026-08-04 21:03:28 +00:00
let tmp2 = typeof args === "object";
if (typeof args === "object") {
tmp2 = typeof obj.cmd === "string";
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
let tmp3 = obj;
if (tmp2) {
2026-07-29 08:29:29 +00:00
const cmd = obj.cmd;
2026-07-20 16:05:17 +00:00
if (RPCCommands.AUTHENTICATE !== cmd) {
2026-10-03 08:58:59 +00:00
let obj2;
2026-07-20 16:05:17 +00:00
if (RPCCommands.GET_PROVIDER_ACCESS_TOKEN !== cmd) {
2026-10-03 08:58:59 +00:00
obj2 = {};
const merged1 = Object.assign(obj);
}
tmp3 = obj2;
}
const obj3 = { args: obj4 };
const merged2 = Object.assign(obj);
obj4 = { access_token };
const merged3 = Object.assign(obj.args);
obj2 = obj3;
}
const data = tmp3.data;
let tmp13 = typeof data === "object";
if (typeof data === "object") {
tmp13 = typeof tmp3.cmd === "string";
}
let tmp14 = tmp3;
if (tmp13) {
const cmd2 = tmp3.cmd;
if (RPCCommands.AUTHENTICATE !== cmd2) {
let obj5;
if (RPCCommands.GET_PROVIDER_ACCESS_TOKEN !== cmd2) {
obj5 = {};
const merged4 = Object.assign(tmp3);
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
tmp14 = obj5;
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
const obj6 = { data: obj7 };
const merged5 = Object.assign(tmp3);
obj7 = { access_token };
const merged6 = Object.assign(tmp3.data);
obj5 = obj6;
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
return tmp14;
2026-07-20 16:05:17 +00:00
};