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

65 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 10821
// Function ID: 10822
2026-07-20 16:05:17 +00:00
// Name: stripSensitiveLoggingData
2026-07-29 08:29:29 +00:00
// Dependencies: [676, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 10821 (stripSensitiveLoggingData)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const RPCCommands = ME.RPCCommands;
2026-07-29 08:29:29 +00:00
let c1 = "<removed>";
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/rpc/helpers/stripSensitiveLoggingData.tsx");
2026-07-20 16:05:17 +00:00
export default function stripSensitiveLoggingData(arg0) {
2026-07-29 08:29:29 +00:00
let 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-07-29 08:29:29 +00:00
let merged3 = obj;
2026-07-20 16:05:17 +00:00
if (!tmp2) {
2026-07-29 08:29:29 +00:00
const data = merged3.data;
2026-08-04 21:03:28 +00:00
let tmp13 = typeof data === "object";
if (typeof data === "object") {
tmp13 = typeof merged3.cmd === "string";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (!tmp13) {
return merged3;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const cmd2 = merged3.cmd;
2026-07-20 16:05:17 +00:00
if (RPCCommands.AUTHENTICATE !== cmd2) {
if (RPCCommands.GET_PROVIDER_ACCESS_TOKEN !== cmd2) {
2026-07-29 08:29:29 +00:00
obj = {};
const merged1 = Object.assign(merged3);
2026-07-20 16:05:17 +00:00
}
}
obj = {};
2026-07-29 08:29:29 +00:00
const merged2 = Object.assign(merged3);
2026-08-24 06:08:38 +00:00
obj1 = {};
2026-07-29 08:29:29 +00:00
merged3 = Object.assign(merged3.data);
obj1.access_token = c1;
obj.data = obj1;
2026-07-20 16:05:17 +00:00
}
} else {
2026-07-29 08:29:29 +00:00
const cmd = obj.cmd;
2026-07-20 16:05:17 +00:00
if (RPCCommands.AUTHENTICATE !== cmd) {
if (RPCCommands.GET_PROVIDER_ACCESS_TOKEN !== cmd) {
2026-07-29 08:29:29 +00:00
let obj2 = {};
const merged4 = Object.assign(obj);
2026-07-20 16:05:17 +00:00
}
}
const obj3 = {};
2026-07-29 08:29:29 +00:00
const merged5 = Object.assign(obj);
const obj4 = {};
const merged6 = Object.assign(obj.args);
obj = c1;
obj4.access_token = c1;
obj3.args = obj4;
obj2 = obj3;
2026-07-20 16:05:17 +00:00
}
};