UNPKG

@ryunen344/danger-plugin-jacoco

Version:
18 lines 693 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.XmlProcessor = void 0; const mapper_1 = require("../../model/jacoco/mapper"); const fast_xml_parser_1 = require("fast-xml-parser"); class XmlProcessor { static xmlOption = { ignoreAttributes: false, attributeNamePrefix: "", allowBooleanAttributes: true, parseAttributeValue: true, parseTagValue: true, }; static parser = new fast_xml_parser_1.XMLParser(this.xmlOption); static importXml = (file) => mapper_1.JaCoCoMapper.toJaCoCo(JSON.stringify(this.parser.parse(file))); } exports.XmlProcessor = XmlProcessor; //# sourceMappingURL=xml-processor.js.map