From ac297c15394cbff3a1306433e4f996a83a86b6fd Mon Sep 17 00:00:00 2001 From: Dave Hughes Date: Tue, 7 Sep 2021 19:45:50 -0700 Subject: [PATCH] Use console.dir with options for complete output This wasn't logging the entire BC vax card object because it was too deeply nested for the default `console.log()` behaviour. Replacing `.log(obj)` with `.dir(obj, options)` prints the entire object. --- dump_shc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dump_shc.js b/dump_shc.js index 3cc3920..a2a6372 100644 --- a/dump_shc.js +++ b/dump_shc.js @@ -33,7 +33,7 @@ console.log("-----"); verifyJWS(scannedJWS).then( function (result) { - return decodeJWS(scannedJWS).then((decoded) => console.log(decoded)); + return decodeJWS(scannedJWS).then((decoded) => console.dir(decoded, {depth:null, compact:false})); }, function (e) { console.log("Ooooh crap - this looks like a fake vacinnation proof");