"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseJSON = exports.parseHCL = void 0;
const tslib_1 = require("tslib");
const hcl_parser = tslib_1.__importStar(require("hcl2-parser"));
function parseHCL(content) {
    try {
        return hcl_parser.parseToObject(content)[0];
    }
    catch (err) /* istanbul ignore next */ {
        return null;
    }
}
exports.parseHCL = parseHCL;
function parseJSON(content) {
    return JSON.parse(content);
}
exports.parseJSON = parseJSON;
//# sourceMappingURL=index.js.map