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

61 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 10493
// Function ID: 81262
2026-07-20 16:05:17 +00:00
// Name: stripSensitiveLoggingData
2026-07-23 10:11:24 +00:00
// Dependencies: [653, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-23 10:11:24 +00:00
// Module 10493 (stripSensitiveLoggingData)
import { RPCCommands } from "ME";
const result = require("set").fileFinishedImporting("modules/rpc/helpers/stripSensitiveLoggingData.tsx");
2026-07-20 16:05:17 +00:00
export default function stripSensitiveLoggingData(arg0) {
let str = {};
const merged = Object.assign(arg0);
let tmp2 = "object" === typeof str.args;
if (tmp2) {
tmp2 = "string" === typeof str.cmd;
}
let str3 = str;
if (!tmp2) {
let tmp14 = "object" === typeof str3.data;
if (tmp14) {
tmp14 = "string" === typeof str3.cmd;
}
if (!tmp14) {
return str3;
} else {
const cmd2 = str3.cmd;
if (RPCCommands.AUTHENTICATE !== cmd2) {
if (RPCCommands.GET_PROVIDER_ACCESS_TOKEN !== cmd2) {
let obj = {};
const merged1 = Object.assign(str3);
}
}
obj = {};
const merged2 = Object.assign(str3);
const obj1 = {};
const merged3 = Object.assign(str3.data);
obj1["access_token"] = "<removed>";
str3 = "data";
obj["data"] = obj1;
}
} else {
const cmd = str.cmd;
if (RPCCommands.AUTHENTICATE !== cmd) {
if (RPCCommands.GET_PROVIDER_ACCESS_TOKEN !== cmd) {
obj = {};
const merged4 = Object.assign(str);
}
}
const obj2 = {};
const merged5 = Object.assign(str);
const obj3 = {};
const merged6 = Object.assign(str.args);
obj3["access_token"] = "<removed>";
str = "args";
obj2["args"] = obj3;
obj = obj2;
}
};