28 lines
799 B
JavaScript
28 lines
799 B
JavaScript
// Module ID: 944
|
|
// Function ID: 945
|
|
// Name: set
|
|
// Dependencies: [940]
|
|
// Exports: filterMcpPiiFromSpanData
|
|
|
|
// Module 944 (set)
|
|
import _mod940 from "module_940" /* 940 */;
|
|
|
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
const items = [_mod940.CLIENT_ADDRESS_ATTRIBUTE, _mod940.CLIENT_PORT_ATTRIBUTE, _mod940.MCP_RESOURCE_URI_ATTRIBUTE];
|
|
const set = new Set(items);
|
|
|
|
export const filterMcpPiiFromSpanData = function filterMcpPiiFromSpanData(arg0, BooleanResult) {
|
|
let reduced = arg0;
|
|
if (!BooleanResult) {
|
|
const _Object = Object;
|
|
const entries = Object.entries(arg0);
|
|
reduced = entries.reduce((arg0, arg1) => {
|
|
[tmp, tmp2] = arg1;
|
|
if (!set.has(tmp)) {
|
|
arg0[tmp] = tmp2;
|
|
}
|
|
return arg0;
|
|
}, {});
|
|
}
|
|
return reduced;
|
|
};
|