@ui5/task-adaptation
Version:
Custom task for ui5-builder which allows building UI5 Flexibility Adaptation Projects for SAP BTP, Cloud Foundry environment
14 lines • 557 B
JavaScript
import { V2MetadataConverter, V4MetadataConverter } from "../../../dist/bundle.js";
import { JSDOM } from "jsdom";
export default class UI5XmlConverter {
static convertV2(xml) {
return new V2MetadataConverter().convertXMLMetadata(this.getDocument(xml));
}
static convertV4(xml) {
return new V4MetadataConverter().convertXMLMetadata(this.getDocument(xml));
}
static getDocument(xml) {
return (new JSDOM(xml, { contentType: "application/xml" })).window._document;
}
}
//# sourceMappingURL=ui5XmlConverter.js.map