UNPKG

@harmoniclabs/plu-ts-onchain

Version:

An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript

12 lines (11 loc) 534 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.logJson = void 0; var stringify_1 = require("./stringify.js"); function logJson(jsonLike, indent) { var _a; if (indent === void 0) { indent = 4; } var obj = typeof jsonLike !== "undefined" && typeof jsonLike.toJson === "function" ? jsonLike.toJson() : jsonLike; console.log((0, stringify_1.stringify)(obj, undefined, indent), (_a = Error().stack) === null || _a === void 0 ? void 0 : _a.split("\n")[2]); } exports.logJson = logJson;