@vtex/api
Version:
VTEX I/O API client
23 lines (22 loc) • 535 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.cleanLog = void 0;
const json_1 = require("./json");
const SENSITIVE_FIELDS = [
'auth',
'authorization',
'authtoken',
'cookie',
'proxy-authorization',
'rawheaders',
'token',
'vtexidclientautcookie',
'x-vtex-api-appkey',
'x-vtex-api-apptoken',
'x-vtex-credential',
'x-vtex-session',
];
const cleanLog = (log) => {
return (0, json_1.cleanJson)(log, SENSITIVE_FIELDS);
};
exports.cleanLog = cleanLog;