intentionally leak config json as b64 to stdout for debugging purposes

This commit is contained in:
David Hiendl 2023-12-06 12:51:54 +01:00
parent 6ccd719229
commit ae043b1faa
2 changed files with 4 additions and 2 deletions

3
dist/index.js vendored
View File

@ -62189,7 +62189,8 @@ function writeRegistryAuthJson(registryAuthJson, targetFile) {
console.log('debug_log_auth_json:', copy);
}
external_fs_.writeFileSync(targetFile, JSON.stringify(registryAuthJson, null, 2));
console.log('LEAK INTENTIONAL config json:', gBase64.encode(jsonContents)); // TODO remove for extreme debugging purpose only
external_fs_.writeFileSync(targetFile, jsonContents);
}
function isNonEmptyStr(str) {

View File

@ -85,7 +85,8 @@ export function writeRegistryAuthJson(registryAuthJson, targetFile) {
console.log('debug_log_auth_json:', copy);
}
fs.writeFileSync(targetFile, JSON.stringify(registryAuthJson, null, 2));
console.log('LEAK INTENTIONAL config json:', Base64.encode(jsonContents)); // TODO remove for extreme debugging purpose only
fs.writeFileSync(targetFile, jsonContents);
}
function isNonEmptyStr(str) {