From ae043b1faa00f470a60d56ad67b863e07686eeac Mon Sep 17 00:00:00 2001 From: David Hiendl Date: Wed, 6 Dec 2023 12:51:54 +0100 Subject: [PATCH] intentionally leak config json as b64 to stdout for debugging purposes --- dist/index.js | 3 ++- src/lib.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 5b0a87f..be33bb8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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) { diff --git a/src/lib.js b/src/lib.js index 772b243..c06d23c 100644 --- a/src/lib.js +++ b/src/lib.js @@ -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) {