From db42a2d654ebd4bd2bdf6d043dca3db67482c179 Mon Sep 17 00:00:00 2001 From: Corentin Mors Date: Fri, 1 Sep 2023 16:58:43 +0200 Subject: [PATCH] Use raw JSON for output --- src/command-handlers/passwords.ts | 2 +- src/command-handlers/secureNotes.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command-handlers/passwords.ts b/src/command-handlers/passwords.ts index 4e9fb5ce..f526cdca 100644 --- a/src/command-handlers/passwords.ts +++ b/src/command-handlers/passwords.ts @@ -14,7 +14,7 @@ export const runPassword = async (filters: string[] | null, options: { output: ' const foundCredentials = await findCredentials({ db, filters, secrets }); if (output === 'json') { - console.log(JSON.stringify(foundCredentials, null, 4)); + console.log(JSON.stringify(foundCredentials)); return; } diff --git a/src/command-handlers/secureNotes.ts b/src/command-handlers/secureNotes.ts index 100e6392..1e759f96 100644 --- a/src/command-handlers/secureNotes.ts +++ b/src/command-handlers/secureNotes.ts @@ -49,7 +49,7 @@ export const getNote = async (params: GetSecureNote): Promise => { switch (output) { case 'json': - console.log(JSON.stringify(matchedNotes, null, 4)); + console.log(JSON.stringify(matchedNotes)); break; case 'text': { let selectedNote: VaultNote | null = null;