@sap/wing-service-explorer
Advanced tools
Comparing version 1.7.2 to 1.7.3
@@ -17,2 +17,3 @@ import { IChildLogger } from "@vscode-logging/types"; | ||
* @param metadata | ||
* @param logger | ||
*/ | ||
@@ -19,0 +20,0 @@ getMetadataExplorer(metadata: string, logger?: IChildLogger): MetadataExplorerType; |
@@ -29,2 +29,3 @@ "use strict"; | ||
* @param metadata | ||
* @param logger | ||
*/ | ||
@@ -59,7 +60,9 @@ getMetadataExplorer(metadata, logger) { | ||
arrayMode: false, | ||
removeNSPrefix: true, | ||
}; | ||
return fast_xml_parser_1.convertToJson(fast_xml_parser_1.getTraversalObj(metadata, options), options); | ||
const parser = new fast_xml_parser_1.XMLParser(options); | ||
return parser.parse(metadata, true); | ||
} | ||
validateMetadata(metadata) { | ||
const validationError = fast_xml_parser_1.validate(metadata); | ||
const validationError = fast_xml_parser_1.XMLValidator.validate(metadata); | ||
if (validationError === true) { | ||
@@ -66,0 +69,0 @@ this.logger.info("Metadata is validated successfully."); |
{ | ||
"name": "@sap/wing-service-explorer", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"description": "Provide the ability to explore SAP services", | ||
@@ -31,3 +31,3 @@ "license": "See LICENSE.txt", | ||
"@vscode-logging/types": "~0.1.1", | ||
"fast-xml-parser": "3.16.0" | ||
"fast-xml-parser": "4.2.4" | ||
}, | ||
@@ -38,3 +38,3 @@ "devDependencies": { | ||
"@types/fs-extra": "^8.0.0", | ||
"@types/lodash": "^4.14.134", | ||
"@types/lodash": "4.14.154", | ||
"@types/mocha": "5.2.6", | ||
@@ -86,2 +86,2 @@ "@types/mock-fs": "^3.6.30", | ||
} | ||
} | ||
} |
@@ -64,1 +64,2 @@ # @sap/wing-service-explorer | ||
Returns a list of destinations which contain an additional property named **XFSystemName**. | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
367439
6027
65
+ Addedfast-xml-parser@4.2.4(transitive)
+ Addedstrnum@1.0.5(transitive)
- Removedfast-xml-parser@3.16.0(transitive)
Updatedfast-xml-parser@4.2.4