diff --git a/package.json b/package.json index ab6e845..c30975b 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "fs-extra": "^10.1.0", - "@cerc-io/laconic-sdk": "^0.1.11", + "@cerc-io/laconic-sdk": "^0.1.12", "js-yaml": "^3.14.1", "lodash": "^4.17.21", "lodash-clean": "^2.2.3", diff --git a/src/util/output.ts b/src/util/output.ts index 15f449b..cac793e 100644 --- a/src/util/output.ts +++ b/src/util/output.ts @@ -11,6 +11,12 @@ export const queryOutput = (result: any, output: unknown) => { if (output=="json"){ console.log(JSON.parse(JSON.stringify(result))); } else { - console.log(JSON.stringify(result,undefined,2)); + console.log(JSON.stringify(result, (key, value) => { + try { + return JSON.parse(value) + } catch (e) { + return value; + } + }, 2)); } } diff --git a/yarn.lock b/yarn.lock index c94efbd..9ff000d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@cerc-io/laconic-sdk@^0.1.11": - version "0.1.11" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Flaconic-sdk/-/0.1.11/laconic-sdk-0.1.11.tgz#a93c99c2e80ad7f41bbf69549126234c8690d093" - integrity sha512-whNSXv0K5nZnDJACGMx66QY6Kewq7scaxqrl5/94NRxDfBLGRAVvqJa6z2ZoZjySB6f2T2Dsez7znAHt9x2oUg== +"@cerc-io/laconic-sdk@^0.1.12": + version "0.1.12" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Flaconic-sdk/-/0.1.12/laconic-sdk-0.1.12.tgz#1507526b95ebdb6827fc569f83a2da3cca17a41d" + integrity sha512-oLkX062ohOmk9RnAoeFYyMAOF/jnBjqYEpBPzJy1A5ukrWTT01Rx94f4UKinQlvrRXgcUqDgjhCGz9zpcUtpoQ== dependencies: "@cosmjs/amino" "^0.28.1" "@cosmjs/crypto" "^0.28.1"